<%@page import="com.tenwa.httpclient.resources.QuartzPropertiesUtil"%> <%@ page import="jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT" %> <%@ page import="org.apache.commons.lang3.StringUtils" %> <%@ page contentType="text/html; charset=GBK"%><%@ include file="/IncludeBeginMD.jsp"%><% /* * Content: 查看审批详情 * Input Param: * ObjectType: 对象类型 * CreditApply: 申请 * ApproveApply: 最终审批意见 * PutOutApply: 出帐 * ObjectNo: 对象编号 * FlowNo:流程号 * PhaseNo:阶段号 * History Log: zywei 2006/02/22 增加查看自己签署的意见(背靠背签署) */ //获取页面参数 String contractId = CurPage.getParameter("ContractId"); String sObjectNo = ""; String sObjectType = "FlowDefaultObject"; System.out.println("contractId=" + contractId); //将空值转化为空字符串 if(contractId==null)contractId=""; BizObjectManager ftManager = JBOFactory.getBizObjectManager("jbo.sys.FLOW_TASK"); BizObjectManager fbo = JBOFactory.getBizObjectManager(FLOW_BUSSINESS_OBJECT.CLASS_NAME); List opinionList = new ArrayList(); BizObject fboRes = fbo.createQuery("flow_name=:flow_name and contract_id=:contract_id").setParameter("contract_id", contractId).setParameter("flow_name", "付款申请(汽车)").getSingleResult(false); if(null != fboRes){ sObjectNo = fboRes.getAttribute("flow_unid").getString(); System.out.println("objectno=" + sObjectNo); if(StringUtils.isNotEmpty(sObjectNo)){ String sSql = " select O.serialno,O.FlowNo,O.PhaseNo,O.PhaseName,O.UserName,O.OrgName,O.PhaseAction,O.BeginTime, "+ " O.EndTime,O.PhaseChoice,FO.PhaseOpinion,FO.PhaseOpinion1,FO.PhaseOpinion2,FO.PhaseOpinion3, "+ " FM.Attribute3 as v.OpinionRightType,FM.Attribute4 as v.OpinionRightPhases,FM.Attribute5 as v.OpinionRightRoles "+ " ,v.getUserName(fo.inputuser) as v.optionUser,v.getOrgName(fo.inputorg) as v.optionOrg,fo.inputtime from O,jbo.sys.FLOW_OPINION FO,jbo.sys.FLOW_MODEL FM "+ " where O.Serialno=FO.SerialNo and O.FlowNo=FM.FlowNo and O.PhaseNo=FM.PhaseNo "+ " and (FO.PhaseOpinion is not null) and O.ObjectNo=:ObjectNo ORDER BY O.BeginTime desc "; opinionList = ftManager.createQuery(sSql).setParameter("ObjectNo",sObjectNo).getResultList(false); } } %> 审批详情 <% int iCountRecord = 0; boolean flag = true; for (BizObject opinionBo : opinionList){ iCountRecord++; %> <% } %>
步骤名称:')"><%=DataConvert.toString(opinionBo.getAttribute("PhaseName").getString())%>   <% if(flag) {%> 处理人所属机构:安鹏租赁   <%} else {%> 处理人:<%=DataConvert.toString(opinionBo.getAttribute("optionUser").getString())%>   处理人所属机构:<%=DataConvert.toString(opinionBo.getAttribute("optionOrg").getString())%>   <%}%> 意见填写时间:<%=DataConvert.toString(opinionBo.getAttribute("inputtime").getString())%>  
收到时间:<%=DataConvert.toString(opinionBo.getAttribute("BeginTime").getString())%> 完成时间:<%=DataConvert.toString(opinionBo.getAttribute("EndTime").getString())%>
 
<% //如果没有意见或者没有找到对应的对象,则自动关闭 if (iCountRecord==0||sObjectNo.equals("")){ %> 目前此业务还没有您可以查看的审批意见! <% } %> <%@ include file="/IncludeEnd.jsp"%>