Skip to content
Snippets Groups Projects
Commit 1d887371 authored by Andreas Schindlbeck's avatar Andreas Schindlbeck
Browse files

Kalender: Serientermine gesamt löschen

parent c9518d90
No related branches found
No related tags found
No related merge requests found
...@@ -79,20 +79,26 @@ ...@@ -79,20 +79,26 @@
<title>accept</title> <title>accept</title>
<onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/accept/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/accept/onActionProcess.js</onActionProcess>
<actionOrder v="0" /> <actionOrder v="0" />
<isMenuAction v="true" />
<iconId>VAADIN:CHECK</iconId> <iconId>VAADIN:CHECK</iconId>
<stateProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/accept/stateProcess.js</stateProcess>
</entityActionField> </entityActionField>
<entityActionField> <entityActionField>
<name>decline</name> <name>decline</name>
<title>decline</title> <title>decline</title>
<description></description> <description></description>
<onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/decline/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/decline/onActionProcess.js</onActionProcess>
<isMenuAction v="true" />
<iconId>VAADIN:CLOSE</iconId> <iconId>VAADIN:CLOSE</iconId>
<stateProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/decline/stateProcess.js</stateProcess>
</entityActionField> </entityActionField>
<entityActionField> <entityActionField>
<name>tentative</name> <name>tentative</name>
<title>tentative</title> <title>tentative</title>
<onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/tentative/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/tentative/onActionProcess.js</onActionProcess>
<isMenuAction v="true" />
<iconId>VAADIN:QUESTION</iconId> <iconId>VAADIN:QUESTION</iconId>
<stateProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/tentative/stateProcess.js</stateProcess>
</entityActionField> </entityActionField>
</children> </children>
</entityActionGroup> </entityActionGroup>
...@@ -162,18 +168,14 @@ ...@@ -162,18 +168,14 @@
</entityParameter> </entityParameter>
</children> </children>
</entityConsumer> </entityConsumer>
<entityActionGroup> <entityActionField>
<name>seriesActionGroup</name> <name>deleteSeries</name>
<children> <title>Delete recurring appointment</title>
<entityActionField> <onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/deleteseries/onActionProcess.js</onActionProcess>
<name>deleteSeries</name> <iconId>VAADIN:TRASH</iconId>
<title>Delete</title> <stateProcess>%aditoprj%/entity/Appointment_entity/entityfields/deleteseries/stateProcess.js</stateProcess>
<onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/seriesactiongroup/children/deleteseries/onActionProcess.js</onActionProcess> <tooltip>series delete action</tooltip>
<iconId>VAADIN:TRASH</iconId> </entityActionField>
<tooltip>series delete action</tooltip>
</entityActionField>
</children>
</entityActionGroup>
</entityFields> </entityFields>
<recordContainers> <recordContainers>
<jDitoRecordContainer> <jDitoRecordContainer>
......
import("system.tools");
import("system.logging");
import("system.vars");
import("system.result");
import("system.calendars");
import("system.neon");
var event = JSON.parse(vars.getString("$param.Entry_param"));
if(event != undefined && event != "") //event not empty
if(event[calendars.RECURRENCEID] != undefined && event[calendars.RECURRENCEID] != "") //event recurring appointment
if(event[calendars.ORGANIZER] == tools.getCurrentUser()["title"]) //user == organizer
result.object(neon.COMPONENTSTATE_EDITABLE);
else
result.object(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
import("system.calendars");
import("system.neon");
import("system.result");
if(calendars.getBackendType() == calendars.BACKEND_EXCHANGEWS)
result.object(neon.COMPONENTSTATE_EDITABLE);
else
result.object(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
import("system.calendars");
import("system.neon");
import("system.result");
if(calendars.getBackendType() == calendars.BACKEND_EXCHANGEWS)
result.object(neon.COMPONENTSTATE_EDITABLE);
else
result.object(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
import("system.calendars");
import("system.neon");
import("system.result");
if(calendars.getBackendType() == calendars.BACKEND_EXCHANGEWS)
result.object(neon.COMPONENTSTATE_EDITABLE);
else
result.object(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
...@@ -98,6 +98,10 @@ ...@@ -98,6 +98,10 @@
<key>Confirm password</key> <key>Confirm password</key>
<value>Passwort prüfen</value> <value>Passwort prüfen</value>
</entry> </entry>
<entry>
<key>Delete recurring appointment</key>
<value>Serie löschen</value>
</entry>
<entry> <entry>
<key>Human Resources</key> <key>Human Resources</key>
<value>Personal</value> <value>Personal</value>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment