Skip to content
Snippets Groups Projects
Commit f623a03b authored by Markus Escher's avatar Markus Escher
Browse files

#1029570 add documentListView for Contracts

parent 865cae49
No related branches found
No related tags found
No related merge requests found
Showing
with 142 additions and 2 deletions
...@@ -179,6 +179,59 @@ ...@@ -179,6 +179,59 @@
<entityField> <entityField>
<name>RELATION_PERS_ID</name> <name>RELATION_PERS_ID</name>
</entityField> </entityField>
<entityOutgoingField>
<name>ContractDocument_dfo</name>
<title>Documents</title>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>Document_entity</entityName>
<fieldName>ContractDocument_dfi</fieldName>
</dependency>
<children>
<entityParameter>
<name>AssignmentName_param</name>
<code>%aditoprj%/entity/Contract_entity/entityfields/contractdocument_dfo/children/assignmentname_param/code.js</code>
<triggerRecalculation v="false" />
</entityParameter>
<entityParameter>
<name>AssignmentRowId_param</name>
<code>%aditoprj%/entity/Contract_entity/entityfields/contractdocument_dfo/children/assignmentrowid_param/code.js</code>
<triggerRecalculation v="false" />
</entityParameter>
<entityParameter>
<name>AssignmentTable_param</name>
<code>%aditoprj%/entity/Contract_entity/entityfields/contractdocument_dfo/children/assignmenttable_param/code.js</code>
<triggerRecalculation v="false" />
</entityParameter>
</children>
</entityOutgoingField>
<entityOutgoingField>
<name>ContractMainDocuments_dfo</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>Document_entity</entityName>
<fieldName>ContractMainDocuments_dfi</fieldName>
</dependency>
<children>
<entityParameter>
<name>AssignmentName_param</name>
<code>%aditoprj%/entity/Contract_entity/entityfields/contractmaindocuments_dfo/children/assignmentname_param/code.js</code>
<triggerRecalculation v="true" />
</entityParameter>
<entityParameter>
<name>AssignmentRowId_param</name>
<code>%aditoprj%/entity/Contract_entity/entityfields/contractmaindocuments_dfo/children/assignmentrowid_param/code.js</code>
<triggerRecalculation v="true" />
</entityParameter>
<entityParameter>
<name>AssignmentTable_param</name>
<code>%aditoprj%/entity/Contract_entity/entityfields/contractmaindocuments_dfo/children/assignmenttable_param/code.js</code>
<triggerRecalculation v="true" />
</entityParameter>
</children>
</entityOutgoingField>
</entityFields> </entityFields>
<recordContainers> <recordContainers>
<dbRecordContainer> <dbRecordContainer>
...@@ -189,14 +242,14 @@ ...@@ -189,14 +242,14 @@
<conditionProcess>%aditoprj%/entity/Contract_entity/recordcontainers/db/conditionProcess.js</conditionProcess> <conditionProcess>%aditoprj%/entity/Contract_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
<linkInformation> <linkInformation>
<linkInformation> <linkInformation>
<name>99139e0f-3074-4c07-8998-bd83676e5a58</name> <name>bca25dcf-86a5-49a4-afdb-2101a4ca9712</name>
<tableName>CONTRACT</tableName> <tableName>CONTRACT</tableName>
<primaryKey>CONTRACTID</primaryKey> <primaryKey>CONTRACTID</primaryKey>
<isUIDTable v="true" /> <isUIDTable v="true" />
<readonly v="false" /> <readonly v="false" />
</linkInformation> </linkInformation>
<linkInformation> <linkInformation>
<name>2c5a2300-594b-46ee-8234-eaafb49a9a1e</name> <name>a27f0230-84c1-44f8-b30b-9a943caf07c2</name>
<tableName>RELATION</tableName> <tableName>RELATION</tableName>
<primaryKey>RELATIONID</primaryKey> <primaryKey>RELATIONID</primaryKey>
<isUIDTable v="false" /> <isUIDTable v="false" />
......
import("system.result");
result.string("DOCUMENT");
\ No newline at end of file
import("system.result");
import("system.vars");
result.string(vars.get("$field.RELATION_ID"));
\ No newline at end of file
import("system.result");
result.string("CONTRACT");
\ No newline at end of file
import("system.result");
result.string("DOCUMENT");
\ No newline at end of file
import("system.result");
import("system.vars");
result.string(vars.get("$field.RELATION_ID"));
\ No newline at end of file
import("system.result");
result.string("CONTRACT");
\ No newline at end of file
...@@ -112,6 +112,36 @@ ...@@ -112,6 +112,36 @@
<name>KEYWORD</name> <name>KEYWORD</name>
<title>Schlüsselwort</title> <title>Schlüsselwort</title>
</entityField> </entityField>
<entityIncomingField>
<name>ContractDocument_dfi</name>
<fieldType>DEPENDENCY_IN</fieldType>
<recordContainer>jdito</recordContainer>
<dependencies>
<entityDependency>
<name>383095e7-a75f-4d20-96c4-413e79a9020a</name>
<entityName>Contract_entity</entityName>
<fieldName>ContractDocument_dfo</fieldName>
<isOutgoing v="false" />
</entityDependency>
</dependencies>
</entityIncomingField>
<entityField>
<name>ICON</name>
<valueProcess>%aditoprj%/entity/Document_entity/entityfields/icon/valueProcess.js</valueProcess>
</entityField>
<entityIncomingField>
<name>ContractMainDocuments_dfi</name>
<fieldType>DEPENDENCY_IN</fieldType>
<recordContainer>jdito</recordContainer>
<dependencies>
<entityDependency>
<name>1e35c51a-8527-4cf0-be94-654363390cd8</name>
<entityName>Contract_entity</entityName>
<fieldName>ContractMainDocuments_dfo</fieldName>
<isOutgoing v="false" />
</entityDependency>
</dependencies>
</entityIncomingField>
</entityFields> </entityFields>
<recordContainers> <recordContainers>
<jDitoRecordContainer> <jDitoRecordContainer>
......
import("system.result");
result.string("vaadin:file_text");
\ No newline at end of file
...@@ -21,5 +21,9 @@ ...@@ -21,5 +21,9 @@
<name>c3a522f3-897e-4d02-862b-6e44c4873714</name> <name>c3a522f3-897e-4d02-862b-6e44c4873714</name>
<view>DocumentPreview_view</view> <view>DocumentPreview_view</view>
</neonViewReference> </neonViewReference>
<neonViewReference>
<name>b9455efd-d150-46c0-bfae-cdccb0c9bcad</name>
<view>DocumentList_view</view>
</neonViewReference>
</references> </references>
</neonContext> </neonContext>
...@@ -19,5 +19,10 @@ ...@@ -19,5 +19,10 @@
<entityField>ContractHistory_dfo</entityField> <entityField>ContractHistory_dfo</entityField>
<view>HistoryFilter_view</view> <view>HistoryFilter_view</view>
</neonViewReference> </neonViewReference>
<neonViewReference>
<name>1bf6faf5-9a22-4900-a497-54b6c225584b</name>
<entityField>ContractDocument_dfo</entityField>
<view>DocumentFilter_view</view>
</neonViewReference>
</children> </children>
</neonView> </neonView>
...@@ -46,5 +46,10 @@ ...@@ -46,5 +46,10 @@
</entityFieldLink> </entityFieldLink>
</fields> </fields>
</genericViewTemplate> </genericViewTemplate>
<neonViewReference>
<name>90de7332-5d4c-4d72-a93a-1bd2c06d12a4</name>
<entityField>ContractMainDocuments_dfo</entityField>
<view>DocumentList_view</view>
</neonViewReference>
</children> </children>
</neonView> </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>DocumentList_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<layout>
<drawerLayout>
<name>layout</name>
<layoutCaption>Documents</layoutCaption>
</drawerLayout>
</layout>
<children>
<treetableViewTemplate>
<name>DocumentTreeList_view</name>
<titleField>NAME</titleField>
<descriptionField>TYPE</descriptionField>
<iconField>ICON</iconField>
<hideActions v="true" />
<entityField>#ENTITY</entityField>
</treetableViewTemplate>
</children>
</neonView>
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