Skip to content
Snippets Groups Projects
Product_entity.aod 16.59 KiB
<?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>Product_entity</name>
  <title>Product</title>
  <majorModelMode>DISTRIBUTED</majorModelMode>
  <documentation>%aditoprj%/entity/Product_entity/documentation.adoc</documentation>
  <iconId>VAADIN:HAMMER</iconId>
  <titleProcess>%aditoprj%/entity/Product_entity/titleProcess.js</titleProcess>
  <recordContainer>db</recordContainer>
  <entityFields>
    <entityField>
      <name>ADVERTISING</name>
      <title>Advertising material</title>
      <contentType>BOOLEAN</contentType>
      <possibleItemsProcess>%aditoprj%/entity/Product_entity/entityfields/advertising/possibleItemsProcess.js</possibleItemsProcess>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/advertising/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>DATE_EDIT</name>
      <contentType>DATE</contentType>
      <outputFormat>yyyy-MM-dd&amp;apos;T&amp;apos;HH:mm:ssZ</outputFormat>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/date_edit/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>DATE_NEW</name>
      <contentType>DATE</contentType>
      <outputFormat>yyyy-MM-dd&amp;apos;T&amp;apos;HH:mm:ssZ</outputFormat>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/date_new/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>GROUPCODEID</name>
      <title>Product group</title>
      <mandatory v="true" />
      <possibleItemsProcess>%aditoprj%/entity/Product_entity/entityfields/groupcodeid/possibleItemsProcess.js</possibleItemsProcess>
    </entityField>
    <entityField>
      <name>MINSTOCK</name>
      <title>Min. stock</title>
      <contentType>NUMBER</contentType>
      <outputFormat>#0</outputFormat>
    </entityField>
    <entityField>
      <name>PRODUCTCODE</name>
      <documentation>%aditoprj%/entity/Product_entity/entityfields/productcode/documentation.adoc</documentation>
      <title>Product number</title>
      <mandatory v="true" />
      <onValidation>%aditoprj%/entity/Product_entity/entityfields/productcode/onValidation.js</onValidation>
    </entityField>
    <entityField>
      <name>PRODUCTID</name>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/productid/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>PRODUCTNAME</name>
      <title>Product name</title>
      <mandatory v="true" />
    </entityField>
    <entityField>
      <name>STANDARD</name>
      <searchable v="false" />
    </entityField>
    <entityField>
      <name>STATUS</name>
      <title>Active</title>
      <contentType>BOOLEAN</contentType>
      <possibleItemsProcess>%aditoprj%/entity/Product_entity/entityfields/status/possibleItemsProcess.js</possibleItemsProcess>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/status/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>UNIT</name>
      <title>Unit</title>
      <mandatory v="true" />
      <possibleItemsProcess>%aditoprj%/entity/Product_entity/entityfields/unit/possibleItemsProcess.js</possibleItemsProcess>
    </entityField>
    <entityField>
      <name>USER_EDIT</name>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/user_edit/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>USER_NEW</name>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/user_new/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>currentPurchasePriceId</name>
      <title>Curr. purchase price</title>
      <state>READONLY</state>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/currentpurchasepriceid/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>currentSalesPriceId</name>
      <title>Curr. sales price</title>
      <contentType>NUMBER</contentType>
      <outputFormat>#,##0.00 €</outputFormat>
      <state>READONLY</state>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/currentsalespriceid/valueProcess.js</valueProcess>
    </entityField>
    <entityConsumer>
      <name>Organisations</name>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Org_entity</entityName>
        <fieldName>#PROVIDER</fieldName>
      </dependency>
    </entityConsumer>
    <entityProvider>
      <name>OrgProduct_dfi</name>
      <fieldType>DEPENDENCY_IN</fieldType>
      <recordContainer>db</recordContainer>
      <dependencies>
        <entityDependency>
          <name>49cbec11-7d2e-4898-b63f-2e36aac9181e</name>
          <entityName>Org_entity</entityName>
          <fieldName>Products</fieldName>
          <isConsumer v="false" />
        </entityDependency>
      </dependencies>
    </entityProvider>
    <entityParameter>
      <name>relationId_param</name>
      <expose v="true" />
      <triggerRecalculation v="true" />
      <mandatory v="false" />
      <description>PARAMETER</description>
    </entityParameter>
    <entityConsumer>
      <name>ProductProductprice_dfo</name>
      <title>Price list</title>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Productprice_entity</entityName>
        <fieldName>ProductProductprice_dfi</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ProductId_param</name>
          <code>%aditoprj%/entity/Product_entity/entityfields/productproductprice_dfo/children/productid_param/code.js</code>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityProvider>
      <name>Product_dfi</name>
      <fieldType>DEPENDENCY_IN</fieldType>
      <recordContainer>db</recordContainer>
      <dependencies>
        <entityDependency>
          <name>15dd9e6b-f551-452f-adce-53d7031ed468</name>
          <entityName>Productprice_entity</entityName>
          <fieldName>ProductpriceProduct_dfo</fieldName>
          <isConsumer v="false" />
        </entityDependency>
      </dependencies>
    </entityProvider>
    <entityConsumer>
      <name>ProductStock_dfo</name>
      <title>Stock</title>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <selectionMode>SINGLE</selectionMode>
      <dependency>
        <name>dependency</name>
        <entityName>Stock_entity</entityName>
        <fieldName>ProductStock_dfi</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ProductId_param</name>
          <code>%aditoprj%/entity/Product_entity/entityfields/productstock_dfo/children/productid_param/code.js</code>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityField>
      <name>IMAGE</name>
      <contentType>IMAGE</contentType>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/image/valueProcess.js</valueProcess>
      <onValueChange>%aditoprj%/entity/Product_entity/entityfields/image/onValueChange.js</onValueChange>
      <onValueChangeTypes>
        <element>MASK</element>
      </onValueChangeTypes>
    </entityField>
    <entityConsumer>
      <name>ProductStockCount_dfo</name>
      <title>Stock</title>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <state>READONLY</state>
      <dependency>
        <name>dependency</name>
        <entityName>Stock_entity</entityName>
        <fieldName>ProductStock_dfi</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ProductId_param</name>
          <code>%aditoprj%/entity/Product_entity/entityfields/productstockcount_dfo/children/productid_param/code.js</code>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityConsumer>
      <name>ProductProductpriceCurr_dfo</name>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Productprice_entity</entityName>
        <fieldName>ProductProductprice_dfi</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ProductId_param</name>
          <code>%aditoprj%/entity/Product_entity/entityfields/productproductpricecurr_dfo/children/productid_param/code.js</code>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityProvider>
      <name>#PROVIDER</name>
    </entityProvider>
    <entityConsumer>
      <name>ProductProd2prod_dfo</name>
      <title>Parts list</title>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Prod2prod_entity</entityName>
        <fieldName>Prod2prodProduct_dfi</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ProductId_param</name>
          <code>%aditoprj%/entity/Product_entity/entityfields/productprod2prod_dfo/children/productid_param/code.js</code>
          <expose v="true" />
          <triggerRecalculation v="true" />
          <mandatory v="true" />
        </entityParameter>
      </children>
    </entityConsumer>
    <entityField>
      <name>RELATION_ID</name>
      <title>Developer</title>
      <consumer>ProductOrg_dfo</consumer>
      <linkedContextProcess>%aditoprj%/entity/Product_entity/entityfields/relation_id/linkedContextProcess.js</linkedContextProcess>
      <displayValueProcess>%aditoprj%/entity/Product_entity/entityfields/relation_id/displayValueProcess.js</displayValueProcess>
      <onValueChangeTypes>
        <element>MASK</element>
        <element>PROCESS</element>
      </onValueChangeTypes>
    </entityField>
    <entityField>
      <name>INFO</name>
      <title>Description</title>
      <contentType>LONG_TEXT</contentType>
    </entityField>
    <entityConsumer>
      <name>ProductDocument_dfo</name>
      <title>Documents</title>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Document_entity</entityName>
        <fieldName>ProductDocument_dfi</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>AssignmentName_param</name>
          <code>%aditoprj%/entity/Product_entity/entityfields/productdocument_dfo/children/assignmentname_param/code.js</code>
        </entityParameter>
        <entityParameter>
          <name>AssignmentRowId_param</name>
          <code>%aditoprj%/entity/Product_entity/entityfields/productdocument_dfo/children/assignmentrowid_param/code.js</code>
        </entityParameter>
        <entityParameter>
          <name>AssignmentTable_param</name>
          <code>%aditoprj%/entity/Product_entity/entityfields/productdocument_dfo/children/assignmenttable_param/code.js</code>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityConsumer>
      <name>ProductMainDocuments_dfo</name>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Document_entity</entityName>
        <fieldName>ProductMainDocuments_dfi</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>AssignmentName_param</name>
          <code>%aditoprj%/entity/Product_entity/entityfields/productmaindocuments_dfo/children/assignmentname_param/code.js</code>
        </entityParameter>
        <entityParameter>
          <name>AssignmentRowId_param</name>
          <code>%aditoprj%/entity/Product_entity/entityfields/productmaindocuments_dfo/children/assignmentrowid_param/code.js</code>
        </entityParameter>
        <entityParameter>
          <name>AssignmentTable_param</name>
          <code>%aditoprj%/entity/Product_entity/entityfields/productmaindocuments_dfo/children/assignmenttable_param/code.js</code>
        </entityParameter>
        <entityParameter>
          <name>Keyword_param</name>
          <code>%aditoprj%/entity/Product_entity/entityfields/productmaindocuments_dfo/children/keyword_param/code.js</code>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityField>
      <name>ORG_NAME</name>
    </entityField>
  </entityFields>
  <recordContainers>
    <dbRecordContainer>
      <name>db</name>
      <alias>Data_alias</alias>
      <maximumDbRows v="0" />
      <fromClauseProcess>%aditoprj%/entity/Product_entity/recordcontainers/db/fromClauseProcess.js</fromClauseProcess>
      <onDBUpdate>%aditoprj%/entity/Product_entity/recordcontainers/db/onDBUpdate.js</onDBUpdate>
      <onDBDelete>%aditoprj%/entity/Product_entity/recordcontainers/db/onDBDelete.js</onDBDelete>
      <linkInformation>
        <linkInformation>
          <name>ce4af12f-66c7-43d2-aefe-512260f3b24b</name>
          <tableName>PRODUCT</tableName>
          <primaryKey>PRODUCTID</primaryKey>
          <isUIDTable v="true" />
          <readonly v="false" />
        </linkInformation>
        <linkInformation>
          <name>774f098d-8c86-4f0a-8eab-de79a43b8609</name>
          <tableName>RELATION</tableName>
          <primaryKey>RELATIONID</primaryKey>
          <isUIDTable v="false" />
          <readonly v="true" />
        </linkInformation>
        <linkInformation>
          <name>2120f83c-6e14-4683-a5ad-9d0c88970d57</name>
          <tableName>ORG</tableName>
          <primaryKey>ORGID</primaryKey>
          <isUIDTable v="false" />
          <readonly v="true" />
        </linkInformation>
      </linkInformation>
      <recordFieldMappings>
        <dbRecordFieldMapping>
          <name>ADVERTISING.value</name>
          <recordfield>PRODUCT.ADVERTISING</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>DATE_EDIT.value</name>
          <recordfield>PRODUCT.DATE_EDIT</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>DATE_NEW.value</name>
          <recordfield>PRODUCT.DATE_NEW</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>GROUPCODEID.value</name>
          <recordfield>PRODUCT.GROUPCODEID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>MINSTOCK.value</name>
          <recordfield>PRODUCT.MINSTOCK</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PRODUCTCODE.value</name>
          <recordfield>PRODUCT.PRODUCTCODE</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PRODUCTID.value</name>
          <recordfield>PRODUCT.PRODUCTID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PRODUCTNAME.value</name>
          <recordfield>PRODUCT.PRODUCTNAME</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>STANDARD.value</name>
          <recordfield>PRODUCT.STANDARD</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>STATUS.value</name>
          <recordfield>PRODUCT.STATUS</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>UNIT.value</name>
          <recordfield>PRODUCT.UNIT</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>USER_EDIT.value</name>
          <recordfield>PRODUCT.USER_EDIT</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>USER_NEW.value</name>
          <recordfield>PRODUCT.USER_NEW</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>RELATION_ORG_ID.value</name>
          <recordfield>RELATION.ORG_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>RELATION_PERS_ID.value</name>
          <recordfield>RELATION.PERS_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>RELATION_ID.value</name>
          <recordfield>PRODUCT.RELATION_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>ORG_NAME.value</name>
          <recordfield>ORG.NAME</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PERS_FIRSTNAME.value</name>
          <recordfield>PERS.FIRSTNAME</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PERS_LASTNAME.value</name>
          <recordfield>PERS.LASTNAME</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>INFO.value</name>
          <recordfield>PRODUCT.INFO</recordfield>
        </dbRecordFieldMapping>
      </recordFieldMappings>
    </dbRecordContainer>
  </recordContainers>
</entity>