Skip to content
Snippets Groups Projects
Commit 3dc4842b authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

Several scanservices

parent 316a4855
No related branches found
No related tags found
No related merge requests found
Showing
with 248 additions and 39 deletions
......@@ -112,7 +112,7 @@
<dependency>
<name>dependency</name>
<entityName>Person_entity</entityName>
<fieldName>Contacts</fieldName>
<fieldName>NonselfDuplicates</fieldName>
</dependency>
<children>
<entityParameter>
......@@ -189,7 +189,7 @@
<dependency>
<name>dependency</name>
<entityName>Organisation_entity</entityName>
<fieldName>Organisations</fieldName>
<fieldName>NonselfDuplicates</fieldName>
</dependency>
<children>
<entityParameter>
......
......@@ -112,6 +112,7 @@
</entityFieldGroup>
<entityProvider>
<name>Organisations</name>
<documentation>%aditoprj%/entity/Organisation_entity/entityfields/organisations/documentation.adoc</documentation>
<recordContainer>db</recordContainer>
<dependencies>
<entityDependency>
......@@ -172,6 +173,14 @@
<name>AttributeId_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>DuplicateActionsControl_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>DuplicateCurrentContactId_param</name>
<expose v="false" />
</entityParameter>
</children>
</entityProvider>
<entityConsumer>
......@@ -621,6 +630,14 @@
<name>ExcludedContactIds_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>DuplicateActionsControl_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>DuplicateCurrentContactId_param</name>
<expose v="false" />
</entityParameter>
</children>
</entityProvider>
<entityParameter>
......@@ -635,6 +652,7 @@
</entityParameter>
<entityProvider>
<name>WithAttribute</name>
<documentation>%aditoprj%/entity/Organisation_entity/entityfields/withattribute/documentation.adoc</documentation>
<dependencies>
<entityDependency>
<name>10480df2-f0b6-4cb6-8bfb-4a468b994996</name>
......@@ -671,6 +689,14 @@
<name>ExcludedContactIds_param</name>
<expose v="true" />
</entityParameter>
<entityParameter>
<name>DuplicateActionsControl_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>DuplicateCurrentContactId_param</name>
<expose v="false" />
</entityParameter>
</children>
</entityProvider>
<entityParameter>
......@@ -961,8 +987,39 @@
<stateProcess>%aditoprj%/entity/Organisation_entity/entityfields/openadminview/stateProcess.js</stateProcess>
</entityActionField>
<entityProvider>
<name>SelfDuplicatesProvider</name>
<name>SelfDuplicates</name>
<documentation>%aditoprj%/entity/Organisation_entity/entityfields/selfduplicates/documentation.adoc</documentation>
<titlePlural>Duplicates</titlePlural>
<children>
<entityParameter>
<name>AttributeId_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>AttributeKeyId_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>FilterPreSet_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>OrganisationType_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>WithPrivate_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>OnlyOwnSupervised_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>ExcludeOrganisationsByPersonId</name>
<expose v="false" />
</entityParameter>
</children>
</entityProvider>
<entityParameter>
<name>OnlyShowContactIds_param</name>
......@@ -1028,7 +1085,7 @@
<dependency>
<name>dependency</name>
<entityName>Organisation_entity</entityName>
<fieldName>SelfDuplicatesProvider</fieldName>
<fieldName>SelfDuplicates</fieldName>
</dependency>
<children>
<entityParameter>
......@@ -1236,6 +1293,44 @@
<name>indexP</name>
<documentation>%aditoprj%/entity/Organisation_entity/entityfields/indexp/documentation.adoc</documentation>
<recordContainer>index</recordContainer>
<children>
<entityParameter>
<name>AttributeId_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>ExcludedContactIds_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>OnlyShowContactIds_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>DuplicateCurrentContactId_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>ExcludeOrganisationsByPersonId</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>FilterPreSet_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>OnlyOwnSupervised_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>WithPrivate_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>OrganisationType_param</name>
<expose v="false" />
</entityParameter>
</children>
</entityProvider>
<entityConsumer>
<name>DistrictResponsibles</name>
......@@ -1255,6 +1350,40 @@
<name>FilterPreSet_param</name>
<expose v="true" />
</entityParameter>
<entityProvider>
<name>NonselfDuplicates</name>
<documentation>%aditoprj%/entity/Organisation_entity/entityfields/nonselfduplicates/documentation.adoc</documentation>
<dependencies>
<entityDependency>
<name>2e410b9e-5ebc-48ea-9562-da386202d7e8</name>
<entityName>Duplicates_entity</entityName>
<fieldName>DuplicateOrganisationsConsumer</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies>
<children>
<entityParameter>
<name>AttributeKeyId_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>DuplicateCurrentContactId_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>ExcludedContactIds_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>OnlyShowContactIds_param</name>
<expose v="true" />
</entityParameter>
<entityParameter>
<name>OnlyOwnSupervised_param</name>
<expose v="false" />
</entityParameter>
</children>
</entityProvider>
</entityFields>
<recordContainers>
<dbRecordContainer>
......
//import("Sql_lib");
//import("system.result");
//import("system.vars");
//
//var classification = newSelect("CLASSIFICATIONSTORAGE.CLASSIFICATIONVALUE")
// .from("CLASSIFICATIONSTORAGE")
// .where("CLASSIFICATIONSTORAGE.OBJECT_ROWID", vars.get("$field.ORGANISATIONID"))
// .cell();
//
//result.string(classification);
Provides organisation duplicate-records without the `Organisation_entity` scope, for example for the `Duplicates_entity`.
The provider is named `NonselfDuplicates` to differentiate this provider and the `SelfDuplicates`-provider.
\ No newline at end of file
......@@ -5,7 +5,6 @@ import("system.neon");
var rowConfig = entities.createConfigForLoadingRows()
.fields(["STANDARD_LAT", "STANDARD_LON"])
.entity("Organisation_entity")
// .entity(vars.get("$sys.currententityname"))
.uid(vars.get("$sys.uid"));
var row = entities.getRow(rowConfig);
......
......@@ -3,11 +3,7 @@ import("system.neon");
import("system.vars");
import("system.entities");
//todo: only visible if location tracking is enabled
//todo: use read entity and comment why (data is not loaded)
//use read entity since the lat and lon fields are not loaded by default since they are not needed otherwise
var rowConfig = entities.createConfigForLoadingRows()
.fields(["STANDARD_LAT", "STANDARD_LON"])
.entity(vars.get("$sys.currententityname"))
......
Provides several organisation contacts for basic use cases.
\ No newline at end of file
Provides organisation duplicate-records within the `Organisation_entity` scope itself.
\ No newline at end of file
Provides organisation contacts where one attribute has a specific, given value.
Use case: "give me all organizations where loyalty has the value high".
\ No newline at end of file
......@@ -116,6 +116,7 @@
</entityField>
<entityProvider>
<name>OrganisationRelated</name>
<documentation>%aditoprj%/entity/Person_entity/entityfields/organisationrelated/documentation.adoc</documentation>
<recordContainer>db</recordContainer>
<dependencies>
<entityDependency>
......@@ -138,6 +139,10 @@
<name>OnlyActive_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>DuplicateCurrentContactId_param</name>
<expose v="false" />
</entityParameter>
</children>
</entityProvider>
<entityField>
......@@ -345,6 +350,7 @@
</entityFieldGroup>
<entityProvider>
<name>Contact</name>
<documentation>%aditoprj%/entity/Person_entity/entityfields/contact/documentation.adoc</documentation>
<recordContainer>db</recordContainer>
<dependencies>
<entityDependency>
......@@ -372,6 +378,14 @@
<name>OnlyActive_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>DuplicateCurrentContactId_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>DuplicateActionsControl_param</name>
<expose v="false" />
</entityParameter>
</children>
</entityProvider>
<entityConsumer>
......@@ -687,6 +701,7 @@
</entityParameter>
<entityProvider>
<name>Contacts</name>
<documentation>%aditoprj%/entity/Person_entity/entityfields/contacts/documentation.adoc</documentation>
<dependencies>
<entityDependency>
<name>c98da62f-d6b2-4ddb-9101-92e9a60abdfb</name>
......@@ -722,6 +737,10 @@
<name>OnlyActive_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>DuplicateCurrentContactId_param</name>
<expose v="false" />
</entityParameter>
</children>
</entityProvider>
<entityConsumer>
......@@ -901,7 +920,7 @@
<dependency>
<name>dependency</name>
<entityName>Person_entity</entityName>
<fieldName>SelfDuplicatesProvider</fieldName>
<fieldName>SelfDuplicates</fieldName>
</dependency>
<children>
<entityParameter>
......@@ -949,6 +968,7 @@
</entityField>
<entityProvider>
<name>QuickEntryContacts</name>
<documentation>%aditoprj%/entity/Person_entity/entityfields/quickentrycontacts/documentation.adoc</documentation>
<titlePlural>Additional Contacts</titlePlural>
<dependencies>
<entityDependency>
......@@ -971,6 +991,14 @@
<name>OnlyActive_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>DuplicateActionsControl_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>DuplicateCurrentContactId_param</name>
<expose v="false" />
</entityParameter>
</children>
</entityProvider>
<entityActionField>
......@@ -1146,25 +1174,10 @@
<name>OnlyShowContactIds_param</name>
<expose v="true" />
</entityParameter>
<entityConsumer>
<name>SelfDuplicates</name>
<dependency>
<name>dependency</name>
<entityName>Person_entity</entityName>
<fieldName>SelfDuplicatesProvider</fieldName>
</dependency>
</entityConsumer>
<entityProvider>
<name>SelfDuplicatesProvider</name>
<name>SelfDuplicates</name>
<documentation>%aditoprj%/entity/Person_entity/entityfields/selfduplicates/documentation.adoc</documentation>
<titlePlural>Duplicates</titlePlural>
<dependencies>
<entityDependency>
<name>f6d16008-1764-4920-8ea5-c95c6a67f508</name>
<entityName>Person_entity</entityName>
<fieldName>SelfDuplicates</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies>
<children>
<entityParameter>
<name>OnlyShowContactIds_param</name>
......@@ -1174,6 +1187,18 @@
<name>OnlyActive_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>OrgId_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>OnlyOwnSupervised_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>ContactId_param</name>
<expose v="false" />
</entityParameter>
</children>
</entityProvider>
<entityField>
......@@ -1213,6 +1238,7 @@
</entityActionField>
<entityProvider>
<name>IdFilteredActiveContacts</name>
<documentation>%aditoprj%/entity/Person_entity/entityfields/idfilteredactivecontacts/documentation.adoc</documentation>
<dependencies>
<entityDependency>
<name>511f3e4c-7493-4a31-a136-0ba80ba2ec85</name>
......@@ -1270,6 +1296,12 @@
<name>indexP</name>
<documentation>%aditoprj%/entity/Person_entity/entityfields/indexp/documentation.adoc</documentation>
<recordContainer>index</recordContainer>
<children>
<entityParameter>
<name>DuplicateActionsControl_param</name>
<expose v="false" />
</entityParameter>
</children>
</entityProvider>
<entityField>
<name>PERSON_OBJECTTYPE</name>
......@@ -1293,6 +1325,40 @@
</entityParameter>
</children>
</entityConsumer>
<entityProvider>
<name>NonselfDuplicates</name>
<documentation>%aditoprj%/entity/Person_entity/entityfields/nonselfduplicates/documentation.adoc</documentation>
<dependencies>
<entityDependency>
<name>3a4352e2-9686-4c52-9d01-dbfad8c68ea7</name>
<entityName>Duplicates_entity</entityName>
<fieldName>DuplicatePersonsConsumer</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies>
<children>
<entityParameter>
<name>ContactId_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>DuplicateCurrentContactId_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>OnlyShowContactIds_param</name>
<expose v="true" />
</entityParameter>
<entityParameter>
<name>OrgId_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>OnlyOwnSupervised_param</name>
<expose v="false" />
</entityParameter>
</children>
</entityProvider>
</entityFields>
<recordContainers>
<dbRecordContainer>
......
Provides excactly one or none person contact.
\ No newline at end of file
Provides several person contacts.
\ No newline at end of file
Provides person contacts that are active (default) and excludes contacts with given IDs.
This is useful for lists where person contacts can be chosen only once.
\ No newline at end of file
Provides contact duplicate-records without the `Person_entity` scope, for example for the `Duplicates_entity`.
The provider is named `NonselfDuplicates` to differentiate this provider and the `SelfDuplicates`-provider.
\ No newline at end of file
Provides person contacts for one specific (given) organisation.
\ No newline at end of file
Provides the `Person_entity` for the Quickinsert-use-case:
The `Quickinsert_entity` is only used to create new records, not to update, delete or show them.
\ No newline at end of file
Provides contact duplicate-records within the `Person_entity` scope itself.
\ No newline at end of file
......@@ -11,6 +11,7 @@
</entityProvider>
<entityProvider>
<name>ForUnlinkedMail</name>
<documentation>%aditoprj%/entity/UnlinkedMailMappingWrapper_entity/entityfields/forunlinkedmail/documentation.adoc</documentation>
<children>
<entityParameter>
<name>UnlinkedMailId_param</name>
......
= UnlinkedMailMappingWrapper_entity
For manual linking of an unlinked mail
\ No newline at end of file
For manual linking of an unlinked mail
WARNING: This is deprecated and should not longer be used. Activites are now created always and have some or no activity links.
//todo: remove entity
\ No newline at end of file
Provides a wrapper for Unlinked Mails.
WARNING: This is deprecated and should not longer be used. Activites are now created always and have some or no activity links.
\ No newline at end of file
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