提交 ffe158af 编写于 作者: ibizdev's avatar ibizdev

zhujiamin 发布系统代码 [TrainSys,网页端]

上级 651aa889
...@@ -45,17 +45,17 @@ ...@@ -45,17 +45,17 @@
"id" : "Get" "id" : "Get"
}, },
"getPSDEFIUpdateDetails" : [ { "getPSDEFIUpdateDetails" : [ {
"name" : "field14" "name" : "field17"
}, {
"name" : "type"
}, { }, {
"name" : "field13" "name" : "field13"
}, { }, {
"name" : "field17" "name" : "field11"
}, { }, {
"name" : "field8" "name" : "field14"
}, { }, {
"name" : "field11" "name" : "type"
}, {
"name" : "field8"
} ], } ],
"rTMOSFilePath" : "psdefiupdates/updateA" "rTMOSFilePath" : "psdefiupdates/updateA"
} ], } ],
...@@ -205,6 +205,9 @@ ...@@ -205,6 +205,9 @@
}, { }, {
"id" : "formitem3", "id" : "formitem3",
"dataType" : 25 "dataType" : 25
}, {
"id" : "formitem4",
"dataType" : 25
}, { }, {
"id" : "date", "id" : "date",
"dataType" : 5, "dataType" : 5,
...@@ -817,6 +820,39 @@ ...@@ -817,6 +820,39 @@
"rTMOSFilePath" : "psdeformdetail_formitems/formitem3", "rTMOSFilePath" : "psdeformdetail_formitems/formitem3",
"allowEmpty" : true, "allowEmpty" : true,
"showCaption" : true "showCaption" : true
}, {
"caption" : "评分器",
"codeName" : "formitem4",
"dataType" : 25,
"detailStyle" : "DEFAULT",
"detailType" : "FORMITEM",
"enableCond" : 3,
"ignoreInput" : 0,
"labelPos" : "LEFT",
"labelWidth" : 130,
"mOSFilePath" : "psdeformdetail_formitems/formitem4",
"name" : "formitem4",
"noPrivDisplayMode" : 1,
"getPSEditor" : {
"editorParams" : {
"colors" : "['#F7BA2A', '#F7BA2A', '#F7BA2A']",
"maxvalue" : "10",
"showtext" : "true",
"texts" : "['Extremely bad', 'Disappointed', 'Fair', 'Satisfied', 'Surprise']"
},
"editorType" : "RATING",
"maxValue" : 5.0,
"minValue" : 0.0,
"name" : "formitem4",
"stepValue" : 1.0
},
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"rTMOSFilePath" : "psdeformdetail_formitems/formitem4",
"allowEmpty" : true,
"showCaption" : true
}, { }, {
"actionGroupExtractMode" : "ITEM", "actionGroupExtractMode" : "ITEM",
"caption" : "时间选择器", "caption" : "时间选择器",
......
...@@ -40,165 +40,117 @@ ...@@ -40,165 +40,117 @@
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule2", "codeName" : "ValueRule6",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6",
"name" : "field值规则", "name" : "field5值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2", "condType" : "SYSVALUERULE",
"dEFName" : "FIELD", "dEFName" : "FIELD5",
"maxValue" : 20.0, "name" : "[系统值规则]脚本值规则测试",
"minValue" : 10.0, "getPSSysValueRule" : {
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0", "codeName" : "ValueRule20",
"ruleInfo" : "10<=field<=20", "dynaModelFilePath" : "PSSYSVALUERULES/ValueRule20.json",
"includeMaxValue" : true, "mOSFilePath" : "pssysvaluerules/ValueRule20",
"includeMinValue" : true "name" : "脚本值规则测试",
} ], "rTMOSFilePath" : "pssysvaluerules/ValueRule20",
"ruleInfo" : "10<=field<=20" "ruleInfo" : "脚本校验",
}, "ruleType" : "SCRIPT",
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2", "scriptCode" : "console.log(data);\nconsole.log(value);\nreturn false;",
"ruleInfo" : "10<=field<=20",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field", "ruleInfo" : "脚本校验"
"valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule3",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3",
"name" : "field2值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condType" : "REGEX",
"dEFName" : "FIELD2",
"name" : "[正则式](^[0-9]*$)",
"regExCode" : "^[0-9]*$",
"ruleInfo" : "只能写数字"
} ], } ],
"ruleInfo" : "只能写数字" "ruleInfo" : "脚本校验"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6",
"ruleInfo" : "只能写数字", "ruleInfo" : "脚本校验",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field2", "getPSDEFormItemName" : "field5",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule9", "codeName" : "ValueRule8",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"name" : "field8值规则", "name" : "field7值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "GT",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 大于(>) (20)",
"paramValue" : "20"
}, {
"condOp" : "NOTEQ",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 不等于(<>) (30)",
"paramValue" : "30"
} ]
}, {
"condOp" : "OR", "condOp" : "OR",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "[条件组]OR", "name" : "[条件组]OR",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condOp" : "GT", "condType" : "VALUERANGE2",
"condType" : "SIMPLE", "dEFName" : "FIELD7",
"dEFName" : "FIELD8", "maxValue" : 20.0,
"name" : "[常规条件] 大于(>) (35)", "minValue" : 10.0,
"paramValue" : "35" "name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "数值必须大于等于[10.0]且小于等于[20.0]",
"includeMaxValue" : true,
"includeMinValue" : true
}, { }, {
"condOp" : "LIKE", "condType" : "VALUERANGE2",
"condType" : "SIMPLE", "dEFName" : "FIELD7",
"dEFName" : "FIELD8", "maxValue" : 40.0,
"name" : "[常规条件] 文本包含(%) (2)", "minValue" : 30.0,
"paramValue" : "2" "name" : "[数值范围] 大于等于 30.0 且 小于等于 40.0",
} ] "ruleInfo" : "数值必须大于等于[30.0]且小于等于[40.0]",
"includeMaxValue" : true,
"includeMinValue" : true
} ], } ],
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2" "ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
} ], } ],
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2" "ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2", "ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field8", "getPSDEFormItemName" : "field7",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule6", "codeName" : "ValueRule3",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3",
"name" : "field5值规则", "name" : "field2值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "SYSVALUERULE", "condType" : "REGEX",
"dEFName" : "FIELD5", "dEFName" : "FIELD2",
"name" : "[系统值规则]脚本值规则测试", "name" : "[正则式](^[0-9]*$)",
"getPSSysValueRule" : { "regExCode" : "^[0-9]*$",
"codeName" : "ValueRule20", "ruleInfo" : "只能写数字"
"dynaModelFilePath" : "PSSYSVALUERULES/ValueRule20.json",
"mOSFilePath" : "pssysvaluerules/ValueRule20",
"name" : "脚本值规则测试",
"rTMOSFilePath" : "pssysvaluerules/ValueRule20",
"ruleInfo" : "脚本校验",
"ruleType" : "SCRIPT",
"scriptCode" : "console.log(data);\nconsole.log(value);\nreturn false;",
"enableBackend" : true,
"enableFront" : true
},
"ruleInfo" : "脚本校验"
} ], } ],
"ruleInfo" : "脚本校验" "ruleInfo" : "只能写数字"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3",
"ruleInfo" : "脚本校验", "ruleInfo" : "只能写数字",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field5", "getPSDEFormItemName" : "field2",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
...@@ -231,53 +183,6 @@ ...@@ -231,53 +183,6 @@
}, },
"getPSDEFormItemName" : "amount", "getPSDEFormItemName" : "amount",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule8",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"name" : "field7值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 20.0,
"minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "数值必须大于等于[10.0]且小于等于[20.0]",
"includeMaxValue" : true,
"includeMinValue" : true
}, {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 40.0,
"minValue" : 30.0,
"name" : "[数值范围] 大于等于 30.0 且 小于等于 40.0",
"ruleInfo" : "数值必须大于等于[30.0]且小于等于[40.0]",
"includeMaxValue" : true,
"includeMinValue" : true
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field7",
"valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
...@@ -318,6 +223,69 @@ ...@@ -318,6 +223,69 @@
}, },
"getPSDEFormItemName" : "field4", "getPSDEFormItemName" : "field4",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule9",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9",
"name" : "field8值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "GT",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 大于(>) (20)",
"paramValue" : "20"
}, {
"condOp" : "NOTEQ",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 不等于(<>) (30)",
"paramValue" : "30"
} ]
}, {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ {
"condOp" : "GT",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 大于(>) (35)",
"paramValue" : "35"
}, {
"condOp" : "LIKE",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 文本包含(%) (2)",
"paramValue" : "2"
} ]
} ],
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2"
} ],
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9",
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field8",
"valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
...@@ -391,6 +359,38 @@ ...@@ -391,6 +359,38 @@
}, },
"getPSDEFormItemName" : "field3", "getPSDEFormItemName" : "field3",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule2",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2",
"name" : "field值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD",
"maxValue" : 20.0,
"minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "10<=field<=20",
"includeMaxValue" : true,
"includeMinValue" : true
} ],
"ruleInfo" : "10<=field<=20"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2",
"ruleInfo" : "10<=field<=20",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field",
"valueRuleType" : "DEFVALUERULE"
} ], } ],
"getPSDEFormItems" : [ { "getPSDEFormItems" : [ {
"id" : "srfupdatedate", "id" : "srfupdatedate",
......
...@@ -169,165 +169,117 @@ ...@@ -169,165 +169,117 @@
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule2", "codeName" : "ValueRule6",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6",
"name" : "field值规则", "name" : "field5值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2", "condType" : "SYSVALUERULE",
"dEFName" : "FIELD", "dEFName" : "FIELD5",
"maxValue" : 20.0, "name" : "[系统值规则]脚本值规则测试",
"minValue" : 10.0, "getPSSysValueRule" : {
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0", "codeName" : "ValueRule20",
"ruleInfo" : "10<=field<=20", "dynaModelFilePath" : "PSSYSVALUERULES/ValueRule20.json",
"includeMaxValue" : true, "mOSFilePath" : "pssysvaluerules/ValueRule20",
"includeMinValue" : true "name" : "脚本值规则测试",
} ], "rTMOSFilePath" : "pssysvaluerules/ValueRule20",
"ruleInfo" : "10<=field<=20" "ruleInfo" : "脚本校验",
}, "ruleType" : "SCRIPT",
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2", "scriptCode" : "console.log(data);\nconsole.log(value);\nreturn false;",
"ruleInfo" : "10<=field<=20",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field", "ruleInfo" : "脚本校验"
"valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule3",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3",
"name" : "field2值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condType" : "REGEX",
"dEFName" : "FIELD2",
"name" : "[正则式](^[0-9]*$)",
"regExCode" : "^[0-9]*$",
"ruleInfo" : "只能写数字"
} ], } ],
"ruleInfo" : "只能写数字" "ruleInfo" : "脚本校验"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6",
"ruleInfo" : "只能写数字", "ruleInfo" : "脚本校验",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field2", "getPSDEFormItemName" : "field5",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule9", "codeName" : "ValueRule8",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"name" : "field8值规则", "name" : "field7值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "GT",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 大于(>) (20)",
"paramValue" : "20"
}, {
"condOp" : "NOTEQ",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 不等于(<>) (30)",
"paramValue" : "30"
} ]
}, {
"condOp" : "OR", "condOp" : "OR",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "[条件组]OR", "name" : "[条件组]OR",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condOp" : "GT", "condType" : "VALUERANGE2",
"condType" : "SIMPLE", "dEFName" : "FIELD7",
"dEFName" : "FIELD8", "maxValue" : 20.0,
"name" : "[常规条件] 大于(>) (35)", "minValue" : 10.0,
"paramValue" : "35" "name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "数值必须大于等于[10.0]且小于等于[20.0]",
"includeMaxValue" : true,
"includeMinValue" : true
}, { }, {
"condOp" : "LIKE", "condType" : "VALUERANGE2",
"condType" : "SIMPLE", "dEFName" : "FIELD7",
"dEFName" : "FIELD8", "maxValue" : 40.0,
"name" : "[常规条件] 文本包含(%) (2)", "minValue" : 30.0,
"paramValue" : "2" "name" : "[数值范围] 大于等于 30.0 且 小于等于 40.0",
} ] "ruleInfo" : "数值必须大于等于[30.0]且小于等于[40.0]",
"includeMaxValue" : true,
"includeMinValue" : true
} ], } ],
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2" "ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
} ], } ],
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2" "ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2", "ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field8", "getPSDEFormItemName" : "field7",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule6", "codeName" : "ValueRule3",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3",
"name" : "field5值规则", "name" : "field2值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "SYSVALUERULE", "condType" : "REGEX",
"dEFName" : "FIELD5", "dEFName" : "FIELD2",
"name" : "[系统值规则]脚本值规则测试", "name" : "[正则式](^[0-9]*$)",
"getPSSysValueRule" : { "regExCode" : "^[0-9]*$",
"codeName" : "ValueRule20", "ruleInfo" : "只能写数字"
"dynaModelFilePath" : "PSSYSVALUERULES/ValueRule20.json",
"mOSFilePath" : "pssysvaluerules/ValueRule20",
"name" : "脚本值规则测试",
"rTMOSFilePath" : "pssysvaluerules/ValueRule20",
"ruleInfo" : "脚本校验",
"ruleType" : "SCRIPT",
"scriptCode" : "console.log(data);\nconsole.log(value);\nreturn false;",
"enableBackend" : true,
"enableFront" : true
},
"ruleInfo" : "脚本校验"
} ], } ],
"ruleInfo" : "脚本校验" "ruleInfo" : "只能写数字"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3",
"ruleInfo" : "脚本校验", "ruleInfo" : "只能写数字",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field5", "getPSDEFormItemName" : "field2",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
...@@ -360,53 +312,6 @@ ...@@ -360,53 +312,6 @@
}, },
"getPSDEFormItemName" : "amount", "getPSDEFormItemName" : "amount",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule8",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"name" : "field7值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 20.0,
"minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "数值必须大于等于[10.0]且小于等于[20.0]",
"includeMaxValue" : true,
"includeMinValue" : true
}, {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 40.0,
"minValue" : 30.0,
"name" : "[数值范围] 大于等于 30.0 且 小于等于 40.0",
"ruleInfo" : "数值必须大于等于[30.0]且小于等于[40.0]",
"includeMaxValue" : true,
"includeMinValue" : true
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field7",
"valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
...@@ -447,6 +352,69 @@ ...@@ -447,6 +352,69 @@
}, },
"getPSDEFormItemName" : "field4", "getPSDEFormItemName" : "field4",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule9",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9",
"name" : "field8值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "GT",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 大于(>) (20)",
"paramValue" : "20"
}, {
"condOp" : "NOTEQ",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 不等于(<>) (30)",
"paramValue" : "30"
} ]
}, {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ {
"condOp" : "GT",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 大于(>) (35)",
"paramValue" : "35"
}, {
"condOp" : "LIKE",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 文本包含(%) (2)",
"paramValue" : "2"
} ]
} ],
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2"
} ],
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9",
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field8",
"valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
...@@ -520,6 +488,38 @@ ...@@ -520,6 +488,38 @@
}, },
"getPSDEFormItemName" : "field3", "getPSDEFormItemName" : "field3",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule2",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2",
"name" : "field值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD",
"maxValue" : 20.0,
"minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "10<=field<=20",
"includeMaxValue" : true,
"includeMinValue" : true
} ],
"ruleInfo" : "10<=field<=20"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2",
"ruleInfo" : "10<=field<=20",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field",
"valueRuleType" : "DEFVALUERULE"
} ], } ],
"getPSDEFormItems" : [ { "getPSDEFormItems" : [ {
"id" : "srfupdatedate", "id" : "srfupdatedate",
......
...@@ -1381,17 +1381,17 @@ ...@@ -1381,17 +1381,17 @@
"id" : "Get" "id" : "Get"
}, },
"getPSDEFIUpdateDetails" : [ { "getPSDEFIUpdateDetails" : [ {
"name" : "field14" "name" : "field17"
}, {
"name" : "type"
}, { }, {
"name" : "field13" "name" : "field13"
}, { }, {
"name" : "field17" "name" : "field11"
}, { }, {
"name" : "field8" "name" : "field14"
}, { }, {
"name" : "field11" "name" : "type"
}, {
"name" : "field8"
} ], } ],
"rTMOSFilePath" : "psdefiupdates/updateA" "rTMOSFilePath" : "psdefiupdates/updateA"
} ], } ],
...@@ -1541,6 +1541,9 @@ ...@@ -1541,6 +1541,9 @@
}, { }, {
"id" : "formitem3", "id" : "formitem3",
"dataType" : 25 "dataType" : 25
}, {
"id" : "formitem4",
"dataType" : 25
}, { }, {
"id" : "date", "id" : "date",
"dataType" : 5, "dataType" : 5,
...@@ -2153,6 +2156,39 @@ ...@@ -2153,6 +2156,39 @@
"rTMOSFilePath" : "psdeformdetail_formitems/formitem3", "rTMOSFilePath" : "psdeformdetail_formitems/formitem3",
"allowEmpty" : true, "allowEmpty" : true,
"showCaption" : true "showCaption" : true
}, {
"caption" : "评分器",
"codeName" : "formitem4",
"dataType" : 25,
"detailStyle" : "DEFAULT",
"detailType" : "FORMITEM",
"enableCond" : 3,
"ignoreInput" : 0,
"labelPos" : "LEFT",
"labelWidth" : 130,
"mOSFilePath" : "psdeformdetail_formitems/formitem4",
"name" : "formitem4",
"noPrivDisplayMode" : 1,
"getPSEditor" : {
"editorParams" : {
"colors" : "['#F7BA2A', '#F7BA2A', '#F7BA2A']",
"maxvalue" : "10",
"showtext" : "true",
"texts" : "['Extremely bad', 'Disappointed', 'Fair', 'Satisfied', 'Surprise']"
},
"editorType" : "RATING",
"maxValue" : 5.0,
"minValue" : 0.0,
"name" : "formitem4",
"stepValue" : 1.0
},
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"rTMOSFilePath" : "psdeformdetail_formitems/formitem4",
"allowEmpty" : true,
"showCaption" : true
}, { }, {
"actionGroupExtractMode" : "ITEM", "actionGroupExtractMode" : "ITEM",
"caption" : "时间选择器", "caption" : "时间选择器",
......
...@@ -16828,165 +16828,117 @@ ...@@ -16828,165 +16828,117 @@
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule2", "codeName" : "ValueRule6",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6",
"name" : "field值规则", "name" : "field5值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2", "condType" : "SYSVALUERULE",
"dEFName" : "FIELD", "dEFName" : "FIELD5",
"maxValue" : 20.0, "name" : "[系统值规则]脚本值规则测试",
"minValue" : 10.0, "getPSSysValueRule" : {
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0", "codeName" : "ValueRule20",
"ruleInfo" : "10<=field<=20", "dynaModelFilePath" : "PSSYSVALUERULES/ValueRule20.json",
"includeMaxValue" : true, "mOSFilePath" : "pssysvaluerules/ValueRule20",
"includeMinValue" : true "name" : "脚本值规则测试",
} ], "rTMOSFilePath" : "pssysvaluerules/ValueRule20",
"ruleInfo" : "10<=field<=20" "ruleInfo" : "脚本校验",
}, "ruleType" : "SCRIPT",
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2", "scriptCode" : "console.log(data);\nconsole.log(value);\nreturn false;",
"ruleInfo" : "10<=field<=20",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field", "ruleInfo" : "脚本校验"
"valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule3",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3",
"name" : "field2值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condType" : "REGEX",
"dEFName" : "FIELD2",
"name" : "[正则式](^[0-9]*$)",
"regExCode" : "^[0-9]*$",
"ruleInfo" : "只能写数字"
} ], } ],
"ruleInfo" : "只能写数字" "ruleInfo" : "脚本校验"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6",
"ruleInfo" : "只能写数字", "ruleInfo" : "脚本校验",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field2", "getPSDEFormItemName" : "field5",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule9", "codeName" : "ValueRule8",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"name" : "field8值规则", "name" : "field7值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "GT",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 大于(>) (20)",
"paramValue" : "20"
}, {
"condOp" : "NOTEQ",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 不等于(<>) (30)",
"paramValue" : "30"
} ]
}, {
"condOp" : "OR", "condOp" : "OR",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "[条件组]OR", "name" : "[条件组]OR",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condOp" : "GT", "condType" : "VALUERANGE2",
"condType" : "SIMPLE", "dEFName" : "FIELD7",
"dEFName" : "FIELD8", "maxValue" : 20.0,
"name" : "[常规条件] 大于(>) (35)", "minValue" : 10.0,
"paramValue" : "35" "name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "数值必须大于等于[10.0]且小于等于[20.0]",
"includeMaxValue" : true,
"includeMinValue" : true
}, { }, {
"condOp" : "LIKE", "condType" : "VALUERANGE2",
"condType" : "SIMPLE", "dEFName" : "FIELD7",
"dEFName" : "FIELD8", "maxValue" : 40.0,
"name" : "[常规条件] 文本包含(%) (2)", "minValue" : 30.0,
"paramValue" : "2" "name" : "[数值范围] 大于等于 30.0 且 小于等于 40.0",
} ] "ruleInfo" : "数值必须大于等于[30.0]且小于等于[40.0]",
"includeMaxValue" : true,
"includeMinValue" : true
} ], } ],
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2" "ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
} ], } ],
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2" "ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2", "ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field8", "getPSDEFormItemName" : "field7",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule6", "codeName" : "ValueRule3",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3",
"name" : "field5值规则", "name" : "field2值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "SYSVALUERULE", "condType" : "REGEX",
"dEFName" : "FIELD5", "dEFName" : "FIELD2",
"name" : "[系统值规则]脚本值规则测试", "name" : "[正则式](^[0-9]*$)",
"getPSSysValueRule" : { "regExCode" : "^[0-9]*$",
"codeName" : "ValueRule20", "ruleInfo" : "只能写数字"
"dynaModelFilePath" : "PSSYSVALUERULES/ValueRule20.json",
"mOSFilePath" : "pssysvaluerules/ValueRule20",
"name" : "脚本值规则测试",
"rTMOSFilePath" : "pssysvaluerules/ValueRule20",
"ruleInfo" : "脚本校验",
"ruleType" : "SCRIPT",
"scriptCode" : "console.log(data);\nconsole.log(value);\nreturn false;",
"enableBackend" : true,
"enableFront" : true
},
"ruleInfo" : "脚本校验"
} ], } ],
"ruleInfo" : "脚本校验" "ruleInfo" : "只能写数字"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3",
"ruleInfo" : "脚本校验", "ruleInfo" : "只能写数字",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field5", "getPSDEFormItemName" : "field2",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
...@@ -17019,53 +16971,6 @@ ...@@ -17019,53 +16971,6 @@
}, },
"getPSDEFormItemName" : "amount", "getPSDEFormItemName" : "amount",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule8",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"name" : "field7值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 20.0,
"minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "数值必须大于等于[10.0]且小于等于[20.0]",
"includeMaxValue" : true,
"includeMinValue" : true
}, {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 40.0,
"minValue" : 30.0,
"name" : "[数值范围] 大于等于 30.0 且 小于等于 40.0",
"ruleInfo" : "数值必须大于等于[30.0]且小于等于[40.0]",
"includeMaxValue" : true,
"includeMinValue" : true
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field7",
"valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
...@@ -17106,6 +17011,69 @@ ...@@ -17106,6 +17011,69 @@
}, },
"getPSDEFormItemName" : "field4", "getPSDEFormItemName" : "field4",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule9",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9",
"name" : "field8值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "GT",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 大于(>) (20)",
"paramValue" : "20"
}, {
"condOp" : "NOTEQ",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 不等于(<>) (30)",
"paramValue" : "30"
} ]
}, {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ {
"condOp" : "GT",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 大于(>) (35)",
"paramValue" : "35"
}, {
"condOp" : "LIKE",
"condType" : "SIMPLE",
"dEFName" : "FIELD8",
"name" : "[常规条件] 文本包含(%) (2)",
"paramValue" : "2"
} ]
} ],
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2"
} ],
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9",
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field8",
"valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
...@@ -17179,6 +17147,38 @@ ...@@ -17179,6 +17147,38 @@
}, },
"getPSDEFormItemName" : "field3", "getPSDEFormItemName" : "field3",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule2",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2",
"name" : "field值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD",
"maxValue" : 20.0,
"minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "10<=field<=20",
"includeMaxValue" : true,
"includeMinValue" : true
} ],
"ruleInfo" : "10<=field<=20"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2",
"ruleInfo" : "10<=field<=20",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field",
"valueRuleType" : "DEFVALUERULE"
} ], } ],
"getPSDEFormItems" : [ { "getPSDEFormItems" : [ {
"id" : "srfupdatedate", "id" : "srfupdatedate",
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册