提交 0464b5c1 编写于 作者: NoSubject's avatar NoSubject

路由增加异步返回选项

上级 ff46d19d
...@@ -81,8 +81,8 @@ ...@@ -81,8 +81,8 @@
<tr> <tr>
<td class="editTableTitle">异步返回:</td> <td class="editTableTitle">异步返回:</td>
<td class="editTableValue"> <td class="editTableValue">
<input class="editTableRadio" name="asyncSupported" text{($.asyncSupported!==false)?'checked':''} type="radio" value="true"/> <input class="editTableRadio" name="asyncSupported" text{($.asyncSupported===true)?'checked':''} type="radio" value="true"/>
<input class="editTableRadio" name="asyncSupported" text{($.asyncSupported===false)?'checked':''} type="radio" value="false"/> <input class="editTableRadio" name="asyncSupported" text{($.asyncSupported!==true)?'checked':''} type="radio" value="false"/>
</td> </td>
</tr> </tr>
</table> </table>
......
...@@ -1340,24 +1340,51 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({ ...@@ -1340,24 +1340,51 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({
if (data.completed) { if (data.completed) {
content += MWF.xApplication.process.Xform.LP.workCompleted; content += MWF.xApplication.process.Xform.LP.workCompleted;
} else { } else {
if (data.properties.nextManualList && data.properties.nextManualList.length) { if (data.occurSignalStack){
var activityUsers = []; if (data.signalStack && data.signalStack.length){
data.properties.nextManualList.each(function (a) { var activityUsers = [];
var ids = []; data.signalStack.each(function(stack){
a.taskIdentityList.each(function (i) { var ids = [];
ids.push(o2.name.cn(i)) if (stack.splitExecute){
}); ids = stack.splitExecute.splitValueList || [];
var t = "<b>" + MWF.xApplication.process.Xform.LP.nextActivity + "</b><span style='color: #ea621f'>" + a.activityName + "</span>;<b>" + MWF.xApplication.process.Xform.LP.nextUser + "</b><span style='color: #ea621f'>" + ids.join(",") + "</span>"; }
activityUsers.push(t); if (stack.manualExecute){
}); ids = stack.manualExecute.identities || [];
content += activityUsers.join("<br>"); }
} else { var count = 0;
if (data.arrivedActivityName) { if (ids.length>8){
content += MWF.xApplication.process.Xform.LP.arrivedActivity + data.arrivedActivityName; count = ids.length;
} else { ids = ids.slice(0,8);
}
ids = o2.name.cns(ids);
var lp = MWF.xApplication.process.Xform.LP;
var t = "<b>" + lp.nextActivity + "</b><span style='color: #ea621f'>" + stack.name + "</span>;<b>" + lp.nextUser + "</b><span style='color: #ea621f'>" + ids.join(",") + "</span> <b>"+ ((count) ? ","+lp.next_etc.replace("{count}", count) : "")+"</b>";
activityUsers.push(t);
}.bind(this));
content += activityUsers.join("<br>");
}else{
content += MWF.xApplication.process.Xform.LP.taskCompleted; content += MWF.xApplication.process.Xform.LP.taskCompleted;
} }
}else{
if (data.properties.nextManualList && data.properties.nextManualList.length) {
var activityUsers = [];
data.properties.nextManualList.each(function (a) {
var ids = [];
a.taskIdentityList.each(function (i) {
ids.push(o2.name.cn(i))
});
var t = "<b>" + MWF.xApplication.process.Xform.LP.nextActivity + "</b><span style='color: #ea621f'>" + a.activityName + "</span>;<b>" + MWF.xApplication.process.Xform.LP.nextUser + "</b><span style='color: #ea621f'>" + ids.join(",") + "</span>";
activityUsers.push(t);
});
content += activityUsers.join("<br>");
} else {
if (data.arrivedActivityName) {
content += MWF.xApplication.process.Xform.LP.arrivedActivity + data.arrivedActivityName;
} else {
content += MWF.xApplication.process.Xform.LP.taskCompleted;
}
}
} }
} }
var title = this.businessData.data.title || this.businessData.data.subject || this.businessData.work.title var title = this.businessData.data.title || this.businessData.data.subject || this.businessData.work.title
...@@ -1530,7 +1557,7 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({ ...@@ -1530,7 +1557,7 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({
if (processor && processor.node) processor.node.unmask(); if (processor && processor.node) processor.node.unmask();
return false; return false;
} }
debugger;
if (!this.formValidation(routeName, opinion, medias)) { if (!this.formValidation(routeName, opinion, medias)) {
this.app.content.unmask(); this.app.content.unmask();
//this.app.notice("", "error", target, where, offset); //this.app.notice("", "error", target, where, offset);
......
...@@ -17,6 +17,7 @@ MWF.xApplication.process.Xform.LP = { ...@@ -17,6 +17,7 @@ MWF.xApplication.process.Xform.LP = {
"arrivedActivitys": "到达活动", "arrivedActivitys": "到达活动",
"arrivedUsers": "到达处理人", "arrivedUsers": "到达处理人",
"replace": "", "replace": "",
"next_etc": "等{count}人",
"processStarted": "文件已启动", "processStarted": "文件已启动",
"processStartedMessage": "您启动了一个新的工作:", "processStartedMessage": "您启动了一个新的工作:",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册