Skip to content
Snippets Groups Projects
Commit 5ed99b16 authored by Maximilian Schröger's avatar Maximilian Schröger
Browse files

Merge branch 'master' of gitlab.adito.de:xrm/basic

parents 5f38c7fe f94214b3
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<element>ICON</element> <element>ICON</element>
<element>CLASSIFICATION</element> <element>CLASSIFICATION</element>
<element>TRANSPARENCY</element> <element>TRANSPARENCY</element>
<element>CATEGORIES</element>
</fields> </fields>
<contentProcess>%aditoprj%/entity/Appointment_entity/contentProcess.js</contentProcess> <contentProcess>%aditoprj%/entity/Appointment_entity/contentProcess.js</contentProcess>
<onInsert>%aditoprj%/entity/Appointment_entity/onInsert.js</onInsert> <onInsert>%aditoprj%/entity/Appointment_entity/onInsert.js</onInsert>
...@@ -88,6 +89,7 @@ ...@@ -88,6 +89,7 @@
</entityField> </entityField>
<entityField> <entityField>
<name>CATEGORIES</name> <name>CATEGORIES</name>
<fieldName>CATEGORIES</fieldName>
<possibleItemsProcess>%aditoprj%/entity/Appointment_entity/entityfields/categories/possibleItemsProcess.js</possibleItemsProcess> <possibleItemsProcess>%aditoprj%/entity/Appointment_entity/entityfields/categories/possibleItemsProcess.js</possibleItemsProcess>
<newItemsAllowed v="true" /> <newItemsAllowed v="true" />
<valueProcess>%aditoprj%/entity/Appointment_entity/entityfields/categories/valueProcess.js</valueProcess> <valueProcess>%aditoprj%/entity/Appointment_entity/entityfields/categories/valueProcess.js</valueProcess>
...@@ -101,9 +103,5 @@ ...@@ -101,9 +103,5 @@
<name>TRANSPARENCY</name> <name>TRANSPARENCY</name>
<fieldName>TRANSPARENCY</fieldName> <fieldName>TRANSPARENCY</fieldName>
</entityField> </entityField>
<entityField>
<name>ALLDAY</name>
<valueProcess>%aditoprj%/entity/Appointment_entity/entityfields/allday/valueProcess.js</valueProcess>
</entityField>
</entityFields> </entityFields>
</entity> </entity>
...@@ -24,11 +24,12 @@ if(vars.exists("$param.entry")) ...@@ -24,11 +24,12 @@ if(vars.exists("$param.entry"))
var remindercheck = entry[calendars.HASREMINDER] var remindercheck = entry[calendars.HASREMINDER]
var classification = entry[calendars.CLASSIFICATION]; var classification = entry[calendars.CLASSIFICATION];
var transparency = entry[calendars.TRANSPARENCY]; var transparency = entry[calendars.TRANSPARENCY];
var categories = entry[calendars.CATEGORIES];
//@TODO Icon //@TODO Icon
result.object([ result.object([
[uid, '', '', attendees.length, startdate, enddate, summary, organizer, attendees, status, links, description, location, '', classification, transparency] //reminder, remindercheck [uid, '', '', attendees.length, startdate, enddate, summary, organizer, attendees, status, links, description, location, '', classification, transparency, categories] //reminder, remindercheck
]); ]);
} }
else else
......
import("system.vars");
import("system.datetime");
import("system.result");
var start = vars.get("$field.BEGIN");
var end = vars.get("$fild.END")
var startNumber = number(start);
var endNumber = number(end);
// überprüft ob beide uhrzeiten start und end auf 0 Uhr stehen und
// ob es 0 Uhr des selben tages ist
var isAllday = datetime.toDate(start, "HH:mm") == "00:00" &&
datetime.toDate(end, "HH:mm") == "23:59" &&
startNumber < endNumber;
result.string(allday);
\ No newline at end of file
...@@ -10,12 +10,8 @@ import("system.db"); ...@@ -10,12 +10,8 @@ import("system.db");
import("system.result"); import("system.result");
import("system.tools"); import("system.tools");
logging.log("on insert");
// Dieser Prozess speichert die im Frame angezeigten Daten
// Je nach Modus (INSERT, EDIT) wird ein neuer Datensatz angelegt oder der alte editiert
var event = JSON.parse(vars.getString("param.entry")); var event = JSON.parse(vars.getString("param.entry"));
var ok = false; var ok = false;
event[calendars.TYPE] = calendars.VEVENT; event[calendars.TYPE] = calendars.VEVENT;
...@@ -51,9 +47,9 @@ if (hasReminder == "true") ...@@ -51,9 +47,9 @@ if (hasReminder == "true")
// } // }
} }
event[calendars.CLASSIFICATION] = vars.get("$field.CLASSIFICATION"); event[calendars.CLASSIFICATION] = vars.get("$field.CLASSIFICATION");
// event[calendars.TRANSPARENCY] = vars.get("$field.transparency"); event[calendars.TRANSPARENCY] = vars.get("$field.TRANSPARENCY");
//event[calendars.AFFECTEDUSERS] = getAffectedUsers( event ); //event[calendars.AFFECTEDUSERS] = getAffectedUsers( event );
// event[calendars.CATEGORIES] = vars.get("$field.categories"); event[calendars.CATEGORIES] = vars.get("$field.CATEGORIES");
//calcrecurrence(event); //calcrecurrence(event);
//if (event[calendars.RRULE] != undefined) recurrencend(event); //if (event[calendars.RRULE] != undefined) recurrencend(event);
// Links updaten // Links updaten
...@@ -63,15 +59,6 @@ event[calendars.ID] = calendars.insert([event])[0]; ...@@ -63,15 +59,6 @@ event[calendars.ID] = calendars.insert([event])[0];
vars.set("$image.editmode", calendars.MODE_UPDATE); vars.set("$image.editmode", calendars.MODE_UPDATE);
ok = true; ok = true;
////Zwischenspeichern
//if(vars.exists("$image.dontClose") && vars.get("$image.dontClose") ) ok = false; //Maske offen lassen
//vars.set("$image.dontClose", false); // zurücksetzen, damit Klick auf Speichern noch funktioniert
if(vars.exists("$sys.ancestorimageuid") && vars.get("$sys.ancestorimageuid") != null)
{
neon.closeImage(vars.getString("$sys.currentimage"), true);
neon.refresh(vars.get("$sys.ancestorimageuid"));
}
// Liefert die AffectedUsers // Liefert die AffectedUsers
......
...@@ -27,7 +27,7 @@ if(vars.exists("param.entry")) ...@@ -27,7 +27,7 @@ if(vars.exists("param.entry"))
ok = true; ok = true;
} }
else else
{ {
event[calendars.TYPE] = calendars.VEVENT; event[calendars.TYPE] = calendars.VEVENT;
event[calendars.STATUS] = vars.getString("$field.STATUS"); event[calendars.STATUS] = vars.getString("$field.STATUS");
......
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
<columnName>MEDIUM_ID</columnName> <columnName>MEDIUM_ID</columnName>
<caption>Medium</caption> <caption>Medium</caption>
<possibleItemsProcess>%aditoprj%/entity/Comm_entity/entityfields/medium_id/possibleItemsProcess.js</possibleItemsProcess> <possibleItemsProcess>%aditoprj%/entity/Comm_entity/entityfields/medium_id/possibleItemsProcess.js</possibleItemsProcess>
<valueMappingProcess>%aditoprj%/entity/Comm_entity/entityfields/medium_id/valueMappingProcess.js</valueMappingProcess>
</entityField> </entityField>
<entityField> <entityField>
<name>RELATION_ID</name> <name>RELATION_ID</name>
...@@ -72,48 +71,6 @@ ...@@ -72,48 +71,6 @@
<description>This parameter is used for specifing a related &amp;quot;RELATIONID&amp;quot; to a COMM-entry. <description>This parameter is used for specifing a related &amp;quot;RELATIONID&amp;quot; to a COMM-entry.
Usually this is used for filtering COMM-entires by a specified contact or creating a new entry that is related to a contact.</description> Usually this is used for filtering COMM-entires by a specified contact or creating a new entry that is related to a contact.</description>
</entityParameter> </entityParameter>
<entityIncomingField>
<name>PersComm_dfi</name>
<fieldType>DEPENDENCY_IN</fieldType>
<dependencies>
<entityDependency>
<name>b509cb67-6306-4f74-8ce8-0385052a9611</name>
<entityName>Pers_entity</entityName>
<fieldName>PersComm_dfo</fieldName>
<isOutgoing v="false" />
</entityDependency>
<entityDependency>
<name>6bee4be4-34bd-47fc-a909-8e8bbf2f45f2</name>
<entityName>Pers_entity</entityName>
<fieldName>PersCommPhone_dfo</fieldName>
<isOutgoing v="false" />
</entityDependency>
<entityDependency>
<name>89ff88fa-029f-4b0d-a358-b7b310a6e72c</name>
<entityName>Pers_entity</entityName>
<fieldName>PersCommOthers_dfo</fieldName>
<isOutgoing v="false" />
</entityDependency>
<entityDependency>
<name>90c0436e-3a46-40ec-ae73-b4aaded95bbc</name>
<entityName>Pers_entity</entityName>
<fieldName>PersCommEmail_dfo</fieldName>
<isOutgoing v="false" />
</entityDependency>
</dependencies>
</entityIncomingField>
<entityIncomingField>
<name>OrgComm_dfi</name>
<fieldType>DEPENDENCY_IN</fieldType>
<dependencies>
<entityDependency>
<name>09723d40-72bc-4fcd-8283-fe085de73330</name>
<entityName>Org_entity</entityName>
<fieldName>OrgComm_dfo</fieldName>
<isOutgoing v="false" />
</entityDependency>
</dependencies>
</entityIncomingField>
<entityField> <entityField>
<name>IS_STANDARD</name> <name>IS_STANDARD</name>
<contentType>BOOLEAN</contentType> <contentType>BOOLEAN</contentType>
...@@ -127,6 +84,9 @@ Usually this is used for filtering COMM-entires by a specified contact or creati ...@@ -127,6 +84,9 @@ Usually this is used for filtering COMM-entires by a specified contact or creati
So, for only showing telephone-types you&amp;apos;ve to specify this parameter with it&amp;apos;s phone-number-category. So, for only showing telephone-types you&amp;apos;ve to specify this parameter with it&amp;apos;s phone-number-category.
</description> </description>
</entityParameter> </entityParameter>
<entityIncomingField>
<name>#INCOMING</name>
</entityIncomingField>
</entityFields> </entityFields>
<linkInformation> <linkInformation>
<linkInformation> <linkInformation>
......
...@@ -246,7 +246,7 @@ ...@@ -246,7 +246,7 @@
<dependency> <dependency>
<name>dependency</name> <name>dependency</name>
<entityName>Comm_entity</entityName> <entityName>Comm_entity</entityName>
<fieldName>OrgComm_dfi</fieldName> <fieldName>#INCOMING</fieldName>
</dependency> </dependency>
<children> <children>
<entityParameter> <entityParameter>
......
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
<dependency> <dependency>
<name>dependency</name> <name>dependency</name>
<entityName>Comm_entity</entityName> <entityName>Comm_entity</entityName>
<fieldName>PersComm_dfi</fieldName> <fieldName>#INCOMING</fieldName>
</dependency> </dependency>
<children> <children>
<entityParameter> <entityParameter>
...@@ -290,7 +290,7 @@ ...@@ -290,7 +290,7 @@
<dependency> <dependency>
<name>dependency</name> <name>dependency</name>
<entityName>Comm_entity</entityName> <entityName>Comm_entity</entityName>
<fieldName>PersComm_dfi</fieldName> <fieldName>#INCOMING</fieldName>
</dependency> </dependency>
<children> <children>
<entityParameter> <entityParameter>
...@@ -310,7 +310,7 @@ ...@@ -310,7 +310,7 @@
<dependency> <dependency>
<name>dependency</name> <name>dependency</name>
<entityName>Comm_entity</entityName> <entityName>Comm_entity</entityName>
<fieldName>PersComm_dfi</fieldName> <fieldName>#INCOMING</fieldName>
</dependency> </dependency>
<children> <children>
<entityParameter> <entityParameter>
...@@ -330,7 +330,7 @@ ...@@ -330,7 +330,7 @@
<dependency> <dependency>
<name>dependency</name> <name>dependency</name>
<entityName>Comm_entity</entityName> <entityName>Comm_entity</entityName>
<fieldName>PersComm_dfi</fieldName> <fieldName>#INCOMING</fieldName>
</dependency> </dependency>
<children> <children>
<entityParameter> <entityParameter>
......
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