Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
7cc300b7
提交
7cc300b7
编写于
2月 28, 2023
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhujiamin 发布系统代码 [TrainSys,网页端]
上级
386a8d05
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
553 行增加
和
493 行删除
+553
-493
EditorTest.json
...YSAPPS/Web/PSAPPDATAENTITIES/Book/PSFORMS/EditorTest.json
+35
-5
TestRules.json
...SYSAPPS/Web/PSAPPDATAENTITIES/TEST/PSFORMS/TestRules.json
+161
-161
TESTTestRulesEditView.json
...sys/PSSYSAPPS/Web/PSAPPDEVIEWS/TESTTestRulesEditView.json
+161
-161
bookBookEditViewEditorTest.json
...SSYSAPPS/Web/PSAPPDEVIEWS/bookBookEditViewEditorTest.json
+35
-5
PSSYSAPP.json
...ces/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSSYSAPP.json
+161
-161
未找到文件。
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSAPPDATAENTITIES/Book/PSFORMS/EditorTest.json
浏览文件 @
7cc300b7
...
...
@@ -45,17 +45,17 @@
"id"
:
"Get"
},
"getPSDEFIUpdateDetails"
:
[
{
"name"
:
"field1
3
"
"name"
:
"field1
1
"
},
{
"name"
:
"field17"
},
{
"name"
:
"
field8
"
"name"
:
"
type
"
},
{
"name"
:
"field1
4
"
"name"
:
"field1
3
"
},
{
"name"
:
"
type
"
"name"
:
"
field14
"
},
{
"name"
:
"field
11
"
"name"
:
"field
8
"
}
],
"rTMOSFilePath"
:
"psdefiupdates/updateA"
}
],
...
...
@@ -211,6 +211,9 @@
},
{
"id"
:
"formitem5"
,
"dataType"
:
25
},
{
"id"
:
"formitem6"
,
"dataType"
:
25
},
{
"id"
:
"date"
,
"dataType"
:
5
,
...
...
@@ -888,6 +891,33 @@
"rTMOSFilePath"
:
"psdeformdetail_formitems/formitem5"
,
"allowEmpty"
:
true
,
"showCaption"
:
true
},
{
"caption"
:
"开关"
,
"codeName"
:
"formitem6"
,
"dataType"
:
25
,
"detailStyle"
:
"DEFAULT"
,
"detailType"
:
"FORMITEM"
,
"enableCond"
:
3
,
"ignoreInput"
:
0
,
"labelPos"
:
"LEFT"
,
"labelWidth"
:
130
,
"mOSFilePath"
:
"psdeformdetail_formitems/formitem6"
,
"name"
:
"formitem6"
,
"noPrivDisplayMode"
:
1
,
"getPSEditor"
:
{
"editorParams"
:
{
"dicdata"
:
"[{value:0,label:'关闭'},{value:1,label:'打开'}]"
},
"editorType"
:
"SWITCH"
,
"name"
:
"formitem6"
},
"getPSLayoutPos"
:
{
"colMD"
:
24
,
"layout"
:
"TABLE_24COL"
},
"rTMOSFilePath"
:
"psdeformdetail_formitems/formitem6"
,
"allowEmpty"
:
true
,
"showCaption"
:
true
},
{
"actionGroupExtractMode"
:
"ITEM"
,
"caption"
:
"时间选择器"
,
...
...
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSAPPDATAENTITIES/TEST/PSFORMS/TestRules.json
浏览文件 @
7cc300b7
...
...
@@ -40,33 +40,104 @@
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule
2
"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
/psdefvaluerules/ValueRule2
"
,
"name"
:
"field值规则"
,
"codeName"
:
"ValueRule
4
"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
3/psdefvaluerules/ValueRule4
"
,
"name"
:
"field
3
值规则"
,
"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
"
,
"condType"
:
"
STRINGLENGTH
"
,
"dEFName"
:
"FIELD
3
"
,
"maxValue"
:
15
,
"minValue"
:
5
,
"name"
:
"[
字符长度] 大于等于 5 且 小于等于 15
"
,
"ruleInfo"
:
"
5<=field3字符长度<=15
"
,
"includeMaxValue"
:
true
,
"includeMinValue"
:
true
}
],
"ruleInfo"
:
"
10<=field<=20
"
"ruleInfo"
:
"
5<=field3字符长度<=15
"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
/psdefvaluerules/ValueRule2
"
,
"ruleInfo"
:
"
10<=field<=20
"
,
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
3/psdefvaluerules/ValueRule4
"
,
"ruleInfo"
:
"
5<=field3字符长度<=15
"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field"
,
"getPSDEFormItemName"
:
"field3"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule6"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6"
,
"name"
:
"field5值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condType"
:
"SYSVALUERULE"
,
"dEFName"
:
"FIELD5"
,
"name"
:
"[系统值规则]脚本值规则测试"
,
"getPSSysValueRule"
:
{
"codeName"
:
"ValueRule20"
,
"dynaModelFilePath"
:
"PSSYSVALUERULES/ValueRule20.json"
,
"mOSFilePath"
:
"pssysvaluerules/ValueRule20"
,
"name"
:
"脚本值规则测试"
,
"rTMOSFilePath"
:
"pssysvaluerules/ValueRule20"
,
"ruleInfo"
:
"脚本校验"
,
"ruleType"
:
"SCRIPT"
,
"scriptCode"
:
"console.log(data);
\n
console.log(value);
\n
return false;"
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"ruleInfo"
:
"脚本校验"
}
],
"ruleInfo"
:
"脚本校验"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6"
,
"ruleInfo"
:
"脚本校验"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field5"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"name"
:
"amount值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"EQ"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"AMOUNT"
,
"name"
:
"[常规条件] 等于(=) (100)"
,
"paramType"
:
"SRCENTITYFIELD"
,
"paramValue"
:
"100"
,
"ruleInfo"
:
"amount等于100"
}
],
"ruleInfo"
:
"amount等于100"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"ruleInfo"
:
"amount等于100"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"amount"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
...
...
@@ -97,6 +168,46 @@
},
"getPSDEFormItemName"
:
"field2"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule5"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5"
,
"name"
:
"field4值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condType"
:
"SYSVALUERULE"
,
"dEFName"
:
"FIELD4"
,
"name"
:
"[系统值规则]URL"
,
"getPSSysValueRule"
:
{
"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"
:
"内容必须为有效URL格式"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5"
,
"ruleInfo"
:
"内容必须为有效URL格式"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field4"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
...
...
@@ -164,72 +275,42 @@
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"name"
:
"amount值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"EQ"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"AMOUNT"
,
"name"
:
"[常规条件] 等于(=) (100)"
,
"paramType"
:
"SRCENTITYFIELD"
,
"paramValue"
:
"100"
,
"ruleInfo"
:
"amount等于100"
}
],
"ruleInfo"
:
"amount等于100"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"ruleInfo"
:
"amount等于100"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"amount"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule6"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6"
,
"name"
:
"field5值规则"
,
"codeName"
:
"ValueRule7"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7"
,
"name"
:
"field6值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condType"
:
"SYSVALUERULE"
,
"dEFName"
:
"FIELD5"
,
"name"
:
"[系统值规则]脚本值规则测试"
,
"getPSSysValueRule"
:
{
"codeName"
:
"ValueRule20"
,
"dynaModelFilePath"
:
"PSSYSVALUERULES/ValueRule20.json"
,
"mOSFilePath"
:
"pssysvaluerules/ValueRule20"
,
"name"
:
"脚本值规则测试"
,
"rTMOSFilePath"
:
"pssysvaluerules/ValueRule20"
,
"ruleInfo"
:
"脚本校验"
,
"ruleType"
:
"SCRIPT"
,
"scriptCode"
:
"console.log(data);
\n
console.log(value);
\n
return false;"
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"ruleInfo"
:
"脚本校验"
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"[条件组]AND"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"NOTEQ"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"FIELD6"
,
"name"
:
"[常规条件] 不等于(<>) (20)"
,
"paramValue"
:
"20"
},
{
"condOp"
:
"GT"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"FIELD6"
,
"name"
:
"[常规条件] 大于(>) (5)"
,
"paramValue"
:
"5"
}
],
"ruleInfo"
:
">5并且不等于20"
}
],
"ruleInfo"
:
"
脚本校验
"
"ruleInfo"
:
"
>5并且不等于20
"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
5/psdefvaluerules/ValueRule6
"
,
"ruleInfo"
:
"
脚本校验
"
,
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
6/psdefvaluerules/ValueRule7
"
,
"ruleInfo"
:
"
>5并且不等于20
"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field
5
"
,
"getPSDEFormItemName"
:
"field
6
"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
...
...
@@ -282,114 +363,33 @@
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule5"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5"
,
"name"
:
"field4值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condType"
:
"SYSVALUERULE"
,
"dEFName"
:
"FIELD4"
,
"name"
:
"[系统值规则]URL"
,
"getPSSysValueRule"
:
{
"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"
:
"内容必须为有效URL格式"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5"
,
"ruleInfo"
:
"内容必须为有效URL格式"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field4"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule7"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7"
,
"name"
:
"field6值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"[条件组]AND"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"NOTEQ"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"FIELD6"
,
"name"
:
"[常规条件] 不等于(<>) (20)"
,
"paramValue"
:
"20"
},
{
"condOp"
:
"GT"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"FIELD6"
,
"name"
:
"[常规条件] 大于(>) (5)"
,
"paramValue"
:
"5"
}
],
"ruleInfo"
:
">5并且不等于20"
}
],
"ruleInfo"
:
">5并且不等于20"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7"
,
"ruleInfo"
:
">5并且不等于20"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field6"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule4"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD3/psdefvaluerules/ValueRule4"
,
"name"
:
"field3值规则"
,
"codeName"
:
"ValueRule2"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2"
,
"name"
:
"field值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condType"
:
"
STRINGLENGTH
"
,
"dEFName"
:
"FIELD
3
"
,
"maxValue"
:
15
,
"minValue"
:
5
,
"name"
:
"[
字符长度] 大于等于 5 且 小于等于 15
"
,
"ruleInfo"
:
"
5<=field3字符长度<=15
"
,
"condType"
:
"
VALUERANGE2
"
,
"dEFName"
:
"FIELD"
,
"maxValue"
:
20.0
,
"minValue"
:
10.0
,
"name"
:
"[
数值范围] 大于等于 10.0 且 小于等于 20.0
"
,
"ruleInfo"
:
"
10<=field<=20
"
,
"includeMaxValue"
:
true
,
"includeMinValue"
:
true
}
],
"ruleInfo"
:
"
5<=field3字符长度<=15
"
"ruleInfo"
:
"
10<=field<=20
"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
3/psdefvaluerules/ValueRule4
"
,
"ruleInfo"
:
"
5<=field3字符长度<=15
"
,
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
/psdefvaluerules/ValueRule2
"
,
"ruleInfo"
:
"
10<=field<=20
"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field
3
"
,
"getPSDEFormItemName"
:
"field"
,
"valueRuleType"
:
"DEFVALUERULE"
}
],
"getPSDEFormItems"
:
[
{
...
...
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSAPPDEVIEWS/TESTTestRulesEditView.json
浏览文件 @
7cc300b7
...
...
@@ -169,33 +169,104 @@
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule
2
"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
/psdefvaluerules/ValueRule2
"
,
"name"
:
"field值规则"
,
"codeName"
:
"ValueRule
4
"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
3/psdefvaluerules/ValueRule4
"
,
"name"
:
"field
3
值规则"
,
"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
"
,
"condType"
:
"
STRINGLENGTH
"
,
"dEFName"
:
"FIELD
3
"
,
"maxValue"
:
15
,
"minValue"
:
5
,
"name"
:
"[
字符长度] 大于等于 5 且 小于等于 15
"
,
"ruleInfo"
:
"
5<=field3字符长度<=15
"
,
"includeMaxValue"
:
true
,
"includeMinValue"
:
true
}
],
"ruleInfo"
:
"
10<=field<=20
"
"ruleInfo"
:
"
5<=field3字符长度<=15
"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
/psdefvaluerules/ValueRule2
"
,
"ruleInfo"
:
"
10<=field<=20
"
,
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
3/psdefvaluerules/ValueRule4
"
,
"ruleInfo"
:
"
5<=field3字符长度<=15
"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field"
,
"getPSDEFormItemName"
:
"field3"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule6"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6"
,
"name"
:
"field5值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condType"
:
"SYSVALUERULE"
,
"dEFName"
:
"FIELD5"
,
"name"
:
"[系统值规则]脚本值规则测试"
,
"getPSSysValueRule"
:
{
"codeName"
:
"ValueRule20"
,
"dynaModelFilePath"
:
"PSSYSVALUERULES/ValueRule20.json"
,
"mOSFilePath"
:
"pssysvaluerules/ValueRule20"
,
"name"
:
"脚本值规则测试"
,
"rTMOSFilePath"
:
"pssysvaluerules/ValueRule20"
,
"ruleInfo"
:
"脚本校验"
,
"ruleType"
:
"SCRIPT"
,
"scriptCode"
:
"console.log(data);
\n
console.log(value);
\n
return false;"
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"ruleInfo"
:
"脚本校验"
}
],
"ruleInfo"
:
"脚本校验"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6"
,
"ruleInfo"
:
"脚本校验"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field5"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"name"
:
"amount值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"EQ"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"AMOUNT"
,
"name"
:
"[常规条件] 等于(=) (100)"
,
"paramType"
:
"SRCENTITYFIELD"
,
"paramValue"
:
"100"
,
"ruleInfo"
:
"amount等于100"
}
],
"ruleInfo"
:
"amount等于100"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"ruleInfo"
:
"amount等于100"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"amount"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
...
...
@@ -226,6 +297,46 @@
},
"getPSDEFormItemName"
:
"field2"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule5"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5"
,
"name"
:
"field4值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condType"
:
"SYSVALUERULE"
,
"dEFName"
:
"FIELD4"
,
"name"
:
"[系统值规则]URL"
,
"getPSSysValueRule"
:
{
"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"
:
"内容必须为有效URL格式"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5"
,
"ruleInfo"
:
"内容必须为有效URL格式"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field4"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
...
...
@@ -293,72 +404,42 @@
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"name"
:
"amount值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"EQ"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"AMOUNT"
,
"name"
:
"[常规条件] 等于(=) (100)"
,
"paramType"
:
"SRCENTITYFIELD"
,
"paramValue"
:
"100"
,
"ruleInfo"
:
"amount等于100"
}
],
"ruleInfo"
:
"amount等于100"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"ruleInfo"
:
"amount等于100"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"amount"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule6"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6"
,
"name"
:
"field5值规则"
,
"codeName"
:
"ValueRule7"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7"
,
"name"
:
"field6值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condType"
:
"SYSVALUERULE"
,
"dEFName"
:
"FIELD5"
,
"name"
:
"[系统值规则]脚本值规则测试"
,
"getPSSysValueRule"
:
{
"codeName"
:
"ValueRule20"
,
"dynaModelFilePath"
:
"PSSYSVALUERULES/ValueRule20.json"
,
"mOSFilePath"
:
"pssysvaluerules/ValueRule20"
,
"name"
:
"脚本值规则测试"
,
"rTMOSFilePath"
:
"pssysvaluerules/ValueRule20"
,
"ruleInfo"
:
"脚本校验"
,
"ruleType"
:
"SCRIPT"
,
"scriptCode"
:
"console.log(data);
\n
console.log(value);
\n
return false;"
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"ruleInfo"
:
"脚本校验"
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"[条件组]AND"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"NOTEQ"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"FIELD6"
,
"name"
:
"[常规条件] 不等于(<>) (20)"
,
"paramValue"
:
"20"
},
{
"condOp"
:
"GT"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"FIELD6"
,
"name"
:
"[常规条件] 大于(>) (5)"
,
"paramValue"
:
"5"
}
],
"ruleInfo"
:
">5并且不等于20"
}
],
"ruleInfo"
:
"
脚本校验
"
"ruleInfo"
:
"
>5并且不等于20
"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
5/psdefvaluerules/ValueRule6
"
,
"ruleInfo"
:
"
脚本校验
"
,
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
6/psdefvaluerules/ValueRule7
"
,
"ruleInfo"
:
"
>5并且不等于20
"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field
5
"
,
"getPSDEFormItemName"
:
"field
6
"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
...
...
@@ -411,114 +492,33 @@
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule5"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5"
,
"name"
:
"field4值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condType"
:
"SYSVALUERULE"
,
"dEFName"
:
"FIELD4"
,
"name"
:
"[系统值规则]URL"
,
"getPSSysValueRule"
:
{
"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"
:
"内容必须为有效URL格式"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5"
,
"ruleInfo"
:
"内容必须为有效URL格式"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field4"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule7"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7"
,
"name"
:
"field6值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"[条件组]AND"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"NOTEQ"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"FIELD6"
,
"name"
:
"[常规条件] 不等于(<>) (20)"
,
"paramValue"
:
"20"
},
{
"condOp"
:
"GT"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"FIELD6"
,
"name"
:
"[常规条件] 大于(>) (5)"
,
"paramValue"
:
"5"
}
],
"ruleInfo"
:
">5并且不等于20"
}
],
"ruleInfo"
:
">5并且不等于20"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7"
,
"ruleInfo"
:
">5并且不等于20"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field6"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule4"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD3/psdefvaluerules/ValueRule4"
,
"name"
:
"field3值规则"
,
"codeName"
:
"ValueRule2"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2"
,
"name"
:
"field值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condType"
:
"
STRINGLENGTH
"
,
"dEFName"
:
"FIELD
3
"
,
"maxValue"
:
15
,
"minValue"
:
5
,
"name"
:
"[
字符长度] 大于等于 5 且 小于等于 15
"
,
"ruleInfo"
:
"
5<=field3字符长度<=15
"
,
"condType"
:
"
VALUERANGE2
"
,
"dEFName"
:
"FIELD"
,
"maxValue"
:
20.0
,
"minValue"
:
10.0
,
"name"
:
"[
数值范围] 大于等于 10.0 且 小于等于 20.0
"
,
"ruleInfo"
:
"
10<=field<=20
"
,
"includeMaxValue"
:
true
,
"includeMinValue"
:
true
}
],
"ruleInfo"
:
"
5<=field3字符长度<=15
"
"ruleInfo"
:
"
10<=field<=20
"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
3/psdefvaluerules/ValueRule4
"
,
"ruleInfo"
:
"
5<=field3字符长度<=15
"
,
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
/psdefvaluerules/ValueRule2
"
,
"ruleInfo"
:
"
10<=field<=20
"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field
3
"
,
"getPSDEFormItemName"
:
"field"
,
"valueRuleType"
:
"DEFVALUERULE"
}
],
"getPSDEFormItems"
:
[
{
...
...
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSAPPDEVIEWS/bookBookEditViewEditorTest.json
浏览文件 @
7cc300b7
...
...
@@ -1381,17 +1381,17 @@
"id"
:
"Get"
},
"getPSDEFIUpdateDetails"
:
[
{
"name"
:
"field1
3
"
"name"
:
"field1
1
"
},
{
"name"
:
"field17"
},
{
"name"
:
"
field8
"
"name"
:
"
type
"
},
{
"name"
:
"field1
4
"
"name"
:
"field1
3
"
},
{
"name"
:
"
type
"
"name"
:
"
field14
"
},
{
"name"
:
"field
11
"
"name"
:
"field
8
"
}
],
"rTMOSFilePath"
:
"psdefiupdates/updateA"
}
],
...
...
@@ -1547,6 +1547,9 @@
},
{
"id"
:
"formitem5"
,
"dataType"
:
25
},
{
"id"
:
"formitem6"
,
"dataType"
:
25
},
{
"id"
:
"date"
,
"dataType"
:
5
,
...
...
@@ -2224,6 +2227,33 @@
"rTMOSFilePath"
:
"psdeformdetail_formitems/formitem5"
,
"allowEmpty"
:
true
,
"showCaption"
:
true
},
{
"caption"
:
"开关"
,
"codeName"
:
"formitem6"
,
"dataType"
:
25
,
"detailStyle"
:
"DEFAULT"
,
"detailType"
:
"FORMITEM"
,
"enableCond"
:
3
,
"ignoreInput"
:
0
,
"labelPos"
:
"LEFT"
,
"labelWidth"
:
130
,
"mOSFilePath"
:
"psdeformdetail_formitems/formitem6"
,
"name"
:
"formitem6"
,
"noPrivDisplayMode"
:
1
,
"getPSEditor"
:
{
"editorParams"
:
{
"dicdata"
:
"[{value:0,label:'关闭'},{value:1,label:'打开'}]"
},
"editorType"
:
"SWITCH"
,
"name"
:
"formitem6"
},
"getPSLayoutPos"
:
{
"colMD"
:
24
,
"layout"
:
"TABLE_24COL"
},
"rTMOSFilePath"
:
"psdeformdetail_formitems/formitem6"
,
"allowEmpty"
:
true
,
"showCaption"
:
true
},
{
"actionGroupExtractMode"
:
"ITEM"
,
"caption"
:
"时间选择器"
,
...
...
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSSYSAPP.json
浏览文件 @
7cc300b7
...
...
@@ -16828,33 +16828,104 @@
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule
2
"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
/psdefvaluerules/ValueRule2
"
,
"name"
:
"field值规则"
,
"codeName"
:
"ValueRule
4
"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
3/psdefvaluerules/ValueRule4
"
,
"name"
:
"field
3
值规则"
,
"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
"
,
"condType"
:
"
STRINGLENGTH
"
,
"dEFName"
:
"FIELD
3
"
,
"maxValue"
:
15
,
"minValue"
:
5
,
"name"
:
"[
字符长度] 大于等于 5 且 小于等于 15
"
,
"ruleInfo"
:
"
5<=field3字符长度<=15
"
,
"includeMaxValue"
:
true
,
"includeMinValue"
:
true
}
],
"ruleInfo"
:
"
10<=field<=20
"
"ruleInfo"
:
"
5<=field3字符长度<=15
"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
/psdefvaluerules/ValueRule2
"
,
"ruleInfo"
:
"
10<=field<=20
"
,
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
3/psdefvaluerules/ValueRule4
"
,
"ruleInfo"
:
"
5<=field3字符长度<=15
"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field"
,
"getPSDEFormItemName"
:
"field3"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule6"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6"
,
"name"
:
"field5值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condType"
:
"SYSVALUERULE"
,
"dEFName"
:
"FIELD5"
,
"name"
:
"[系统值规则]脚本值规则测试"
,
"getPSSysValueRule"
:
{
"codeName"
:
"ValueRule20"
,
"dynaModelFilePath"
:
"PSSYSVALUERULES/ValueRule20.json"
,
"mOSFilePath"
:
"pssysvaluerules/ValueRule20"
,
"name"
:
"脚本值规则测试"
,
"rTMOSFilePath"
:
"pssysvaluerules/ValueRule20"
,
"ruleInfo"
:
"脚本校验"
,
"ruleType"
:
"SCRIPT"
,
"scriptCode"
:
"console.log(data);
\n
console.log(value);
\n
return false;"
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"ruleInfo"
:
"脚本校验"
}
],
"ruleInfo"
:
"脚本校验"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6"
,
"ruleInfo"
:
"脚本校验"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field5"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"name"
:
"amount值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"EQ"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"AMOUNT"
,
"name"
:
"[常规条件] 等于(=) (100)"
,
"paramType"
:
"SRCENTITYFIELD"
,
"paramValue"
:
"100"
,
"ruleInfo"
:
"amount等于100"
}
],
"ruleInfo"
:
"amount等于100"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"ruleInfo"
:
"amount等于100"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"amount"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
...
...
@@ -16885,6 +16956,46 @@
},
"getPSDEFormItemName"
:
"field2"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule5"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5"
,
"name"
:
"field4值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condType"
:
"SYSVALUERULE"
,
"dEFName"
:
"FIELD4"
,
"name"
:
"[系统值规则]URL"
,
"getPSSysValueRule"
:
{
"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"
:
"内容必须为有效URL格式"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5"
,
"ruleInfo"
:
"内容必须为有效URL格式"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field4"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
...
...
@@ -16952,72 +17063,42 @@
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"name"
:
"amount值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"EQ"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"AMOUNT"
,
"name"
:
"[常规条件] 等于(=) (100)"
,
"paramType"
:
"SRCENTITYFIELD"
,
"paramValue"
:
"100"
,
"ruleInfo"
:
"amount等于100"
}
],
"ruleInfo"
:
"amount等于100"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule"
,
"ruleInfo"
:
"amount等于100"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"amount"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule6"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD5/psdefvaluerules/ValueRule6"
,
"name"
:
"field5值规则"
,
"codeName"
:
"ValueRule7"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7"
,
"name"
:
"field6值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condType"
:
"SYSVALUERULE"
,
"dEFName"
:
"FIELD5"
,
"name"
:
"[系统值规则]脚本值规则测试"
,
"getPSSysValueRule"
:
{
"codeName"
:
"ValueRule20"
,
"dynaModelFilePath"
:
"PSSYSVALUERULES/ValueRule20.json"
,
"mOSFilePath"
:
"pssysvaluerules/ValueRule20"
,
"name"
:
"脚本值规则测试"
,
"rTMOSFilePath"
:
"pssysvaluerules/ValueRule20"
,
"ruleInfo"
:
"脚本校验"
,
"ruleType"
:
"SCRIPT"
,
"scriptCode"
:
"console.log(data);
\n
console.log(value);
\n
return false;"
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"ruleInfo"
:
"脚本校验"
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"[条件组]AND"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"NOTEQ"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"FIELD6"
,
"name"
:
"[常规条件] 不等于(<>) (20)"
,
"paramValue"
:
"20"
},
{
"condOp"
:
"GT"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"FIELD6"
,
"name"
:
"[常规条件] 大于(>) (5)"
,
"paramValue"
:
"5"
}
],
"ruleInfo"
:
">5并且不等于20"
}
],
"ruleInfo"
:
"
脚本校验
"
"ruleInfo"
:
"
>5并且不等于20
"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
5/psdefvaluerules/ValueRule6
"
,
"ruleInfo"
:
"
脚本校验
"
,
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
6/psdefvaluerules/ValueRule7
"
,
"ruleInfo"
:
"
>5并且不等于20
"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field
5
"
,
"getPSDEFormItemName"
:
"field
6
"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
...
...
@@ -17070,114 +17151,33 @@
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule5"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5"
,
"name"
:
"field4值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condType"
:
"SYSVALUERULE"
,
"dEFName"
:
"FIELD4"
,
"name"
:
"[系统值规则]URL"
,
"getPSSysValueRule"
:
{
"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"
:
"内容必须为有效URL格式"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD4/psdefvaluerules/ValueRule5"
,
"ruleInfo"
:
"内容必须为有效URL格式"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field4"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule7"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7"
,
"name"
:
"field6值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"[条件组]AND"
,
"getPSDEFVRConditions"
:
[
{
"condOp"
:
"NOTEQ"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"FIELD6"
,
"name"
:
"[常规条件] 不等于(<>) (20)"
,
"paramValue"
:
"20"
},
{
"condOp"
:
"GT"
,
"condType"
:
"SIMPLE"
,
"dEFName"
:
"FIELD6"
,
"name"
:
"[常规条件] 大于(>) (5)"
,
"paramValue"
:
"5"
}
],
"ruleInfo"
:
">5并且不等于20"
}
],
"ruleInfo"
:
">5并且不等于20"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7"
,
"ruleInfo"
:
">5并且不等于20"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field6"
,
"valueRuleType"
:
"DEFVALUERULE"
},
{
"checkMode"
:
3
,
"name"
:
"表单项值规则"
,
"getPSDEFValueRule"
:
{
"codeName"
:
"ValueRule4"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD3/psdefvaluerules/ValueRule4"
,
"name"
:
"field3值规则"
,
"codeName"
:
"ValueRule2"
,
"mOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD/psdefvaluerules/ValueRule2"
,
"name"
:
"field值规则"
,
"getPSDEFVRGroupCondition"
:
{
"condOp"
:
"AND"
,
"condType"
:
"GROUP"
,
"name"
:
"默认组"
,
"getPSDEFVRConditions"
:
[
{
"condType"
:
"
STRINGLENGTH
"
,
"dEFName"
:
"FIELD
3
"
,
"maxValue"
:
15
,
"minValue"
:
5
,
"name"
:
"[
字符长度] 大于等于 5 且 小于等于 15
"
,
"ruleInfo"
:
"
5<=field3字符长度<=15
"
,
"condType"
:
"
VALUERANGE2
"
,
"dEFName"
:
"FIELD"
,
"maxValue"
:
20.0
,
"minValue"
:
10.0
,
"name"
:
"[
数值范围] 大于等于 10.0 且 小于等于 20.0
"
,
"ruleInfo"
:
"
10<=field<=20
"
,
"includeMaxValue"
:
true
,
"includeMinValue"
:
true
}
],
"ruleInfo"
:
"
5<=field3字符长度<=15
"
"ruleInfo"
:
"
10<=field<=20
"
},
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
3/psdefvaluerules/ValueRule4
"
,
"ruleInfo"
:
"
5<=field3字符长度<=15
"
,
"rTMOSFilePath"
:
"psmodules/Test/psdataentities/TEST/psdefields/FIELD
/psdefvaluerules/ValueRule2
"
,
"ruleInfo"
:
"
10<=field<=20
"
,
"checkDefault"
:
false
,
"defaultMode"
:
false
,
"enableBackend"
:
true
,
"enableFront"
:
true
},
"getPSDEFormItemName"
:
"field
3
"
,
"getPSDEFormItemName"
:
"field"
,
"valueRuleType"
:
"DEFVALUERULE"
}
],
"getPSDEFormItems"
:
[
{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录