|
楼主 |
发表于 2014-8-18 09:04:46
|
显示全部楼层
同样的代码 开发版是OK的 不存在这种问题,部署在云服务器的企业版出现了这种情况。
CEOArrangeParent.advanceBtnClick = function(event){
var start = new Date().getTime();
if(saveAllData()&&validateIsAllSaveOnAdvance("trigger1_2")){
var ContractData = justep.xbl("ContractData");
var projectData = justep.xbl("projectData");
var projectID = ContractData.getValue("projectID",justep.Context.getProcessData1());
var con1 = checkCondition("CEOApprovalCondition",projectID);
var con2 = checkCondition("CEOApprovalCondition2",projectID);
justep.Request.beginBatch();
try{
if(con1&&con2){
checkProjectStatus();
}
justep.Request.endBatch();
}catch(e){
justep.Request.cancelBatch();
throw e;
}
if(endProcess(CEOArrangeParent.taskResult,"process",projectID,projectData,false)){
if(checkProjectFlowCondition1()&&checkProjectFlowCondition2()){
applyContract.setProcessLink("");
}else{
applyContract.setProcessLink("出款-董事长审批:通过");
}
justep.xbl("process").advance();
}else{
projectData.setValue("isContractOK","否");
projectData.saveData();
applyContract.setProcessLink("出款-董事长审批:不通过");
}
}
var end = new Date().getTime();
alert("执行完毕。。。共耗时:"+(end-start));
}; |
|