<%@page import="com.amarsoft.are.jbo.ql.Parser"%> <%@page import="com.amarsoft.biz.workflow.*"%> <%@page import="com.amarsoft.app.flow.*"%> <%@page import="com.tenwa.flow.task.*"%> <%@page import="com.amarsoft.are.lang.StringX"%> <%@page contentType="text/html; charset=GBK"%> <%@include file="/Frame/resources/include/include_begin.jspf"%> <% String taskNo = CurPage.getParameter("TaskNo"); String applyType = CurPage.getParameter("applyType"); String phasename = CurPage.getParameter("phasename"); if(StringX.isSpace(taskNo)) taskNo = ""; if(StringX.isSpace(applyType)) applyType = ""; if(StringX.isSpace(phasename)) phasename = ""; String userID = CurUser.getUserID(); JBOTransaction tx = JBOFactory.createJBOTransaction(); TenwaFlowTask ft = new TenwaFlowTask(taskNo, tx);//使用jboTrans String routeInfo=ft.getRouteInfo(); String flowNo = ft.FlowNo; String phaseNo=ft.PhaseNo; String flowState = ft.FlowState; //获取信审意见 只要有一个意见为拒绝的,就不允许直接结束 String choice=""; if ("BusinessApplyFlow".equals(flowNo)&&("0040".equals(phaseNo)||"0050".equals(phaseNo)||"0060".equals(phaseNo))){ if("0050".equals(phaseNo)){ choice = Sqlca.getString("select CONCAT(IFNULL(v.FIRSTCHOICE,','),',',IFNULL(v.SECONDCHOICE,',')) choice" + " from VI_PROJECTINFO_BUSINESS v, flow_task t where t.serialno='"+taskNo+"' and v.FLOWUNID=t.objectno"); } if("0060".equals(phaseNo)){ choice = Sqlca.getString("select CONCAT(IFNULL(v.FIRSTCHOICE,','),',',IFNULL(v.SECONDCHOICE,','),',',IFNULL(v.THIRDCHOICE,',')) choice" + " from VI_PROJECTINFO_BUSINESS v, flow_task t where t.serialno='"+taskNo+"' and v.FLOWUNID=t.objectno"); } System.out.println(choice); // if (choice.contains("0010")){ // choice="审批意见为拒绝,流程不允许直接结束!"; // }else{ // choice=""; // } String[] arr=choice.split(","); HashSet sets=new HashSet(); for (int i = 0; i 1){//有拒绝 有同意 意见不一致 choice="2";//"意见不一致流程不能结束,须退回!"; } System.out.println(flowNo+","+taskNo+","+choice+","+arr+","+sets); } //会签历史纪录阶段号问题 tx.commit(); %>
<%=new Button("提交","确认提交","javascript:commitAction();","","btn_icon_Submit","").getHtmlText()%> <%=new Button("放弃","放弃提交","javascript:doCancel();","","btn_icon_delete","").getHtmlText()%>
提交给:
<% %>
<%@include file="/Frame/resources/include/include_end.jspf"%>