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

use state processes of all fields in offer instead of the grantUpdateProcess

parent 8dc6701e
No related branches found
No related tags found
No related merge requests found
Showing
with 122 additions and 6 deletions
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
<title>Currency</title> <title>Currency</title>
<consumer>KeywordCurrencies</consumer> <consumer>KeywordCurrencies</consumer>
<mandatory v="true" /> <mandatory v="true" />
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/currency/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/Offer_entity/entityfields/currency/valueProcess.js</valueProcess> <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/currency/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/Offer_entity/entityfields/currency/displayValueProcess.js</displayValueProcess> <displayValueProcess>%aditoprj%/entity/Offer_entity/entityfields/currency/displayValueProcess.js</displayValueProcess>
</entityField> </entityField>
...@@ -50,11 +51,13 @@ ...@@ -50,11 +51,13 @@
<outputFormat>dd.MM.yyyy</outputFormat> <outputFormat>dd.MM.yyyy</outputFormat>
<inputFormat>dd.MM.yyyy</inputFormat> <inputFormat>dd.MM.yyyy</inputFormat>
<mandatory v="true" /> <mandatory v="true" />
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/offerdate/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/Offer_entity/entityfields/offerdate/valueProcess.js</valueProcess> <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/offerdate/valueProcess.js</valueProcess>
</entityField> </entityField>
<entityField> <entityField>
<name>OFFERID</name> <name>OFFERID</name>
<title>OFFERID (UID)</title> <title>OFFERID (UID)</title>
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/offerid/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/Offer_entity/entityfields/offerid/valueProcess.js</valueProcess> <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/offerid/valueProcess.js</valueProcess>
</entityField> </entityField>
<entityField> <entityField>
...@@ -62,6 +65,7 @@ ...@@ -62,6 +65,7 @@
<title>Probability</title> <title>Probability</title>
<consumer>KeywordProbabilities</consumer> <consumer>KeywordProbabilities</consumer>
<contentType>NUMBER</contentType> <contentType>NUMBER</contentType>
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/probability/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/Offer_entity/entityfields/probability/valueProcess.js</valueProcess> <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/probability/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/Offer_entity/entityfields/probability/displayValueProcess.js</displayValueProcess> <displayValueProcess>%aditoprj%/entity/Offer_entity/entityfields/probability/displayValueProcess.js</displayValueProcess>
</entityField> </entityField>
...@@ -70,6 +74,7 @@ ...@@ -70,6 +74,7 @@
<title>Status</title> <title>Status</title>
<consumer>KeywordOfferStates</consumer> <consumer>KeywordOfferStates</consumer>
<mandatory v="true" /> <mandatory v="true" />
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/status/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/Offer_entity/entityfields/status/valueProcess.js</valueProcess> <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/status/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/Offer_entity/entityfields/status/displayValueProcess.js</displayValueProcess> <displayValueProcess>%aditoprj%/entity/Offer_entity/entityfields/status/displayValueProcess.js</displayValueProcess>
</entityField> </entityField>
...@@ -91,6 +96,7 @@ ...@@ -91,6 +96,7 @@
<name>HEADER</name> <name>HEADER</name>
<title>Header text</title> <title>Header text</title>
<contentType>LONG_TEXT</contentType> <contentType>LONG_TEXT</contentType>
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/header/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/Offer_entity/entityfields/header/valueProcess.js</valueProcess> <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/header/valueProcess.js</valueProcess>
</entityField> </entityField>
<entityConsumer> <entityConsumer>
...@@ -181,6 +187,7 @@ ...@@ -181,6 +187,7 @@
<name>OFFER_ID</name> <name>OFFER_ID</name>
<documentation>%aditoprj%/entity/Offer_entity/entityfields/offer_id/documentation.adoc</documentation> <documentation>%aditoprj%/entity/Offer_entity/entityfields/offer_id/documentation.adoc</documentation>
<title>OFFER_ID</title> <title>OFFER_ID</title>
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/offer_id/stateProcess.js</stateProcess>
</entityField> </entityField>
<entityFieldGroup> <entityFieldGroup>
<name>OfferCode_VersNr_fieldgroup</name> <name>OfferCode_VersNr_fieldgroup</name>
...@@ -209,10 +216,12 @@ ...@@ -209,10 +216,12 @@
<entityField> <entityField>
<name>CONTACT_ORG_ID</name> <name>CONTACT_ORG_ID</name>
<title>Company</title> <title>Company</title>
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/contact_org_id/stateProcess.js</stateProcess>
</entityField> </entityField>
<entityField> <entityField>
<name>CONTACT_PERSON_ID</name> <name>CONTACT_PERSON_ID</name>
<title>Person</title> <title>Person</title>
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/contact_person_id/stateProcess.js</stateProcess>
</entityField> </entityField>
<entityConsumer> <entityConsumer>
<name>AnyContacts</name> <name>AnyContacts</name>
...@@ -274,6 +283,7 @@ ...@@ -274,6 +283,7 @@
<description></description> <description></description>
<contentType>LONG_TEXT</contentType> <contentType>LONG_TEXT</contentType>
<mandatory v="true" /> <mandatory v="true" />
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/address/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/Offer_entity/entityfields/address/valueProcess.js</valueProcess> <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/address/valueProcess.js</valueProcess>
</entityField> </entityField>
<entityField> <entityField>
...@@ -503,6 +513,7 @@ ...@@ -503,6 +513,7 @@
<name>PAYMENTTERMS</name> <name>PAYMENTTERMS</name>
<title>Payment term</title> <title>Payment term</title>
<consumer>KeywordPaymentTerm</consumer> <consumer>KeywordPaymentTerm</consumer>
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/paymentterms/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/Offer_entity/entityfields/paymentterms/valueProcess.js</valueProcess> <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/paymentterms/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/Offer_entity/entityfields/paymentterms/displayValueProcess.js</displayValueProcess> <displayValueProcess>%aditoprj%/entity/Offer_entity/entityfields/paymentterms/displayValueProcess.js</displayValueProcess>
</entityField> </entityField>
...@@ -510,6 +521,7 @@ ...@@ -510,6 +521,7 @@
<name>DELIVERYTERMS</name> <name>DELIVERYTERMS</name>
<title>Delivery specification</title> <title>Delivery specification</title>
<consumer>KeywordDeliveryTerm</consumer> <consumer>KeywordDeliveryTerm</consumer>
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/deliveryterms/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/Offer_entity/entityfields/deliveryterms/valueProcess.js</valueProcess> <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/deliveryterms/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/Offer_entity/entityfields/deliveryterms/displayValueProcess.js</displayValueProcess> <displayValueProcess>%aditoprj%/entity/Offer_entity/entityfields/deliveryterms/displayValueProcess.js</displayValueProcess>
</entityField> </entityField>
...@@ -568,6 +580,7 @@ ...@@ -568,6 +580,7 @@
<name>INFO</name> <name>INFO</name>
<title>Information</title> <title>Information</title>
<contentType>LONG_TEXT</contentType> <contentType>LONG_TEXT</contentType>
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/info/stateProcess.js</stateProcess>
</entityField> </entityField>
<entityConsumer> <entityConsumer>
<name>Attributes</name> <name>Attributes</name>
...@@ -643,6 +656,7 @@ ...@@ -643,6 +656,7 @@
<name>ChoosenTEXHeader</name> <name>ChoosenTEXHeader</name>
<title>Choose Header</title> <title>Choose Header</title>
<consumer>DocumentTemplateTexHeader</consumer> <consumer>DocumentTemplateTexHeader</consumer>
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/choosentexheader/stateProcess.js</stateProcess>
</entityField> </entityField>
<entityField> <entityField>
<name>OBJECT_ROWID</name> <name>OBJECT_ROWID</name>
...@@ -787,6 +801,7 @@ ...@@ -787,6 +801,7 @@
<entityField> <entityField>
<name>chooseTEXHeader</name> <name>chooseTEXHeader</name>
<consumer>DocumentTemplateTex</consumer> <consumer>DocumentTemplateTex</consumer>
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/choosetexheader/stateProcess.js</stateProcess>
</entityField> </entityField>
<entityConsumer> <entityConsumer>
<name>DocumentTemplateTexHeader</name> <name>DocumentTemplateTexHeader</name>
...@@ -824,6 +839,7 @@ ...@@ -824,6 +839,7 @@
<name>FOOTER</name> <name>FOOTER</name>
<title>Footer text</title> <title>Footer text</title>
<contentType>LONG_TEXT</contentType> <contentType>LONG_TEXT</contentType>
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/footer/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/Offer_entity/entityfields/footer/valueProcess.js</valueProcess> <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/footer/valueProcess.js</valueProcess>
</entityField> </entityField>
<entityParameter> <entityParameter>
...@@ -835,6 +851,7 @@ ...@@ -835,6 +851,7 @@
<name>ChoosenTEXFooter</name> <name>ChoosenTEXFooter</name>
<title>Choose Footer</title> <title>Choose Footer</title>
<consumer>DocumentTemplateTexFooter</consumer> <consumer>DocumentTemplateTexFooter</consumer>
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/choosentexfooter/stateProcess.js</stateProcess>
</entityField> </entityField>
<entityConsumer> <entityConsumer>
<name>DocumentTemplateTexFooter</name> <name>DocumentTemplateTexFooter</name>
...@@ -891,6 +908,7 @@ ...@@ -891,6 +908,7 @@
<entityField> <entityField>
<name>LETTERSALUTATION</name> <name>LETTERSALUTATION</name>
<title>Letter salutation</title> <title>Letter salutation</title>
<stateProcess>%aditoprj%/entity/Offer_entity/entityfields/lettersalutation/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/Offer_entity/entityfields/lettersalutation/valueProcess.js</valueProcess> <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/lettersalutation/valueProcess.js</valueProcess>
</entityField> </entityField>
<entityActionField> <entityActionField>
......
import("system.vars");
import("system.result");
import("system.neon");
import("Offer_lib");
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
import("Offer_lib");
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
import("Offer_lib");
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
import("Offer_lib");
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
import("system.vars"); import("Offer_lib");
import("system.result"); import("system.result");
import("system.neon"); import("system.neon");
import("system.vars");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_VIEW) if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_VIEW)
result.string(neon.COMPONENTSTATE_INVISIBLE); result.string(neon.COMPONENTSTATE_INVISIBLE);
else else
result.string(neon.COMPONENTSTATE_EDITABLE); result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_EDITABLE : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file \ No newline at end of file
import("Offer_lib");
import("system.result"); import("system.result");
import("system.vars");
import("system.neon"); import("system.neon");
import("system.vars");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT || if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT ||
(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.exists("$param.ContactId_param") && vars.get("$param.ContactId_param"))) (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.exists("$param.ContactId_param") && vars.get("$param.ContactId_param")))
result.string(neon.COMPONENTSTATE_READONLY); result.string(neon.COMPONENTSTATE_READONLY);
\ No newline at end of file else
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
import("Offer_lib");
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
import("Offer_lib");
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
import("Offer_lib");
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
import("Offer_lib");
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
import("Offer_lib");
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
import("Offer_lib");
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
import("Offer_lib");
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
import("Offer_lib");
import("system.result"); import("system.result");
import("system.neon"); import("system.neon");
import("system.vars"); import("system.vars");
if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
{ {
result.string(neon.COMPONENTSTATE_EDITABLE); result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_EDITABLE : neon.COMPONENTSTATE_DISABLED);
} }
else else
{ {
......
import("system.vars");
import("system.result");
import("system.neon");
import("Offer_lib");
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
import("Offer_lib");
import("system.neon"); import("system.neon");
import("system.result"); import("system.result");
import("system.vars"); import("system.vars");
...@@ -15,4 +16,6 @@ switch (vars.get("$sys.recordstate")) ...@@ -15,4 +16,6 @@ switch (vars.get("$sys.recordstate"))
default: default:
result.object(neon.COMPONENTSTATE_READONLY); result.object(neon.COMPONENTSTATE_READONLY);
} }
*/ */
\ No newline at end of file
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
import("Offer_lib");
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
import("Offer_lib");
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
import("Offer_lib");
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
\ No newline at end of file
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