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

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

上级 69cb692a
...@@ -1219,16 +1219,16 @@ ...@@ -1219,16 +1219,16 @@
"mOSFilePath" : "pssysapps/TemplatePublish/psappviewmsggroups/VMGroup2", "mOSFilePath" : "pssysapps/TemplatePublish/psappviewmsggroups/VMGroup2",
"name" : "视图消息组2", "name" : "视图消息组2",
"getPSAppViewMsgGroupDetails" : [ { "getPSAppViewMsgGroupDetails" : [ {
"name" : "视图消息2", "name" : "视图消息",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg3" "id" : "ViewMsg2"
} }
}, { }, {
"name" : "视图消息", "name" : "视图消息2",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg2" "id" : "ViewMsg3"
} }
} ], } ],
"rTMOSFilePath" : "pssysapps/TemplatePublish/psappviewmsggroups/VMGroup2" "rTMOSFilePath" : "pssysapps/TemplatePublish/psappviewmsggroups/VMGroup2"
......
...@@ -1954,26 +1954,30 @@ ...@@ -1954,26 +1954,30 @@
"logicNodeType" : "BEGIN", "logicNodeType" : "BEGIN",
"mOSFilePath" : "psappdeuilogicnodes/Begin", "mOSFilePath" : "psappdeuilogicnodes/Begin",
"name" : "开始", "name" : "开始",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "BINDPARAM1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "Begin"
}
} ],
"rTMOSFilePath" : "psappdeuilogicnodes/Begin", "rTMOSFilePath" : "psappdeuilogicnodes/Begin",
"topPos" : 200, "topPos" : 200,
"parallelOutput" : true "parallelOutput" : true
}, { }, {
"codeName" : "VIEWCTRLINVOKE2", "codeName" : "END1",
"getInvokeCtrl" : { "leftPos" : 546,
"modelref" : true, "logicNodeType" : "END",
"id" : "grid" "mOSFilePath" : "psappdeuilogicnodes/END1",
}, "name" : "结束",
"invokeMethod" : "load", "rTMOSFilePath" : "psappdeuilogicnodes/END1",
"getInvokeParam" : { "returnType" : "NONEVALUE",
"modelref" : true, "topPos" : 726
"id" : "viewParams"
},
"leftPos" : 370,
"logicNodeType" : "VIEWCTRLINVOKE",
"mOSFilePath" : "psappdeuilogicnodes/VIEWCTRLINVOKE2",
"name" : "表格部件加载",
"rTMOSFilePath" : "psappdeuilogicnodes/VIEWCTRLINVOKE2",
"topPos" : 572
}, { }, {
"codeName" : "VIEWCTRLINVOKE1", "codeName" : "VIEWCTRLINVOKE1",
"getInvokeCtrl" : { "getInvokeCtrl" : {
...@@ -1989,48 +1993,128 @@ ...@@ -1989,48 +1993,128 @@
"logicNodeType" : "VIEWCTRLINVOKE", "logicNodeType" : "VIEWCTRLINVOKE",
"mOSFilePath" : "psappdeuilogicnodes/VIEWCTRLINVOKE1", "mOSFilePath" : "psappdeuilogicnodes/VIEWCTRLINVOKE1",
"name" : "搜索表单加载草稿", "name" : "搜索表单加载草稿",
"rTMOSFilePath" : "psappdeuilogicnodes/VIEWCTRLINVOKE1", "getPSDEUILogicLinks" : [ {
"topPos" : 420 "getDstPSDEUILogicNode" : {
}, {
"codeName" : "VIEWCTRLFIREEVENT1",
"eventName" : "onLoadSuccess",
"getEventParam" : {
"modelref" : true, "modelref" : true,
"id" : "Default" "id" : "VIEWCTRLINVOKE2"
}, },
"getFireCtrl" : { "linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true, "modelref" : true,
"id" : "grid" "id" : "VIEWCTRLINVOKE1"
}, }
"leftPos" : 790, } ],
"logicNodeType" : "VIEWCTRLFIREEVENT", "rTMOSFilePath" : "psappdeuilogicnodes/VIEWCTRLINVOKE1",
"mOSFilePath" : "psappdeuilogicnodes/VIEWCTRLFIREEVENT1", "topPos" : 420
"name" : "视图部件事件触发",
"rTMOSFilePath" : "psappdeuilogicnodes/VIEWCTRLFIREEVENT1",
"topPos" : 430
}, { }, {
"codeName" : "BINDPARAM1", "codeName" : "BINDPARAM1",
"getDstPSDEUILogicParam" : { "getDstPSDEUILogicParam" : {
"modelref" : true, "modelref" : true,
"id" : "searchForm" "id" : "searchForm"
}, },
"leftPos" : 639, "leftPos" : 506,
"logicNodeType" : "BINDPARAM", "logicNodeType" : "BINDPARAM",
"mOSFilePath" : "psappdeuilogicnodes/BINDPARAM1", "mOSFilePath" : "psappdeuilogicnodes/BINDPARAM1",
"name" : "绑定参数", "name" : "绑定参数",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE1"
},
"linkMode" : 0,
"name" : "连接名称",
"getPSDEUILogicLinkGroupCond" : {
"groupOP" : "AND",
"logicType" : "GROUP",
"getPSDEUILogicLinkConds" : [ {
"condOP" : "ISNOTNULL",
"getDstLogicParam" : {
"modelref" : true,
"id" : "searchForm"
},
"logicType" : "SINGLE",
"name" : "searchForm 值不为空(NotNil)"
} ]
},
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "BINDPARAM1"
}
}, {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE2"
},
"linkMode" : 0,
"name" : "连接名称",
"getPSDEUILogicLinkGroupCond" : {
"groupOP" : "AND",
"logicType" : "GROUP",
"getPSDEUILogicLinkConds" : [ {
"condOP" : "ISNULL",
"getDstLogicParam" : {
"modelref" : true,
"id" : "searchForm"
},
"logicType" : "SINGLE",
"name" : "searchForm 值为空(Nil)"
} ]
},
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "BINDPARAM1"
}
} ],
"rTMOSFilePath" : "psappdeuilogicnodes/BINDPARAM1", "rTMOSFilePath" : "psappdeuilogicnodes/BINDPARAM1",
"getSrcPSDEUILogicParam" : { "getSrcPSDEUILogicParam" : {
"modelref" : true, "modelref" : true,
"id" : "view" "id" : "view"
}, },
"topPos" : 216 "topPos" : 188
}, {
"codeName" : "VIEWCTRLINVOKE2",
"getInvokeCtrl" : {
"modelref" : true,
"id" : "grid"
},
"invokeMethod" : "load",
"getInvokeParam" : {
"modelref" : true,
"id" : "viewParams"
},
"leftPos" : 506,
"logicNodeType" : "VIEWCTRLINVOKE",
"mOSFilePath" : "psappdeuilogicnodes/VIEWCTRLINVOKE2",
"name" : "表格部件加载",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "END1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE2"
}
} ],
"rTMOSFilePath" : "psappdeuilogicnodes/VIEWCTRLINVOKE2",
"topPos" : 572
} ], } ],
"getPSDEUILogicParams" : [ { "getPSDEUILogicParams" : [ {
"codeName" : "grid", "codeName" : "viewParams",
"logicName" : "表格部件", "logicName" : "视图参数",
"mOSFilePath" : "psappdeuilogicparams/grid", "mOSFilePath" : "psappdeuilogicparams/viewParams",
"name" : "表格部件", "name" : "视图参数",
"rTMOSFilePath" : "psappdeuilogicparams/grid", "rTMOSFilePath" : "psappdeuilogicparams/viewParams",
"viewNavDataParam" : true
}, {
"codeName" : "searchForm",
"logicName" : "搜索表单部件",
"mOSFilePath" : "psappdeuilogicparams/searchForm",
"name" : "搜索表单部件",
"rTMOSFilePath" : "psappdeuilogicparams/searchForm",
"ctrlParam" : true "ctrlParam" : true
}, { }, {
"codeName" : "view", "codeName" : "view",
...@@ -2048,19 +2132,12 @@ ...@@ -2048,19 +2132,12 @@
"default" : true, "default" : true,
"entityParam" : true "entityParam" : true
}, { }, {
"codeName" : "searchForm", "codeName" : "grid",
"logicName" : "搜索表单部件", "logicName" : "表格部件",
"mOSFilePath" : "psappdeuilogicparams/searchForm", "mOSFilePath" : "psappdeuilogicparams/grid",
"name" : "搜索表单部件", "name" : "表格部件",
"rTMOSFilePath" : "psappdeuilogicparams/searchForm", "rTMOSFilePath" : "psappdeuilogicparams/grid",
"ctrlParam" : true "ctrlParam" : true
}, {
"codeName" : "viewParams",
"logicName" : "视图参数",
"mOSFilePath" : "psappdeuilogicparams/viewParams",
"name" : "视图参数",
"rTMOSFilePath" : "psappdeuilogicparams/viewParams",
"viewNavDataParam" : true
} ], } ],
"rTMOSFilePath" : "pssysapps/Web/psappdataentities/TEST/psappdeuilogics/CustomGridLoad", "rTMOSFilePath" : "pssysapps/Web/psappdataentities/TEST/psappdeuilogics/CustomGridLoad",
"getStartPSDEUILogicNode" : { "getStartPSDEUILogicNode" : {
......
...@@ -40,88 +40,62 @@ ...@@ -40,88 +40,62 @@
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule8", "codeName" : "ValueRule2",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2",
"name" : "field7值规则", "name" : "field值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2", "condType" : "VALUERANGE2",
"dEFName" : "FIELD7", "dEFName" : "FIELD",
"maxValue" : 20.0, "maxValue" : 20.0,
"minValue" : 10.0, "minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0", "name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "数值必须大于等于[10.0]且小于等于[20.0]", "ruleInfo" : "10<=field<=20",
"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, "includeMaxValue" : true,
"includeMinValue" : true "includeMinValue" : true
} ], } ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])" "ruleInfo" : "10<=field<=20"
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2",
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])", "ruleInfo" : "10<=field<=20",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field7", "getPSDEFormItemName" : "field",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule5", "codeName" : "ValueRule3",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3",
"name" : "field4值规则", "name" : "field2值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "SYSVALUERULE", "condType" : "REGEX",
"dEFName" : "FIELD4", "dEFName" : "FIELD2",
"name" : "[系统值规则]URL", "name" : "[正则式](^[0-9]*$)",
"getPSSysValueRule" : { "regExCode" : "^[0-9]*$",
"codeName" : "ValueRule17", "ruleInfo" : "只能写数字"
"dynaModelFilePath" : "PSSYSVALUERULES/ValueRule17.json",
"mOSFilePath" : "pssysvaluerules/ValueRule17",
"name" : "URL",
"rTMOSFilePath" : "pssysvaluerules/ValueRule17",
"regExCode" : "[a-zA-z]+://(\\w+(-\\w+)*)(\\.(\\w+(-\\w+)*))*(\\?\\S*)?",
"ruleInfo" : "内容必须为有效URL格式",
"ruleType" : "REG",
"enableBackend" : true,
"enableFront" : true
},
"ruleInfo" : "内容必须为有效URL格式"
} ], } ],
"ruleInfo" : "内容必须为有效URL格式" "ruleInfo" : "只能写数字"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3",
"ruleInfo" : "内容必须为有效URL格式", "ruleInfo" : "只能写数字",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field4", "getPSDEFormItemName" : "field2",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
...@@ -158,238 +132,264 @@ ...@@ -158,238 +132,264 @@
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule4", "codeName" : "ValueRule9",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD3/psdefvaluerules/ValueRule4", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9",
"name" : "field3值规则", "name" : "field8值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "STRINGLENGTH", "condOp" : "AND",
"dEFName" : "FIELD3", "condType" : "GROUP",
"maxValue" : 15, "name" : "[条件组]AND",
"minValue" : 5, "getPSDEFVRConditions" : [ {
"name" : "[字符长度] 大于等于 5 且 小于等于 15", "condOp" : "AND",
"ruleInfo" : "5<=field3字符长度<=15", "condType" : "GROUP",
"includeMaxValue" : true, "name" : "[条件组]AND",
"includeMinValue" : true "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" : "5<=field3字符长度<=15" "ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2"
} ],
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD3/psdefvaluerules/ValueRule4", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9",
"ruleInfo" : "5<=field3字符长度<=15", "ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field3", "getPSDEFormItemName" : "field8",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule6", "codeName" : "ValueRule7",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"name" : "field5值规则", "name" : "field6值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "SYSVALUERULE", "condOp" : "AND",
"dEFName" : "FIELD5", "condType" : "GROUP",
"name" : "[系统值规则]脚本值规则测试", "name" : "[条件组]AND",
"getPSSysValueRule" : { "getPSDEFVRConditions" : [ {
"codeName" : "ValueRule20", "condOp" : "NOTEQ",
"dynaModelFilePath" : "PSSYSVALUERULES/ValueRule20.json", "condType" : "SIMPLE",
"mOSFilePath" : "pssysvaluerules/ValueRule20", "dEFName" : "FIELD6",
"name" : "脚本值规则测试", "name" : "[常规条件] 不等于(<>) (20)",
"rTMOSFilePath" : "pssysvaluerules/ValueRule20", "paramValue" : "20"
"ruleInfo" : "脚本校验", }, {
"ruleType" : "SCRIPT", "condOp" : "GT",
"scriptCode" : "console.log(data);\nconsole.log(value);\nreturn false;", "condType" : "SIMPLE",
"enableBackend" : true, "dEFName" : "FIELD6",
"enableFront" : true "name" : "[常规条件] 大于(>) (5)",
}, "paramValue" : "5"
"ruleInfo" : "脚本校验"
} ], } ],
"ruleInfo" : "脚本校验" "ruleInfo" : ">5并且不等于20"
} ],
"ruleInfo" : ">5并且不等于20"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"ruleInfo" : "脚本校验", "ruleInfo" : ">5并且不等于20",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field5", "getPSDEFormItemName" : "field6",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule2", "codeName" : "ValueRule8",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"name" : "field值规则", "name" : "field7值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2", "condType" : "VALUERANGE2",
"dEFName" : "FIELD", "dEFName" : "FIELD7",
"maxValue" : 20.0, "maxValue" : 20.0,
"minValue" : 10.0, "minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0", "name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "10<=field<=20", "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, "includeMaxValue" : true,
"includeMinValue" : true "includeMinValue" : true
} ], } ],
"ruleInfo" : "10<=field<=20" "ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"ruleInfo" : "10<=field<=20", "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" : "field", "getPSDEFormItemName" : "field7",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule3", "codeName" : "ValueRule5",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5",
"name" : "field2值规则", "name" : "field4值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "REGEX", "condType" : "SYSVALUERULE",
"dEFName" : "FIELD2", "dEFName" : "FIELD4",
"name" : "[正则式](^[0-9]*$)", "name" : "[系统值规则]URL",
"regExCode" : "^[0-9]*$", "getPSSysValueRule" : {
"ruleInfo" : "只能写数字" "codeName" : "ValueRule17",
"dynaModelFilePath" : "PSSYSVALUERULES/ValueRule17.json",
"mOSFilePath" : "pssysvaluerules/ValueRule17",
"name" : "URL",
"rTMOSFilePath" : "pssysvaluerules/ValueRule17",
"regExCode" : "[a-zA-z]+://(\\w+(-\\w+)*)(\\.(\\w+(-\\w+)*))*(\\?\\S*)?",
"ruleInfo" : "内容必须为有效URL格式",
"ruleType" : "REG",
"enableBackend" : true,
"enableFront" : true
},
"ruleInfo" : "内容必须为有效URL格式"
} ], } ],
"ruleInfo" : "只能写数字" "ruleInfo" : "内容必须为有效URL格式"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5",
"ruleInfo" : "只能写数字", "ruleInfo" : "内容必须为有效URL格式",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field2", "getPSDEFormItemName" : "field4",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule9", "codeName" : "ValueRule4",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD3/psdefvaluerules/ValueRule4",
"name" : "field8值规则", "name" : "field3值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condOp" : "AND", "condType" : "STRINGLENGTH",
"condType" : "GROUP", "dEFName" : "FIELD3",
"name" : "[条件组]AND", "maxValue" : 15,
"getPSDEFVRConditions" : [ { "minValue" : 5,
"condOp" : "AND", "name" : "[字符长度] 大于等于 5 且 小于等于 15",
"condType" : "GROUP", "ruleInfo" : "5<=field3字符长度<=15",
"name" : "[条件组]AND", "includeMaxValue" : true,
"getPSDEFVRConditions" : [ { "includeMinValue" : true
"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" "ruleInfo" : "5<=field3字符长度<=15"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD3/psdefvaluerules/ValueRule4",
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2", "ruleInfo" : "5<=field3字符长度<=15",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field8", "getPSDEFormItemName" : "field3",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule7", "codeName" : "ValueRule6",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6",
"name" : "field6值规则", "name" : "field5值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condOp" : "AND", "condType" : "SYSVALUERULE",
"condType" : "GROUP", "dEFName" : "FIELD5",
"name" : "[条件组]AND", "name" : "[系统值规则]脚本值规则测试",
"getPSDEFVRConditions" : [ { "getPSSysValueRule" : {
"condOp" : "NOTEQ", "codeName" : "ValueRule20",
"condType" : "SIMPLE", "dynaModelFilePath" : "PSSYSVALUERULES/ValueRule20.json",
"dEFName" : "FIELD6", "mOSFilePath" : "pssysvaluerules/ValueRule20",
"name" : "[常规条件] 不等于(<>) (20)", "name" : "脚本值规则测试",
"paramValue" : "20" "rTMOSFilePath" : "pssysvaluerules/ValueRule20",
}, { "ruleInfo" : "脚本校验",
"condOp" : "GT", "ruleType" : "SCRIPT",
"condType" : "SIMPLE", "scriptCode" : "console.log(data);\nconsole.log(value);\nreturn false;",
"dEFName" : "FIELD6", "enableBackend" : true,
"name" : "[常规条件] 大于(>) (5)", "enableFront" : true
"paramValue" : "5" },
} ], "ruleInfo" : "脚本校验"
"ruleInfo" : ">5并且不等于20"
} ], } ],
"ruleInfo" : ">5并且不等于20" "ruleInfo" : "脚本校验"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6",
"ruleInfo" : ">5并且不等于20", "ruleInfo" : "脚本校验",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field6", "getPSDEFormItemName" : "field5",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
} ], } ],
"getPSDEFormItems" : [ { "getPSDEFormItems" : [ {
......
...@@ -173,6 +173,19 @@ ...@@ -173,6 +173,19 @@
"id" : "customtoolbar_deuiaction2" "id" : "customtoolbar_deuiaction2"
}, },
"getPSViewCtrlName" : "customtoolbar" "getPSViewCtrlName" : "customtoolbar"
}, {
"eventNames" : "onViewMounted",
"logicTrigger" : "VIEWEVENT",
"logicType" : "DEUILOGIC",
"name" : "LOADGRID",
"getPSAppDEUILogic" : {
"modelref" : true,
"id" : "CustomGridLoad"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/TEST.json"
}
} ], } ],
"getPSAppViewRefs" : [ { "getPSAppViewRefs" : [ {
"name" : "NEWDATA", "name" : "NEWDATA",
......
...@@ -169,88 +169,62 @@ ...@@ -169,88 +169,62 @@
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule8", "codeName" : "ValueRule2",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2",
"name" : "field7值规则", "name" : "field值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2", "condType" : "VALUERANGE2",
"dEFName" : "FIELD7", "dEFName" : "FIELD",
"maxValue" : 20.0, "maxValue" : 20.0,
"minValue" : 10.0, "minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0", "name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "数值必须大于等于[10.0]且小于等于[20.0]", "ruleInfo" : "10<=field<=20",
"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, "includeMaxValue" : true,
"includeMinValue" : true "includeMinValue" : true
} ], } ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])" "ruleInfo" : "10<=field<=20"
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2",
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])", "ruleInfo" : "10<=field<=20",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field7", "getPSDEFormItemName" : "field",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule5", "codeName" : "ValueRule3",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3",
"name" : "field4值规则", "name" : "field2值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "SYSVALUERULE", "condType" : "REGEX",
"dEFName" : "FIELD4", "dEFName" : "FIELD2",
"name" : "[系统值规则]URL", "name" : "[正则式](^[0-9]*$)",
"getPSSysValueRule" : { "regExCode" : "^[0-9]*$",
"codeName" : "ValueRule17", "ruleInfo" : "只能写数字"
"dynaModelFilePath" : "PSSYSVALUERULES/ValueRule17.json",
"mOSFilePath" : "pssysvaluerules/ValueRule17",
"name" : "URL",
"rTMOSFilePath" : "pssysvaluerules/ValueRule17",
"regExCode" : "[a-zA-z]+://(\\w+(-\\w+)*)(\\.(\\w+(-\\w+)*))*(\\?\\S*)?",
"ruleInfo" : "内容必须为有效URL格式",
"ruleType" : "REG",
"enableBackend" : true,
"enableFront" : true
},
"ruleInfo" : "内容必须为有效URL格式"
} ], } ],
"ruleInfo" : "内容必须为有效URL格式" "ruleInfo" : "只能写数字"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3",
"ruleInfo" : "内容必须为有效URL格式", "ruleInfo" : "只能写数字",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field4", "getPSDEFormItemName" : "field2",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
...@@ -287,238 +261,264 @@ ...@@ -287,238 +261,264 @@
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule4", "codeName" : "ValueRule9",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD3/psdefvaluerules/ValueRule4", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9",
"name" : "field3值规则", "name" : "field8值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "STRINGLENGTH", "condOp" : "AND",
"dEFName" : "FIELD3", "condType" : "GROUP",
"maxValue" : 15, "name" : "[条件组]AND",
"minValue" : 5, "getPSDEFVRConditions" : [ {
"name" : "[字符长度] 大于等于 5 且 小于等于 15", "condOp" : "AND",
"ruleInfo" : "5<=field3字符长度<=15", "condType" : "GROUP",
"includeMaxValue" : true, "name" : "[条件组]AND",
"includeMinValue" : true "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" : "5<=field3字符长度<=15" "ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2"
} ],
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD3/psdefvaluerules/ValueRule4", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9",
"ruleInfo" : "5<=field3字符长度<=15", "ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field3", "getPSDEFormItemName" : "field8",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule6", "codeName" : "ValueRule7",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"name" : "field5值规则", "name" : "field6值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "SYSVALUERULE", "condOp" : "AND",
"dEFName" : "FIELD5", "condType" : "GROUP",
"name" : "[系统值规则]脚本值规则测试", "name" : "[条件组]AND",
"getPSSysValueRule" : { "getPSDEFVRConditions" : [ {
"codeName" : "ValueRule20", "condOp" : "NOTEQ",
"dynaModelFilePath" : "PSSYSVALUERULES/ValueRule20.json", "condType" : "SIMPLE",
"mOSFilePath" : "pssysvaluerules/ValueRule20", "dEFName" : "FIELD6",
"name" : "脚本值规则测试", "name" : "[常规条件] 不等于(<>) (20)",
"rTMOSFilePath" : "pssysvaluerules/ValueRule20", "paramValue" : "20"
"ruleInfo" : "脚本校验", }, {
"ruleType" : "SCRIPT", "condOp" : "GT",
"scriptCode" : "console.log(data);\nconsole.log(value);\nreturn false;", "condType" : "SIMPLE",
"enableBackend" : true, "dEFName" : "FIELD6",
"enableFront" : true "name" : "[常规条件] 大于(>) (5)",
}, "paramValue" : "5"
"ruleInfo" : "脚本校验"
} ], } ],
"ruleInfo" : "脚本校验" "ruleInfo" : ">5并且不等于20"
} ],
"ruleInfo" : ">5并且不等于20"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"ruleInfo" : "脚本校验", "ruleInfo" : ">5并且不等于20",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field5", "getPSDEFormItemName" : "field6",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule2", "codeName" : "ValueRule8",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"name" : "field值规则", "name" : "field7值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2", "condType" : "VALUERANGE2",
"dEFName" : "FIELD", "dEFName" : "FIELD7",
"maxValue" : 20.0, "maxValue" : 20.0,
"minValue" : 10.0, "minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0", "name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "10<=field<=20", "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, "includeMaxValue" : true,
"includeMinValue" : true "includeMinValue" : true
} ], } ],
"ruleInfo" : "10<=field<=20" "ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"ruleInfo" : "10<=field<=20", "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" : "field", "getPSDEFormItemName" : "field7",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule3", "codeName" : "ValueRule5",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5",
"name" : "field2值规则", "name" : "field4值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "REGEX", "condType" : "SYSVALUERULE",
"dEFName" : "FIELD2", "dEFName" : "FIELD4",
"name" : "[正则式](^[0-9]*$)", "name" : "[系统值规则]URL",
"regExCode" : "^[0-9]*$", "getPSSysValueRule" : {
"ruleInfo" : "只能写数字" "codeName" : "ValueRule17",
"dynaModelFilePath" : "PSSYSVALUERULES/ValueRule17.json",
"mOSFilePath" : "pssysvaluerules/ValueRule17",
"name" : "URL",
"rTMOSFilePath" : "pssysvaluerules/ValueRule17",
"regExCode" : "[a-zA-z]+://(\\w+(-\\w+)*)(\\.(\\w+(-\\w+)*))*(\\?\\S*)?",
"ruleInfo" : "内容必须为有效URL格式",
"ruleType" : "REG",
"enableBackend" : true,
"enableFront" : true
},
"ruleInfo" : "内容必须为有效URL格式"
} ], } ],
"ruleInfo" : "只能写数字" "ruleInfo" : "内容必须为有效URL格式"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5",
"ruleInfo" : "只能写数字", "ruleInfo" : "内容必须为有效URL格式",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field2", "getPSDEFormItemName" : "field4",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule9", "codeName" : "ValueRule4",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD3/psdefvaluerules/ValueRule4",
"name" : "field8值规则", "name" : "field3值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condOp" : "AND", "condType" : "STRINGLENGTH",
"condType" : "GROUP", "dEFName" : "FIELD3",
"name" : "[条件组]AND", "maxValue" : 15,
"getPSDEFVRConditions" : [ { "minValue" : 5,
"condOp" : "AND", "name" : "[字符长度] 大于等于 5 且 小于等于 15",
"condType" : "GROUP", "ruleInfo" : "5<=field3字符长度<=15",
"name" : "[条件组]AND", "includeMaxValue" : true,
"getPSDEFVRConditions" : [ { "includeMinValue" : true
"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" "ruleInfo" : "5<=field3字符长度<=15"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD3/psdefvaluerules/ValueRule4",
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2", "ruleInfo" : "5<=field3字符长度<=15",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field8", "getPSDEFormItemName" : "field3",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule7", "codeName" : "ValueRule6",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6",
"name" : "field6值规则", "name" : "field5值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condOp" : "AND", "condType" : "SYSVALUERULE",
"condType" : "GROUP", "dEFName" : "FIELD5",
"name" : "[条件组]AND", "name" : "[系统值规则]脚本值规则测试",
"getPSDEFVRConditions" : [ { "getPSSysValueRule" : {
"condOp" : "NOTEQ", "codeName" : "ValueRule20",
"condType" : "SIMPLE", "dynaModelFilePath" : "PSSYSVALUERULES/ValueRule20.json",
"dEFName" : "FIELD6", "mOSFilePath" : "pssysvaluerules/ValueRule20",
"name" : "[常规条件] 不等于(<>) (20)", "name" : "脚本值规则测试",
"paramValue" : "20" "rTMOSFilePath" : "pssysvaluerules/ValueRule20",
}, { "ruleInfo" : "脚本校验",
"condOp" : "GT", "ruleType" : "SCRIPT",
"condType" : "SIMPLE", "scriptCode" : "console.log(data);\nconsole.log(value);\nreturn false;",
"dEFName" : "FIELD6", "enableBackend" : true,
"name" : "[常规条件] 大于(>) (5)", "enableFront" : true
"paramValue" : "5" },
} ], "ruleInfo" : "脚本校验"
"ruleInfo" : ">5并且不等于20"
} ], } ],
"ruleInfo" : ">5并且不等于20" "ruleInfo" : "脚本校验"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6",
"ruleInfo" : ">5并且不等于20", "ruleInfo" : "脚本校验",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field6", "getPSDEFormItemName" : "field5",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
} ], } ],
"getPSDEFormItems" : [ { "getPSDEFormItems" : [ {
......
...@@ -2400,16 +2400,16 @@ ...@@ -2400,16 +2400,16 @@
"mOSFilePath" : "pssysapps/Web/psappviewmsggroups/VMGroup2", "mOSFilePath" : "pssysapps/Web/psappviewmsggroups/VMGroup2",
"name" : "视图消息组2", "name" : "视图消息组2",
"getPSAppViewMsgGroupDetails" : [ { "getPSAppViewMsgGroupDetails" : [ {
"name" : "视图消息2", "name" : "视图消息",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg3" "id" : "ViewMsg2"
} }
}, { }, {
"name" : "视图消息", "name" : "视图消息2",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg2" "id" : "ViewMsg3"
} }
} ], } ],
"rTMOSFilePath" : "pssysapps/Web/psappviewmsggroups/VMGroup2" "rTMOSFilePath" : "pssysapps/Web/psappviewmsggroups/VMGroup2"
...@@ -18010,88 +18010,62 @@ ...@@ -18010,88 +18010,62 @@
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule8", "codeName" : "ValueRule2",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2",
"name" : "field7值规则", "name" : "field值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2", "condType" : "VALUERANGE2",
"dEFName" : "FIELD7", "dEFName" : "FIELD",
"maxValue" : 20.0, "maxValue" : 20.0,
"minValue" : 10.0, "minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0", "name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "数值必须大于等于[10.0]且小于等于[20.0]", "ruleInfo" : "10<=field<=20",
"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, "includeMaxValue" : true,
"includeMinValue" : true "includeMinValue" : true
} ], } ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])" "ruleInfo" : "10<=field<=20"
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2",
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])", "ruleInfo" : "10<=field<=20",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field7", "getPSDEFormItemName" : "field",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule5", "codeName" : "ValueRule3",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3",
"name" : "field4值规则", "name" : "field2值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "SYSVALUERULE", "condType" : "REGEX",
"dEFName" : "FIELD4", "dEFName" : "FIELD2",
"name" : "[系统值规则]URL", "name" : "[正则式](^[0-9]*$)",
"getPSSysValueRule" : { "regExCode" : "^[0-9]*$",
"codeName" : "ValueRule17", "ruleInfo" : "只能写数字"
"dynaModelFilePath" : "PSSYSVALUERULES/ValueRule17.json",
"mOSFilePath" : "pssysvaluerules/ValueRule17",
"name" : "URL",
"rTMOSFilePath" : "pssysvaluerules/ValueRule17",
"regExCode" : "[a-zA-z]+://(\\w+(-\\w+)*)(\\.(\\w+(-\\w+)*))*(\\?\\S*)?",
"ruleInfo" : "内容必须为有效URL格式",
"ruleType" : "REG",
"enableBackend" : true,
"enableFront" : true
},
"ruleInfo" : "内容必须为有效URL格式"
} ], } ],
"ruleInfo" : "内容必须为有效URL格式" "ruleInfo" : "只能写数字"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3",
"ruleInfo" : "内容必须为有效URL格式", "ruleInfo" : "只能写数字",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field4", "getPSDEFormItemName" : "field2",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
...@@ -18128,238 +18102,264 @@ ...@@ -18128,238 +18102,264 @@
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule4", "codeName" : "ValueRule9",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD3/psdefvaluerules/ValueRule4", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9",
"name" : "field3值规则", "name" : "field8值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "STRINGLENGTH", "condOp" : "AND",
"dEFName" : "FIELD3", "condType" : "GROUP",
"maxValue" : 15, "name" : "[条件组]AND",
"minValue" : 5, "getPSDEFVRConditions" : [ {
"name" : "[字符长度] 大于等于 5 且 小于等于 15", "condOp" : "AND",
"ruleInfo" : "5<=field3字符长度<=15", "condType" : "GROUP",
"includeMaxValue" : true, "name" : "[条件组]AND",
"includeMinValue" : true "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" : "5<=field3字符长度<=15" "ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2"
} ],
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD3/psdefvaluerules/ValueRule4", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9",
"ruleInfo" : "5<=field3字符长度<=15", "ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field3", "getPSDEFormItemName" : "field8",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule6", "codeName" : "ValueRule7",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"name" : "field5值规则", "name" : "field6值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "SYSVALUERULE", "condOp" : "AND",
"dEFName" : "FIELD5", "condType" : "GROUP",
"name" : "[系统值规则]脚本值规则测试", "name" : "[条件组]AND",
"getPSSysValueRule" : { "getPSDEFVRConditions" : [ {
"codeName" : "ValueRule20", "condOp" : "NOTEQ",
"dynaModelFilePath" : "PSSYSVALUERULES/ValueRule20.json", "condType" : "SIMPLE",
"mOSFilePath" : "pssysvaluerules/ValueRule20", "dEFName" : "FIELD6",
"name" : "脚本值规则测试", "name" : "[常规条件] 不等于(<>) (20)",
"rTMOSFilePath" : "pssysvaluerules/ValueRule20", "paramValue" : "20"
"ruleInfo" : "脚本校验", }, {
"ruleType" : "SCRIPT", "condOp" : "GT",
"scriptCode" : "console.log(data);\nconsole.log(value);\nreturn false;", "condType" : "SIMPLE",
"enableBackend" : true, "dEFName" : "FIELD6",
"enableFront" : true "name" : "[常规条件] 大于(>) (5)",
}, "paramValue" : "5"
"ruleInfo" : "脚本校验"
} ], } ],
"ruleInfo" : "脚本校验" "ruleInfo" : ">5并且不等于20"
} ],
"ruleInfo" : ">5并且不等于20"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"ruleInfo" : "脚本校验", "ruleInfo" : ">5并且不等于20",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field5", "getPSDEFormItemName" : "field6",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule2", "codeName" : "ValueRule8",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"name" : "field值规则", "name" : "field7值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2", "condType" : "VALUERANGE2",
"dEFName" : "FIELD", "dEFName" : "FIELD7",
"maxValue" : 20.0, "maxValue" : 20.0,
"minValue" : 10.0, "minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0", "name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "10<=field<=20", "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, "includeMaxValue" : true,
"includeMinValue" : true "includeMinValue" : true
} ], } ],
"ruleInfo" : "10<=field<=20" "ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"ruleInfo" : "10<=field<=20", "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" : "field", "getPSDEFormItemName" : "field7",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule3", "codeName" : "ValueRule5",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5",
"name" : "field2值规则", "name" : "field4值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condType" : "REGEX", "condType" : "SYSVALUERULE",
"dEFName" : "FIELD2", "dEFName" : "FIELD4",
"name" : "[正则式](^[0-9]*$)", "name" : "[系统值规则]URL",
"regExCode" : "^[0-9]*$", "getPSSysValueRule" : {
"ruleInfo" : "只能写数字" "codeName" : "ValueRule17",
"dynaModelFilePath" : "PSSYSVALUERULES/ValueRule17.json",
"mOSFilePath" : "pssysvaluerules/ValueRule17",
"name" : "URL",
"rTMOSFilePath" : "pssysvaluerules/ValueRule17",
"regExCode" : "[a-zA-z]+://(\\w+(-\\w+)*)(\\.(\\w+(-\\w+)*))*(\\?\\S*)?",
"ruleInfo" : "内容必须为有效URL格式",
"ruleType" : "REG",
"enableBackend" : true,
"enableFront" : true
},
"ruleInfo" : "内容必须为有效URL格式"
} ], } ],
"ruleInfo" : "只能写数字" "ruleInfo" : "内容必须为有效URL格式"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD2/psdefvaluerules/ValueRule3", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5",
"ruleInfo" : "只能写数字", "ruleInfo" : "内容必须为有效URL格式",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field2", "getPSDEFormItemName" : "field4",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule9", "codeName" : "ValueRule4",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD3/psdefvaluerules/ValueRule4",
"name" : "field8值规则", "name" : "field3值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condOp" : "AND", "condType" : "STRINGLENGTH",
"condType" : "GROUP", "dEFName" : "FIELD3",
"name" : "[条件组]AND", "maxValue" : 15,
"getPSDEFVRConditions" : [ { "minValue" : 5,
"condOp" : "AND", "name" : "[字符长度] 大于等于 5 且 小于等于 15",
"condType" : "GROUP", "ruleInfo" : "5<=field3字符长度<=15",
"name" : "[条件组]AND", "includeMaxValue" : true,
"getPSDEFVRConditions" : [ { "includeMinValue" : true
"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" "ruleInfo" : "5<=field3字符长度<=15"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD8/psdefvaluerules/ValueRule9", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD3/psdefvaluerules/ValueRule4",
"ruleInfo" : "20<field8并且不等于30,并且在35以上或者文本包含2", "ruleInfo" : "5<=field3字符长度<=15",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field8", "getPSDEFormItemName" : "field3",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
"codeName" : "ValueRule7", "codeName" : "ValueRule6",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7", "mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6",
"name" : "field6值规则", "name" : "field5值规则",
"getPSDEFVRGroupCondition" : { "getPSDEFVRGroupCondition" : {
"condOp" : "AND", "condOp" : "AND",
"condType" : "GROUP", "condType" : "GROUP",
"name" : "默认组", "name" : "默认组",
"getPSDEFVRConditions" : [ { "getPSDEFVRConditions" : [ {
"condOp" : "AND", "condType" : "SYSVALUERULE",
"condType" : "GROUP", "dEFName" : "FIELD5",
"name" : "[条件组]AND", "name" : "[系统值规则]脚本值规则测试",
"getPSDEFVRConditions" : [ { "getPSSysValueRule" : {
"condOp" : "NOTEQ", "codeName" : "ValueRule20",
"condType" : "SIMPLE", "dynaModelFilePath" : "PSSYSVALUERULES/ValueRule20.json",
"dEFName" : "FIELD6", "mOSFilePath" : "pssysvaluerules/ValueRule20",
"name" : "[常规条件] 不等于(<>) (20)", "name" : "脚本值规则测试",
"paramValue" : "20" "rTMOSFilePath" : "pssysvaluerules/ValueRule20",
}, { "ruleInfo" : "脚本校验",
"condOp" : "GT", "ruleType" : "SCRIPT",
"condType" : "SIMPLE", "scriptCode" : "console.log(data);\nconsole.log(value);\nreturn false;",
"dEFName" : "FIELD6", "enableBackend" : true,
"name" : "[常规条件] 大于(>) (5)", "enableFront" : true
"paramValue" : "5" },
} ], "ruleInfo" : "脚本校验"
"ruleInfo" : ">5并且不等于20"
} ], } ],
"ruleInfo" : ">5并且不等于20" "ruleInfo" : "脚本校验"
}, },
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7", "rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6",
"ruleInfo" : ">5并且不等于20", "ruleInfo" : "脚本校验",
"checkDefault" : false, "checkDefault" : false,
"defaultMode" : false, "defaultMode" : false,
"enableBackend" : true, "enableBackend" : true,
"enableFront" : true "enableFront" : true
}, },
"getPSDEFormItemName" : "field6", "getPSDEFormItemName" : "field5",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
} ], } ],
"getPSDEFormItems" : [ { "getPSDEFormItems" : [ {
...@@ -28551,26 +28551,30 @@ ...@@ -28551,26 +28551,30 @@
"logicNodeType" : "BEGIN", "logicNodeType" : "BEGIN",
"mOSFilePath" : "psappdeuilogicnodes/Begin", "mOSFilePath" : "psappdeuilogicnodes/Begin",
"name" : "开始", "name" : "开始",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "BINDPARAM1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "Begin"
}
} ],
"rTMOSFilePath" : "psappdeuilogicnodes/Begin", "rTMOSFilePath" : "psappdeuilogicnodes/Begin",
"topPos" : 200, "topPos" : 200,
"parallelOutput" : true "parallelOutput" : true
}, { }, {
"codeName" : "VIEWCTRLINVOKE2", "codeName" : "END1",
"getInvokeCtrl" : { "leftPos" : 546,
"modelref" : true, "logicNodeType" : "END",
"id" : "grid" "mOSFilePath" : "psappdeuilogicnodes/END1",
}, "name" : "结束",
"invokeMethod" : "load", "rTMOSFilePath" : "psappdeuilogicnodes/END1",
"getInvokeParam" : { "returnType" : "NONEVALUE",
"modelref" : true, "topPos" : 726
"id" : "viewParams"
},
"leftPos" : 370,
"logicNodeType" : "VIEWCTRLINVOKE",
"mOSFilePath" : "psappdeuilogicnodes/VIEWCTRLINVOKE2",
"name" : "表格部件加载",
"rTMOSFilePath" : "psappdeuilogicnodes/VIEWCTRLINVOKE2",
"topPos" : 572
}, { }, {
"codeName" : "VIEWCTRLINVOKE1", "codeName" : "VIEWCTRLINVOKE1",
"getInvokeCtrl" : { "getInvokeCtrl" : {
...@@ -28586,48 +28590,128 @@ ...@@ -28586,48 +28590,128 @@
"logicNodeType" : "VIEWCTRLINVOKE", "logicNodeType" : "VIEWCTRLINVOKE",
"mOSFilePath" : "psappdeuilogicnodes/VIEWCTRLINVOKE1", "mOSFilePath" : "psappdeuilogicnodes/VIEWCTRLINVOKE1",
"name" : "搜索表单加载草稿", "name" : "搜索表单加载草稿",
"rTMOSFilePath" : "psappdeuilogicnodes/VIEWCTRLINVOKE1", "getPSDEUILogicLinks" : [ {
"topPos" : 420 "getDstPSDEUILogicNode" : {
}, {
"codeName" : "VIEWCTRLFIREEVENT1",
"eventName" : "onLoadSuccess",
"getEventParam" : {
"modelref" : true, "modelref" : true,
"id" : "Default" "id" : "VIEWCTRLINVOKE2"
}, },
"getFireCtrl" : { "linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true, "modelref" : true,
"id" : "grid" "id" : "VIEWCTRLINVOKE1"
}, }
"leftPos" : 790, } ],
"logicNodeType" : "VIEWCTRLFIREEVENT", "rTMOSFilePath" : "psappdeuilogicnodes/VIEWCTRLINVOKE1",
"mOSFilePath" : "psappdeuilogicnodes/VIEWCTRLFIREEVENT1", "topPos" : 420
"name" : "视图部件事件触发",
"rTMOSFilePath" : "psappdeuilogicnodes/VIEWCTRLFIREEVENT1",
"topPos" : 430
}, { }, {
"codeName" : "BINDPARAM1", "codeName" : "BINDPARAM1",
"getDstPSDEUILogicParam" : { "getDstPSDEUILogicParam" : {
"modelref" : true, "modelref" : true,
"id" : "searchForm" "id" : "searchForm"
}, },
"leftPos" : 639, "leftPos" : 506,
"logicNodeType" : "BINDPARAM", "logicNodeType" : "BINDPARAM",
"mOSFilePath" : "psappdeuilogicnodes/BINDPARAM1", "mOSFilePath" : "psappdeuilogicnodes/BINDPARAM1",
"name" : "绑定参数", "name" : "绑定参数",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE1"
},
"linkMode" : 0,
"name" : "连接名称",
"getPSDEUILogicLinkGroupCond" : {
"groupOP" : "AND",
"logicType" : "GROUP",
"getPSDEUILogicLinkConds" : [ {
"condOP" : "ISNOTNULL",
"getDstLogicParam" : {
"modelref" : true,
"id" : "searchForm"
},
"logicType" : "SINGLE",
"name" : "searchForm 值不为空(NotNil)"
} ]
},
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "BINDPARAM1"
}
}, {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE2"
},
"linkMode" : 0,
"name" : "连接名称",
"getPSDEUILogicLinkGroupCond" : {
"groupOP" : "AND",
"logicType" : "GROUP",
"getPSDEUILogicLinkConds" : [ {
"condOP" : "ISNULL",
"getDstLogicParam" : {
"modelref" : true,
"id" : "searchForm"
},
"logicType" : "SINGLE",
"name" : "searchForm 值为空(Nil)"
} ]
},
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "BINDPARAM1"
}
} ],
"rTMOSFilePath" : "psappdeuilogicnodes/BINDPARAM1", "rTMOSFilePath" : "psappdeuilogicnodes/BINDPARAM1",
"getSrcPSDEUILogicParam" : { "getSrcPSDEUILogicParam" : {
"modelref" : true, "modelref" : true,
"id" : "view" "id" : "view"
}, },
"topPos" : 216 "topPos" : 188
}, {
"codeName" : "VIEWCTRLINVOKE2",
"getInvokeCtrl" : {
"modelref" : true,
"id" : "grid"
},
"invokeMethod" : "load",
"getInvokeParam" : {
"modelref" : true,
"id" : "viewParams"
},
"leftPos" : 506,
"logicNodeType" : "VIEWCTRLINVOKE",
"mOSFilePath" : "psappdeuilogicnodes/VIEWCTRLINVOKE2",
"name" : "表格部件加载",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "END1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE2"
}
} ],
"rTMOSFilePath" : "psappdeuilogicnodes/VIEWCTRLINVOKE2",
"topPos" : 572
} ], } ],
"getPSDEUILogicParams" : [ { "getPSDEUILogicParams" : [ {
"codeName" : "grid", "codeName" : "viewParams",
"logicName" : "表格部件", "logicName" : "视图参数",
"mOSFilePath" : "psappdeuilogicparams/grid", "mOSFilePath" : "psappdeuilogicparams/viewParams",
"name" : "表格部件", "name" : "视图参数",
"rTMOSFilePath" : "psappdeuilogicparams/grid", "rTMOSFilePath" : "psappdeuilogicparams/viewParams",
"viewNavDataParam" : true
}, {
"codeName" : "searchForm",
"logicName" : "搜索表单部件",
"mOSFilePath" : "psappdeuilogicparams/searchForm",
"name" : "搜索表单部件",
"rTMOSFilePath" : "psappdeuilogicparams/searchForm",
"ctrlParam" : true "ctrlParam" : true
}, { }, {
"codeName" : "view", "codeName" : "view",
...@@ -28645,19 +28729,12 @@ ...@@ -28645,19 +28729,12 @@
"default" : true, "default" : true,
"entityParam" : true "entityParam" : true
}, { }, {
"codeName" : "searchForm", "codeName" : "grid",
"logicName" : "搜索表单部件", "logicName" : "表格部件",
"mOSFilePath" : "psappdeuilogicparams/searchForm", "mOSFilePath" : "psappdeuilogicparams/grid",
"name" : "搜索表单部件", "name" : "表格部件",
"rTMOSFilePath" : "psappdeuilogicparams/searchForm", "rTMOSFilePath" : "psappdeuilogicparams/grid",
"ctrlParam" : true "ctrlParam" : true
}, {
"codeName" : "viewParams",
"logicName" : "视图参数",
"mOSFilePath" : "psappdeuilogicparams/viewParams",
"name" : "视图参数",
"rTMOSFilePath" : "psappdeuilogicparams/viewParams",
"viewNavDataParam" : true
} ], } ],
"rTMOSFilePath" : "pssysapps/Web/psappdataentities/TEST/psappdeuilogics/CustomGridLoad", "rTMOSFilePath" : "pssysapps/Web/psappdataentities/TEST/psappdeuilogics/CustomGridLoad",
"getStartPSDEUILogicNode" : { "getStartPSDEUILogicNode" : {
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册