Skip to content
Snippets Groups Projects
SalesprojectMember_entity.aod 9.79 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>SalesprojectMember_entity</name>
  <title>${SALESPROJECT_MEMBER}</title>
  <majorModelMode>DISTRIBUTED</majorModelMode>
  <recordContainer>db</recordContainer>
  <entityFields>
    <entityProvider>
      <name>#PROVIDER</name>
    </entityProvider>
    <entityField>
      <name>CONTACT_ID</name>
      <title>Person</title>
      <consumer>Contacts</consumer>
      <linkedContext>Person_context</linkedContext>
    </entityField>
    <entityField>
      <name>SALESPROJECT_ID</name>
      <valueProcess>%aditoprj%/entity/SalesprojectMember_entity/entityfields/salesproject_id/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>SALESPROJECT_MEMBERID</name>
      <valueProcess>%aditoprj%/entity/SalesprojectMember_entity/entityfields/salesproject_memberid/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>SALESPROJECT_ROLE</name>
      <title>Role</title>
      <consumer>KeywordMemberRoles</consumer>
    </entityField>
    <entityProvider>
      <name>SalesprojectMembers</name>
      <fieldType>DEPENDENCY_IN</fieldType>
      <targetContextField>TARGETCONTEXT</targetContextField>
      <targetIdField>CONTACT_ID</targetIdField>
      <recordContainer>db</recordContainer>
      <dependencies>
        <entityDependency>
          <name>c33d46e7-a7be-4548-a036-0ac58888504c</name>
          <entityName>Salesproject_entity</entityName>
          <fieldName>SalesprojectMembers</fieldName>
          <isConsumer v="false" />
        </entityDependency>
      </dependencies>
    </entityProvider>
    <entityParameter>
      <name>SalesprojectId_param</name>
      <expose v="true" />
      <triggerRecalculation v="true" />
      <mandatory v="true" />
      <description>PARAMETER</description>
    </entityParameter>
    <entityField>
      <name>ORG_NAME</name>
      <title>Company</title>
      <state>READONLY</state>
    </entityField>
    <entityField>
      <name>ORG_ORGID</name>
      <state>READONLY</state>
    </entityField>
    <entityField>
      <name>PERSON_FIRSTNAME</name>
      <title>Firstname</title>
      <state>READONLY</state>
    </entityField>
    <entityField>
      <name>PERSON_LASTNAME</name>
      <title>Lastname</title>
      <state>READONLY</state>
    </entityField>
    <entityField>
      <name>PERSON_PERSID</name>
      <state>READONLY</state>
    </entityField>
    <entityField>
      <name>PERSON_SALUTATION</name>
      <state>READONLY</state>
    </entityField>
    <entityField>
      <name>PERSON_TITLE</name>
      <title>title</title>
      <state>READONLY</state>
    </entityField>
    <entityConsumer>
      <name>CurrentContact</name>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Person_entity</entityName>
        <fieldName>Contact</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ContactId_param</name>
          <code>%aditoprj%/entity/SalesprojectMember_entity/entityfields/currentcontact/children/ContactId_param/code.js</code>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityField>
      <name>PERSON_FULL_NAME</name>
      <title>Name</title>
      <consumer>CurrentContact</consumer>
      <linkedContext>Person_context</linkedContext>
      <state>READONLY</state>
      <valueProcess>%aditoprj%/entity/SalesprojectMember_entity/entityfields/person_full_name/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>RELATIONSHIP</name>
      <title>Relationship</title>
      <description>Overrules CONTACT_RELATIONSHIP

