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

extend Salesproject and improve sql lib

parent b6a80e31
No related branches found
No related tags found
No related merge requests found
Showing
with 767 additions and 15 deletions
......@@ -3,10 +3,10 @@
<name>Salesproject_entity</name>
<title>Salesproject</title>
<majorModelMode>DISTRIBUTED</majorModelMode>
<alias>Data_alias</alias>
<recordContainerType>DB</recordContainerType>
<caption>Salesproject</caption>
<iconId>VAADIN:FILTER</iconId>
<alias>Data_alias</alias>
<entityFields>
<entityIncomingField>
<name>#INCOMING</name>
......@@ -40,6 +40,8 @@
<tableName>SALESPROJECT</tableName>
<columnName>ESTIMATION</columnName>
<caption>Estimation</caption>
<possibleItemsProcess>%aditoprj%/entity/Salesproject_entity/entityfields/estimation/possibleItemsProcess.js</possibleItemsProcess>
<selectionMode>MULTI</selectionMode>
</entityField>
<entityField>
<name>ESTIMATIONVALUE</name>
......@@ -124,7 +126,7 @@
<name>VOLUME</name>
<tableName>SALESPROJECT</tableName>
<columnName>VOLUME</columnName>
<caption>Volume</caption>
<caption></caption>
</entityField>
<entityOutgoingField>
<name>SalesprojectOrg_dfo</name>
......@@ -135,10 +137,139 @@
<fieldName>Org_dfi</fieldName>
</dependency>
</entityOutgoingField>
<entityField>
<name>PROBABILITY</name>
<tableName>SALESPROJECT</tableName>
<columnName>PROBABILITY</columnName>
<caption></caption>
</entityField>
<entityFieldGroup>
<name>PROBABILITY_DISPLAY_fieldGroup</name>
<valueProcess>%aditoprj%/entity/Salesproject_entity/entityfields/probability_display_fieldgroup/valueProcess.js</valueProcess>
<description>FIELDGROUP</description>
<caption>Probability</caption>
<fields>
<element>PROBABILITY</element>
</fields>
</entityFieldGroup>
<entityFieldGroup>
<name>VOLUME_DISPLAY_fieldGroup</name>
<valueProcess>%aditoprj%/entity/Salesproject_entity/entityfields/volume_display_fieldgroup/valueProcess.js</valueProcess>
<description>FIELDGROUP</description>
<caption>Volume</caption>
<fields>
<element>VOLUME</element>
</fields>
</entityFieldGroup>
<entityOutgoingField>
<name>SalesprojectSource_dfo</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>SalesprojectSource_entity</entityName>
<fieldName>SalesprojectSouce_dfi</fieldName>
</dependency>
<children>
<entityParameter>
<name>SalesprojectId_param</name>
<code>%aditoprj%/entity/Salesproject_entity/entityfields/salesprojectsource_dfo/children/salesprojectid_param/code.js</code>
</entityParameter>
</children>
</entityOutgoingField>
<entityOutgoingField>
<name>SalesprojectCycle_dfo</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>SalesprojectCycle_entity</entityName>
<fieldName>SalesprojectCycle_dfi</fieldName>
</dependency>
<children>
<entityParameter>
<name>SalesprojectId_param</name>
<code>%aditoprj%/entity/Salesproject_entity/entityfields/salesprojectcycle_dfo/children/salesprojectid_param/code.js</code>
</entityParameter>
</children>
</entityOutgoingField>
<entityOutgoingField>
<name>SalesprojectForecast_dfo</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>SalesprojectForecast_entity</entityName>
<fieldName>SalesprojectForecast_dfi</fieldName>
</dependency>
<children>
<entityParameter>
<name>SalesprojectId_param</name>
<code>%aditoprj%/entity/Salesproject_entity/entityfields/salesprojectforecast_dfo/children/salesprojectid_param/code.js</code>
</entityParameter>
</children>
</entityOutgoingField>
<entityOutgoingField>
<name>SalesprojectCompetition_dfo</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>SalesprojectCompetition_entity</entityName>
<fieldName>SalesprojectCompetition_dfi</fieldName>
</dependency>
<children>
<entityParameter>
<name>SalesprojectId_param</name>
<code>%aditoprj%/entity/Salesproject_entity/entityfields/salesprojectcompetition_dfo/children/salesprojectid_param/code.js</code>
</entityParameter>
</children>
</entityOutgoingField>
<entityOutgoingField>
<name>SalesprojectOffer_dfo</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>Offer_entity</entityName>
<fieldName>SalesprojectOffer_dfi</fieldName>
</dependency>
<children>
<entityParameter>
<name>SalesprojectId_param</name>
<code>%aditoprj%/entity/Salesproject_entity/entityfields/salesprojectoffer_dfo/children/salesprojectid_param/code.js</code>
</entityParameter>
</children>
</entityOutgoingField>
<entityOutgoingField>
<name>SalesprojectHistory_dfo</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>History_entity</entityName>
<fieldName>SalesprojectHistory_dfi</fieldName>
</dependency>
<children>
<entityParameter>
<name>RowId_param</name>
<code>%aditoprj%/entity/Salesproject_entity/entityfields/salesprojecthistory_dfo/children/rowid_param/code.js</code>
</entityParameter>
</children>
</entityOutgoingField>
<entityOutgoingField>
<name>SalesprojectMember_dfo</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>SalesprojectMember_entity</entityName>
<fieldName>SalesprojectMember_dfi</fieldName>
</dependency>
<children>
<entityParameter>
<name>SalesprojectId_param</name>
<code>%aditoprj%/entity/Salesproject_entity/entityfields/salesprojectmember_dfo/children/salesprojectid_param/code.js</code>
</entityParameter>
</children>
</entityOutgoingField>
</entityFields>
<linkInformation>
<linkInformation>
<name>a343a42f-d810-492e-a93f-3ffcab9a88bd</name>
<name>d763323d-d827-45d1-9b0c-0d07749b7ca9</name>
<tableName>SALESPROJECT</tableName>
<primaryKey>SALESPROJECTID</primaryKey>
<isUIDTable v="true" />
......
import("system.result");
import("Keyword_lib");
var kwdUtils, items;
kwdUtils = new KeywordUtils();
items = kwdUtils.getStandardArray("SALESPROJECT.ESTIMATION");
result.object(items);
\ No newline at end of file
import("system.result");
import("system.vars");
result.string(vars.get("$field.PROBABILITY") + "%");
\ No newline at end of file
import("system.result");
import("system.vars");
result.string(vars.getString("$field.SALESPROJECTID"));
\ No newline at end of file
import("system.result");
import("system.vars");
result.string(vars.getString("$field.SALESPROJECTID"));
\ No newline at end of file
import("system.result");
import("system.vars");
result.string(vars.getString("$field.SALESPROJECTID"));
\ No newline at end of file
import("system.vars");
import("system.result");
result.string(vars.get("$field.SALESPROJECTID"));
\ No newline at end of file
import("system.result");
import("system.vars");
result.string(vars.getString("$field.SALESPROJECTID"));
\ No newline at end of file
import("system.result");
import("system.vars");
result.string(vars.getString("$field.SALESPROJECTID"));
\ No newline at end of file
import("system.vars");
import("system.result");
result.string(vars.get("$field.SALESPROJECTID"));
\ No newline at end of file
import("system.result");
import("system.vars");
result.string(vars.getString("$field.SALESPROJECTID"));
\ No newline at end of file
......@@ -4,5 +4,5 @@ import("Keyword_lib");
var kwdUtils, items;
kwdUtils = new KeywordUtils();
items = kwdUtils.getStandardArray("SALESPROJECT.STATUS");
items = kwdUtils.getStandardArray("SALESPROJECT.STATE");
result.object(items);
\ No newline at end of file
import("system.result");
import("system.vars");
import("system.translate");
result.string(vars.get("$field.PROBABILITY") + " " + translate.text("${THOUSAND_SHORT}") + " " + translate.text("${EURO_SIGN}"));
\ No newline at end of file
......@@ -594,9 +594,6 @@
<entry>
<key>Lead</key>
</entry>
<entry>
<key>Presentation postprocessing</key>
</entry>
<entry>
<key>Statement given</key>
</entry>
......@@ -756,6 +753,165 @@
<entry>
<key>Parts list</key>
</entry>
<entry>
<key>${THOUSAND_SHORT}</key>
</entry>
<entry>
<key>Pos</key>
</entry>
<entry>
<key>Project_references available</key>
</entry>
<entry>
<key>Other_sympathy available</key>
</entry>
<entry>
<key>Product_industry template available</key>
</entry>
<entry>
<key>Deliver opinion</key>
</entry>
<entry>
<key>Presentation follow-up</key>
</entry>
<entry>
<key>Waiting for requirements</key>
</entry>
<entry>
<key>Parent</key>
</entry>
<entry>
<key>Own website</key>
</entry>
<entry>
<key>Project_timeframe critical</key>
</entry>
<entry>
<key>Project_payment default/penalty critical</key>
</entry>
<entry>
<key>Project_specifications available</key>
</entry>
<entry>
<key>Customer recommendation</key>
</entry>
<entry>
<key>IBau</key>
</entry>
<entry>
<key>Product_philosophy fitting</key>
</entry>
<entry>
<key>Project_budget available</key>
</entry>
<entry>
<key>Fair</key>
</entry>
<entry>
<key>Project_volume sufficient</key>
</entry>
<entry>
<key>Other_advocate available</key>
</entry>
<entry>
<key>Product_requirements suitable</key>
</entry>
<entry>
<key>Address purchase</key>
</entry>
<entry>
<key>Source</key>
</entry>
<entry>
<key>${EURO_SIGN}</key>
</entry>
<entry>
<key>Planned</key>
</entry>
<entry>
<key>Info</key>
</entry>
<entry>
<key>${VOLUME_MONEY}</key>
</entry>
<entry>
<key>Milestones</key>
</entry>
<entry>
<key>Milestone</key>
</entry>
<entry>
<key>Product_technic</key>
</entry>
<entry>
<key>Project_duration</key>
</entry>
<entry>
<key>Company_internationality</key>
</entry>
<entry>
<key>Product_functionality</key>
</entry>
<entry>
<key>Project_reference</key>
</entry>
<entry>
<key>Product_flexibility</key>
</entry>
<entry>
<key>Other_existing Customer</key>
</entry>
<entry>
<key>Product_GuI</key>
</entry>
<entry>
<key>Other_unknown</key>
</entry>
<entry>
<key>Product_mobile use</key>
</entry>
<entry>
<key>Company_industry knowhow</key>
</entry>
<entry>
<key>Company_size</key>
</entry>
<entry>
<key>Product_industry knowhow</key>
</entry>
<entry>
<key>Project_volume</key>
</entry>
<entry>
<key>Competitor</key>
</entry>
<entry>
<key>Excreted</key>
</entry>
<entry>
<key>Reason</key>
</entry>
<entry>
<key>Project adviser</key>
</entry>
<entry>
<key>Sales AD</key>
</entry>
<entry>
<key>Decision maker</key>
</entry>
<entry>
<key>Project manager</key>
</entry>
<entry>
<key>Project assistant</key>
</entry>
<entry>
<key>Sales ID</key>
</entry>
<entry>
<key>Adviser</key>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
<sqlModels>
......
......@@ -300,7 +300,8 @@
</entry>
<entry>
<key>State</key>
<value></value>
<value>Status
</value>
</entry>
<entry>
<key>Region</key>
......@@ -787,10 +788,6 @@
<key>Lead</key>
<value>Lead</value>
</entry>
<entry>
<key>Presentation postprocessing</key>
<value>Präsentationsnachbereitung</value>
</entry>
<entry>
<key>Statement given</key>
<value>Stellungnahme abgeben</value>
......@@ -971,6 +968,217 @@
<key>Parts list</key>
<value>Stückliste</value>
</entry>
<entry>
<key>${THOUSAND_SHORT}</key>
<value>T</value>
</entry>
<entry>
<key>Pos</key>
</entry>
<entry>
<key>Project_references available</key>
<value>Projekt_Referenzen vorhanden</value>
</entry>
<entry>
<key>Other_sympathy available</key>
<value>Sonstiges_Sympathie vorhanden</value>
</entry>
<entry>
<key>Product_industry template available</key>
<value>Produkt_Branchen-Template vorhanden</value>
</entry>
<entry>
<key>Deliver opinion</key>
</entry>
<entry>
<key>Presentation follow-up</key>
<value>Präsentationsnachbereitung</value>
</entry>
<entry>
<key>Waiting for requirements</key>
</entry>
<entry>
<key>Parent</key>
</entry>
<entry>
<key>Own website</key>
<value>Eigene Webseite</value>
</entry>
<entry>
<key>Project_timeframe critical</key>
<value>Projekt_Zeitrahmen kritisch</value>
</entry>
<entry>
<key>Project_payment default/penalty critical</key>
<value>Projekt_Zahlungsausfall/Strafe kritisch</value>
</entry>
<entry>
<key>Project_specifications available</key>
<value>Projekt_Lastenheft vorhanden</value>
</entry>
<entry>
<key>Customer recommendation</key>
<value>Kundenempfehlung</value>
</entry>
<entry>
<key>IBau</key>
<value></value>
</entry>
<entry>
<key>Product_philosophy fitting</key>
<value>Produkt_Philosophie passend</value>
</entry>
<entry>
<key>Project_budget available</key>
<value>Projekt_Budget vorhanden</value>
</entry>
<entry>
<key>Fair</key>
<value>Messe</value>
</entry>
<entry>
<key>Project_volume sufficient</key>
<value>Projekt_Volumen ausreichend</value>
</entry>
<entry>
<key>Other_advocate available</key>
<value>Sonstiges_Fürsprecher vorhanden</value>
</entry>
<entry>
<key>Product_requirements suitable</key>
<value>Produkt_Anforderungen passend</value>
</entry>
<entry>
<key>Address purchase</key>
<value>Adresszukauf</value>
</entry>
<entry>
<key>Source</key>
</entry>
<entry>
<key>${EURO_SIGN}</key>
<value></value>
</entry>
<entry>
<key>Planned</key>
<value>Geplant
</value>
</entry>
<entry>
<key>Info</key>
<value>Info
</value>
</entry>
<entry>
<key>${VOLUME_MONEY}</key>
<value>Wert
</value>
</entry>
<entry>
<key>Milestones</key>
<value>Meilensteine
</value>
</entry>
<entry>
<key>Milestone</key>
<value>Meilenstein
</value>
</entry>
<entry>
<key>Product_technic</key>
<value>Produkt_Technik</value>
</entry>
<entry>
<key>Project_duration</key>
<value>Projekt_Dauer</value>
</entry>
<entry>
<key>Company_internationality</key>
<value>Unternehmen_Internationalität</value>
</entry>
<entry>
<key>Product_functionality</key>
<value>Produkt_Funktionalität</value>
</entry>
<entry>
<key>Project_reference</key>
<value>Projekt_Referenz</value>
</entry>
<entry>
<key>Product_flexibility</key>
<value>Produkt_Flexibilität</value>
</entry>
<entry>
<key>Other_existing Customer</key>
<value>Sonstiges_Bestandskunde</value>
</entry>
<entry>
<key>Product_GuI</key>
</entry>
<entry>
<key>Other_unknown</key>
<value>Sonstiges_Unbekannt</value>
</entry>
<entry>
<key>Product_mobile use</key>
<value>Produkt_Mobiler Einsatz</value>
</entry>
<entry>
<key>Company_industry knowhow</key>
<value>Unternehmen_Branchen KnowHow</value>
</entry>
<entry>
<key>Company_size</key>
<value>Unternehmen_Größe</value>
</entry>
<entry>
<key>Product_industry knowhow</key>
<value>Produkt_Branchen KnowHow</value>
</entry>
<entry>
<key>Project_volume</key>
<value>Projekt_Volumen</value>
</entry>
<entry>
<key>Competitor</key>
<value>Mitbewerber</value>
</entry>
<entry>
<key>Excreted</key>
<value>Ausgeschieden
</value>
</entry>
<entry>
<key>Reason</key>
<value>Begründung</value>
</entry>
<entry>
<key>Project adviser</key>
<value>Berater</value>
</entry>
<entry>
<key>Sales AD</key>
<value>Vertrieb AD</value>
</entry>
<entry>
<key>Decision maker</key>
<value>Entscheider</value>
</entry>
<entry>
<key>Project manager</key>
<value>Projektleiter</value>
</entry>
<entry>
<key>Project assistant</key>
<value>Projektassistent</value>
</entry>
<entry>
<key>Sales ID</key>
<value>Vertrieb ID</value>
</entry>
<entry>
<key>Adviser</key>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
</language>
......@@ -602,9 +602,6 @@
<entry>
<key>Lead</key>
</entry>
<entry>
<key>Presentation postprocessing</key>
</entry>
<entry>
<key>Statement given</key>
</entry>
......@@ -765,6 +762,165 @@
<entry>
<key>Parts list</key>
</entry>
<entry>
<key>${THOUSAND_SHORT}</key>
</entry>
<entry>
<key>Pos</key>
</entry>
<entry>
<key>Project_references available</key>
</entry>
<entry>
<key>Other_sympathy available</key>
</entry>
<entry>
<key>Product_industry template available</key>
</entry>
<entry>
<key>Deliver opinion</key>
</entry>
<entry>
<key>Presentation follow-up</key>
</entry>
<entry>
<key>Waiting for requirements</key>
</entry>
<entry>
<key>Parent</key>
</entry>
<entry>
<key>Own website</key>
</entry>
<entry>
<key>Project_timeframe critical</key>
</entry>
<entry>
<key>Project_payment default/penalty critical</key>
</entry>
<entry>
<key>Project_specifications available</key>
</entry>
<entry>
<key>Customer recommendation</key>
</entry>
<entry>
<key>IBau</key>
</entry>
<entry>
<key>Product_philosophy fitting</key>
</entry>
<entry>
<key>Project_budget available</key>
</entry>
<entry>
<key>Fair</key>
</entry>
<entry>
<key>Project_volume sufficient</key>
</entry>
<entry>
<key>Other_advocate available</key>
</entry>
<entry>
<key>Product_requirements suitable</key>
</entry>
<entry>
<key>Address purchase</key>
</entry>
<entry>
<key>Source</key>
</entry>
<entry>
<key>${EURO_SIGN}</key>
</entry>
<entry>
<key>Planned</key>
</entry>
<entry>
<key>Info</key>
</entry>
<entry>
<key>${VOLUME_MONEY}</key>
</entry>
<entry>
<key>Milestones</key>
</entry>
<entry>
<key>Milestone</key>
</entry>
<entry>
<key>Product_technic</key>
</entry>
<entry>
<key>Project_duration</key>
</entry>
<entry>
<key>Company_internationality</key>
</entry>
<entry>
<key>Product_functionality</key>
</entry>
<entry>
<key>Project_reference</key>
</entry>
<entry>
<key>Product_flexibility</key>
</entry>
<entry>
<key>Other_existing Customer</key>
</entry>
<entry>
<key>Product_GuI</key>
</entry>
<entry>
<key>Other_unknown</key>
</entry>
<entry>
<key>Product_mobile use</key>
</entry>
<entry>
<key>Company_industry knowhow</key>
</entry>
<entry>
<key>Company_size</key>
</entry>
<entry>
<key>Product_industry knowhow</key>
</entry>
<entry>
<key>Project_volume</key>
</entry>
<entry>
<key>Competitor</key>
</entry>
<entry>
<key>Excreted</key>
</entry>
<entry>
<key>Reason</key>
</entry>
<entry>
<key>Project adviser</key>
</entry>
<entry>
<key>Sales AD</key>
</entry>
<entry>
<key>Decision maker</key>
</entry>
<entry>
<key>Project manager</key>
</entry>
<entry>
<key>Project assistant</key>
</entry>
<entry>
<key>Sales ID</key>
</entry>
<entry>
<key>Adviser</key>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
</language>
<?xml version="1.0" encoding="UTF-8"?>
<neonContext xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.0.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonContext/1.0.0">
<name>SalesprojectCompetition_context</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<filterview>SalesprojectCompetitionFilter_view</filterview>
<entity>SalesprojectCompetition_entity</entity>
<references>
<neonViewReference>
<name>a002c925-becb-4051-95bc-a38a4b01b65a</name>
<view>SalesprojectCompetitionFilter_view</view>
</neonViewReference>
</references>
</neonContext>
<?xml version="1.0" encoding="UTF-8"?>
<neonContext xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.0.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonContext/1.0.0">
<name>SalesprojectCycle_context</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<filterview>SalesprojectCycleFilter_view</filterview>
<entity>SalesprojectCycle_entity</entity>
<references>
<neonViewReference>
<name>5de9785c-92cc-4fe1-ae13-8d65b9a68ce0</name>
<view>SalesprojectCycleFilter_view</view>
</neonViewReference>
</references>
</neonContext>
<?xml version="1.0" encoding="UTF-8"?>
<neonContext xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.0.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonContext/1.0.0">
<name>SalesprojectForecast_context</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<filterview>SalesprojectForecastFilter_entity</filterview>
<entity>SalesprojectForecast_entity</entity>
<references>
<neonViewReference>
<name>20d80c15-97f0-490c-b845-b2b4f63c6a5d</name>
<view>SalesprojectForecastFilter_entity</view>
</neonViewReference>
</references>
</neonContext>
<?xml version="1.0" encoding="UTF-8"?>
<neonContext xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.0.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonContext/1.0.0">
<name>SalesprojectMember_context</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<filterview>SalesprojectMember_view</filterview>
<entity>SalesprojectMember_entity</entity>
<references>
<neonViewReference>
<name>6b0b9d8f-6fe8-475b-a303-f1c4f2011d37</name>
<view>SalesprojectMember_view</view>
</neonViewReference>
</references>
</neonContext>
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