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 @@
<title>accept</title>
<onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/accept/onActionProcess.js</onActionProcess>
<actionOrder v="0" />
<isMenuAction v="true" />
<iconId>VAADIN:CHECK</iconId>
<stateProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/accept/stateProcess.js</stateProcess>
</entityActionField>
<entityActionField>
<name>decline</name>
<title>decline</title>
<description></description>
<onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/decline/onActionProcess.js</onActionProcess>
<isMenuAction v="true" />
<iconId>VAADIN:CLOSE</iconId>
<stateProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/decline/stateProcess.js</stateProcess>
</entityActionField>
<entityActionField>
<name>tentative</name>
<title>tentative</title>
<onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/tentative/onActionProcess.js</onActionProcess>
<isMenuAction v="true" />
<iconId>VAADIN:QUESTION</iconId>
<stateProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/tentative/stateProcess.js</stateProcess>
</entityActionField>
</children>
</entityActionGroup>
......@@ -162,18 +168,14 @@
</entityParameter>
</children>
</entityConsumer>
<entityActionGroup>
<name>seriesActionGroup</name>
<children>
<entityActionField>
<name>deleteSeries</name>
<title>Delete</title>
<onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/seriesactiongroup/children/deleteseries/onActionProcess.js</onActionProcess>
<iconId>VAADIN:TRASH</iconId>
<tooltip>series delete action</tooltip>
</entityActionField>
</children>
</entityActionGroup>
<entityActionField>
<name>deleteSeries</name>
<title>Delete recurring appointment</title>
<onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/deleteseries/onActionProcess.js</onActionProcess>
<iconId>VAADIN:TRASH</iconId>
<stateProcess>%aditoprj%/entity/Appointment_entity/entityfields/deleteseries/stateProcess.js</stateProcess>
<tooltip>series delete action</tooltip>
</entityActionField>
</entityFields>
<recordContainers>
<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 @@
<key>Confirm password</key>
<value>Passwort prüfen</value>
</entry>
<entry>
<key>Delete recurring appointment</key>
<value>Serie löschen</value>
</entry>
<entry>
<key>Human Resources</key>
<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