119 lines
5.2 KiB
Plaintext
119 lines
5.2 KiB
Plaintext
<%@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<BizObject> 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);
|
||
}
|
||
}
|
||
%>
|
||
<html>
|
||
<head>
|
||
<title>审批详情</title>
|
||
</head>
|
||
<body leftmargin="0" topmargin="0" class="pagebackground" style="overflow-y: auto; height: 100%;">
|
||
<table width="99.5%" cellpadding="3" cellspacing="0" border="0" align="right">
|
||
<%
|
||
int iCountRecord = 0;
|
||
boolean flag = true;
|
||
for (BizObject opinionBo : opinionList){
|
||
iCountRecord++;
|
||
%>
|
||
<tr>
|
||
<td>
|
||
<table width=100% cellpadding="4" cellspacing="0" border="1" bordercolorlight="#666666" bordercolordark="#FFFFFF" >
|
||
<tr bgcolor="#CCCCCC" height="35px">
|
||
<td colspan=2 >
|
||
<b width=30% >步骤名称:</b><span style="text-decoration:underline;" onclick="showTaskView('<%=opinionBo.getAttribute("serialno").getString() %>')"><%=DataConvert.toString(opinionBo.getAttribute("PhaseName").getString())%> </span>
|
||
<% if(flag) {%>
|
||
<b width=30% >处理人所属机构:</b>安鹏租赁
|
||
<%} else {%>
|
||
<b width=30% >处理人:</b><%=DataConvert.toString(opinionBo.getAttribute("optionUser").getString())%>
|
||
<b width=30% >处理人所属机构:</b><%=DataConvert.toString(opinionBo.getAttribute("optionOrg").getString())%>
|
||
<%}%>
|
||
<b width=30% >意见填写时间:</b><%=DataConvert.toString(opinionBo.getAttribute("inputtime").getString())%>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width=50% height="25px"><b>收到时间:</b><%=DataConvert.toString(opinionBo.getAttribute("BeginTime").getString())%>
|
||
<td width=50% height="25px"><b>完成时间:</b><%=DataConvert.toString(opinionBo.getAttribute("EndTime").getString())%></td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan=2 align=center>
|
||
<textarea readonly style="background-color:#FDFDF3; width:100%;height:170px;resize: none;">
|
||
<%="\r\n【意见】"+ StringFunction.replace(DataConvert.toString(opinionBo.getAttribute("PhaseOpinion").getString()).trim(),"\\r\\n","\r\n")%>
|
||
</textarea>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
</td>
|
||
</tr>
|
||
<%
|
||
}
|
||
%>
|
||
</table>
|
||
</body>
|
||
</html>
|
||
<%
|
||
//如果没有意见或者没有找到对应的对象,则自动关闭
|
||
if (iCountRecord==0||sObjectNo.equals("")){
|
||
%>
|
||
<body style={color:red}>目前此业务还没有您可以查看的审批意见!</body>
|
||
<%
|
||
}
|
||
%>
|
||
<script language="javascript">
|
||
function showTaskView(taskno){
|
||
//获得申请类型、申请流水号
|
||
var sTaskNo = taskno;
|
||
var sObjectType ="<%=sObjectType%>";
|
||
var sObjectNo = "<%=sObjectNo%>";
|
||
if(typeof parent.viewTaskViewByParam=="function"){
|
||
parent.viewTaskViewByParam(sTaskNo,sObjectType,sObjectNo);
|
||
}else{
|
||
viewTaskViewByParam(sTaskNo,sObjectType,sObjectNo);
|
||
}
|
||
|
||
}
|
||
function viewTaskViewByParam(sTaskNo,sObjectType,sObjectNo){
|
||
AsTaskView.flowApprovetaskView(sTaskNo,sObjectType,sObjectNo,"001");
|
||
}
|
||
</script>
|
||
<%@ include file="/IncludeEnd.jsp"%> |