From 4503212ba2cc06f2cc98a26c558c9fdeb5b2fbdb Mon Sep 17 00:00:00 2001 From: Johannes Hoermann <j.hoermann@adito.de> Date: Tue, 15 Jan 2019 14:14:41 +0100 Subject: [PATCH] "$sys.operatingstate" durch "$sys.recordstate" ersetzt --- .../entityfields/date_edit/valueProcess.js | 2 +- .../ActivityLink_entity/entityfields/date_new/valueProcess.js | 2 +- .../entityfields/user_edit/valueProcess.js | 2 +- .../ActivityLink_entity/entityfields/user_new/valueProcess.js | 2 +- entity/Activity_entity/entityfields/date_edit/valueProcess.js | 2 +- entity/Activity_entity/entityfields/date_new/valueProcess.js | 2 +- entity/Activity_entity/entityfields/entrydate/valueProcess.js | 2 +- entity/Activity_entity/entityfields/user_edit/valueProcess.js | 2 +- entity/Activity_entity/entityfields/user_new/valueProcess.js | 2 +- entity/Address_entity/entityfields/addressid/valueProcess.js | 2 +- entity/Address_entity/entityfields/date_new/valueProcess.js | 2 +- entity/Address_entity/entityfields/user_new/valueProcess.js | 2 +- entity/Comm_entity/entityfields/commid/valueProcess.js | 2 +- entity/Comm_entity/entityfields/date_new/valueProcess.js | 2 +- entity/Comm_entity/entityfields/relation_id/valueProcess.js | 2 +- entity/Comm_entity/entityfields/standard/valueProcess.js | 2 +- entity/Comm_entity/entityfields/user_new/valueProcess.js | 2 +- .../Contract_entity/entityfields/contractid/valueProcess.js | 2 +- entity/Contract_entity/entityfields/date_edit/valueProcess.js | 2 +- entity/Contract_entity/entityfields/date_new/valueProcess.js | 2 +- entity/Contract_entity/entityfields/user_edit/valueProcess.js | 2 +- entity/Contract_entity/entityfields/user_new/valueProcess.js | 2 +- entity/Offer_entity/entityfields/date_edit/valueProcess.js | 2 +- entity/Offer_entity/entityfields/date_new/valueProcess.js | 2 +- entity/Offer_entity/entityfields/offercode/onValidation.js | 2 +- entity/Offer_entity/entityfields/offercode/valueProcess.js | 2 +- entity/Offer_entity/entityfields/offerdate/valueProcess.js | 2 +- entity/Offer_entity/entityfields/offerid/valueProcess.js | 2 +- .../Offer_entity/entityfields/salesproject_id/stateProcess.js | 2 +- entity/Offer_entity/entityfields/user_edit/valueProcess.js | 2 +- entity/Offer_entity/entityfields/user_new/valueProcess.js | 2 +- entity/Offer_entity/entityfields/versnr/valueProcess.js | 2 +- entity/Offeritem_entity/afterOperatingState.js | 4 +--- .../Offeritem_entity/entityfields/date_edit/valueProcess.js | 2 +- entity/Offeritem_entity/entityfields/date_new/valueProcess.js | 2 +- entity/Offeritem_entity/entityfields/info/valueProcess.js | 2 +- entity/Offeritem_entity/entityfields/offer_id/valueProcess.js | 2 +- .../Offeritem_entity/entityfields/offeritemid/valueProcess.js | 2 +- entity/Offeritem_entity/entityfields/optional/valueProcess.js | 2 +- entity/Offeritem_entity/entityfields/quantity/valueProcess.js | 2 +- .../Offeritem_entity/entityfields/user_edit/valueProcess.js | 2 +- entity/Offeritem_entity/entityfields/user_new/valueProcess.js | 2 +- entity/Order_entity/entityfields/date_edit/valueProcess.js | 2 +- entity/Order_entity/entityfields/date_new/valueProcess.js | 2 +- entity/Order_entity/entityfields/ordercode/onValidation.js | 2 +- entity/Order_entity/entityfields/ordercode/valueProcess.js | 2 +- entity/Order_entity/entityfields/orderdate/valueProcess.js | 2 +- entity/Order_entity/entityfields/orderid/valueProcess.js | 2 +- .../Order_entity/entityfields/salesproject_id/stateProcess.js | 2 +- entity/Order_entity/entityfields/user_edit/valueProcess.js | 2 +- entity/Order_entity/entityfields/user_new/valueProcess.js | 2 +- entity/Order_entity/entityfields/versnr/valueProcess.js | 2 +- entity/Orderitem_entity/afterOperatingState.js | 2 +- .../Orderitem_entity/entityfields/date_edit/valueProcess.js | 2 +- entity/Orderitem_entity/entityfields/date_new/valueProcess.js | 2 +- entity/Orderitem_entity/entityfields/optional/valueProcess.js | 2 +- entity/Orderitem_entity/entityfields/order_id/valueProcess.js | 2 +- .../Orderitem_entity/entityfields/orderitemid/valueProcess.js | 2 +- entity/Orderitem_entity/entityfields/quantity/valueProcess.js | 2 +- .../Orderitem_entity/entityfields/user_edit/valueProcess.js | 2 +- entity/Orderitem_entity/entityfields/user_new/valueProcess.js | 2 +- entity/Org_entity/entityfields/image/valueProcess.js | 2 +- entity/Org_entity/entityfields/org_date_edit/valueProcess.js | 2 +- entity/Org_entity/entityfields/org_date_new/valueProcess.js | 2 +- entity/Org_entity/entityfields/org_user_edit/valueProcess.js | 2 +- entity/Org_entity/entityfields/org_user_new/valueProcess.js | 2 +- entity/Org_entity/entityfields/rel_date_edit/valueProcess.js | 2 +- entity/Org_entity/entityfields/rel_date_new/valueProcess.js | 2 +- entity/Org_entity/entityfields/rel_user_edit/valueProcess.js | 2 +- entity/Org_entity/entityfields/rel_user_new/valueProcess.js | 2 +- entity/Org_entity/entityfields/relationid/valueProcess.js | 2 +- entity/Pers_entity/entityfields/image/valueProcess.js | 2 +- .../Pers_entity/entityfields/pers_date_edit/valueProcess.js | 2 +- entity/Pers_entity/entityfields/pers_date_new/valueProcess.js | 2 +- .../Pers_entity/entityfields/pers_user_edit/valueProcess.js | 2 +- entity/Pers_entity/entityfields/pers_user_new/valueProcess.js | 2 +- entity/Pers_entity/entityfields/persid/valueProcess.js | 2 +- entity/Pers_entity/entityfields/rel_date_edit/valueProcess.js | 2 +- entity/Pers_entity/entityfields/rel_date_new/valueProcess.js | 2 +- .../Pers_entity/entityfields/rel_relationship/valueProcess.js | 2 +- entity/Pers_entity/entityfields/rel_user_edit/valueProcess.js | 2 +- entity/Pers_entity/entityfields/rel_user_new/valueProcess.js | 2 +- .../Prod2prod_entity/entityfields/date_edit/valueProcess.js | 2 +- entity/Prod2prod_entity/entityfields/date_new/valueProcess.js | 2 +- entity/Prod2prod_entity/entityfields/dest_id/valueProcess.js | 2 +- entity/Prod2prod_entity/entityfields/optional/valueProcess.js | 2 +- .../Prod2prod_entity/entityfields/prod2prodid/valueProcess.js | 2 +- entity/Prod2prod_entity/entityfields/quantity/valueProcess.js | 2 +- .../entityfields/source_id/possibleItemsProcess.js | 2 +- entity/Prod2prod_entity/entityfields/uid/valueProcess.js | 2 +- .../Prod2prod_entity/entityfields/user_edit/valueProcess.js | 2 +- entity/Prod2prod_entity/entityfields/user_new/valueProcess.js | 2 +- .../Product_entity/entityfields/advertising/valueProcess.js | 2 +- entity/Product_entity/entityfields/date_edit/valueProcess.js | 2 +- entity/Product_entity/entityfields/date_new/valueProcess.js | 2 +- entity/Product_entity/entityfields/image/valueProcess.js | 2 +- entity/Product_entity/entityfields/productid/valueProcess.js | 2 +- entity/Product_entity/entityfields/status/valueProcess.js | 2 +- entity/Product_entity/entityfields/user_edit/valueProcess.js | 2 +- entity/Product_entity/entityfields/user_new/valueProcess.js | 2 +- .../Productprice_entity/entityfields/buysell/valueProcess.js | 2 +- .../entityfields/date_edit/valueProcess.js | 2 +- .../Productprice_entity/entityfields/date_new/valueProcess.js | 2 +- .../entityfields/fromquantity/valueProcess.js | 2 +- .../entityfields/pricelist/titleProcess.js | 2 +- .../entityfields/product_id/valueProcess.js | 2 +- .../entityfields/productpriceid/valueProcess.js | 2 +- .../entityfields/relation_id/valueProcess.js | 2 +- .../entityfields/user_edit/valueProcess.js | 2 +- .../Productprice_entity/entityfields/user_new/valueProcess.js | 2 +- entity/Relation_entity/entityfields/date_edit/valueProcess.js | 2 +- entity/Relation_entity/entityfields/date_new/valueProcess.js | 2 +- entity/Relation_entity/entityfields/user_edit/valueProcess.js | 2 +- entity/Relation_entity/entityfields/user_new/valueProcess.js | 2 +- .../entityfields/date_edit/valueProcess.js | 2 +- .../entityfields/date_new/valueProcess.js | 2 +- .../entityfields/salesproject_competitionid/valueProcess.js | 2 +- .../entityfields/salesproject_id/valueProcess.js | 2 +- .../entityfields/user_edit/valueProcess.js | 2 +- .../entityfields/user_new/valueProcess.js | 2 +- .../entityfields/date_edit/valueProcess.js | 2 +- .../entityfields/date_new/valueProcess.js | 2 +- .../entityfields/salesproject_cycleid/valueProcess.js | 2 +- .../entityfields/salesproject_id/valueProcess.js | 2 +- .../entityfields/user_edit/valueProcess.js | 2 +- .../entityfields/user_new/valueProcess.js | 2 +- .../entityfields/date_edit/valueProcess.js | 2 +- .../entityfields/date_new/valueProcess.js | 2 +- .../entityfields/salesproject_forecastid/valueProcess.js | 2 +- .../entityfields/salesproject_id/valueProcess.js | 2 +- .../entityfields/user_edit/valueProcess.js | 2 +- .../entityfields/user_new/valueProcess.js | 2 +- .../entityfields/salesproject_id/valueProcess.js | 2 +- .../entityfields/salesproject_memberid/valueProcess.js | 2 +- .../entityfields/date_edit/valueProcess.js | 2 +- .../entityfields/date_new/valueProcess.js | 2 +- .../entityfields/salesproject_id/valueProcess.js | 2 +- .../entityfields/salesproject_sourceid/valueProcess.js | 2 +- .../entityfields/user_edit/valueProcess.js | 2 +- .../entityfields/user_new/valueProcess.js | 2 +- .../entityfields/date_edit/valueProcess.js | 2 +- .../Salesproject_entity/entityfields/date_new/valueProcess.js | 2 +- .../Salesproject_entity/entityfields/enddate/valueProcess.js | 2 +- .../entityfields/projectcode/onValidation.js | 2 +- .../entityfields/projectcode/valueProcess.js | 2 +- .../entityfields/startdate/valueProcess.js | 2 +- .../entityfields/user_edit/valueProcess.js | 2 +- .../Salesproject_entity/entityfields/user_new/valueProcess.js | 2 +- entity/Stock_entity/entityfields/date_edit/valueProcess.js | 2 +- entity/Stock_entity/entityfields/date_new/valueProcess.js | 2 +- entity/Stock_entity/entityfields/entrydate/valueProcess.js | 2 +- entity/Stock_entity/entityfields/product_id/valueProcess.js | 2 +- entity/Stock_entity/entityfields/stockid/valueProcess.js | 2 +- entity/Stock_entity/entityfields/user_edit/valueProcess.js | 2 +- entity/Stock_entity/entityfields/user_new/valueProcess.js | 2 +- entity/Timetracking_entity/entityfields/date/valueProcess.js | 2 +- .../entityfields/date_edit/valueProcess.js | 2 +- .../Timetracking_entity/entityfields/date_new/valueProcess.js | 2 +- .../entityfields/object_id/valueProcess.js | 2 +- .../Timetracking_entity/entityfields/row_id/valueProcess.js | 2 +- .../entityfields/user_edit/valueProcess.js | 2 +- .../Timetracking_entity/entityfields/user_new/valueProcess.js | 2 +- process/Entity_lib/process.js | 2 +- 163 files changed, 163 insertions(+), 165 deletions(-) diff --git a/entity/ActivityLink_entity/entityfields/date_edit/valueProcess.js b/entity/ActivityLink_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/ActivityLink_entity/entityfields/date_edit/valueProcess.js +++ b/entity/ActivityLink_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/ActivityLink_entity/entityfields/date_new/valueProcess.js b/entity/ActivityLink_entity/entityfields/date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/ActivityLink_entity/entityfields/date_new/valueProcess.js +++ b/entity/ActivityLink_entity/entityfields/date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/ActivityLink_entity/entityfields/user_edit/valueProcess.js b/entity/ActivityLink_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/ActivityLink_entity/entityfields/user_edit/valueProcess.js +++ b/entity/ActivityLink_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/ActivityLink_entity/entityfields/user_new/valueProcess.js b/entity/ActivityLink_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/ActivityLink_entity/entityfields/user_new/valueProcess.js +++ b/entity/ActivityLink_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Activity_entity/entityfields/date_edit/valueProcess.js b/entity/Activity_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/Activity_entity/entityfields/date_edit/valueProcess.js +++ b/entity/Activity_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Activity_entity/entityfields/date_new/valueProcess.js b/entity/Activity_entity/entityfields/date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/Activity_entity/entityfields/date_new/valueProcess.js +++ b/entity/Activity_entity/entityfields/date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Activity_entity/entityfields/entrydate/valueProcess.js b/entity/Activity_entity/entityfields/entrydate/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/Activity_entity/entityfields/entrydate/valueProcess.js +++ b/entity/Activity_entity/entityfields/entrydate/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Activity_entity/entityfields/user_edit/valueProcess.js b/entity/Activity_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/Activity_entity/entityfields/user_edit/valueProcess.js +++ b/entity/Activity_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Activity_entity/entityfields/user_new/valueProcess.js b/entity/Activity_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Activity_entity/entityfields/user_new/valueProcess.js +++ b/entity/Activity_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Address_entity/entityfields/addressid/valueProcess.js b/entity/Address_entity/entityfields/addressid/valueProcess.js index d5a28fc848e..6cca32f779e 100644 --- a/entity/Address_entity/entityfields/addressid/valueProcess.js +++ b/entity/Address_entity/entityfields/addressid/valueProcess.js @@ -4,5 +4,5 @@ import("system.neon"); import("system.vars"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/Address_entity/entityfields/date_new/valueProcess.js b/entity/Address_entity/entityfields/date_new/valueProcess.js index abfd3226611..408c498a4c9 100644 --- a/entity/Address_entity/entityfields/date_new/valueProcess.js +++ b/entity/Address_entity/entityfields/date_new/valueProcess.js @@ -2,6 +2,6 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); diff --git a/entity/Address_entity/entityfields/user_new/valueProcess.js b/entity/Address_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Address_entity/entityfields/user_new/valueProcess.js +++ b/entity/Address_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Comm_entity/entityfields/commid/valueProcess.js b/entity/Comm_entity/entityfields/commid/valueProcess.js index 46a10710c68..d4df48974be 100644 --- a/entity/Comm_entity/entityfields/commid/valueProcess.js +++ b/entity/Comm_entity/entityfields/commid/valueProcess.js @@ -4,5 +4,5 @@ import("system.neon"); import("system.vars"); //do not check if own value is null or empty because the own value is currently not set correctly when you've got several COMM entries (e.g. in a list edit) -if (vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/Comm_entity/entityfields/date_new/valueProcess.js b/entity/Comm_entity/entityfields/date_new/valueProcess.js index abfd3226611..408c498a4c9 100644 --- a/entity/Comm_entity/entityfields/date_new/valueProcess.js +++ b/entity/Comm_entity/entityfields/date_new/valueProcess.js @@ -2,6 +2,6 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); diff --git a/entity/Comm_entity/entityfields/relation_id/valueProcess.js b/entity/Comm_entity/entityfields/relation_id/valueProcess.js index 2d085e3aff5..f0a8586f297 100644 --- a/entity/Comm_entity/entityfields/relation_id/valueProcess.js +++ b/entity/Comm_entity/entityfields/relation_id/valueProcess.js @@ -2,7 +2,7 @@ import("system.result"); import("system.neon"); import("system.vars"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { if(vars.exists("$param.RelId_param") && vars.get("$param.RelId_param") != null) result.string(vars.getString("$param.RelId_param")); diff --git a/entity/Comm_entity/entityfields/standard/valueProcess.js b/entity/Comm_entity/entityfields/standard/valueProcess.js index 86534e08301..476d7a39656 100644 --- a/entity/Comm_entity/entityfields/standard/valueProcess.js +++ b/entity/Comm_entity/entityfields/standard/valueProcess.js @@ -4,5 +4,5 @@ import("system.neon"); import("system.vars"); //do not check if own value is null or empty because the own value is currently not set correctly when you've got several COMM entries (e.g. in a list edit) -if (vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string("0"); \ No newline at end of file diff --git a/entity/Comm_entity/entityfields/user_new/valueProcess.js b/entity/Comm_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Comm_entity/entityfields/user_new/valueProcess.js +++ b/entity/Comm_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Contract_entity/entityfields/contractid/valueProcess.js b/entity/Contract_entity/entityfields/contractid/valueProcess.js index 5be18c39832..86ef789e064 100644 --- a/entity/Contract_entity/entityfields/contractid/valueProcess.js +++ b/entity/Contract_entity/entityfields/contractid/valueProcess.js @@ -3,5 +3,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/Contract_entity/entityfields/date_edit/valueProcess.js b/entity/Contract_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/Contract_entity/entityfields/date_edit/valueProcess.js +++ b/entity/Contract_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Contract_entity/entityfields/date_new/valueProcess.js b/entity/Contract_entity/entityfields/date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/Contract_entity/entityfields/date_new/valueProcess.js +++ b/entity/Contract_entity/entityfields/date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Contract_entity/entityfields/user_edit/valueProcess.js b/entity/Contract_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/Contract_entity/entityfields/user_edit/valueProcess.js +++ b/entity/Contract_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Contract_entity/entityfields/user_new/valueProcess.js b/entity/Contract_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Contract_entity/entityfields/user_new/valueProcess.js +++ b/entity/Contract_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Offer_entity/entityfields/date_edit/valueProcess.js b/entity/Offer_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/Offer_entity/entityfields/date_edit/valueProcess.js +++ b/entity/Offer_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Offer_entity/entityfields/date_new/valueProcess.js b/entity/Offer_entity/entityfields/date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/Offer_entity/entityfields/date_new/valueProcess.js +++ b/entity/Offer_entity/entityfields/date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Offer_entity/entityfields/offercode/onValidation.js b/entity/Offer_entity/entityfields/offercode/onValidation.js index 5ec456cddce..de949a3e766 100644 --- a/entity/Offer_entity/entityfields/offercode/onValidation.js +++ b/entity/Offer_entity/entityfields/offercode/onValidation.js @@ -6,7 +6,7 @@ import("Salesproject_lib"); import("Util_lib"); import("Entity_lib"); -if( vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW +if( vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && !OfferUtils.validateOfferNumber(ProcessHandlingUtils.getOnValidationValue(vars.get("$field.OFFERCODE"))) ) { vars.set( "$field.OFFERCODE", OfferUtils.getNextOfferNumber().toString() ); diff --git a/entity/Offer_entity/entityfields/offercode/valueProcess.js b/entity/Offer_entity/entityfields/offercode/valueProcess.js index 53cdd496a14..933257e8cc8 100644 --- a/entity/Offer_entity/entityfields/offercode/valueProcess.js +++ b/entity/Offer_entity/entityfields/offercode/valueProcess.js @@ -3,7 +3,7 @@ import("system.result"); import("system.neon"); import("Offer_lib"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { result.string(OfferUtils.getNextOfferNumber()); } \ No newline at end of file diff --git a/entity/Offer_entity/entityfields/offerdate/valueProcess.js b/entity/Offer_entity/entityfields/offerdate/valueProcess.js index aeddd594f71..09c66d00cc0 100644 --- a/entity/Offer_entity/entityfields/offerdate/valueProcess.js +++ b/entity/Offer_entity/entityfields/offerdate/valueProcess.js @@ -3,7 +3,7 @@ import("system.result"); import("system.neon"); import("Date_lib"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") { result.string(DateUtils.getTodayUTC()); } diff --git a/entity/Offer_entity/entityfields/offerid/valueProcess.js b/entity/Offer_entity/entityfields/offerid/valueProcess.js index 5be18c39832..86ef789e064 100644 --- a/entity/Offer_entity/entityfields/offerid/valueProcess.js +++ b/entity/Offer_entity/entityfields/offerid/valueProcess.js @@ -3,5 +3,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/Offer_entity/entityfields/salesproject_id/stateProcess.js b/entity/Offer_entity/entityfields/salesproject_id/stateProcess.js index 8116a21437c..a88395a1cc7 100644 --- a/entity/Offer_entity/entityfields/salesproject_id/stateProcess.js +++ b/entity/Offer_entity/entityfields/salesproject_id/stateProcess.js @@ -3,7 +3,7 @@ import("system.result"); import("system.vars"); -switch (vars.get("$sys.operatingstate")) +switch (vars.get("$sys.recordstate")) { case neon.OPERATINGSTATE_NEW: result.object(neon.COMPONENTSTATE_EDITABLE); diff --git a/entity/Offer_entity/entityfields/user_edit/valueProcess.js b/entity/Offer_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/Offer_entity/entityfields/user_edit/valueProcess.js +++ b/entity/Offer_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Offer_entity/entityfields/user_new/valueProcess.js b/entity/Offer_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Offer_entity/entityfields/user_new/valueProcess.js +++ b/entity/Offer_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Offer_entity/entityfields/versnr/valueProcess.js b/entity/Offer_entity/entityfields/versnr/valueProcess.js index 3c923b4ceab..f3ad73d0560 100644 --- a/entity/Offer_entity/entityfields/versnr/valueProcess.js +++ b/entity/Offer_entity/entityfields/versnr/valueProcess.js @@ -3,7 +3,7 @@ import("system.result"); import("system.neon"); import("Offer_lib"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { result.string( "1" ); } \ No newline at end of file diff --git a/entity/Offeritem_entity/afterOperatingState.js b/entity/Offeritem_entity/afterOperatingState.js index 3ffe37512ee..8a21849b421 100644 --- a/entity/Offeritem_entity/afterOperatingState.js +++ b/entity/Offeritem_entity/afterOperatingState.js @@ -2,9 +2,7 @@ import("system.neon"); import("system.vars"); import("Offer_lib"); -var opState = vars.get("$sys.operatingstate"); - -if(opState == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { var offerId = vars.get("$field.OFFER_ID"); var oiUtils = new OfferItemUtils(offerId); diff --git a/entity/Offeritem_entity/entityfields/date_edit/valueProcess.js b/entity/Offeritem_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/Offeritem_entity/entityfields/date_edit/valueProcess.js +++ b/entity/Offeritem_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Offeritem_entity/entityfields/date_new/valueProcess.js b/entity/Offeritem_entity/entityfields/date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/Offeritem_entity/entityfields/date_new/valueProcess.js +++ b/entity/Offeritem_entity/entityfields/date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Offeritem_entity/entityfields/info/valueProcess.js b/entity/Offeritem_entity/entityfields/info/valueProcess.js index 584fb9fb5f3..28760b4a57c 100644 --- a/entity/Offeritem_entity/entityfields/info/valueProcess.js +++ b/entity/Offeritem_entity/entityfields/info/valueProcess.js @@ -4,7 +4,7 @@ import("system.vars"); import("system.neon"); import("Sql_lib"); -if (vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { // TODO: loading from db until loading from dfo is possible. var productId = vars.get("$field.PRODUCT_ID"); diff --git a/entity/Offeritem_entity/entityfields/offer_id/valueProcess.js b/entity/Offeritem_entity/entityfields/offer_id/valueProcess.js index bcd432a09fa..7ed855ed6b5 100644 --- a/entity/Offeritem_entity/entityfields/offer_id/valueProcess.js +++ b/entity/Offeritem_entity/entityfields/offer_id/valueProcess.js @@ -2,7 +2,7 @@ import("system.result"); import("system.neon"); import("system.vars"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { if(vars.exists("$param.OfferId_param") && vars.get("$param.OfferId_param") != null && vars.get("$param.OfferId_param") != "") result.string(vars.getString("$param.OfferId_param")); diff --git a/entity/Offeritem_entity/entityfields/offeritemid/valueProcess.js b/entity/Offeritem_entity/entityfields/offeritemid/valueProcess.js index 5be18c39832..86ef789e064 100644 --- a/entity/Offeritem_entity/entityfields/offeritemid/valueProcess.js +++ b/entity/Offeritem_entity/entityfields/offeritemid/valueProcess.js @@ -3,5 +3,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/Offeritem_entity/entityfields/optional/valueProcess.js b/entity/Offeritem_entity/entityfields/optional/valueProcess.js index cbdd72fde38..31b2531af1a 100644 --- a/entity/Offeritem_entity/entityfields/optional/valueProcess.js +++ b/entity/Offeritem_entity/entityfields/optional/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string("0"); \ No newline at end of file diff --git a/entity/Offeritem_entity/entityfields/quantity/valueProcess.js b/entity/Offeritem_entity/entityfields/quantity/valueProcess.js index 3aebc70e19c..f6173830c13 100644 --- a/entity/Offeritem_entity/entityfields/quantity/valueProcess.js +++ b/entity/Offeritem_entity/entityfields/quantity/valueProcess.js @@ -2,7 +2,7 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") { result.string("1"); } diff --git a/entity/Offeritem_entity/entityfields/user_edit/valueProcess.js b/entity/Offeritem_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/Offeritem_entity/entityfields/user_edit/valueProcess.js +++ b/entity/Offeritem_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Offeritem_entity/entityfields/user_new/valueProcess.js b/entity/Offeritem_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Offeritem_entity/entityfields/user_new/valueProcess.js +++ b/entity/Offeritem_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Order_entity/entityfields/date_edit/valueProcess.js b/entity/Order_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/Order_entity/entityfields/date_edit/valueProcess.js +++ b/entity/Order_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Order_entity/entityfields/date_new/valueProcess.js b/entity/Order_entity/entityfields/date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/Order_entity/entityfields/date_new/valueProcess.js +++ b/entity/Order_entity/entityfields/date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Order_entity/entityfields/ordercode/onValidation.js b/entity/Order_entity/entityfields/ordercode/onValidation.js index 52084a6bbd4..9b98fac0e7b 100644 --- a/entity/Order_entity/entityfields/ordercode/onValidation.js +++ b/entity/Order_entity/entityfields/ordercode/onValidation.js @@ -6,7 +6,7 @@ import("Salesproject_lib"); import("Util_lib"); import("Entity_lib"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && !OrderUtils.validateOrderNumber(ProcessHandlingUtils.getOnValidationValue(vars.get("$field.SALESORDERCODE")))) { vars.set("$field.SALESORDERCODE", OrderUtils.getNextOrderNumber().toString()); diff --git a/entity/Order_entity/entityfields/ordercode/valueProcess.js b/entity/Order_entity/entityfields/ordercode/valueProcess.js index b6eb608f39b..fe577ec3f24 100644 --- a/entity/Order_entity/entityfields/ordercode/valueProcess.js +++ b/entity/Order_entity/entityfields/ordercode/valueProcess.js @@ -3,7 +3,7 @@ import("system.result"); import("system.neon"); import("Order_lib"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { result.string(OrderUtils.getNextOrderNumber()); } \ No newline at end of file diff --git a/entity/Order_entity/entityfields/orderdate/valueProcess.js b/entity/Order_entity/entityfields/orderdate/valueProcess.js index aeddd594f71..09c66d00cc0 100644 --- a/entity/Order_entity/entityfields/orderdate/valueProcess.js +++ b/entity/Order_entity/entityfields/orderdate/valueProcess.js @@ -3,7 +3,7 @@ import("system.result"); import("system.neon"); import("Date_lib"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") { result.string(DateUtils.getTodayUTC()); } diff --git a/entity/Order_entity/entityfields/orderid/valueProcess.js b/entity/Order_entity/entityfields/orderid/valueProcess.js index 5be18c39832..86ef789e064 100644 --- a/entity/Order_entity/entityfields/orderid/valueProcess.js +++ b/entity/Order_entity/entityfields/orderid/valueProcess.js @@ -3,5 +3,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/Order_entity/entityfields/salesproject_id/stateProcess.js b/entity/Order_entity/entityfields/salesproject_id/stateProcess.js index 8116a21437c..a88395a1cc7 100644 --- a/entity/Order_entity/entityfields/salesproject_id/stateProcess.js +++ b/entity/Order_entity/entityfields/salesproject_id/stateProcess.js @@ -3,7 +3,7 @@ import("system.result"); import("system.vars"); -switch (vars.get("$sys.operatingstate")) +switch (vars.get("$sys.recordstate")) { case neon.OPERATINGSTATE_NEW: result.object(neon.COMPONENTSTATE_EDITABLE); diff --git a/entity/Order_entity/entityfields/user_edit/valueProcess.js b/entity/Order_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/Order_entity/entityfields/user_edit/valueProcess.js +++ b/entity/Order_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Order_entity/entityfields/user_new/valueProcess.js b/entity/Order_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Order_entity/entityfields/user_new/valueProcess.js +++ b/entity/Order_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Order_entity/entityfields/versnr/valueProcess.js b/entity/Order_entity/entityfields/versnr/valueProcess.js index 1e7fc7a5505..4f0b6e1b535 100644 --- a/entity/Order_entity/entityfields/versnr/valueProcess.js +++ b/entity/Order_entity/entityfields/versnr/valueProcess.js @@ -2,7 +2,7 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { result.string( "1" ); } \ No newline at end of file diff --git a/entity/Orderitem_entity/afterOperatingState.js b/entity/Orderitem_entity/afterOperatingState.js index dc478d46c48..772a17c62fb 100644 --- a/entity/Orderitem_entity/afterOperatingState.js +++ b/entity/Orderitem_entity/afterOperatingState.js @@ -2,7 +2,7 @@ import("system.neon"); import("system.vars"); import("Order_lib"); -var opState = vars.get("$sys.operatingstate"); +var opState = vars.get("$sys.recordstate"); if(opState == neon.OPERATINGSTATE_NEW) { diff --git a/entity/Orderitem_entity/entityfields/date_edit/valueProcess.js b/entity/Orderitem_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/Orderitem_entity/entityfields/date_edit/valueProcess.js +++ b/entity/Orderitem_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Orderitem_entity/entityfields/date_new/valueProcess.js b/entity/Orderitem_entity/entityfields/date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/Orderitem_entity/entityfields/date_new/valueProcess.js +++ b/entity/Orderitem_entity/entityfields/date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Orderitem_entity/entityfields/optional/valueProcess.js b/entity/Orderitem_entity/entityfields/optional/valueProcess.js index cbdd72fde38..31b2531af1a 100644 --- a/entity/Orderitem_entity/entityfields/optional/valueProcess.js +++ b/entity/Orderitem_entity/entityfields/optional/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string("0"); \ No newline at end of file diff --git a/entity/Orderitem_entity/entityfields/order_id/valueProcess.js b/entity/Orderitem_entity/entityfields/order_id/valueProcess.js index 6ca6ccd3bd5..c03d980a0c1 100644 --- a/entity/Orderitem_entity/entityfields/order_id/valueProcess.js +++ b/entity/Orderitem_entity/entityfields/order_id/valueProcess.js @@ -2,7 +2,7 @@ import("system.result"); import("system.neon"); import("system.vars"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { if(vars.exists("$param.OrderId_param") && vars.get("$param.OrderId_param") != null && vars.get("$param.OrderId_param") != "") result.string(vars.getString("$param.OrderId_param")); diff --git a/entity/Orderitem_entity/entityfields/orderitemid/valueProcess.js b/entity/Orderitem_entity/entityfields/orderitemid/valueProcess.js index 5be18c39832..86ef789e064 100644 --- a/entity/Orderitem_entity/entityfields/orderitemid/valueProcess.js +++ b/entity/Orderitem_entity/entityfields/orderitemid/valueProcess.js @@ -3,5 +3,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/Orderitem_entity/entityfields/quantity/valueProcess.js b/entity/Orderitem_entity/entityfields/quantity/valueProcess.js index 3aebc70e19c..f6173830c13 100644 --- a/entity/Orderitem_entity/entityfields/quantity/valueProcess.js +++ b/entity/Orderitem_entity/entityfields/quantity/valueProcess.js @@ -2,7 +2,7 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") { result.string("1"); } diff --git a/entity/Orderitem_entity/entityfields/user_edit/valueProcess.js b/entity/Orderitem_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/Orderitem_entity/entityfields/user_edit/valueProcess.js +++ b/entity/Orderitem_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Orderitem_entity/entityfields/user_new/valueProcess.js b/entity/Orderitem_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Orderitem_entity/entityfields/user_new/valueProcess.js +++ b/entity/Orderitem_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Org_entity/entityfields/image/valueProcess.js b/entity/Org_entity/entityfields/image/valueProcess.js index ee00a01ead7..da40ef007c3 100644 --- a/entity/Org_entity/entityfields/image/valueProcess.js +++ b/entity/Org_entity/entityfields/image/valueProcess.js @@ -3,7 +3,7 @@ import("system.neon"); import("system.vars"); import("Org_lib"); -if (vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_VIEW) +if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_VIEW) { result.string(OrgUtils.getImage(vars.get("$field.ORGID"), vars.getString("$field.NAME"))); } diff --git a/entity/Org_entity/entityfields/org_date_edit/valueProcess.js b/entity/Org_entity/entityfields/org_date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/Org_entity/entityfields/org_date_edit/valueProcess.js +++ b/entity/Org_entity/entityfields/org_date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Org_entity/entityfields/org_date_new/valueProcess.js b/entity/Org_entity/entityfields/org_date_new/valueProcess.js index abfd3226611..408c498a4c9 100644 --- a/entity/Org_entity/entityfields/org_date_new/valueProcess.js +++ b/entity/Org_entity/entityfields/org_date_new/valueProcess.js @@ -2,6 +2,6 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); diff --git a/entity/Org_entity/entityfields/org_user_edit/valueProcess.js b/entity/Org_entity/entityfields/org_user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/Org_entity/entityfields/org_user_edit/valueProcess.js +++ b/entity/Org_entity/entityfields/org_user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Org_entity/entityfields/org_user_new/valueProcess.js b/entity/Org_entity/entityfields/org_user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Org_entity/entityfields/org_user_new/valueProcess.js +++ b/entity/Org_entity/entityfields/org_user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Org_entity/entityfields/rel_date_edit/valueProcess.js b/entity/Org_entity/entityfields/rel_date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/Org_entity/entityfields/rel_date_edit/valueProcess.js +++ b/entity/Org_entity/entityfields/rel_date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Org_entity/entityfields/rel_date_new/valueProcess.js b/entity/Org_entity/entityfields/rel_date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/Org_entity/entityfields/rel_date_new/valueProcess.js +++ b/entity/Org_entity/entityfields/rel_date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Org_entity/entityfields/rel_user_edit/valueProcess.js b/entity/Org_entity/entityfields/rel_user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/Org_entity/entityfields/rel_user_edit/valueProcess.js +++ b/entity/Org_entity/entityfields/rel_user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Org_entity/entityfields/rel_user_new/valueProcess.js b/entity/Org_entity/entityfields/rel_user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Org_entity/entityfields/rel_user_new/valueProcess.js +++ b/entity/Org_entity/entityfields/rel_user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Org_entity/entityfields/relationid/valueProcess.js b/entity/Org_entity/entityfields/relationid/valueProcess.js index c8bd25cbee0..34604a8ac8a 100644 --- a/entity/Org_entity/entityfields/relationid/valueProcess.js +++ b/entity/Org_entity/entityfields/relationid/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.get("$field.ORGID")); \ No newline at end of file diff --git a/entity/Pers_entity/entityfields/image/valueProcess.js b/entity/Pers_entity/entityfields/image/valueProcess.js index 94874351ac3..14213dfae45 100644 --- a/entity/Pers_entity/entityfields/image/valueProcess.js +++ b/entity/Pers_entity/entityfields/image/valueProcess.js @@ -3,7 +3,7 @@ import("system.neon"); import("system.vars"); import("Pers_lib"); -if (vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_VIEW) +if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_VIEW) { result.string(PersUtils.getImage(vars.get("$field.PERSID"), (vars.getString("$field.FIRSTNAME") + " " + vars.getString("$field.LASTNAME")).trim())); } diff --git a/entity/Pers_entity/entityfields/pers_date_edit/valueProcess.js b/entity/Pers_entity/entityfields/pers_date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/Pers_entity/entityfields/pers_date_edit/valueProcess.js +++ b/entity/Pers_entity/entityfields/pers_date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Pers_entity/entityfields/pers_date_new/valueProcess.js b/entity/Pers_entity/entityfields/pers_date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/Pers_entity/entityfields/pers_date_new/valueProcess.js +++ b/entity/Pers_entity/entityfields/pers_date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Pers_entity/entityfields/pers_user_edit/valueProcess.js b/entity/Pers_entity/entityfields/pers_user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/Pers_entity/entityfields/pers_user_edit/valueProcess.js +++ b/entity/Pers_entity/entityfields/pers_user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Pers_entity/entityfields/pers_user_new/valueProcess.js b/entity/Pers_entity/entityfields/pers_user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Pers_entity/entityfields/pers_user_new/valueProcess.js +++ b/entity/Pers_entity/entityfields/pers_user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Pers_entity/entityfields/persid/valueProcess.js b/entity/Pers_entity/entityfields/persid/valueProcess.js index 5be18c39832..86ef789e064 100644 --- a/entity/Pers_entity/entityfields/persid/valueProcess.js +++ b/entity/Pers_entity/entityfields/persid/valueProcess.js @@ -3,5 +3,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/Pers_entity/entityfields/rel_date_edit/valueProcess.js b/entity/Pers_entity/entityfields/rel_date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/Pers_entity/entityfields/rel_date_edit/valueProcess.js +++ b/entity/Pers_entity/entityfields/rel_date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Pers_entity/entityfields/rel_date_new/valueProcess.js b/entity/Pers_entity/entityfields/rel_date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/Pers_entity/entityfields/rel_date_new/valueProcess.js +++ b/entity/Pers_entity/entityfields/rel_date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Pers_entity/entityfields/rel_relationship/valueProcess.js b/entity/Pers_entity/entityfields/rel_relationship/valueProcess.js index cd37f8f72bb..7e646ec28f8 100644 --- a/entity/Pers_entity/entityfields/rel_relationship/valueProcess.js +++ b/entity/Pers_entity/entityfields/rel_relationship/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.object(2); \ No newline at end of file diff --git a/entity/Pers_entity/entityfields/rel_user_edit/valueProcess.js b/entity/Pers_entity/entityfields/rel_user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/Pers_entity/entityfields/rel_user_edit/valueProcess.js +++ b/entity/Pers_entity/entityfields/rel_user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Pers_entity/entityfields/rel_user_new/valueProcess.js b/entity/Pers_entity/entityfields/rel_user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Pers_entity/entityfields/rel_user_new/valueProcess.js +++ b/entity/Pers_entity/entityfields/rel_user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Prod2prod_entity/entityfields/date_edit/valueProcess.js b/entity/Prod2prod_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/Prod2prod_entity/entityfields/date_edit/valueProcess.js +++ b/entity/Prod2prod_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Prod2prod_entity/entityfields/date_new/valueProcess.js b/entity/Prod2prod_entity/entityfields/date_new/valueProcess.js index abfd3226611..408c498a4c9 100644 --- a/entity/Prod2prod_entity/entityfields/date_new/valueProcess.js +++ b/entity/Prod2prod_entity/entityfields/date_new/valueProcess.js @@ -2,6 +2,6 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); diff --git a/entity/Prod2prod_entity/entityfields/dest_id/valueProcess.js b/entity/Prod2prod_entity/entityfields/dest_id/valueProcess.js index 4428a4ab948..c54ef701ced 100644 --- a/entity/Prod2prod_entity/entityfields/dest_id/valueProcess.js +++ b/entity/Prod2prod_entity/entityfields/dest_id/valueProcess.js @@ -2,7 +2,7 @@ import("system.result"); import("system.neon"); import("system.vars"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { if(vars.exists("$param.ProductId_param") && vars.get("$param.ProductId_param") != null && vars.get("$param.ProductId_param") != "") result.string(vars.getString("$param.ProductId_param")); diff --git a/entity/Prod2prod_entity/entityfields/optional/valueProcess.js b/entity/Prod2prod_entity/entityfields/optional/valueProcess.js index a772de2f7d4..83eed9e7ea6 100644 --- a/entity/Prod2prod_entity/entityfields/optional/valueProcess.js +++ b/entity/Prod2prod_entity/entityfields/optional/valueProcess.js @@ -2,5 +2,5 @@ //import("system.result"); //import("system.neon"); // -//if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +//if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) // result.string("0"); \ No newline at end of file diff --git a/entity/Prod2prod_entity/entityfields/prod2prodid/valueProcess.js b/entity/Prod2prod_entity/entityfields/prod2prodid/valueProcess.js index 5be18c39832..86ef789e064 100644 --- a/entity/Prod2prod_entity/entityfields/prod2prodid/valueProcess.js +++ b/entity/Prod2prod_entity/entityfields/prod2prodid/valueProcess.js @@ -3,5 +3,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/Prod2prod_entity/entityfields/quantity/valueProcess.js b/entity/Prod2prod_entity/entityfields/quantity/valueProcess.js index 11dd557c3f3..66e7d5877cf 100644 --- a/entity/Prod2prod_entity/entityfields/quantity/valueProcess.js +++ b/entity/Prod2prod_entity/entityfields/quantity/valueProcess.js @@ -2,7 +2,7 @@ //import("system.result"); //import("system.neon"); // -//if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") +//if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") //{ // result.string("1"); //} diff --git a/entity/Prod2prod_entity/entityfields/source_id/possibleItemsProcess.js b/entity/Prod2prod_entity/entityfields/source_id/possibleItemsProcess.js index 19904fc3d9a..4be8d5f270a 100644 --- a/entity/Prod2prod_entity/entityfields/source_id/possibleItemsProcess.js +++ b/entity/Prod2prod_entity/entityfields/source_id/possibleItemsProcess.js @@ -6,7 +6,7 @@ import("Keyword_lib"); import("Product_lib"); var condition = ""; -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT || vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT || vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { var prodid = vars.get("$field.DEST_ID"); var excludeableProds = [prodid]; diff --git a/entity/Prod2prod_entity/entityfields/uid/valueProcess.js b/entity/Prod2prod_entity/entityfields/uid/valueProcess.js index 5be18c39832..86ef789e064 100644 --- a/entity/Prod2prod_entity/entityfields/uid/valueProcess.js +++ b/entity/Prod2prod_entity/entityfields/uid/valueProcess.js @@ -3,5 +3,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/Prod2prod_entity/entityfields/user_edit/valueProcess.js b/entity/Prod2prod_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/Prod2prod_entity/entityfields/user_edit/valueProcess.js +++ b/entity/Prod2prod_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Prod2prod_entity/entityfields/user_new/valueProcess.js b/entity/Prod2prod_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Prod2prod_entity/entityfields/user_new/valueProcess.js +++ b/entity/Prod2prod_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Product_entity/entityfields/advertising/valueProcess.js b/entity/Product_entity/entityfields/advertising/valueProcess.js index 0a98fa35746..e084c806942 100644 --- a/entity/Product_entity/entityfields/advertising/valueProcess.js +++ b/entity/Product_entity/entityfields/advertising/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string("N"); \ No newline at end of file diff --git a/entity/Product_entity/entityfields/date_edit/valueProcess.js b/entity/Product_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/Product_entity/entityfields/date_edit/valueProcess.js +++ b/entity/Product_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Product_entity/entityfields/date_new/valueProcess.js b/entity/Product_entity/entityfields/date_new/valueProcess.js index abfd3226611..408c498a4c9 100644 --- a/entity/Product_entity/entityfields/date_new/valueProcess.js +++ b/entity/Product_entity/entityfields/date_new/valueProcess.js @@ -2,6 +2,6 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); diff --git a/entity/Product_entity/entityfields/image/valueProcess.js b/entity/Product_entity/entityfields/image/valueProcess.js index f793e71dcb8..a733fa5055a 100644 --- a/entity/Product_entity/entityfields/image/valueProcess.js +++ b/entity/Product_entity/entityfields/image/valueProcess.js @@ -3,7 +3,7 @@ import("system.neon"); import("system.vars"); import("Product_lib"); -if (vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_VIEW) +if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_VIEW) { result.string(ProductUtils.getImage(vars.get("$field.PRODUCTID"), vars.getString("$field.PRODUCTNAME"))); } \ No newline at end of file diff --git a/entity/Product_entity/entityfields/productid/valueProcess.js b/entity/Product_entity/entityfields/productid/valueProcess.js index 5be18c39832..86ef789e064 100644 --- a/entity/Product_entity/entityfields/productid/valueProcess.js +++ b/entity/Product_entity/entityfields/productid/valueProcess.js @@ -3,5 +3,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/Product_entity/entityfields/status/valueProcess.js b/entity/Product_entity/entityfields/status/valueProcess.js index 04344c1e2ca..6ca0571cb9f 100644 --- a/entity/Product_entity/entityfields/status/valueProcess.js +++ b/entity/Product_entity/entityfields/status/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string("1"); \ No newline at end of file diff --git a/entity/Product_entity/entityfields/user_edit/valueProcess.js b/entity/Product_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/Product_entity/entityfields/user_edit/valueProcess.js +++ b/entity/Product_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Product_entity/entityfields/user_new/valueProcess.js b/entity/Product_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Product_entity/entityfields/user_new/valueProcess.js +++ b/entity/Product_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Productprice_entity/entityfields/buysell/valueProcess.js b/entity/Productprice_entity/entityfields/buysell/valueProcess.js index 334695bcf35..33aba856e9b 100644 --- a/entity/Productprice_entity/entityfields/buysell/valueProcess.js +++ b/entity/Productprice_entity/entityfields/buysell/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") result.string("SP"); \ No newline at end of file diff --git a/entity/Productprice_entity/entityfields/date_edit/valueProcess.js b/entity/Productprice_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/Productprice_entity/entityfields/date_edit/valueProcess.js +++ b/entity/Productprice_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Productprice_entity/entityfields/date_new/valueProcess.js b/entity/Productprice_entity/entityfields/date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/Productprice_entity/entityfields/date_new/valueProcess.js +++ b/entity/Productprice_entity/entityfields/date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Productprice_entity/entityfields/fromquantity/valueProcess.js b/entity/Productprice_entity/entityfields/fromquantity/valueProcess.js index 11dd557c3f3..66e7d5877cf 100644 --- a/entity/Productprice_entity/entityfields/fromquantity/valueProcess.js +++ b/entity/Productprice_entity/entityfields/fromquantity/valueProcess.js @@ -2,7 +2,7 @@ //import("system.result"); //import("system.neon"); // -//if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") +//if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") //{ // result.string("1"); //} diff --git a/entity/Productprice_entity/entityfields/pricelist/titleProcess.js b/entity/Productprice_entity/entityfields/pricelist/titleProcess.js index 325222cf9a7..6a8bd0bca87 100644 --- a/entity/Productprice_entity/entityfields/pricelist/titleProcess.js +++ b/entity/Productprice_entity/entityfields/pricelist/titleProcess.js @@ -4,7 +4,7 @@ import("system.neon"); import("system.result"); var str = translate.text("Price list"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_VIEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_VIEW) str = translate.text("Price list / Company"); result.string(str); \ No newline at end of file diff --git a/entity/Productprice_entity/entityfields/product_id/valueProcess.js b/entity/Productprice_entity/entityfields/product_id/valueProcess.js index 4428a4ab948..c54ef701ced 100644 --- a/entity/Productprice_entity/entityfields/product_id/valueProcess.js +++ b/entity/Productprice_entity/entityfields/product_id/valueProcess.js @@ -2,7 +2,7 @@ import("system.result"); import("system.neon"); import("system.vars"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { if(vars.exists("$param.ProductId_param") && vars.get("$param.ProductId_param") != null && vars.get("$param.ProductId_param") != "") result.string(vars.getString("$param.ProductId_param")); diff --git a/entity/Productprice_entity/entityfields/productpriceid/valueProcess.js b/entity/Productprice_entity/entityfields/productpriceid/valueProcess.js index 5be18c39832..86ef789e064 100644 --- a/entity/Productprice_entity/entityfields/productpriceid/valueProcess.js +++ b/entity/Productprice_entity/entityfields/productpriceid/valueProcess.js @@ -3,5 +3,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/Productprice_entity/entityfields/relation_id/valueProcess.js b/entity/Productprice_entity/entityfields/relation_id/valueProcess.js index 54901ac82be..002e9f1a787 100644 --- a/entity/Productprice_entity/entityfields/relation_id/valueProcess.js +++ b/entity/Productprice_entity/entityfields/relation_id/valueProcess.js @@ -2,7 +2,7 @@ import("system.result"); import("system.neon"); import("system.vars"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { if(vars.exists("$param.RelID_param") && vars.get("$param.RelID_param") != "") result.string(vars.get("$param.RelID_param")); diff --git a/entity/Productprice_entity/entityfields/user_edit/valueProcess.js b/entity/Productprice_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/Productprice_entity/entityfields/user_edit/valueProcess.js +++ b/entity/Productprice_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Productprice_entity/entityfields/user_new/valueProcess.js b/entity/Productprice_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Productprice_entity/entityfields/user_new/valueProcess.js +++ b/entity/Productprice_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Relation_entity/entityfields/date_edit/valueProcess.js b/entity/Relation_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/Relation_entity/entityfields/date_edit/valueProcess.js +++ b/entity/Relation_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Relation_entity/entityfields/date_new/valueProcess.js b/entity/Relation_entity/entityfields/date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/Relation_entity/entityfields/date_new/valueProcess.js +++ b/entity/Relation_entity/entityfields/date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Relation_entity/entityfields/user_edit/valueProcess.js b/entity/Relation_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/Relation_entity/entityfields/user_edit/valueProcess.js +++ b/entity/Relation_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Relation_entity/entityfields/user_new/valueProcess.js b/entity/Relation_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Relation_entity/entityfields/user_new/valueProcess.js +++ b/entity/Relation_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/SalesprojectCompetition_entity/entityfields/date_edit/valueProcess.js b/entity/SalesprojectCompetition_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/SalesprojectCompetition_entity/entityfields/date_edit/valueProcess.js +++ b/entity/SalesprojectCompetition_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/SalesprojectCompetition_entity/entityfields/date_new/valueProcess.js b/entity/SalesprojectCompetition_entity/entityfields/date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/SalesprojectCompetition_entity/entityfields/date_new/valueProcess.js +++ b/entity/SalesprojectCompetition_entity/entityfields/date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/SalesprojectCompetition_entity/entityfields/salesproject_competitionid/valueProcess.js b/entity/SalesprojectCompetition_entity/entityfields/salesproject_competitionid/valueProcess.js index 5be18c39832..86ef789e064 100644 --- a/entity/SalesprojectCompetition_entity/entityfields/salesproject_competitionid/valueProcess.js +++ b/entity/SalesprojectCompetition_entity/entityfields/salesproject_competitionid/valueProcess.js @@ -3,5 +3,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/SalesprojectCompetition_entity/entityfields/salesproject_id/valueProcess.js b/entity/SalesprojectCompetition_entity/entityfields/salesproject_id/valueProcess.js index 9a14411b51b..5f36de767cb 100644 --- a/entity/SalesprojectCompetition_entity/entityfields/salesproject_id/valueProcess.js +++ b/entity/SalesprojectCompetition_entity/entityfields/salesproject_id/valueProcess.js @@ -2,7 +2,7 @@ import("system.result"); import("system.neon"); import("system.vars"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { if(vars.exists("$param.SalesprojectId_param") && vars.get("$param.SalesprojectId_param") != null) { result.string(vars.getString("$param.SalesprojectId_param")); diff --git a/entity/SalesprojectCompetition_entity/entityfields/user_edit/valueProcess.js b/entity/SalesprojectCompetition_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/SalesprojectCompetition_entity/entityfields/user_edit/valueProcess.js +++ b/entity/SalesprojectCompetition_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/SalesprojectCompetition_entity/entityfields/user_new/valueProcess.js b/entity/SalesprojectCompetition_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/SalesprojectCompetition_entity/entityfields/user_new/valueProcess.js +++ b/entity/SalesprojectCompetition_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/SalesprojectCycle_entity/entityfields/date_edit/valueProcess.js b/entity/SalesprojectCycle_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/SalesprojectCycle_entity/entityfields/date_edit/valueProcess.js +++ b/entity/SalesprojectCycle_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/SalesprojectCycle_entity/entityfields/date_new/valueProcess.js b/entity/SalesprojectCycle_entity/entityfields/date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/SalesprojectCycle_entity/entityfields/date_new/valueProcess.js +++ b/entity/SalesprojectCycle_entity/entityfields/date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/SalesprojectCycle_entity/entityfields/salesproject_cycleid/valueProcess.js b/entity/SalesprojectCycle_entity/entityfields/salesproject_cycleid/valueProcess.js index 5be18c39832..86ef789e064 100644 --- a/entity/SalesprojectCycle_entity/entityfields/salesproject_cycleid/valueProcess.js +++ b/entity/SalesprojectCycle_entity/entityfields/salesproject_cycleid/valueProcess.js @@ -3,5 +3,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/SalesprojectCycle_entity/entityfields/salesproject_id/valueProcess.js b/entity/SalesprojectCycle_entity/entityfields/salesproject_id/valueProcess.js index 9a14411b51b..5f36de767cb 100644 --- a/entity/SalesprojectCycle_entity/entityfields/salesproject_id/valueProcess.js +++ b/entity/SalesprojectCycle_entity/entityfields/salesproject_id/valueProcess.js @@ -2,7 +2,7 @@ import("system.result"); import("system.neon"); import("system.vars"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { if(vars.exists("$param.SalesprojectId_param") && vars.get("$param.SalesprojectId_param") != null) { result.string(vars.getString("$param.SalesprojectId_param")); diff --git a/entity/SalesprojectCycle_entity/entityfields/user_edit/valueProcess.js b/entity/SalesprojectCycle_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/SalesprojectCycle_entity/entityfields/user_edit/valueProcess.js +++ b/entity/SalesprojectCycle_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/SalesprojectCycle_entity/entityfields/user_new/valueProcess.js b/entity/SalesprojectCycle_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/SalesprojectCycle_entity/entityfields/user_new/valueProcess.js +++ b/entity/SalesprojectCycle_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/SalesprojectForecast_entity/entityfields/date_edit/valueProcess.js b/entity/SalesprojectForecast_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/SalesprojectForecast_entity/entityfields/date_edit/valueProcess.js +++ b/entity/SalesprojectForecast_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/SalesprojectForecast_entity/entityfields/date_new/valueProcess.js b/entity/SalesprojectForecast_entity/entityfields/date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/SalesprojectForecast_entity/entityfields/date_new/valueProcess.js +++ b/entity/SalesprojectForecast_entity/entityfields/date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/SalesprojectForecast_entity/entityfields/salesproject_forecastid/valueProcess.js b/entity/SalesprojectForecast_entity/entityfields/salesproject_forecastid/valueProcess.js index 5be18c39832..86ef789e064 100644 --- a/entity/SalesprojectForecast_entity/entityfields/salesproject_forecastid/valueProcess.js +++ b/entity/SalesprojectForecast_entity/entityfields/salesproject_forecastid/valueProcess.js @@ -3,5 +3,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/SalesprojectForecast_entity/entityfields/salesproject_id/valueProcess.js b/entity/SalesprojectForecast_entity/entityfields/salesproject_id/valueProcess.js index 9a14411b51b..5f36de767cb 100644 --- a/entity/SalesprojectForecast_entity/entityfields/salesproject_id/valueProcess.js +++ b/entity/SalesprojectForecast_entity/entityfields/salesproject_id/valueProcess.js @@ -2,7 +2,7 @@ import("system.result"); import("system.neon"); import("system.vars"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { if(vars.exists("$param.SalesprojectId_param") && vars.get("$param.SalesprojectId_param") != null) { result.string(vars.getString("$param.SalesprojectId_param")); diff --git a/entity/SalesprojectForecast_entity/entityfields/user_edit/valueProcess.js b/entity/SalesprojectForecast_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/SalesprojectForecast_entity/entityfields/user_edit/valueProcess.js +++ b/entity/SalesprojectForecast_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/SalesprojectForecast_entity/entityfields/user_new/valueProcess.js b/entity/SalesprojectForecast_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/SalesprojectForecast_entity/entityfields/user_new/valueProcess.js +++ b/entity/SalesprojectForecast_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/SalesprojectMember_entity/entityfields/salesproject_id/valueProcess.js b/entity/SalesprojectMember_entity/entityfields/salesproject_id/valueProcess.js index 9a14411b51b..5f36de767cb 100644 --- a/entity/SalesprojectMember_entity/entityfields/salesproject_id/valueProcess.js +++ b/entity/SalesprojectMember_entity/entityfields/salesproject_id/valueProcess.js @@ -2,7 +2,7 @@ import("system.result"); import("system.neon"); import("system.vars"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { if(vars.exists("$param.SalesprojectId_param") && vars.get("$param.SalesprojectId_param") != null) { result.string(vars.getString("$param.SalesprojectId_param")); diff --git a/entity/SalesprojectMember_entity/entityfields/salesproject_memberid/valueProcess.js b/entity/SalesprojectMember_entity/entityfields/salesproject_memberid/valueProcess.js index 5be18c39832..86ef789e064 100644 --- a/entity/SalesprojectMember_entity/entityfields/salesproject_memberid/valueProcess.js +++ b/entity/SalesprojectMember_entity/entityfields/salesproject_memberid/valueProcess.js @@ -3,5 +3,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/SalesprojectSource_entity/entityfields/date_edit/valueProcess.js b/entity/SalesprojectSource_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/SalesprojectSource_entity/entityfields/date_edit/valueProcess.js +++ b/entity/SalesprojectSource_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/SalesprojectSource_entity/entityfields/date_new/valueProcess.js b/entity/SalesprojectSource_entity/entityfields/date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/SalesprojectSource_entity/entityfields/date_new/valueProcess.js +++ b/entity/SalesprojectSource_entity/entityfields/date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/SalesprojectSource_entity/entityfields/salesproject_id/valueProcess.js b/entity/SalesprojectSource_entity/entityfields/salesproject_id/valueProcess.js index 9a14411b51b..5f36de767cb 100644 --- a/entity/SalesprojectSource_entity/entityfields/salesproject_id/valueProcess.js +++ b/entity/SalesprojectSource_entity/entityfields/salesproject_id/valueProcess.js @@ -2,7 +2,7 @@ import("system.result"); import("system.neon"); import("system.vars"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { if(vars.exists("$param.SalesprojectId_param") && vars.get("$param.SalesprojectId_param") != null) { result.string(vars.getString("$param.SalesprojectId_param")); diff --git a/entity/SalesprojectSource_entity/entityfields/salesproject_sourceid/valueProcess.js b/entity/SalesprojectSource_entity/entityfields/salesproject_sourceid/valueProcess.js index 5be18c39832..86ef789e064 100644 --- a/entity/SalesprojectSource_entity/entityfields/salesproject_sourceid/valueProcess.js +++ b/entity/SalesprojectSource_entity/entityfields/salesproject_sourceid/valueProcess.js @@ -3,5 +3,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/SalesprojectSource_entity/entityfields/user_edit/valueProcess.js b/entity/SalesprojectSource_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/SalesprojectSource_entity/entityfields/user_edit/valueProcess.js +++ b/entity/SalesprojectSource_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/SalesprojectSource_entity/entityfields/user_new/valueProcess.js b/entity/SalesprojectSource_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/SalesprojectSource_entity/entityfields/user_new/valueProcess.js +++ b/entity/SalesprojectSource_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Salesproject_entity/entityfields/date_edit/valueProcess.js b/entity/Salesproject_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/Salesproject_entity/entityfields/date_edit/valueProcess.js +++ b/entity/Salesproject_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Salesproject_entity/entityfields/date_new/valueProcess.js b/entity/Salesproject_entity/entityfields/date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/Salesproject_entity/entityfields/date_new/valueProcess.js +++ b/entity/Salesproject_entity/entityfields/date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Salesproject_entity/entityfields/enddate/valueProcess.js b/entity/Salesproject_entity/entityfields/enddate/valueProcess.js index 857933a9839..f6ff85ba891 100644 --- a/entity/Salesproject_entity/entityfields/enddate/valueProcess.js +++ b/entity/Salesproject_entity/entityfields/enddate/valueProcess.js @@ -3,7 +3,7 @@ import("system.result"); import("system.neon"); import("Date_lib"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") { result.string(DateUtils.getDateIncrementedByYears(DateUtils.getTodayUTC(), 1)); } diff --git a/entity/Salesproject_entity/entityfields/projectcode/onValidation.js b/entity/Salesproject_entity/entityfields/projectcode/onValidation.js index 1f7657c4fed..92d5d098b6c 100644 --- a/entity/Salesproject_entity/entityfields/projectcode/onValidation.js +++ b/entity/Salesproject_entity/entityfields/projectcode/onValidation.js @@ -5,7 +5,7 @@ import("Salesproject_lib"); import("Util_lib"); import("Entity_lib"); -if( vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW +if( vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && !Salesproject.validateProjectNumber(ProcessHandlingUtils.getOnValidationValue(vars.get("$field.PROJECTCODE"))) ) { vars.set( "$field.PROJECTCODE", Salesproject.getNextProjectNumber().toString("1 = 1") ); diff --git a/entity/Salesproject_entity/entityfields/projectcode/valueProcess.js b/entity/Salesproject_entity/entityfields/projectcode/valueProcess.js index f1b5e3b17ea..f1705156b5d 100644 --- a/entity/Salesproject_entity/entityfields/projectcode/valueProcess.js +++ b/entity/Salesproject_entity/entityfields/projectcode/valueProcess.js @@ -3,7 +3,7 @@ import("system.result"); import("system.neon"); import("Salesproject_lib"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { result.string(Salesproject.getNextProjectNumber()); } \ No newline at end of file diff --git a/entity/Salesproject_entity/entityfields/startdate/valueProcess.js b/entity/Salesproject_entity/entityfields/startdate/valueProcess.js index aeddd594f71..09c66d00cc0 100644 --- a/entity/Salesproject_entity/entityfields/startdate/valueProcess.js +++ b/entity/Salesproject_entity/entityfields/startdate/valueProcess.js @@ -3,7 +3,7 @@ import("system.result"); import("system.neon"); import("Date_lib"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == "") { result.string(DateUtils.getTodayUTC()); } diff --git a/entity/Salesproject_entity/entityfields/user_edit/valueProcess.js b/entity/Salesproject_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/Salesproject_entity/entityfields/user_edit/valueProcess.js +++ b/entity/Salesproject_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Salesproject_entity/entityfields/user_new/valueProcess.js b/entity/Salesproject_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Salesproject_entity/entityfields/user_new/valueProcess.js +++ b/entity/Salesproject_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Stock_entity/entityfields/date_edit/valueProcess.js b/entity/Stock_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/Stock_entity/entityfields/date_edit/valueProcess.js +++ b/entity/Stock_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Stock_entity/entityfields/date_new/valueProcess.js b/entity/Stock_entity/entityfields/date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/Stock_entity/entityfields/date_new/valueProcess.js +++ b/entity/Stock_entity/entityfields/date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Stock_entity/entityfields/entrydate/valueProcess.js b/entity/Stock_entity/entityfields/entrydate/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/Stock_entity/entityfields/entrydate/valueProcess.js +++ b/entity/Stock_entity/entityfields/entrydate/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Stock_entity/entityfields/product_id/valueProcess.js b/entity/Stock_entity/entityfields/product_id/valueProcess.js index 2798b0e797a..b917b673bfc 100644 --- a/entity/Stock_entity/entityfields/product_id/valueProcess.js +++ b/entity/Stock_entity/entityfields/product_id/valueProcess.js @@ -2,7 +2,7 @@ import("system.result"); import("system.neon"); import("system.vars"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { if(vars.exists("$param.ProductId_param") && vars.get("$param.ProductId_param") != null && vars.get("$param.ProductId_param") != "") result.string(vars.getString("$param.ProductId_param")); diff --git a/entity/Stock_entity/entityfields/stockid/valueProcess.js b/entity/Stock_entity/entityfields/stockid/valueProcess.js index 5be18c39832..86ef789e064 100644 --- a/entity/Stock_entity/entityfields/stockid/valueProcess.js +++ b/entity/Stock_entity/entityfields/stockid/valueProcess.js @@ -3,5 +3,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(util.getNewUUID()); \ No newline at end of file diff --git a/entity/Stock_entity/entityfields/user_edit/valueProcess.js b/entity/Stock_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/Stock_entity/entityfields/user_edit/valueProcess.js +++ b/entity/Stock_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Stock_entity/entityfields/user_new/valueProcess.js b/entity/Stock_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Stock_entity/entityfields/user_new/valueProcess.js +++ b/entity/Stock_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Timetracking_entity/entityfields/date/valueProcess.js b/entity/Timetracking_entity/entityfields/date/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/Timetracking_entity/entityfields/date/valueProcess.js +++ b/entity/Timetracking_entity/entityfields/date/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Timetracking_entity/entityfields/date_edit/valueProcess.js b/entity/Timetracking_entity/entityfields/date_edit/valueProcess.js index 00e95d744ea..710ac8a06a9 100644 --- a/entity/Timetracking_entity/entityfields/date_edit/valueProcess.js +++ b/entity/Timetracking_entity/entityfields/date_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Timetracking_entity/entityfields/date_new/valueProcess.js b/entity/Timetracking_entity/entityfields/date_new/valueProcess.js index 7ace6253143..3a0d59096cd 100644 --- a/entity/Timetracking_entity/entityfields/date_new/valueProcess.js +++ b/entity/Timetracking_entity/entityfields/date_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.date")); \ No newline at end of file diff --git a/entity/Timetracking_entity/entityfields/object_id/valueProcess.js b/entity/Timetracking_entity/entityfields/object_id/valueProcess.js index 9de80a227b0..21a2c1d4ce6 100644 --- a/entity/Timetracking_entity/entityfields/object_id/valueProcess.js +++ b/entity/Timetracking_entity/entityfields/object_id/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$param.ObjectId_param")); \ No newline at end of file diff --git a/entity/Timetracking_entity/entityfields/row_id/valueProcess.js b/entity/Timetracking_entity/entityfields/row_id/valueProcess.js index fc4ecd63c76..505e593be68 100644 --- a/entity/Timetracking_entity/entityfields/row_id/valueProcess.js +++ b/entity/Timetracking_entity/entityfields/row_id/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$param.RowId_param")); \ No newline at end of file diff --git a/entity/Timetracking_entity/entityfields/user_edit/valueProcess.js b/entity/Timetracking_entity/entityfields/user_edit/valueProcess.js index 67c86b14ca9..1581e18d976 100644 --- a/entity/Timetracking_entity/entityfields/user_edit/valueProcess.js +++ b/entity/Timetracking_entity/entityfields/user_edit/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/entity/Timetracking_entity/entityfields/user_new/valueProcess.js b/entity/Timetracking_entity/entityfields/user_new/valueProcess.js index 81966a3fbcd..7c566863b49 100644 --- a/entity/Timetracking_entity/entityfields/user_new/valueProcess.js +++ b/entity/Timetracking_entity/entityfields/user_new/valueProcess.js @@ -2,5 +2,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) result.string(vars.getString("$sys.user")); \ No newline at end of file diff --git a/process/Entity_lib/process.js b/process/Entity_lib/process.js index 17fac1f11a5..50293fbada3 100644 --- a/process/Entity_lib/process.js +++ b/process/Entity_lib/process.js @@ -36,7 +36,7 @@ ProcessHandlingUtils.getOnValidationValue = function(fieldValue) { */ ProcessHandlingUtils.initialParamToResult = function(pParamVarName) { - if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW && vars.exists(pParamVarName)) + if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.exists(pParamVarName)) { var paramValue = vars.get(pParamVarName); if (paramValue) -- GitLab