Skip to content
Snippets Groups Projects
Product_entity.aod 22.74 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.3.8" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.8">
  <name>Product_entity</name>
  <majorModelMode>DISTRIBUTED</majorModelMode>
  <documentation>%aditoprj%/entity/Product_entity/documentation.adoc</documentation>
  <title>Product</title>
  <contentTitleProcess>%aditoprj%/entity/Product_entity/contentTitleProcess.js</contentTitleProcess>
  <afterUiInit>%aditoprj%/entity/Product_entity/afterUiInit.js</afterUiInit>
  <iconId>VAADIN:HAMMER</iconId>
  <imageProcess>%aditoprj%/entity/Product_entity/imageProcess.js</imageProcess>
  <titlePlural>Products</titlePlural>
  <recordContainer>db</recordContainer>
  <entityFields>
    <entityField>
      <name>ADVERTISING</name>
      <title>Advertising material</title>
      <contentType>BOOLEAN</contentType>
      <dropDownProcess>%aditoprj%/entity/Product_entity/entityfields/advertising/dropDownProcess.js</dropDownProcess>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/advertising/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>GROUPCODEID</name>
      <title>Product group</title>
      <consumer>KeywordProductGroupcodes</consumer>
      <mandatory v="true" />
      <displayValueProcess>%aditoprj%/entity/Product_entity/entityfields/groupcodeid/displayValueProcess.js</displayValueProcess>
    </entityField>
    <entityField>
      <name>MINSTOCK</name>
      <title>Min. stock</title>
      <contentType>NUMBER</contentType>
      <outputFormat>#0</outputFormat>
      <inputFormat>#0</inputFormat>
    </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>
      <title>PRODUCTID (UID)</title>
      <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>
      <dropDownProcess>%aditoprj%/entity/Product_entity/entityfields/status/dropDownProcess.js</dropDownProcess>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/status/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>UNIT</name>
      <title>Unit</title>
      <consumer>KeywordQuantityUnits</consumer>
      <mandatory v="true" />
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/unit/valueProcess.js</valueProcess>
      <displayValueProcess>%aditoprj%/entity/Product_entity/entityfields/unit/displayValueProcess.js</displayValueProcess>
    </entityField>
    <entityField>
      <name>currentPurchasePrice</name>
      <title>Curr. purchase price</title>
      <contentType>TEXT</contentType>
      <state>READONLY</state>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/currentpurchaseprice/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>currentSalesPrice</name>
      <title>Curr. sales price</title>
      <contentType>TEXT</contentType>
      <state>READONLY</state>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/currentsalesprice/valueProcess.js</valueProcess>
    </entityField>
    <entityConsumer>
      <name>Organisations</name>
      <dependency>
        <name>dependency</name>
        <entityName>Organisation_entity</entityName>
        <fieldName>Organisations</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>OrganisationType_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/organisations/children/organisationtype_param/valueProcess.js</valueProcess>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityConsumer>
      <name>Productprices</name>
      <dependency>
        <name>dependency</name>
        <entityName>Productprice_entity</entityName>
        <fieldName>Productprices</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ProductId_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/productprices/children/productid_param/valueProcess.js</valueProcess>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityConsumer>
      <name>Stocks</name>
      <selectionMode>SINGLE</selectionMode>
      <dependency>
        <name>dependency</name>
        <entityName>Stock_entity</entityName>
        <fieldName>Stocks</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ProductId_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/stocks/children/productid_param/valueProcess.js</valueProcess>
        </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>StockCounts</name>
      <state>READONLY</state>
      <dependency>
        <name>dependency</name>
        <entityName>Stock_entity</entityName>
        <fieldName>Stocks</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ProductId_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/stockcounts/children/productid_param/valueProcess.js</valueProcess>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityProvider>
      <name>#PROVIDER</name>
      <recordContainer>db</recordContainer>
      <dependencies>
        <entityDependency>
          <name>edd8a3af-d168-4a3b-871d-39db964c700b</name>
          <entityName>Offeritem_entity</entityName>
          <fieldName>Products</fieldName>
          <isConsumer v="false" />
        </entityDependency>
        <entityDependency>
          <name>e4ba4c26-a777-4560-ab68-311ffae76e2f</name>
          <entityName>Orderitem_entity</entityName>
          <fieldName>Products</fieldName>
          <isConsumer v="false" />
        </entityDependency>
        <entityDependency>
          <name>760f179a-f37e-4bdf-af8f-d8935e86db0f</name>
          <entityName>Object_entity</entityName>
          <fieldName>Products</fieldName>
          <isConsumer v="false" />
        </entityDependency>
      </dependencies>
    </entityProvider>
    <entityConsumer>
      <name>ProductLinks</name>
      <dependency>
        <name>dependency</name>
        <entityName>Prod2prod_entity</entityName>
        <fieldName>ProductLinks</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ProductId_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/productlinks/children/productid_param/valueProcess.js</valueProcess>
          <expose v="true" />
          <mandatory v="true" />
        </entityParameter>
      </children>
    </entityConsumer>
    <entityField>
      <name>CONTACT_ID</name>
      <title>Developer</title>
      <consumer>Organisations</consumer>
      <linkedContext>Organisation</linkedContext>
      <displayValueProcess>%aditoprj%/entity/Product_entity/entityfields/contact_id/displayValueProcess.js</displayValueProcess>
      <onValueChangeTypes>
        <element>MASK</element>
        <element>PROCESS</element>
        <element>PROCESS_SETVALUE</element>
      </onValueChangeTypes>
    </entityField>
    <entityField>
      <name>INFO</name>
      <title>Description</title>
      <contentType>LONG_TEXT</contentType>
    </entityField>
    <entityConsumer>
      <name>Documents</name>
      <selectionMode>MULTI</selectionMode>
      <dependency>
        <name>dependency</name>
        <entityName>Document_entity</entityName>
        <fieldName>Documents</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>AssignmentRowId_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/documents/children/assignmentrowid_param/valueProcess.js</valueProcess>
        </entityParameter>
        <entityParameter>
          <name>AssignmentTable_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/documents/children/assignmenttable_param/valueProcess.js</valueProcess>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityConsumer>
      <name>MainDocuments</name>
      <stateProcess>%aditoprj%/entity/Product_entity/entityfields/maindocuments/stateProcess.js</stateProcess>
      <dependency>
        <name>dependency</name>
        <entityName>Document_entity</entityName>
        <fieldName>MainDocuments</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>AssignmentRowId_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/maindocuments/children/assignmentrowid_param/valueProcess.js</valueProcess>
        </entityParameter>
        <entityParameter>
          <name>AssignmentTable_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/maindocuments/children/assignmenttable_param/valueProcess.js</valueProcess>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityConsumer>
      <name>KeywordProductGroupcodes</name>
      <dependency>
        <name>dependency</name>
        <entityName>KeywordEntry_entity</entityName>
        <fieldName>SpecificContainerKeywords</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ContainerName_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/keywordproductgroupcodes/children/containername_param/valueProcess.js</valueProcess>
          <expose v="false" />
        </entityParameter>
      </children>
    </entityConsumer>
    <entityConsumer>
      <name>KeywordQuantityUnits</name>
      <dependency>
        <name>dependency</name>
        <entityName>KeywordEntry_entity</entityName>
        <fieldName>SpecificContainerKeywords</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ContainerName_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/keywordquantityunits/children/containername_param/valueProcess.js</valueProcess>
          <expose v="false" />
        </entityParameter>
      </children>
    </entityConsumer>
    <entityField>
      <name>LANGUAGE</name>
      <consumer>Languages</consumer>
      <searchable v="false" />
      <titleProcess>%aditoprj%/entity/Product_entity/entityfields/language/titleProcess.js</titleProcess>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/language/valueProcess.js</valueProcess>
      <displayValueProcess>%aditoprj%/entity/Product_entity/entityfields/language/displayValueProcess.js</displayValueProcess>
    </entityField>
    <entityConsumer>
      <name>Languages</name>
      <dependency>
        <name>dependency</name>
        <entityName>Language_entity</entityName>
        <fieldName>ISO3Name</fieldName>
      </dependency>
    </entityConsumer>
    <entityConsumer>
      <name>Activities</name>
      <dependency>
        <name>dependency</name>
        <entityName>Activity_entity</entityName>
        <fieldName>LinkedObjects</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ObjectId_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/activities/children/objectid_param/valueProcess.js</valueProcess>
        </entityParameter>
        <entityParameter>
          <name>RowId_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/activities/children/rowid_param/valueProcess.js</valueProcess>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityActionField>
      <name>newActivity</name>
      <title>New activity</title>
      <onActionProcess>%aditoprj%/entity/Product_entity/entityfields/newactivity/onActionProcess.js</onActionProcess>
      <iconId>VAADIN:HOURGLASS_END</iconId>
      <tooltip>New activity</tooltip>
      <tooltipProcess>%aditoprj%/entity/Product_entity/entityfields/newactivity/tooltipProcess.js</tooltipProcess>
    </entityActionField>
    <entityConsumer>
      <name>Attributes</name>
      <onValidation>%aditoprj%/entity/Product_entity/entityfields/attributes/onValidation.js</onValidation>
      <dependency>
        <name>dependency</name>
        <entityName>AttributeRelation_entity</entityName>
        <fieldName>AttributeRelations</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ObjectRowId_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/attributes/children/objectrowid_param/valueProcess.js</valueProcess>
          <expose v="false" />
        </entityParameter>
        <entityParameter>
          <name>ObjectType_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/attributes/children/objecttype_param/valueProcess.js</valueProcess>
          <expose v="false" />
        </entityParameter>
      </children>
    </entityConsumer>
    <entityParameter>
      <name>ExcludedProducts_param</name>
      <expose v="true" />
      <description>PARAMETER</description>
    </entityParameter>
    <entityProvider>
      <name>Products</name>
      <dependencies>
        <entityDependency>
          <name>1b12e8ef-74ba-4294-bd2b-9d4afa80798c</name>
          <entityName>Prod2prod_entity</entityName>
          <fieldName>Products</fieldName>
          <isConsumer v="false" />
        </entityDependency>
      </dependencies>
      <children>
        <entityParameter>
          <name>ExcludedProducts_param</name>
          <expose v="true" />
        </entityParameter>
      </children>
    </entityProvider>
    <entityActionField>
      <name>newTask</name>
      <title>New task</title>
      <onActionProcess>%aditoprj%/entity/Product_entity/entityfields/newtask/onActionProcess.js</onActionProcess>
      <iconId>VAADIN:TASKS</iconId>
    </entityActionField>
    <entityConsumer>
      <name>Tasks</name>
      <stateProcess>%aditoprj%/entity/Product_entity/entityfields/tasks/stateProcess.js</stateProcess>
      <dependency>
        <name>dependency</name>
        <entityName>Task_entity</entityName>
        <fieldName>Tasks</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>RowId_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/tasks/children/rowid_param/valueProcess.js</valueProcess>
        </entityParameter>
        <entityParameter>
          <name>ObjectId_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/tasks/children/objectid_param/valueProcess.js</valueProcess>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityConsumer>
      <name>AttributeTree</name>
      <dependency>
        <name>dependency</name>
        <entityName>AttributeRelation_entity</entityName>
        <fieldName>TreeProvider</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ObjectRowId_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/attributetree/children/objectrowid_param/valueProcess.js</valueProcess>
        </entityParameter>
        <entityParameter>
          <name>ObjectType_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/attributetree/children/objecttype_param/valueProcess.js</valueProcess>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityField>
      <name>USER_NEW</name>
      <title>USER_NEW</title>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/user_new/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>USER_EDIT</name>
      <title>USER_EDIT</title>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/user_edit/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>DATE_NEW</name>
      <title>DATE_NEW</title>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/date_new/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>DATE_EDIT</name>
      <title>DATE_EDIT</title>
      <searchable v="false" />
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/date_edit/valueProcess.js</valueProcess>
    </entityField>
    <entityConsumer>
      <name>LogHistoryConsumer</name>
      <dependency>
        <name>dependency</name>
        <entityName>LogHistory_entity</entityName>
        <fieldName>LogHistoryProvider</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>tablenames_param</name>
          <valueProcess>%aditoprj%/entity/Product_entity/entityfields/loghistoryconsumer/children/tablenames_param/valueProcess.js</valueProcess>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityParameter>
      <name>ProductText_param</name>
      <valueProcess>%aditoprj%/entity/Product_entity/entityfields/producttext_param/valueProcess.js</valueProcess>
    </entityParameter>
  </entityFields>
  <recordContainers>
    <dbRecordContainer>
      <name>db</name>
      <alias>Data_alias</alias>
      <maximumDbRows v="0" />
      <fromClauseProcess>%aditoprj%/entity/Product_entity/recordcontainers/db/fromClauseProcess.js</fromClauseProcess>
      <conditionProcess>%aditoprj%/entity/Product_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
      <orderClauseProcess>%aditoprj%/entity/Product_entity/recordcontainers/db/orderClauseProcess.js</orderClauseProcess>
      <onDBUpdate>%aditoprj%/entity/Product_entity/recordcontainers/db/onDBUpdate.js</onDBUpdate>
      <onDBDelete>%aditoprj%/entity/Product_entity/recordcontainers/db/onDBDelete.js</onDBDelete>
      <linkInformation>
        <linkInformation>
          <name>0c8977f6-8d3d-4377-adb4-3ddde463ab1a</name>
          <tableName>PRODUCT</tableName>
          <primaryKey>PRODUCTID</primaryKey>
          <isUIDTable v="true" />
          <readonly v="false" />
        </linkInformation>
        <linkInformation>
          <name>6d77303b-6d0f-4636-b230-bb498470eec7</name>
          <tableName>CONTACT</tableName>
          <primaryKey>CONTACTID</primaryKey>
          <isUIDTable v="false" />
          <readonly v="true" />
        </linkInformation>
        <linkInformation>
          <name>a4cc4ee2-e913-4c1a-bfe8-bdd83ccb3b5e</name>
          <tableName>ORGANISATION</tableName>
          <primaryKey>ORGANISATIONID</primaryKey>
          <isUIDTable v="false" />
          <readonly v="true" />
        </linkInformation>
      </linkInformation>
      <recordFieldMappings>
        <dbRecordFieldMapping>
          <name>ADVERTISING.value</name>
          <recordfield>PRODUCT.ADVERTISING</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>CONTACT_ID.value</name>
          <recordfield>PRODUCT.CONTACT_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>INFO.value</name>
          <recordfield>PRODUCT.INFO</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>GROUPCODEID.displayValue</name>
          <expression>%aditoprj%/entity/Product_entity/recordcontainers/db/recordfieldmappings/groupcodeid.displayvalue/expression.js</expression>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>UNIT.displayValue</name>
          <expression>%aditoprj%/entity/Product_entity/recordcontainers/db/recordfieldmappings/unit.displayvalue/expression.js</expression>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LANGUAGE.value</name>
          <recordfield>PRODUCT.LANGUAGE</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LANGUAGE.displayValue</name>
          <expression>%aditoprj%/entity/Product_entity/recordcontainers/db/recordfieldmappings/language.displayvalue/expression.js</expression>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>USER_NEW.value</name>
          <recordfield>PRODUCT.USER_NEW</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>USER_EDIT.value</name>
          <recordfield>PRODUCT.USER_EDIT</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>DATE_NEW.value</name>
          <recordfield>PRODUCT.DATE_NEW</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>DATE_EDIT.value</name>
          <recordfield>PRODUCT.DATE_EDIT</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>CONTACT_ID.displayValue</name>
          <recordfield>ORGANISATION.NAME</recordfield>
        </dbRecordFieldMapping>
      </recordFieldMappings>
    </dbRecordContainer>
  </recordContainers>
</entity>