提交 40b1a620 编写于 作者: 蔡祥熠

Merge branch 'feature/Process.validation_add_currentRouteName' into 'develop'

Merge of feature/Process.validation_add_currentRouteName 流程表单的组件校验脚本中增加了当前决策 to develop

See merge request o2oa/o2oa!1607
......@@ -439,7 +439,11 @@ MWF.xApplication.process.Xform.$Input = MWF.APP$Input = new Class({
if (!this.json.validation) return true;
if (!this.json.validation.code) return true;
this.currentRouteName = routeName;
var flag = this.form.Macro.exec(this.json.validation.code, this);
this.currentRouteName = "";
if (!flag) flag = MWF.xApplication.process.Xform.LP.notValidation;
if (flag.toString()!="true"){
this.notValidationMode(flag);
......
......@@ -1705,7 +1705,11 @@ MWF.xApplication.process.Xform.Attachment = MWF.APPAttachment = new Class({
if (!this.json.validation) return true;
if (!this.json.validation.code) return true;
this.currentRouteName = routeName;
var flag = this.form.Macro.exec(this.json.validation.code, this);
this.currentRouteName = "";
if (!flag) flag = MWF.xApplication.process.Xform.LP.notValidation;
if (flag.toString() != "true") {
this.notValidationMode(flag);
......
......@@ -1397,7 +1397,11 @@ MWF.xApplication.process.Xform.DatagridMobile = new Class({
if (!this.json.validation) return true;
if (!this.json.validation.code) return true;
this.currentRouteName = routeName;
var flag = this.form.Macro.exec(this.json.validation.code, this);
this.currentRouteName = "";
if (!flag) flag = MWF.xApplication.process.Xform.LP.notValidation;
if (flag.toString()!="true"){
this.notValidationMode(flag);
......
......@@ -1182,7 +1182,11 @@ MWF.xApplication.process.Xform.DatagridPC = new Class({
if (!this.json.validation) return true;
if (!this.json.validation.code) return true;
this.currentRouteName = routeName;
var flag = this.form.Macro.exec(this.json.validation.code, this);
this.currentRouteName = "";
if (!flag) flag = MWF.xApplication.process.Xform.LP.notValidation;
if (flag.toString()!="true"){
this.notValidationMode(flag);
......
......@@ -2815,7 +2815,11 @@ debugger;
if (!this.json.validation) return true;
if (!this.json.validation.code) return true;
this.currentRouteName = routeName;
var flag = this.form.Macro.exec(this.json.validation.code, this);
this.currentRouteName = "";
if (!flag) flag = MWF.xApplication.process.Xform.LP.notValidation;
if (flag.toString()!="true"){
this.notValidationMode(flag);
......
......@@ -518,7 +518,11 @@ MWF.xApplication.process.Xform.Htmleditor = MWF.APPHtmleditor = new Class({
if (!this.json.validation) return true;
if (!this.json.validation.code) return true;
this.currentRouteName = routeName;
var flag = this.form.Macro.exec(this.json.validation.code, this);
this.currentRouteName = "";
if (!flag) flag = MWF.xApplication.process.Xform.LP.notValidation;
if (flag.toString()!="true"){
this.notValidationMode(flag);
......
......@@ -284,7 +284,9 @@ MWF.xApplication.process.Xform.ImageClipper = MWF.APPImageClipper = new Class({
if (!this.json.validation) return true;
if (!this.json.validation.code) return true;
this.currentRouteName = routeName;
var flag = this.form.Macro.exec(this.json.validation.code, this);
this.currentRouteName = "";
if (!flag) flag = MWF.xApplication.process.Xform.LP.notValidation;
if (flag.toString()!="true"){
this.notValidationMode(flag);
......
......@@ -127,7 +127,9 @@ MWF.xApplication.process.Xform.Number = MWF.APPNumber = new Class({
if (!this.json.validation) return true;
if (!this.json.validation.code) return true;
this.currentRouteName = routeName;
var flag = this.form.Macro.exec(this.json.validation.code, this);
this.currentRouteName = "";
if (!flag) flag = MWF.xApplication.process.Xform.LP.notValidation;
if (flag.toString() != "true") {
this.notValidationMode(flag);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册