业务申请复审添加校验
This commit is contained in:
parent
601aacd037
commit
8cb7713c7e
@ -107,6 +107,15 @@ function doSubmit(){
|
||||
return;
|
||||
}
|
||||
if(assignFinish=="1"){assignSubmitType="0";}
|
||||
var sPhaseNo = param["PhaseNo"];
|
||||
//业务校验审批审意见
|
||||
if(("BusinessApplyFlow"==param["FlowNo"])&&("0040"==sPhaseNo ||"0050"==sPhaseNo ||"0051"==sPhaseNo ||"0052"==sPhaseNo ||"0053"==sPhaseNo)){
|
||||
var returnOpinion = AsControl.RunJsp('/Tenwa/Lease/Flow/Project/BusinessApplication/CheckBussinessOpinion.jsp','sObjectNo='+param["ObjectNo"]);
|
||||
if("false"==allTrim(returnOpinion)){
|
||||
alert("初审和复审意见不一致,请检查!!!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
FlowFunction.doSubmit(param["ObjectType"],param["ObjectNo"],param["TaskNo"],param["FlowName"],param["FlowNo"],param["PhaseNo"],false,assignSubmitType);
|
||||
}
|
||||
function backStep(){
|
||||
|
||||
@ -0,0 +1,26 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/IncludeBeginMDAJAX.jsp"%><%
|
||||
String sObjectNo = CurPage.getParameter("sObjectNo");
|
||||
try{
|
||||
String sql = " select case when t1.p1 = t2.p2 then 'true' else 'false' end as returnOpinion from lb_project_info_temp lpit "+
|
||||
" left join ( select fo1.phasechoice as p1,ft1.objectno as f1 from "+
|
||||
" flow_opinion_business fo1 left join flow_task ft1 on ft1.relativeobjectno = fo1.serialno "+
|
||||
" where ft1.objectno = '"+sObjectNo+"' and ft1.phaseno = '0030' "+
|
||||
" and ft1.relativeobjectno is not null and ft1.begintime = ( select max(f.begintime) from flow_task f where f.objectno = ft1.objectno and f.phaseno = '0030' group by f.phaseno) "+
|
||||
" ) t1 on t1.f1 = lpit.FLOWUNID left join ( "+
|
||||
" select fo1.phasechoice as p2,ft1.objectno as f2 from "+
|
||||
" flow_opinion_business fo1 left join flow_task ft1 on ft1.relativeobjectno = fo1.serialno "+
|
||||
" where ft1.objectno = '"+sObjectNo+"' and ft1.phaseno in ('0040', '0050', '0051', '0052', '0053') "+
|
||||
" and ft1.relativeobjectno is not null "+
|
||||
" and ft1.begintime = ( select max(f.begintime) from flow_task f where f.objectno = ft1.objectno and f.phaseno in ('0040', '0050', '0051', '0052', '0053') group by f.phaseno) "+
|
||||
" ) t2 on t2.f2 = lpit.FLOWUNID where lpit .FLOWUNID = '"+sObjectNo+"' ";
|
||||
ASResultSet res = Sqlca.getASResultSet(new SqlObject(sql));
|
||||
while(res.next()){
|
||||
out.print(res.getString("returnOpinion"));
|
||||
}
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
out.print("FALSE");
|
||||
}
|
||||
|
||||
%><%@ include file="/IncludeEndAJAX.jsp"%>
|
||||
Loading…
x
Reference in New Issue
Block a user