Skip to content
Snippets Groups Projects
Commit bf328020 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1030783][Vertriebsprojekt -...

[Projekt: Entwicklung - Neon][TicketNr.: 1030783][Vertriebsprojekt - Mitbewerber - Spalter Organisation wird noch nicht aufgelöst]
parent d7ffa641
No related branches found
No related tags found
No related merge requests found
......@@ -353,6 +353,12 @@
<fieldName>SalesprojectCompetitionOrg_dfo</fieldName>
<isOutgoing v="false" />
</entityDependency>
<entityDependency>
<name>14301a6c-7144-4d1b-800e-e4ca733769bb</name>
<entityName>SalesprojectCompetition_entity</entityName>
<fieldName>CompetitionOrg_lookup_dfo</fieldName>
<isOutgoing v="false" />
</entityDependency>
</dependencies>
</entityIncomingField>
<entityField>
......
......@@ -52,6 +52,7 @@
<name>PERSID</name>
<searchable v="false" />
<valueProcess>%aditoprj%/entity/Pers_entity/entityfields/persid/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/Pers_entity/entityfields/persid/displayValueProcess.js</displayValueProcess>
</entityField>
<entityField>
<name>SALUTATION</name>
......@@ -143,19 +144,13 @@
</entityDependency>
</dependencies>
</entityIncomingField>
<entityField>
<name>PERS_ID</name>
<searchable v="false" />
<valueProcess>%aditoprj%/entity/Pers_entity/entityfields/pers_id/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>ORG_ID</name>
<title>Firma</title>
<linkedContextProcess>%aditoprj%/entity/Pers_entity/entityfields/org_id/linkedContextProcess.js</linkedContextProcess>
<linkedContext>Org_context</linkedContext>
<outgoingField>PersOrg_dfo</outgoingField>
<searchable v="false" />
<valueProcess>%aditoprj%/entity/Pers_entity/entityfields/org_id/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/Pers_entity/entityfields/org_id/displayValueProcess.js</displayValueProcess>
<onValueChange>%aditoprj%/entity/Pers_entity/entityfields/org_id/onValueChange.js</onValueChange>
</entityField>
<entityField>
......@@ -221,12 +216,6 @@
</entityParameter>
</children>
</entityOutgoingField>
<entityField>
<name>ORGID</name>
<linkedContext>Org_context</linkedContext>
<outgoingField>PersOrg_dfo</outgoingField>
<searchable v="false" />
</entityField>
<entityOutgoingField>
<name>PersOrg_dfo</name>
<fieldType>DEPENDENCY_OUT</fieldType>
......@@ -511,10 +500,6 @@
<name>PERSID.value</name>
<recordfield>PERS.PERSID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>ORGID.value</name>
<recordfield>ORG.ORGID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>DATEOFBIRTH.value</name>
<recordfield>PERS.DATEOFBIRTH</recordfield>
......@@ -535,10 +520,6 @@
<name>LANGUAGE.value</name>
<recordfield>RELATION.LANGUAGE</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>PERS_ID.value</name>
<recordfield>RELATION.PERS_ID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>LASTNAME.value</name>
<recordfield>PERS.LASTNAME</recordfield>
......
import("system.result");
import("system.vars");
import("Sql_lib");
import("system.db");
result.string(db.cell(SqlCondition.begin(db.getCurrentAlias())
.andPrepareVars("ORG.ORGID", "$field.ORG_ID", "# = ?")
.buildSelect("SELECT ORG.NAME FROM ORG", "1 = 2"), db.getCurrentAlias()));
import("system.vars");
import("system.result");
if(vars.get("$field.ORG_ID") != 0) {
result.string("Org_context");
}
else {
result.string("");
}
\ No newline at end of file
import("system.vars");
import("system.result");
result.string(vars.getString("$field.PERSID"));
\ No newline at end of file
import("system.result");
import("system.db");
import("system.vars");
import("Sql_lib");
var orgId = vars.get("$field.ORGID");
if (orgId)
{
var cond = SqlCondition.begin().and("RELATION.PERS_ID is null").andPrepare("RELATION.ORG_ID", orgId);
var orgRelId = db.cell(cond.buildSelect("select RELATION.RELATIONID from RELATION", "1 = 1"));
result.string(orgRelId);
import("system.result");
import("system.db");
import("system.vars");
import("Sql_lib");
var orgId = vars.get("$field.ORG_ID");
if (orgId)
{
var cond = SqlCondition.begin().and("RELATION.PERS_ID is null").andPrepare("RELATION.ORG_ID", orgId);
var orgRelId = db.cell(cond.buildSelect("select RELATION.RELATIONID from RELATION", "1 = 1"));
result.string(orgRelId);
}
\ No newline at end of file
......@@ -78,6 +78,8 @@
<entityField>
<name>RELATION_ID</name>
<title>Organisation</title>
<linkedContext>Org_context</linkedContext>
<outgoingField>CompetitionOrg_lookup_dfo</outgoingField>
</entityField>
<entityField>
<name>ORG_NAME</name>
......@@ -123,6 +125,15 @@
<title>Weakness</title>
<possibleItemsProcess>%aditoprj%/entity/SalesprojectCompetition_entity/entityfields/org_weakness/possibleItemsProcess.js</possibleItemsProcess>
</entityField>
<entityOutgoingField>
<name>CompetitionOrg_lookup_dfo</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>Org_entity</entityName>
<fieldName>SalesprojectCompetitionOrg_dfi</fieldName>
</dependency>
</entityOutgoingField>
</entityFields>
<recordContainers>
<dbRecordContainer>
......@@ -211,6 +222,10 @@
<name>ORG_WEAKNESS.value</name>
<recordfield>ORG.WEAKNESS</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>RELATION_ID.displayValue</name>
<recordfield>ORG.NAME</recordfield>
</dbRecordFieldMapping>
</recordFieldMappings>
</dbRecordContainer>
</recordContainers>
......
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