Skip to content
Snippets Groups Projects
Commit fa98a65e authored by S.Listl's avatar S.Listl
Browse files

Merge origin/master

parents 53dfc239 dc827cc0
No related branches found
No related tags found
No related merge requests found
Showing
with 551 additions and 32 deletions
......@@ -4545,6 +4545,352 @@
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
<name>APPOINTMENTLINK</name>
<dbName></dbName>
<idColumn>APPOINTMENTLINK_ID</idColumn>
<idGeneratorType v="0" />
<idGeneratorInterval v="1" />
<title></title>
<description></description>
<auditSyncConfig>
<name>auditSyncConfig</name>
<auditMode v="0" />
<syncActive v="false" />
<syncComplete v="true" />
<syncDirection v="1" />
<syncIds></syncIds>
</auditSyncConfig>
<entityFields>
<entityFieldDb>
<name>OBJECT_ROWID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>APPOINTMENTLINK_ID</name>
<dbName></dbName>
<primaryKey v="true" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="true" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>APPOINTMENT_ID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="63" />
<scale v="0" />
<notNull v="true" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>OBJECT_TYPE</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="63" />
<scale v="0" />
<notNull v="true" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
<name>ASYS_CALENDARBACKEND</name>
<dbName></dbName>
<idColumn>DATASETID</idColumn>
<idGeneratorType v="0" />
<idGeneratorInterval v="1" />
<title></title>
<description></description>
<auditSyncConfig>
<name>auditSyncConfig</name>
<auditMode v="0" />
<syncActive v="false" />
<syncComplete v="true" />
<syncDirection v="1" />
<syncIds></syncIds>
</auditSyncConfig>
<entityFields>
<entityFieldDb>
<name>DTSTART</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="29" />
<scale v="9" />
<notNull v="false" />
<isUnique v="false" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>ENDTIME</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="29" />
<scale v="9" />
<notNull v="false" />
<isUnique v="false" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>MAILBOX</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="255" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>CLASSIFICATION</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="4" />
<size v="10" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>ELEMENTUID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="512" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DTEND</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="29" />
<scale v="9" />
<notNull v="false" />
<isUnique v="false" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>ISRECUR</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="4" />
<size v="10" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DATASETID</name>
<dbName></dbName>
<primaryKey v="true" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="true" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>TRANSP</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<size v="1" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>OWNER</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="255" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>STATUS</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="32" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>STARTTIME</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="29" />
<scale v="9" />
<notNull v="false" />
<isUnique v="false" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>HASALARM</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="4" />
<size v="10" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>SUMMARY</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="255" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>VCOMPONENT</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="2005" />
<size v="2147483647" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>LASTMODIFIED</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="29" />
<scale v="9" />
<notNull v="false" />
<isUnique v="false" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>ENTRYTYPE</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="4" />
<size v="10" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>ORGANIZER</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="255" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
</entities>
</entityGroup>
</aliasDefDb>
......
<?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.2.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.2.0">
<name>AppointmentLink_entity</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<recordContainer>db</recordContainer>
<entityFields>
<entityProvider>
<name>#PROVIDER</name>
<recordContainer>db</recordContainer>
</entityProvider>
<entityField>
<name>APPOINTMENTLINKID</name>
</entityField>
<entityField>
<name>APPOINTMENT_ID</name>
</entityField>
<entityField>
<name>OBJECTID</name>
</entityField>
<entityField>
<name>OBJECTTYPE</name>
</entityField>
<entityParameter>
<name>AppointmentId_param</name>
<expose v="true" />
<mandatory v="false" />
<description>PARAMETER</description>
</entityParameter>
<entityProvider>
<name>Link</name>
<fieldType>DEPENDENCY_IN</fieldType>
<targetContextField>OBJECTTYPE</targetContextField>
<targetIdField>OBJECTID</targetIdField>
<recordContainer>db</recordContainer>
<dependencies>
<entityDependency>
<name>3dde1745-18a1-4499-83d0-61e414086997</name>
<entityName>Appointment_entity</entityName>
<fieldName>AppointmentLinks</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies>
</entityProvider>
</entityFields>
<recordContainers>
<dbRecordContainer>
<name>db</name>
<alias>Data_alias</alias>
<conditionProcess>%aditoprj%/entity/AppointmentLink_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
<linkInformation>
<linkInformation>
<name>4b8f04a4-9d0f-4ff1-90f3-e173930788cc</name>
<tableName>APPOINTMENTLINK</tableName>
<primaryKey>APPOINTMENTLINK_ID</primaryKey>
<isUIDTable v="true" />
<readonly v="false" />
</linkInformation>
</linkInformation>
<recordFieldMappings>
<dbRecordFieldMapping>
<name>APPOINTMENT_ID.value</name>
<recordfield>APPOINTMENTLINK.APPOINTMENT_ID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>APPOINTMENTLINKID.value</name>
<recordfield>APPOINTMENTLINK.APPOINTMENTLINK_ID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>OBJECTID.value</name>
<recordfield>APPOINTMENTLINK.OBJECT_ROWID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>OBJECTTYPE.value</name>
<recordfield>APPOINTMENTLINK.OBJECT_TYPE</recordfield>
</dbRecordFieldMapping>
</recordFieldMappings>
</dbRecordContainer>
</recordContainers>
</entity>
import("system.db");
import("system.result");
import("Sql_lib");
var cond = SqlCondition.begin()
.andPrepareVars("APPOINTMENTLINK.APPOINTMENT_ID", "$param.AppointmentId_param")
//TODO: use a preparedCondition when available
result.string(db.translateCondition(cond.build("1 = 1")));
\ No newline at end of file
......@@ -64,7 +64,7 @@
<entityActionField>
<name>accept</name>
<fieldType>ACTION</fieldType>
<title>zusagen</title>
<title>accept</title>
<onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/accept/onActionProcess.js</onActionProcess>
<actionOrder v="0" />
<iconId>VAADIN:CHECK</iconId>
......@@ -72,7 +72,7 @@
<entityActionField>
<name>decline</name>
<fieldType>ACTION</fieldType>
<title>absagen</title>
<title>decline</title>
<description></description>
<onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/decline/onActionProcess.js</onActionProcess>
<iconId>VAADIN:CLOSE</iconId>
......@@ -80,7 +80,7 @@
<entityActionField>
<name>tentative</name>
<fieldType>ACTION</fieldType>
<title>vielleicht</title>
<title>tentative</title>
<onActionProcess>%aditoprj%/entity/Appointment_entity/entityfields/partstatactiongroup/children/tentative/onActionProcess.js</onActionProcess>
<iconId>VAADIN:QUESTION</iconId>
</entityActionField>
......@@ -88,6 +88,7 @@
</entityActionGroup>
<entityProvider>
<name>#PROVIDER</name>
<recordContainer>jdito</recordContainer>
</entityProvider>
<entityParameter>
<name>MasterEntry_param</name>
......@@ -129,38 +130,44 @@
<expose v="true" />
<description>PARAMETER</description>
</entityParameter>
<entityParameter>
<name>AnyObjectRowid_param</name>
<description>PARAMETER</description>
</entityParameter>
<entityParameter>
<name>AnyObjectType_param</name>
<description>PARAMETER</description>
</entityParameter>
<entityConsumer>
<name>ObjectRelations</name>
<title>Relations</title>
<name>AppointmentLinks</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>ObjectRelation_entity</entityName>
<fieldName>AnyObject</fieldName>
<entityName>AppointmentLink_entity</entityName>
<fieldName>Link</fieldName>
</dependency>
<children>
<entityParameter>
<name>AnyObjectRowid_param</name>
<code>%aditoprj%/entity/Appointment_entity/entityfields/objectrelations/children/anyobjectrowid_param/code.js</code>
<expose v="true" />
<triggerRecalculation v="true" />
<mandatory v="false" />
<name>AppointmentId_param</name>
<code>%aditoprj%/entity/Appointment_entity/entityfields/appointmentlinks/children/appointmentid_param/code.js</code>
</entityParameter>
</children>
</entityConsumer>
<entityConsumer>
<name>Contexts</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>Context_entity</entityName>
<fieldName>Context</fieldName>
</dependency>
<children>
<entityParameter>
<name>AnyObjectType_param</name>
<code>%aditoprj%/entity/Appointment_entity/entityfields/objectrelations/children/anyobjecttype_param/code.js</code>
<triggerRecalculation v="true" />
<name>ContextId_param</name>
<documentation>%aditoprj%/entity/Appointment_entity/entityfields/contexts/children/contextid_param/documentation.adoc</documentation>
</entityParameter>
</children>
</entityConsumer>
<entityParameter>
<name>AnyObjectRowid_param</name>
<description>PARAMETER</description>
</entityParameter>
<entityParameter>
<name>AnyObjectType_param</name>
<description>PARAMETER</description>
</entityParameter>
</entityFields>
<recordContainers>
<jDitoRecordContainer>
......
import("system.vars");
import("system.result");
import("system.vars");
result.string(vars.get("$field.UID"))
\ No newline at end of file
result.string(vars.get("$field.UID"));
\ No newline at end of file
import("system.result");
import("Context_lib");
result.string(ContextUtils.getCurrentContextId())
\ No newline at end of file
......@@ -8,7 +8,10 @@ import("system.util");
if(vars.exists("$param.Entry_param"))
{
var entry = JSON.parse(vars.getString("$param.Entry_param"));
logging.log(entry.toSource())
var masterEntry = null;
if (vars.exists("$param.MasterEntry_param") && vars.get("$param.MasterEntry_param") != "") {
masterEntry = JSON.parse(vars.get("$param.MasterEntry_param"));
......@@ -42,7 +45,6 @@ if(vars.exists("$param.Entry_param"))
rrule = entry[calendars.RRULE] != null ? entry[calendars.RRULE][0] : null;
}
//@TODO Icon
result.object([
[
......
......@@ -42,6 +42,14 @@
<entityProvider>
<name>Context</name>
<fieldType>DEPENDENCY_IN</fieldType>
<dependencies>
<entityDependency>
<name>57f14cd7-f274-4c0d-9df9-7fecbb370fc7</name>
<entityName>Appointment_entity</entityName>
<fieldName>Contexts</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies>
<children>
<entityParameter>
<name>ContextId_param</name>
......
......@@ -21,7 +21,7 @@ So it is better to use an extra db-table.
== How the ObjectRelation_entity works ==
The entity works with the AB_OBJECTRELATION db-table.
An ObjectRelation always has two Objects which consist of an Object-type and an Object-rowid.
An ObjectRelation always has two Objects which consists of an Object-type and an Object-rowid.
The object-type is the id of the context. Which you can get by ContextUtils.getCurrentContextId of the Context_lib for the current context.
The object-rowid is the id of the Object you want use. Normally it is the UID of the Object.
......
<?xml version="1.0" encoding="UTF-8"?>
<neonContext xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.0.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonContext/1.0.0">
<name>AppointmentLink</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<entity>AppointmentLink_entity</entity>
<references>
<neonViewReference>
<name>015bf8e9-621a-423d-8fd3-17ef264cc919</name>
<view>AppointmentLinkFilter_view</view>
</neonViewReference>
</references>
</neonContext>
......@@ -19,7 +19,6 @@
<privateField>CLASSIFICATION</privateField>
<statusField>STATUS</statusField>
<locationField>LOCATION</locationField>
<linksField>LINKS</linksField>
<categoriesField>CATEGORIES</categoriesField>
<alldayField>ALLDAY</alldayField>
<transparencyField>TRANSPARENCY</transparencyField>
......@@ -31,7 +30,13 @@
<masterBeginField>MASTERBEGIN</masterBeginField>
<masterEndField>MASTEREND</masterEndField>
<reminderField>REMINDER</reminderField>
<appointmentLinkField>LINKS</appointmentLinkField>
<entityField>#ENTITY</entityField>
</appointmentEditViewTemplate>
<neonViewReference>
<name>39802b49-f67c-4796-ba05-105aa073d60c</name>
<entityField>AppointmentLinks</entityField>
<view>AppointmentLinkFilter_view</view>
</neonViewReference>
</children>
</neonView>
<?xml version="1.0" encoding="UTF-8"?>
<neonView xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.0.1" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.0.1">
<name>AppointmentLinkFilter_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<layout>
<boxLayout>
<name>layout</name>
</boxLayout>
</layout>
<children>
<tableViewTemplate>
<name>Links</name>
<entityField>#ENTITY</entityField>
<columns>
<neonTableColumn>
<name>a9c230fa-dbfd-40c6-975b-7778dea6ef78</name>
<entityField>APPOINTMENTLINKID</entityField>
</neonTableColumn>
<neonTableColumn>
<name>0da4bab5-6a9a-4411-92db-517b7cb327de</name>
<entityField>APPOINTMENT_ID</entityField>
</neonTableColumn>
<neonTableColumn>
<name>4b89082a-c6c0-4af8-ab94-b3ad8bfb6c04</name>
<entityField>OBJECTID</entityField>
</neonTableColumn>
<neonTableColumn>
<name>17c0a8a9-354c-4095-a5d4-5c2613c897a3</name>
<entityField>OBJECTTYPE</entityField>
</neonTableColumn>
</columns>
</tableViewTemplate>
</children>
</neonView>
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="a.schindlbeck" id="ba43be0a-8b27-4602-a1bb-dca31d279460">
<createTable tableName="APPOINTMENTLINK">
<column name="APPOINTMENTLINK_ID" type="CHAR(36)">
<constraints primaryKey="true" primaryKeyName="PK_APPOINTMENTLINK_APPOINTMENTLINKID"/>
</column>
<column name="APPOINTMENT_ID" type="NVARCHAR(63)">
<constraints nullable="false"/>
</column>
<column name="OBJECT_TYPE" type="NVARCHAR(63)">
<constraints nullable="false"/>
</column>
<column name="OBJECT_ROWID" type="CHAR(36)">
<constraints nullable="false"/>
</column>
</createTable>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
......@@ -15,6 +15,7 @@
<include file="data_alias/struct/create_contact.xml"/>
<include file="data_alias/struct/create_activity.xml"/>
<include file="data_alias/struct/create_activitylink.xml"/>
<include file="data_alias/struct/create_appointmentlink.xml"/>
<include file="data_alias/struct/create_address.xml"/>
<include file="data_alias/struct/create_communication.xml"/>
<include file="data_alias/struct/create_contract.xml"/>
......
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