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

Merge branch '#1058757-DistrictManagement' into '2020.2.0'

#1058757 district management

See merge request xrm/basic!342
parents 7b23cd0f e7a33223
No related branches found
No related tags found
No related merge requests found
Showing
with 862 additions and 0 deletions
......@@ -156,6 +156,12 @@
<fieldName>Departments</fieldName>
<isConsumer v="false" />
</entityDependency>
<entityDependency>
<name>71cfeddd-a315-4692-8299-08813ca1dc19</name>
<entityName>DistrictResponsible_entity</entityName>
<fieldName>Departments</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies>
<children>
<entityParameter>
......@@ -179,6 +185,10 @@
<name>ChildType_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>ParentId_param</name>
<description>parent id, this is used for filtering by the parent in the content process</description>
</entityParameter>
</children>
</entityProvider>
<entityField>
......
<?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.3.17" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.17">
<name>DistrictResponsible_entity</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<icon>VAADIN:GLOBE</icon>
<title>Verantwortlicher</title>
<contentTitleProcess>%aditoprj%/entity/DistrictResponsible_entity/contentTitleProcess.js</contentTitleProcess>
<image>VAADIN:GLOBE</image>
<recordContainer>db</recordContainer>
<entityFields>
<entityProvider>
<name>#PROVIDER</name>
</entityProvider>
<entityField>
<name>DEPARTMENT_ATTRIBUTE_ID</name>
<title>Department</title>
<consumer>Departments</consumer>
<state>AUTO</state>
<valueProcess>%aditoprj%/entity/DistrictResponsible_entity/entityfields/department_attribute_id/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>EMPLOYEE_CONTACT_ID</name>
<title>{$DISTRICT_RESPONSIBLE}</title>
<consumer>Employees</consumer>
<linkedContext>Person</linkedContext>
<selectionMode>SINGLE</selectionMode>
</entityField>
<entityField>
<name>DISTRICT_ID</name>
<consumer>Districts</consumer>
<valueProcess>%aditoprj%/entity/DistrictResponsible_entity/entityfields/district_id/valueProcess.js</valueProcess>
</entityField>
<entityConsumer>
<name>Departments</name>
<dependency>
<name>dependency</name>
<entityName>Attribute_entity</entityName>
<fieldName>SpecificAttribute</fieldName>
</dependency>
<children>
<entityParameter>
<name>ParentId_param</name>
<valueProcess>%aditoprj%/entity/DistrictResponsible_entity/entityfields/departments/children/parentid_param/valueProcess.js</valueProcess>
<description>parent id, this is used for filtering by the parent in the content process</description>
</entityParameter>
</children>
</entityConsumer>
<entityConsumer>
<name>Employees</name>
<dependency>
<name>dependency</name>
<entityName>Employee_entity</entityName>
<fieldName>Employees</fieldName>
</dependency>
</entityConsumer>
<entityConsumer>
<name>Districts</name>
<dependency>
<name>dependency</name>
<entityName>District_entity</entityName>
<fieldName>Districts</fieldName>
</dependency>
</entityConsumer>
<entityField>
<name>DISTRICTRESPONSIBLEID</name>
</entityField>
<entityField>
<name>USER_NEW</name>
<valueProcess>%aditoprj%/entity/DistrictResponsible_entity/entityfields/user_new/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>USER_EDIT</name>
<valueProcess>%aditoprj%/entity/DistrictResponsible_entity/entityfields/user_edit/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>DATE_NEW</name>
<valueProcess>%aditoprj%/entity/DistrictResponsible_entity/entityfields/date_new/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>DATE_EDIT</name>
<valueProcess>%aditoprj%/entity/DistrictResponsible_entity/entityfields/date_edit/valueProcess.js</valueProcess>
</entityField>
<entityProvider>
<name>DistrictResponsibles</name>
<lookupIdfield>DISTRICTRESPONSIBLEID</lookupIdfield>
<dependencies>
<entityDependency>
<name>ef26fdb6-5fcf-416e-bcc8-380b5751b523</name>
<entityName>District_entity</entityName>
<fieldName>DistrictResponsibles</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies>
<children>
<entityParameter>
<name>DistrictId_param</name>
<mandatory v="true" />
</entityParameter>
<entityParameter>
<name>OrgUid_param</name>
<expose v="false" />
</entityParameter>
</children>
</entityProvider>
<entityParameter>
<name>DistrictId_param</name>
<expose v="true" />
<mandatory v="false" />
</entityParameter>
<entityConsumer>
<name>LogHistories</name>
<dependency>
<name>dependency</name>
<entityName>LogHistory_entity</entityName>
<fieldName>LogHistoryProvider</fieldName>
</dependency>
<children>
<entityParameter>
<name>tablenames_param</name>
<valueProcess>%aditoprj%/entity/DistrictResponsible_entity/entityfields/loghistories/children/tablenames_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityConsumer>
<name>Documents</name>
<dependency>
<name>dependency</name>
<entityName>Document_entity</entityName>
<fieldName>Documents</fieldName>
</dependency>
<children>
<entityParameter>
<name>AssignmentRowId_param</name>
<valueProcess>%aditoprj%/entity/DistrictResponsible_entity/entityfields/documents/children/assignmentrowid_param/valueProcess.js</valueProcess>
</entityParameter>
<entityParameter>
<name>AssignmentTable_param</name>
<valueProcess>%aditoprj%/entity/DistrictResponsible_entity/entityfields/documents/children/assignmenttable_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityParameter>
<name>OnlyResponsibles_param</name>
<expose v="true" />
</entityParameter>
<entityField>
<name>departmentAttributeName</name>
<title>Department</title>
<state>READONLY</state>
<valueProcess>%aditoprj%/entity/DistrictResponsible_entity/entityfields/departmentattributename/valueProcess.js</valueProcess>
</entityField>
<entityProvider>
<name>OrganisationResponsibles</name>
<dependencies>
<entityDependency>
<name>9c2fe0da-9456-44ef-ac6c-28ac234b35f7</name>
<entityName>Organisation_entity</entityName>
<fieldName>DistrictResponsibles</fieldName>
<isConsumer v="false" />
</entityDependency>
<entityDependency>
<name>7e71479b-8f39-4cd8-a31e-fac43df426d6</name>
<entityName>Salesproject_entity</entityName>
<fieldName>DistrictResponsibles</fieldName>
<isConsumer v="false" />
</entityDependency>
<entityDependency>
<name>97a448e1-05fb-4e42-ba83-11b419034f08</name>
<entityName>Member_entity</entityName>
<fieldName>DistrictResponsibles</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies>
<children>
<entityParameter>
<name>DistrictId_param</name>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>OnlyResponsibles_param</name>
<expose v="false" />
</entityParameter>
</children>
</entityProvider>
<entityParameter>
<name>OrgUid_param</name>
<expose v="true" />
</entityParameter>
<entityProvider>
<name>#PROVIDER_AGGREGATES</name>
<useAggregates v="true" />
</entityProvider>
</entityFields>
<recordContainers>
<dbRecordContainer>
<name>db</name>
<alias>Data_alias</alias>
<isPageable v="false" />
<conditionProcess>%aditoprj%/entity/DistrictResponsible_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
<cacheType>GLOBAL</cacheType>
<cacheKeyProcess>%aditoprj%/entity/DistrictResponsible_entity/recordcontainers/db/cacheKeyProcess.js</cacheKeyProcess>
<linkInformation>
<linkInformation>
<name>d659c49e-363d-4a1a-93a5-1abcfcf9e51c</name>
<tableName>DISTRICTRESPONSIBLE</tableName>
<primaryKey>DISTRICTRESPONSIBLEID</primaryKey>
<isUIDTable v="true" />
<readonly v="false" />
</linkInformation>
</linkInformation>
<recordFieldMappings>
<dbRecordFieldMapping>
<name>DEPARTMENT_ATTRIBUTE_ID.value</name>
<recordfield>DISTRICTRESPONSIBLE.DEPARTMENT_ATTRIBUTE_ID</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>DISTRICT_ID.value</name>
<recordfield>DISTRICTRESPONSIBLE.DISTRICT_ID</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>EMPLOYEE_CONTACT_ID.value</name>
<recordfield>DISTRICTRESPONSIBLE.EMPLOYEE_CONTACT_ID</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>DISTRICTRESPONSIBLEID.value</name>
<recordfield>DISTRICTRESPONSIBLE.DISTRICTRESPONSIBLEID</recordfield>
<isFilterable v="false" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>USER_EDIT.value</name>
<recordfield>DISTRICTRESPONSIBLE.USER_EDIT</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>USER_NEW.value</name>
<recordfield>DISTRICTRESPONSIBLE.USER_NEW</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>DATE_EDIT.value</name>
<recordfield>DISTRICTRESPONSIBLE.DATE_EDIT</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>DATE_NEW.value</name>
<recordfield>DISTRICTRESPONSIBLE.DATE_NEW</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>EMPLOYEE_CONTACT_ID.displayValue</name>
<expression>%aditoprj%/entity/DistrictResponsible_entity/recordcontainers/db/recordfieldmappings/employee_contact_id.displayvalue/expression.js</expression>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>DEPARTMENT_ATTRIBUTE_ID.displayValue</name>
<recordfield>DISTRICTRESPONSIBLE.DEPARTMENT_ATTRIBUTE_ID</recordfield>
<expression>%aditoprj%/entity/DistrictResponsible_entity/recordcontainers/db/recordfieldmappings/department_attribute_id.displayvalue/expression.js</expression>
</dbRecordFieldMapping>
</recordFieldMappings>
</dbRecordContainer>
</recordContainers>
</entity>
import("system.logging");
import("system.vars");
import("system.result");
import("Employee_lib");
var contactId = vars.get("$field.EMPLOYEE_CONTACT_ID");
var res = "";
if(contactId)
res = EmployeeUtils.getUsersDepartment(contactId, true);
result.string(res)
\ No newline at end of file
import("system.entities");
import("system.result");
import("system.vars");
import("Sql_lib");
var orgUid = vars.get("$param.OrgUid_param");
if(orgUid)
{
var orgDistrictIds = getDistrictIdsByOrgUid(orgUid);
orgDistrictIds = JSON.stringify(orgDistrictIds);
} else {
orgDistrictIds = JSON.stringify([]);
}
result.string(orgDistrictIds);
function _getDistrictIdsByOrgUid(pOrgUid) {
var districtIds = [];
var nonMatchedId = [];
var loadingRowsConfig = entities.createConfigForLoadingRows()
.entity("District_entity")
.fields(["#UID", "appliedFilter", "DISTRICT_NAME", "PARENTDISTRICT_ID"]);
var districtRows = entities.getRows(loadingRowsConfig);
for (i = 0; i < districtRows.length; i++) {
if (districtRows[i]["PARENTDISTRICT_ID"] in nonMatchedId)
{
nonMatchedId.push(districtRows[i]["#UID"]);
continue;
} else {
var filter = JSON.stringify(JSON.parse(districtRows[i]["appliedFilter"]).filter);
var rowCountConfig = entities.createConfigForLoadingRows()
.entity("Organisation_entity")
.uid(pOrgUid)
//.provider()
.filter(filter);
var rowCount = entities.getRowCount(rowCountConfig);
if (rowCount > 0)
{
districtIds.push(districtRows[i]["#UID"]);
} else {
nonMatchedId.push(districtRows[i]["#UID"]);
}
}
}
return districtIds;
}
\ No newline at end of file
import("system.vars");
import("system.neon");
import("system.result");
var currentDate = null;
if (vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT)
{
currentDate = vars.get("$sys.date");
}
result.string(currentDate);
\ No newline at end of file
import("system.vars");
import("system.neon");
import("system.result");
var currentDate = null;
if (vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW)
{
currentDate = vars.get("$sys.date");
}
result.string(currentDate);
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.tools");
var employeesContactId = vars.get("$field.EMPLOYEE_CONTACT_ID");
var departmentsAttrId = ""
if (employeesContactId)
{
departmentsAttrId = tools.getUsersByAttribute(tools.CONTACTID, [employeesContactId])[0][tools.PARAMS].department;
}
result.string(departmentsAttrId);
\ No newline at end of file
import("system.logging");
import("system.vars");
import("system.result");
import("Attribute_lib");
var departmentAttrId = vars.get("$field.DEPARTMENT_ATTRIBUTE_ID");
var departmentDisplayName = "";
if (departmentAttrId)
{
departmentDisplayName = AttributeUtil.getSimpleAttributeName(departmentAttrId, true);
}
result.string(departmentDisplayName);
\ No newline at end of file
import("AttributeRegistry_basic");
import("system.result");
result.string($AttributeRegistry.departments());
\ No newline at end of file
import("system.result");
import("system.vars");
result.string(vars.get("$param.DistrictId_param"));
\ No newline at end of file
import("system.result");
import("system.vars");
result.string(vars.get("$field.DISTRICTRESPONSIBLEID"));
\ No newline at end of file
import("system.result");
result.string("DISTRICTRESPONSIBLE");
\ No newline at end of file
import("system.vars");
import("system.result");
import("Context_lib");
var res = [{id: vars.get("$field.DISTRICTRESPONSIBLEID"), tableNames: ["DISTRICTRESPONSIBLE"]}];
res = JSON.stringify(res);//currently only strings can be passed as param
result.object(res);
\ No newline at end of file
import("system.vars");
import("system.neon");
import("system.result");
var currentUser = null;
if (vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT)
{
currentUser = vars.get("$sys.user");
}
result.string(currentUser);
\ No newline at end of file
import("system.vars");
import("system.neon");
import("system.result");
var currentUser = null;
if (vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW)
{
currentUser = vars.get("$sys.user");
}
result.string(currentUser);
\ No newline at end of file
import("CachedRecordContainer_lib");
import("system.result");
var cacheKey = CachedRecordContainerUtils.getCommonKey("$param.DistrictId_param", "$param.CollectedDistrictIds_param");
result.string(cacheKey);
\ No newline at end of file
import("system.entities");
import("system.result");
import("system.vars");
import("Sql_lib");
var districtId = vars.get("$param.DistrictId_param");
//var onlyResponsibles = vars.get("$param.OnlyResponsibles_param");
var orgUid = vars.get("$param.OrgUid_param");
var cond;
if (districtId)
{
cond = newWhere("DISTRICTRESPONSIBLE.DISTRICT_ID", districtId);
}
else if(orgUid)
{
var orgDistrictIds = getDistrictIdsByOrgUid(orgUid);
cond = newWhere("DISTRICTRESPONSIBLE.DISTRICT_ID", orgDistrictIds, SqlBuilder.IN());
}
result.string(cond.toString());
function getDistrictIdsByOrgUid(pOrgUid) {
var districtIds = [];
var nonMatchedId = [];
var loadingRowsConfig = entities.createConfigForLoadingRows()
.entity("District_entity")
.fields(["#UID", "appliedFilter", "DISTRICT_NAME", "PARENTDISTRICT_ID"]);
var districtRows = entities.getRows(loadingRowsConfig);
for (i = 0; i < districtRows.length; i++) {
if (districtRows[i]["PARENTDISTRICT_ID"] in nonMatchedId)
{
nonMatchedId.push(districtRows[i]["#UID"]);
continue;
} else {
var filter = JSON.stringify(JSON.parse(districtRows[i]["appliedFilter"]).filter);
var rowCountConfig = entities.createConfigForLoadingRows()
.entity("Organisation_entity")
.uid(pOrgUid)
//.provider()
.filter(filter);
var rowCount = entities.getRowCount(rowCountConfig);
if (rowCount > 0)
{
districtIds.push(districtRows[i]["#UID"]);
} else {
nonMatchedId.push(districtRows[i]["#UID"]);
}
}
}
return districtIds;
}
\ No newline at end of file
import("system.logging");
import("system.result");
import("Contact_lib");
import("Sql_lib");
var contact = Contact.createWithColumnPreset();
var renderer = new ContactTitleRenderer(contact, ContactTitleRenderer.OPTIONS.NoOption);
var selectExpression = renderer.asSql();
result.string(newSelect(selectExpression)
.from("CONTACT")
.leftJoin("PERSON", "PERSON.PERSONID = CONTACT.PERSON_ID")
.leftJoin("ORGANISATION", "ORGANISATION.ORGANISATIONID = CONTACT.ORGANISATION_ID")
.where("CONTACT.CONTACTID = DISTRICTRESPONSIBLE.EMPLOYEE_CONTACT_ID")
.toString());
<?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.3.17" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.17">
<name>District_entity</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<icon>VAADIN:GLOBE</icon>
<title>District definition</title>
<contentTitleProcess>%aditoprj%/entity/District_entity/contentTitleProcess.js</contentTitleProcess>
<afterUiInit>%aditoprj%/entity/District_entity/afterUiInit.js</afterUiInit>
<titlePlural></titlePlural>
<recordContainer>db</recordContainer>
<entityFields>
<entityProvider>
<name>#PROVIDER</name>
</entityProvider>
<entityField>
<name>DISTRICT_NAME</name>
<title>Name</title>
<groupable v="true" />
<mandatory v="true" />
</entityField>
<entityField>
<name>DISTRICT_NUMBER</name>
<title>{$DISTRICT_NUMBER}</title>
<contentType>TEXT</contentType>
<groupable v="true" />
<valueProcess>%aditoprj%/entity/District_entity/entityfields/district_number/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/District_entity/entityfields/district_number/displayValueProcess.js</displayValueProcess>
<onValidation>%aditoprj%/entity/District_entity/entityfields/district_number/onValidation.js</onValidation>
</entityField>
<entityField>
<name>DISTRICT_INFO</name>
<title>Information</title>
<contentType>LONG_TEXT</contentType>
</entityField>
<entityField>
<name>DISTRICTID</name>
</entityField>
<entityField>
<name>DISTRICT_STATUS</name>
<title>Status</title>
<groupable v="true" />
<mandatory v="true" />
<dropDownProcess>%aditoprj%/entity/District_entity/entityfields/district_status/dropDownProcess.js</dropDownProcess>
<selectionMode>SINGLE</selectionMode>
</entityField>
<entityField>
<name>PARENTDISTRICT_DISTRICTID</name>
<title>{$DISTRICT_PARENT_DISTRICT}</title>
<consumer>ParentDistricts</consumer>
<dropDownProcess>%aditoprj%/entity/District_entity/entityfields/parentdistrict_districtid/dropDownProcess.js</dropDownProcess>
<stateProcess>%aditoprj%/entity/District_entity/entityfields/parentdistrict_districtid/stateProcess.js</stateProcess>
<displayValueProcess>%aditoprj%/entity/District_entity/entityfields/parentdistrict_districtid/displayValueProcess.js</displayValueProcess>
<onValueChange>%aditoprj%/entity/District_entity/entityfields/parentdistrict_districtid/onValueChange.js</onValueChange>
<onValueChangeTypes>
<element>MASK</element>
<element>PROCESS</element>
<element>PROCESS_SETVALUE</element>
</onValueChangeTypes>
</entityField>
<entityField>
<name>DISTRICT_FILTER</name>
<title>District Filter</title>
<contentType>FILTER_TREE</contentType>
<valueProcess>%aditoprj%/entity/District_entity/entityfields/district_filter/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>customerCounting</name>
<title>Customer counting</title>
<groupable v="true" />
<valueProcess>%aditoprj%/entity/District_entity/entityfields/customercounting/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>totalTurnover</name>
<title>{$DISTRICT_TOTAL_TURNOVER}</title>
<groupable v="true" />
<valueProcess>%aditoprj%/entity/District_entity/entityfields/totalturnover/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>ISO3</name>
<title>Language</title>
<consumer>Languages</consumer>
<groupable v="true" />
<displayValueProcess>%aditoprj%/entity/District_entity/entityfields/iso3/displayValueProcess.js</displayValueProcess>
</entityField>
<entityProvider>
<name>Districts</name>
<lookupIdfield>DISTRICTID</lookupIdfield>
<recordContainer>db</recordContainer>
<dependencies>
<entityDependency>
<name>291c0ca4-5a68-45f5-80a7-745c7df56d7c</name>
<entityName>DistrictResponsible_entity</entityName>
<fieldName>Districts</fieldName>
<isConsumer v="false" />
</entityDependency>
<entityDependency>
<name>d2c383ee-7b5d-4242-b598-8343c1133fdd</name>
<entityName>District_entity</entityName>
<fieldName>ParentDistricts</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies>
</entityProvider>
<entityConsumer>
<name>Languages</name>
<dependency>
<name>dependency</name>
<entityName>Language_entity</entityName>
<fieldName>ISO3Name</fieldName>
</dependency>
</entityConsumer>
<entityConsumer>
<name>DistrictResponsibles</name>
<dependency>
<name>dependency</name>
<entityName>DistrictResponsible_entity</entityName>
<fieldName>DistrictResponsibles</fieldName>
</dependency>
<children>
<entityParameter>
<name>DistrictId_param</name>
<valueProcess>%aditoprj%/entity/District_entity/entityfields/districtresponsibles/children/districtid_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityField>
<name>USER_NEW</name>
<valueProcess>%aditoprj%/entity/District_entity/entityfields/user_new/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>USER_EDIT</name>
<valueProcess>%aditoprj%/entity/District_entity/entityfields/user_edit/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>DATE_NEW</name>
<valueProcess>%aditoprj%/entity/District_entity/entityfields/date_new/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>DATE_EDIT</name>
<groupable v="false" />
<valueProcess>%aditoprj%/entity/District_entity/entityfields/date_edit/valueProcess.js</valueProcess>
</entityField>
<entityConsumer>
<name>Organisations</name>
<refreshParent v="true" />
<dependency>
<name>dependency</name>
<entityName>Organisation_entity</entityName>
<fieldName>Organisations</fieldName>
</dependency>
<children>
<entityParameter>
<name>FilterPreSet_param</name>
<valueProcess>%aditoprj%/entity/District_entity/entityfields/organisations/children/filterpreset_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityFieldGroup>
<name>DISTRICT_NUMBER_fieldGroup</name>
<valueProcess>%aditoprj%/entity/District_entity/entityfields/district_number_fieldgroup/valueProcess.js</valueProcess>
<title>{$DISTRICT_NO}</title>
<fields>
<element>DISTRICT_NUMBER</element>
</fields>
</entityFieldGroup>
<entityConsumer>
<name>ParentDistricts</name>
<dependency>
<name>dependency</name>
<entityName>#ENTITY</entityName>
<fieldName>Districts</fieldName>
</dependency>
</entityConsumer>
<entityConsumer>
<name>Documents</name>
<dependency>
<name>dependency</name>
<entityName>Document_entity</entityName>
<fieldName>Documents</fieldName>
</dependency>
<children>
<entityParameter>
<name>AssignmentRowId_param</name>
<valueProcess>%aditoprj%/entity/District_entity/entityfields/documents/children/assignmentrowid_param/valueProcess.js</valueProcess>
</entityParameter>
<entityParameter>
<name>AssignmentTable_param</name>
<valueProcess>%aditoprj%/entity/District_entity/entityfields/documents/children/assignmenttable_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityConsumer>
<name>LogHistories</name>
<dependency>
<name>dependency</name>
<entityName>LogHistory_entity</entityName>
<fieldName>LogHistoryProvider</fieldName>
</dependency>
<children>
<entityParameter>
<name>tablenames_param</name>
<valueProcess>%aditoprj%/entity/District_entity/entityfields/logs/children/tablenames_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityField>
<name>parentFilter</name>
<title>Parent Filter</title>
<contentType>FILTER_TREE</contentType>
<state>READONLY</state>
<stateProcess>%aditoprj%/entity/District_entity/entityfields/parentfilter/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/District_entity/entityfields/parentfilter/valueProcess.js</valueProcess>
<onValueChange>%aditoprj%/entity/District_entity/entityfields/parentfilter/onValueChange.js</onValueChange>
</entityField>
<entityParameter>
<name>OnlyResponsibleDistricts</name>
<expose v="true" />
</entityParameter>
<entityParameter>
<name>DistrictIdByOrgId_param</name>
<expose v="true" />
</entityParameter>
<entityField>
<name>appliedFilter</name>
<valueProcess>%aditoprj%/entity/District_entity/entityfields/appliedfilter/valueProcess.js</valueProcess>
<onValueChange>%aditoprj%/entity/District_entity/entityfields/appliedfilter/onValueChange.js</onValueChange>
<onValueChangeTypes>
<element>MASK</element>
<element>PROCESS</element>
<element>PROCESS_SETVALUE</element>
<element>RECORD</element>
</onValueChangeTypes>
</entityField>
<entityProvider>
<name>#PROVIDER_AGGREGATES</name>
<useAggregates v="true" />
</entityProvider>
</entityFields>
<recordContainers>
<dbRecordContainer>
<name>db</name>
<alias>Data_alias</alias>
<isPageable v="false" />
<conditionProcess>%aditoprj%/entity/District_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
<orderClauseProcess>%aditoprj%/entity/District_entity/recordcontainers/db/orderClauseProcess.js</orderClauseProcess>
<cacheType>GLOBAL</cacheType>
<cacheKeyProcess>%aditoprj%/entity/District_entity/recordcontainers/db/cacheKeyProcess.js</cacheKeyProcess>
<linkInformation>
<linkInformation>
<name>b8398641-f97b-43e4-8f2c-beda8690ab2f</name>
<tableName>DISTRICT</tableName>
<primaryKey>DISTRICTID</primaryKey>
<isUIDTable v="true" />
<readonly v="false" />
</linkInformation>
</linkInformation>
<recordFieldMappings>
<dbRecordFieldMapping>
<name>DATE_EDIT.value</name>
<recordfield>DISTRICT.DATE_EDIT</recordfield>
<isLookupFilter v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>DATE_NEW.value</name>
<recordfield>DISTRICT.DATE_NEW</recordfield>
<isLookupFilter v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>DISTRICT_FILTER.value</name>
<recordfield>DISTRICT.DISTRICT_FILTER</recordfield>
<isLookupFilter v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>DISTRICT_INFO.value</name>
<recordfield>DISTRICT.DISTRICT_INFO</recordfield>
<isLookupFilter v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>DISTRICT_NAME.value</name>
<recordfield>DISTRICT.DISTRICT_NAME</recordfield>
<isLookupFilter v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>DISTRICT_NUMBER.value</name>
<recordfield>DISTRICT.DISTRICT_NUMBER</recordfield>
<isLookupFilter v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>DISTRICT_STATUS.value</name>
<recordfield>DISTRICT.DISTRICT_STATUS</recordfield>
<isLookupFilter v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>DISTRICTID.value</name>
<recordfield>DISTRICT.DISTRICTID</recordfield>
<isLookupFilter v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>ISO3.value</name>
<recordfield>DISTRICT.ISO3</recordfield>
<isLookupFilter v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>PARENTDISTRICT_DISTRICTID.value</name>
<recordfield>DISTRICT.PARENTDISTRICT_DISTRICTID</recordfield>
<isLookupFilter v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>USER_EDIT.value</name>
<recordfield>DISTRICT.USER_EDIT</recordfield>
<isLookupFilter v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>USER_NEW.value</name>
<recordfield>DISTRICT.USER_NEW</recordfield>
<isLookupFilter v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>PARENTDISTRICT_DISTRICTID.displayValue</name>
<expression>%aditoprj%/entity/District_entity/recordcontainers/db/recordfieldmappings/parent_district.displayvalue/expression.js</expression>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>appliedFilter.value</name>
<isLookupFilter v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>customerCounting.value</name>
<isLookupFilter v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>parentFilter.value</name>
<isLookupFilter v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>totalTurnover.value</name>
<isLookupFilter v="true" />
</dbRecordFieldMapping>
</recordFieldMappings>
</dbRecordContainer>
</recordContainers>
</entity>
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