diff --git a/entity/Appointment_entity/Appointment_entity.aod b/entity/Appointment_entity/Appointment_entity.aod index d18c57457b93f9b71b92fd5486bfde84ad0e1689..769ec9f9a57c597ab9ecda8cf70326db0c9da2c8 100644 --- a/entity/Appointment_entity/Appointment_entity.aod +++ b/entity/Appointment_entity/Appointment_entity.aod @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.0.3" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.0.3"> +<entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.0.4" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.0.4"> <name>Appointment_entity</name> <title>Termin</title> <majorModelMode>DISTRIBUTED</majorModelMode> @@ -23,6 +23,7 @@ <element>CLASSIFICATION</element> <element>TRANSPARENCY</element> <element>CATEGORIES</element> + <element>REMINDER</element> <element>RRULE</element> <element>RECURRENCEID</element> <element>SAFESCOPEFIELD</element> @@ -91,6 +92,7 @@ </entityField> <entityField> <name>REMINDER</name> + <fieldName>REMINDER</fieldName> </entityField> <entityField> <name>CATEGORIES</name> @@ -117,7 +119,6 @@ <onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/accept/onActionProcess.js</onActionProcess> <actionOrder v="0" /> <caption>zusagen</caption> - <icon>VAADIN:CHECK</icon> <iconId>VAADIN:CHECK</iconId> </entityActionField> <entityActionField> @@ -126,7 +127,6 @@ <description></description> <onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/decline/onActionProcess.js</onActionProcess> <caption>absagen</caption> - <icon>VAADIN:CLOSE</icon> <iconId>VAADIN:CLOSE</iconId> </entityActionField> <entityActionField> @@ -134,7 +134,6 @@ <fieldType>ACTION</fieldType> <onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/tentative/onActionProcess.js</onActionProcess> <caption>vielleicht</caption> - <icon>VAADIN:QUESTION</icon> <iconId>VAADIN:QUESTION</iconId> </entityActionField> </children> diff --git a/entity/Appointment_entity/contentProcess.js b/entity/Appointment_entity/contentProcess.js index 4554846ac42d01cd24776f6ce38b36b01b4531cf..7b83997ecfd16b3c8cfa8a57cd149c4a9f24b40a 100644 --- a/entity/Appointment_entity/contentProcess.js +++ b/entity/Appointment_entity/contentProcess.js @@ -49,7 +49,7 @@ if(vars.exists("$param.entry")) result.object([ [uid, '', '', attendees.length, startdate, enddate, summary, organizer, attendees, status, links, description, location, '', classification, - transparency, categories, rrule, recurrenceID, null, masterBegin, masterEnd] //reminder, remindercheck + transparency, categories, reminder, rrule, recurrenceID, null, masterBegin, masterEnd] //reminder, remindercheck ]); } else diff --git a/entity/Appointment_entity/onUpdate.js b/entity/Appointment_entity/onUpdate.js index 48860685efadbc2c593a112cf29f3dec01961596..e455951350c37258d85a4cccdd86818b07faefff 100644 --- a/entity/Appointment_entity/onUpdate.js +++ b/entity/Appointment_entity/onUpdate.js @@ -38,35 +38,18 @@ if(vars.exists("$param.entry")) event[calendars.CATEGORIES] = vars.get("$field.CATEGORIES"); event[calendars.AFFECTEDUSERS] = vars.get("$field.ATTENDEES"); event[calendars.TRANSPARENCY] = vars.get("$field.TRANSPARENCY"); - var hasReminder = vars.get("$field.REMINDER_CHECK"); - if (hasReminder == "true") + if (vars.get("$field.REMINDER") != undefined && vars.get("$field.REMINDER") != "") { - // Absolut nur, wenn auch gesetzt. Default ist relativ - if ( event[calendars.REMINDER_ABSOLUT] == "true") - { - var reminder_date = vars.get("$field.REMINDER"); - if ( reminder_date != "" ) - { - event[calendars.HASREMINDER] = "true"; - event[calendars.REMINDER_DATE] = reminder_date; - } - } - // else - // { - // var reminder_duration = vars.getString("$comp.reminder_duration"); - // if ( reminder_duration != "") - // { - // event[calendars.HASREMINDER] = "true"; - // event[calendars.REMINDER_DURATION] = reminder_duration; - // } - // } + event[calendars.HASREMINDER] = "true"; + event[calendars.REMINDER] = vars.get("$field.REMINDER"); + } //event[calendars.AFFECTEDUSERS] = getAffectedUsers( event ); // calcrecurrence(event); // if (event[calendars.RRULE] != undefined) recurrencend(event); // Links updaten //swing.saveTableEdit("$comp.links"); // Entweder jetzt neu anlegen oder nur updaten - } + calendars.updateEntry(event); diff --git a/neonView/AppointmentEdit_view/AppointmentEdit_view.aod b/neonView/AppointmentEdit_view/AppointmentEdit_view.aod index c945aba0b43d4d13ccd561599540f729941b0268..085c85de2a56653441aca0075aad14a7ce2618ef 100644 --- a/neonView/AppointmentEdit_view/AppointmentEdit_view.aod +++ b/neonView/AppointmentEdit_view/AppointmentEdit_view.aod @@ -28,6 +28,7 @@ <saveScopeField>SAFESCOPEFIELD</saveScopeField> <masterBeginField>MASTERBEGIN</masterBeginField> <masterEndField>MASTEREND</masterEndField> + <reminderField>REMINDER</reminderField> <entityField>#ENTITY</entityField> </appointmentEditViewTemplate> </children>