修改首页传阅问题

This commit is contained in:
zhulianghua 2018-08-16 11:43:30 +08:00
parent 216e0c9e0d
commit 584817886e
3 changed files with 24 additions and 13 deletions

View File

@ -188,7 +188,7 @@ function openFLowReadPage(serialno,objecttype,objectno,readerid,flowNo,PhaseNo){
if(tabid.length>0||tabPid.length>0){
FlowFunction.viewHisTabRead(objecttype,objectno,flowNo,PhaseNo,serialno,readerid);
}else{
var param = "TaskNo="+sTaskNo+"&RightType=ReadOnly&PhaseNo="+PhaseNo+"&ViewID=001"+"&ObjectType="+objecttype+"&ObjectNo="+objectno+"&readerId="+readerid;
var param = "TaskNo="+sTaskNo+"&PhaseNo="+PhaseNo+"&ViewID=001"+"&ObjectType="+objecttype+"&ObjectNo="+objectno+"&ReaderId="+readerid;
var objectinfo =$.parseJSON(RunJspAjax("/Tenwa/Core/FlowManager/GetObjectInfo.jsp?TaskNo="+sTaskNo));
var sUrl="/Tenwa/Core/FlowManager/FlowPage/FlowPageViewTab.jsp";
AsControl.OpenView("/AppMain/MenuTabContainer.jsp", "isAddMain=true&Title=´«ÔÄ--"+objectinfo.title+"&ToDestroyAllComponent=N&Url="+sUrl+"&Paras="+param, "right");

View File

@ -96,17 +96,27 @@ FlowFunction.doSubmit=function(sObjectType,sObjectNo,sTaskNo,sFlowName,sFlowNo,s
alert("流程提交失败");
}
}else{
AsDialog.PopView("/Common/WorkFlow/FlowSubmitDialog.jsp","TaskNo="+sTaskNo,"dialogWidth=850px;dialogHeight=550px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(sPhaseInfo){
if(typeof(sPhaseInfo)=="undefined" || sPhaseInfo=="" || sPhaseInfo==null || sPhaseInfo=="null" || sPhaseInfo=="_CANCEL_") {
return;
}else if(sPhaseInfo == "Success" || sPhaseInfo == "success"){
var sFlowLogContent="<%=CurUser.getUserName()%>在"+"@时提交流程";
this.insertFlowLog(sObjectNo, sTaskNo, sFlowLogContent);
alert("提交成功!");
FlowFunction.successCallBackReload();
}else{
alert("提交失败!");
}
//处理退回直接提交的任务
var res = AsControl.RunJavaMethodTrans("com.amarsoft.app.flow.FlowAction","checkBackType","TaskNo="+sTaskNo+",userID=<%=CurUser.getUserID()%>");
if(res == "success") {
var sFlowLogContent="<%=CurUser.getUserName()%>在"+"@时提交流程";
this.insertFlowLog(sObjectNo, sTaskNo, sFlowLogContent);
alert("提交成功");
FlowFunction.successCallBackReload();
return;
}
AsDialog.PopView("/Common/WorkFlow/FlowSubmitDialog.jsp","TaskNo="+sTaskNo,"dialogWidth=850px;dialogHeight=550px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(sPhaseInfo){
if(typeof(sPhaseInfo)=="undefined" || sPhaseInfo=="" || sPhaseInfo==null || sPhaseInfo=="null" || sPhaseInfo=="_CANCEL_") {
return;
}else if(sPhaseInfo == "Success" || sPhaseInfo == "success"){
var sFlowLogContent="<%=CurUser.getUserName()%>在"+"@时提交流程";
this.insertFlowLog(sObjectNo, sTaskNo, sFlowLogContent);
alert("提交成功!");
FlowFunction.successCallBackReload();
}else{
alert("提交失败!");
}
},"提交下一步");}
},sFlowName+":预警检查");
};

View File

@ -55,10 +55,11 @@
//显示按钮
if(viewTab.getButtonItemList().size()==0) out.write("<span>&nbsp;</span>");
if(rightType.equals("ReadOnly")){
if(rightType.equals("ReadOnly") || !ReaderId.equals("")){
if(ReaderId.equals("")){
out.write(new Button("关闭流程", "关闭流程", "closePage()", "", "btn_icon_close").getHtmlText());
}else{
rightType = "ReadOnly";
out.write(new Button("关闭流程", "关闭流程", "closePage()", "", "btn_icon_close").getHtmlText());
out.write(new Button("结束传阅", "结束传阅", "closePassed()", "", "btn_icon_add").getHtmlText());
}