Skip to content
Snippets Groups Projects
Commit e7a33223 authored by Daniel Tran's avatar Daniel Tran Committed by Johannes Goderbauer
Browse files

#1058757: district management impl

parent 7b23cd0f
No related branches found
No related tags found
No related merge requests found
Showing
with 468 additions and 84 deletions
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="LossyEncoding" enabled="false" level="WARNING" enabled_by_default="false" />
</profile>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<include relativeToChangelogFile="true" file="create_district.xml"/>
<include relativeToChangelogFile="true" file="create_districtresponsible.xml"/>
<include relativeToChangelogFile="true" file="create_districtResponsibleKeyword.xml"/>
</databaseChangeLog>
<?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="d.tran" id="4bfb41ea-ef43-403a-9a93-48d92294b1cb">
<createTable tableName="DISTRICT">
<column name="DISTRICTID" type="CHAR(36)">
<constraints primaryKey="true" primaryKeyName="PK_DISTRICT_DISTRICTID"/>
</column>
<column name="DISTRICT_NAME" type="VARCHAR(50)"/>
<column name="DISTRICT_NUMBER" type="INTEGER"/>
<column name="DISTRICT_INFO" type="VARCHAR(50)"/>
<column name="ISO3" type="VARCHAR(5)"/>
<column name="PARENTDISTRICT_DISTRICTID" type="CHAR(36)"/>
<column name="DISTRICT_FILTER" type="NCLOB"/>
<column name="DISTRICT_STATUS" type="INTEGER"/>
<column name="USER_NEW" type="NVARCHAR(50)"/>
<column name="USER_EDIT" type="NVARCHAR(50)"/>
<column name="DATE_NEW" type="DATETIME"/>
<column name="DATE_EDIT" type="DATETIME"/>
</createTable>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
<?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="d.tran" id="04265522-bc51-4a4e-b637-335942dff147">
<insert tableName="AB_KEYWORD_ENTRY">
<column name="AB_KEYWORD_ENTRYID" value="997b4954-3108-41e0-a339-c1045ea2e01c"/>
<column name="KEYID" value="MEMBERROLEDISTRICTRESPONSIBLE"/>
<column name="TITLE" value="District Responsible"/>
<column name="CONTAINER" value="MemberRole"/>
<column name="SORTING" valueNumeric="0"/>
<column name="ISACTIVE" valueNumeric="1"/>
<column name="ISESSENTIAL" valueNumeric="0"/>
</insert>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
<?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="d.tran" id="d95ebf6c-1e34-4ba3-9f0b-386c5059444e">
<insert tableName="AB_KEYWORD_ENTRY">
<column name="AB_KEYWORD_ENTRYID" value="66d1563a-a76c-47ca-af6b-38586a2f3ce3"/>
<column name="KEYID" value="MEMROLEDISTRICTRESPONSIBLE"/>
<column name="TITLE" value="District Responsible"/>
<column name="CONTAINER" value="MemberRole"/>
<column name="SORTING" valueNumeric="0"/>
<column name="ISACTIVE" valueNumeric="1"/>
<column name="ISESSENTIAL" valueNumeric="0"/>
</insert>
</changeSet>
</databaseChangeLog>
<?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="d.tran" id="0e5cc99d-3500-484c-abc4-441e3a5c4b7f">
<createTable tableName="DISTRICTRESPONSIBLE">
<column name="DISTRICTRESPONSIBLEID" type="CHAR(36)">
<constraints primaryKey="true" primaryKeyName="PK_DISTRICTRESPONSIBLE_DISTRICTRESPONSIBLEID"/>
</column>
<column name="DISTRICT_ID" type="CHAR(36)"/>
<column name="EMPLOYEE_CONTACT_ID" type="CHAR(36)"/>
<column name="DEPARTMENT_ATTRIBUTE_ID" type="CHAR(36)"/>
<column name="USER_NEW" type="NVARCHAR(50)"/>
<column name="USER_EDIT" type="NVARCHAR(50)"/>
<column name="DATE_NEW" type="DATETIME"/>
<column name="DATE_EDIT" type="DATETIME"/>
</createTable>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<include relativeToChangelogFile="true" file="Districts/changelog.xml"/>
<include relativeToChangelogFile="true" file="Classification/changelog.xml"/>
<include relativeToChangelogFile="true" file="ImportFields/changelog.xml"/>
<include relativeToChangelogFile="true" file="LeadimportMappingAssistant/changelog.xml"/>
......
......@@ -16,7 +16,7 @@
<include relativeToChangelogFile="true" file="basic/2020.1.2/changelog.xml"/>
<include relativeToChangelogFile="true" file="basic/2020.1.3/changelog.xml"/>
<include relativeToChangelogFile="true" file="basic/2020.2.0/changelog.xml"/>
<!--enable this only when you definetly want to overwrite the existing data with demo records:-->
<!--enable this only when you definetly want to overwrite the existing data with demo records:-->
<!--<include relativeToChangelogFile="true" file="basic/_demoData/changelog.xml" context="example"/>-->
</databaseChangeLog>
\ No newline at end of file
......@@ -14990,7 +14990,7 @@
<name>GRADING</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<columnType v="12" />
<size v="1" />
<scale v="0" />
<notNull v="false" />
......@@ -15052,7 +15052,7 @@
<name>OBJECT_ROWID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
......@@ -15095,7 +15095,7 @@
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<size v="63" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
......@@ -15314,6 +15314,326 @@
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
<name>DISTRICT</name>
<dbName></dbName>
<idColumn>DISTRICTID</idColumn>
<idGeneratorType v="0" />
<idGeneratorInterval v="1" />
<documentation></documentation>
<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>DISTRICT_NAME</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="50" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DISTRICT_INFO</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="50" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DATE_EDIT</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="29" />
<scale v="9" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DISTRICT_STATUS</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>PARENTDISTRICT_DISTRICTID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DATE_NEW</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="29" />
<scale v="9" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>USER_NEW</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DISTRICT_NUMBER</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>ISO3</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="5" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DISTRICTID</name>
<dbName></dbName>
<primaryKey v="true" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="true" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>USER_EDIT</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DISTRICT_FILTER</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>
</entityFields>
</entityDb>
<entityDb>
<name>DISTRICTRESPONSIBLE</name>
<dbName></dbName>
<idColumn>DISTRICTRESPONSIBLEID</idColumn>
<idGeneratorType v="0" />
<idGeneratorInterval v="1" />
<documentation></documentation>
<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>DISTRICTRESPONSIBLEID</name>
<dbName></dbName>
<primaryKey v="true" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="true" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DATE_EDIT</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="29" />
<scale v="9" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DEPARTMENT_ATTRIBUTE_ID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DISTRICT_ID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>EMPLOYEE_CONTACT_ID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DATE_NEW</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="29" />
<scale v="9" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>USER_NEW</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>USER_EDIT</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
</entities>
</entityGroup>
</aliasDefDb>
......
import("Contact_lib");
import("system.db");
import("system.result");
import("Loghistory_lib");
var params = Translate4LogParams.load();
var res = OrganisationUtils.getNameByContactId(params.value);
result.string(res);
import("Contact_lib");
import("system.db");
import("system.result");
import("Loghistory_lib");
var params = Translate4LogParams.load();
var res = OrganisationUtils.getNameByContactId(params.value);
result.string(res);
import("Contact_lib");
import("system.result");
import("Loghistory_lib");
var params = Translate4LogParams.load();
var res = ContactUtils.getFullTitleByContactId(params.value);
import("Contact_lib");
import("system.result");
import("Loghistory_lib");
var params = Translate4LogParams.load();
var res = ContactUtils.getFullTitleByContactId(params.value);
result.string(res);
\ No newline at end of file
import("system.translate");
import("system.vars");
import("system.result");
import("system.text");
import("Loghistory_lib");
var params = Translate4LogParams.load();
import("system.translate");
import("system.vars");
import("system.result");
import("system.text");
import("Loghistory_lib");
var params = Translate4LogParams.load();
result.string(text.formatDouble(params.value, "#,##0.00", true));
\ No newline at end of file
import("system.translate");
import("system.vars");
import("system.result");
import("system.text");
import("Loghistory_lib");
var params = Translate4LogParams.load();
import("system.translate");
import("system.vars");
import("system.result");
import("system.text");
import("Loghistory_lib");
var params = Translate4LogParams.load();
result.string(text.formatDouble(params.value, "#,##0.00", true));
\ No newline at end of file
import("Contact_lib");
import("system.db");
import("system.result");
import("Loghistory_lib");
var params = Translate4LogParams.load();
var res = OrganisationUtils.getNameByContactId(params.value);
import("Contact_lib");
import("system.db");
import("system.result");
import("Loghistory_lib");
var params = Translate4LogParams.load();
var res = OrganisationUtils.getNameByContactId(params.value);
result.string(res);
\ No newline at end of file
import("Contact_lib");
import("system.result");
import("Loghistory_lib");
var params = Translate4LogParams.load();
var res = ContactUtils.getFullTitleByContactId(params.value);
import("Contact_lib");
import("system.result");
import("Loghistory_lib");
var params = Translate4LogParams.load();
var res = ContactUtils.getFullTitleByContactId(params.value);
result.string(res);
\ No newline at end of file
import("Contact_lib");
import("system.db");
import("system.result");
import("Loghistory_lib");
var params = Translate4LogParams.load();
var res = OrganisationUtils.getNameByContactId(params.value);
result.string(res);
import("Contact_lib");
import("system.db");
import("system.result");
import("Loghistory_lib");
var params = Translate4LogParams.load();
var res = OrganisationUtils.getNameByContactId(params.value);
result.string(res);
import("Contact_lib");
import("system.result");
import("Loghistory_lib");
var params = Translate4LogParams.load();
var res = ContactUtils.getFullTitleByContactId(params.value);
import("Contact_lib");
import("system.result");
import("Loghistory_lib");
var params = Translate4LogParams.load();
var res = ContactUtils.getFullTitleByContactId(params.value);
result.string(res);
\ No newline at end of file
import("Contact_lib");
import("system.result");
import("Loghistory_lib");
var params = Translate4LogParams.load();
var res = ContactUtils.getFullTitleByContactId(params.value);
import("Contact_lib");
import("system.result");
import("Loghistory_lib");
var params = Translate4LogParams.load();
var res = ContactUtils.getFullTitleByContactId(params.value);
result.string(res);
\ No newline at end of file
......@@ -306,6 +306,10 @@
<name>Userhelp</name>
<kind v="10077" />
</entityNode>
<entityNode>
<name>District</name>
<kind v="10077" />
</entityNode>
</childNodes>
</entityNode>
</childNodes>
......@@ -321,15 +325,14 @@
<kind v="123" />
<title></title>
<childNodes>
<entityNode>
<name>PROJECT_HumanResources</name>
<kind v="159" />
<title></title>
</entityNode>
<entityNode>
<name>Employee</name>
<kind v="10077" />
</entityNode>
<entityNode>
<name>INTERNAL_ADMINISTRATOR</name>
<kind v="159" />
</entityNode>
</childNodes>
</entityNode>
<entityNode>
......@@ -345,7 +348,6 @@
<entityNode>
<name>INTERNAL_ADMINISTRATOR</name>
<kind v="159" />
<title></title>
</entityNode>
<entityNode>
<name>PermissionMetaData</name>
......
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