Skip to content
Snippets Groups Projects
SerialLetter_entity.aod 5.10 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.10" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.10">
  <name>SerialLetter_entity</name>
  <majorModelMode>DISTRIBUTED</majorModelMode>
  <icon>VAADIN:ENVELOPES</icon>
  <title>Serial letter</title>
  <contentTitleProcess>%aditoprj%/entity/SerialLetter_entity/contentTitleProcess.js</contentTitleProcess>
  <titlePlural>Serial letters</titlePlural>
  <recordContainer>db</recordContainer>
  <entityFields>
    <entityProvider>
      <name>#PROVIDER</name>
      <dependencies>
        <entityDependency>
          <name>8cb1a355-eb91-414a-8860-0210b18bd1ba</name>
          <entityName>SerialLetterAddRecipients_entity</entityName>
          <fieldName>SerialLetters</fieldName>
          <isConsumer v="false" />
        </entityDependency>
      </dependencies>
    </entityProvider>
    <entityActionField>
      <name>downloadLetter</name>
      <title>Download letter</title>
      <onActionProcess>%aditoprj%/entity/SerialLetter_entity/entityfields/downloadletter/onActionProcess.js</onActionProcess>
      <iconId>VAADIN:DOWNLOAD_ALT</iconId>
    </entityActionField>
    <entityField>
      <name>SERIALLETTERID</name>
    </entityField>
    <entityField>
      <name>DOCUMENTTEMPLATE_ID</name>
      <title>Document Template</title>
      <consumer>Templates</consumer>
      <mandatory v="true" />
    </entityField>
    <entityConsumer>
      <name>Recipients</name>
      <dependency>
        <name>dependency</name>
        <entityName>LetterRecipient_entity</entityName>
        <fieldName>SerialLetterRecipients</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>SerialLetterId_param</name>
          <valueProcess>%aditoprj%/entity/SerialLetter_entity/entityfields/recipients/children/serialletterid_param/valueProcess.js</valueProcess>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityField>
      <name>ICON</name>
      <contentType>IMAGE</contentType>
      <valueProcess>%aditoprj%/entity/SerialLetter_entity/entityfields/icon/valueProcess.js</valueProcess>
    </entityField>
    <entityConsumer>
      <name>Templates</name>
      <dependency>
        <name>dependency</name>
        <entityName>DocumentTemplate_entity</entityName>
        <fieldName>DocumentTemplateProvider</fieldName>
      </dependency>
    </entityConsumer>
    <entityField>
      <name>TITLE</name>
      <title>Title</title>
      <mandatory v="true" />
    </entityField>
    <entityField>
      <name>DESCRIPTION</name>
      <title>Description</title>
      <contentType>LONG_TEXT</contentType>
    </entityField>
    <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/SerialLetter_entity/entityfields/loghistories/children/tablenames_param/valueProcess.js</valueProcess>
        </entityParameter>
      </children>
    </entityConsumer>
  </entityFields>
  <recordContainers>
    <dbRecordContainer>
      <name>db</name>
      <alias>Data_alias</alias>
      <fromClauseProcess>%aditoprj%/entity/SerialLetter_entity/recordcontainers/db/fromClauseProcess.js</fromClauseProcess>
      <linkInformation>
        <linkInformation>
          <name>5d9c983a-b129-437a-ae9d-203fb8ad03ec</name>
          <tableName>SERIALLETTER</tableName>
          <primaryKey>SERIALLETTERID</primaryKey>
          <isUIDTable v="true" />
          <readonly v="false" />
        </linkInformation>
        <linkInformation>
          <name>bc81b1c3-ce99-4581-ac70-4e24bebb0c75</name>
          <tableName>DOCUMENTTEMPLATE</tableName>
          <primaryKey>DOCUMENTTEMPLATEID</primaryKey>
          <isUIDTable v="false" />
          <readonly v="true" />
        </linkInformation>
      </linkInformation>
      <recordFieldMappings>
        <dbRecordFieldMapping>
          <name>DOCUMENTTEMPLATE_ID.value</name>
          <recordfield>SERIALLETTER.DOCUMENTTEMPLATE_ID</recordfield>
          <isFilterable v="true" />
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>SERIALLETTERID.value</name>
          <recordfield>SERIALLETTER.SERIALLETTERID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>DOCUMENTTEMPLATE_ID.displayValue</name>
          <recordfield>DOCUMENTTEMPLATE.NAME</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>TITLE.value</name>
          <recordfield>SERIALLETTER.TITLE</recordfield>
          <isFilterable v="true" />
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>DESCRIPTION.value</name>
          <recordfield>SERIALLETTER.DESCRIPTION</recordfield>
          <isFilterable v="true" />
        </dbRecordFieldMapping>
      </recordFieldMappings>
    </dbRecordContainer>
  </recordContainers>
</entity>