TODO: intuitive möglichkeit, auf dend Stand aus Relation zurückzusetzen... aktuell im edit mode auf leeres Feld, dann wird das aus contact angezeigt</description>
      <contentType>NUMBER</contentType>
      <displayValueProcess>%aditoprj%/entity/SalesprojectMember_entity/entityfields/relationship/displayValueProcess.js</displayValueProcess>
      <onValueChangeTypes>
        <element>MASK</element>
        <element>PROCESS</element>
      </onValueChangeTypes>
    </entityField>
    <entityField>
      <name>CONTACT_RELATIONSHIP</name>
      <title>Relationship</title>
      <description>TODO: Beziehung zu der Relation 1024846 (z.B. per Ampelsystem)</description>
      <contentType>NUMBER</contentType>
    </entityField>
    <entityConsumer>
      <name>Contacts</name>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>Person_entity</entityName>
        <fieldName>#PROVIDER</fieldName>
      </dependency>
    </entityConsumer>
    <entityConsumer>
      <name>KeywordMemberRoles</name>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>KeywordEntry_entity</entityName>
        <fieldName>SpecificContainerKeywords</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>containerName_param</name>
          <code>%aditoprj%/entity/SalesprojectMember_entity/entityfields/keywordmemberroles/children/containername_param/code.js</code>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityField>
      <name>TARGETCONTEXT</name>
      <valueProcess>%aditoprj%/entity/SalesprojectMember_entity/entityfields/targetcontext/valueProcess.js</valueProcess>
    </entityField>
  </entityFields>
  <recordContainers>
    <dbRecordContainer>
      <name>db</name>
      <alias>Data_alias</alias>
      <fromClauseProcess>%aditoprj%/entity/SalesprojectMember_entity/recordcontainers/db/fromClauseProcess.js</fromClauseProcess>
      <conditionProcess>%aditoprj%/entity/SalesprojectMember_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
      <linkInformation>
        <linkInformation>
          <name>642ee877-9b75-42df-ade2-40f65f8a9ee5</name>
          <tableName>SALESPROJECT_MEMBER</tableName>
          <primaryKey>SALESPROJECT_MEMBERID</primaryKey>
          <isUIDTable v="true" />
          <readonly v="false" />
        </linkInformation>
        <linkInformation>
          <name>d158535e-ce3a-4660-91c7-d0ec8a7cbafc</name>
          <tableName>ORGANISATION</tableName>
          <primaryKey>ORGANISATIONID</primaryKey>
          <isUIDTable v="false" />
          <readonly v="true" />
        </linkInformation>
        <linkInformation>
          <name>d794504f-52b7-4da0-abbe-ea3f6eabe996</name>
          <tableName>PERSON</tableName>
          <primaryKey>PERSONID</primaryKey>
          <isUIDTable v="false" />
          <readonly v="true" />
        </linkInformation>
        <linkInformation>
          <name>6b4e762c-8316-47d2-8ff0-67d8b1ff58bd</name>
          <tableName>CONTACT</tableName>
          <primaryKey>CONTACTID</primaryKey>
          <isUIDTable v="false" />
          <readonly v="true" />
        </linkInformation>
      </linkInformation>
      <recordFieldMappings>
        <dbRecordFieldMapping>
          <name>ORG_NAME.value</name>
          <recordfield>ORGANISATION.NAME</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>ORG_ORGID.value</name>
          <recordfield>ORGANISATION.ORGANISATIONID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PERSON_FIRSTNAME.value</name>
          <recordfield>PERSON.FIRSTNAME</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PERSON_LASTNAME.value</name>
          <recordfield>PERSON.LASTNAME</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PERSON_PERSID.value</name>
          <recordfield>PERSON.PERSONID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PERSON_SALUTATION.value</name>
          <recordfield>PERSON.SALUTATION</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PERSON_TITLE.value</name>
          <recordfield>PERSON.TITLE</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>CONTACT_ID.value</name>
          <recordfield>SALESPROJECT_MEMBER.CONTACT_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>SALESPROJECT_ID.value</name>
          <recordfield>SALESPROJECT_MEMBER.SALESPROJECT_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>SALESPROJECT_MEMBERID.value</name>
          <recordfield>SALESPROJECT_MEMBER.SALESPROJECT_MEMBERID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>SALESPROJECT_ROLE.value</name>
          <recordfield>SALESPROJECT_MEMBER.SALESPROJECT_ROLE</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>RELATIONSHIP.value</name>
          <recordfield>SALESPROJECT_MEMBER.RELATIONSHIP</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>CONTACT_RELATIONSHIP.value</name>
          <recordfield>CONTACT.RELATIONSHIP</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>CONTACT_ID.displayValue</name>
          <expression>%aditoprj%/entity/SalesprojectMember_entity/recordcontainers/db/recordfieldmappings/contact_id.displayvalue/expression.js</expression>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>SALESPROJECT_ROLE.displayValue</name>
          <expression>%aditoprj%/entity/SalesprojectMember_entity/recordcontainers/db/recordfieldmappings/salesproject_role.displayvalue/expression.js</expression>
        </dbRecordFieldMapping>
      </recordFieldMappings>
    </dbRecordContainer>
  </recordContainers>
</entity>