90 lines
3.9 KiB
Plaintext
90 lines
3.9 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
|
|
<%
|
|
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
|
|
String sTemplteNo = CurPage.getParameter("TemplteNo");//模板号
|
|
if(sTemplteNo == null) sTemplteNo = "";
|
|
String compClientID = request.getParameter("CompClientID");
|
|
//查询指定流程编号的投票信息SQL
|
|
String queryStr = " select * from O where FlowUnid=:FlowUnid order by VOTE_RESULT asc";
|
|
BizObjectQuery bq = JBOFactory.createBizObjectQuery("jbo.com.tenwa.lease.comm.LB_VOTE_INFO_TEMP", queryStr).setParameter("FlowUnid",sFlowUnid);
|
|
List<BizObject> list = bq.getResultList(false);//查询获取投票人 List
|
|
int Vote_Info1 = 0;//同意
|
|
int Vote_Info2 = 0;//不同意
|
|
int Vote_Info3 = 0;//附条件同意
|
|
//统计票数
|
|
for(int i = 0;i < list.size();i++){
|
|
String VOTE_RESULT = list.get(i).getAttribute("VOTE_RESULT").toString();//投票结果
|
|
if("Vote_Info1".equals(VOTE_RESULT)){
|
|
Vote_Info1 += 1;//统计同意票数
|
|
}else if("Vote_Info3".equals(VOTE_RESULT)){
|
|
Vote_Info3 += 1;//统计附条件同意票数
|
|
}else{
|
|
Vote_Info2 += 1;//不同意票数
|
|
}
|
|
}
|
|
%>
|
|
<table class="info_data_tablecommon info_group_table" width="100%">
|
|
<tbody>
|
|
<tr>
|
|
<td class="info_group_backgourd_l" width="10"> </td>
|
|
<td class="info_group_backgourd_2 info_group_backgourd_3" width="10">
|
|
<span type="EXPAND" onclick="try{changeExpand(this)}catch(e){};" groupid="0010" id="EXP_0010"></span>
|
|
<span id="imgexpand0010" class="info_group_expand" expand="1" onclick="showHideFields(this,'@SysSub0010')"> </span>
|
|
</td>
|
|
<td class="info_group_backgourd_2" width="100%" onclick="showHideFields(document.getElementById('imgexpand0010'),'@SysSub0010')">
|
|
<span class="info_group_title" id="Group_0010" style="width:100%">
|
|
<span id="Group_Title_0010">评审意见汇总</span>
|
|
</span>
|
|
</td>
|
|
<td class="info_group_backgourd_r"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table width="80%" border="1" cellspacing="0" cellpadding="0" id="@SysSub0010" style="margin-top: 5px;margin-left: 5px">
|
|
<tbody>
|
|
<tr style="height:25px">
|
|
<td style=" border:1px solid; font-size: 14">同意票数:</td>
|
|
<td style="border:1px solid;width:17%"><%=Vote_Info1 %></td>
|
|
<td style="border:1px solid;width:17%;font-size: 14">附条件同意票数:</td>
|
|
<td style="border:1px solid;width:17%"><%=Vote_Info3 %></td>
|
|
<td style="border:1px solid;width:17%;font-size: 14">不同意票数:</td>
|
|
<td style="border:1px solid;width:17%"><%=Vote_Info2 %></td>
|
|
</tr>
|
|
<%
|
|
for(int i = 0;i < list.size();i++){
|
|
String INPUTUSERID = list.get(i).getAttribute("INPUTUSERID").toString();//评审委员ID
|
|
String queryStr1 = " select * from O where userid=:userid order by INPUTTIME asc";
|
|
BizObjectQuery bq1 = JBOFactory.createBizObjectQuery("jbo.sys.USER_INFO", queryStr1).setParameter("userid",INPUTUSERID);
|
|
BizObject userInfo = bq1.getSingleResult(false);
|
|
String vote_name = userInfo.getAttribute("username").toString();//评审委员
|
|
String VOTE_RESULT = list.get(i).getAttribute("VOTE_RESULT").toString();//投票意见
|
|
if("Vote_Info1".equals(VOTE_RESULT)){
|
|
VOTE_RESULT = "同意";
|
|
}else if("Vote_Info2".equals(VOTE_RESULT)){
|
|
VOTE_RESULT = "不同意";
|
|
}else{
|
|
VOTE_RESULT = "附条件同意";
|
|
}
|
|
String VOTE_MEMO = list.get(i).getAttribute("VOTE_MEMO").toString();//意见
|
|
%>
|
|
<tr style="height:25px">
|
|
<td style="font-size: 14">评审委员:</td>
|
|
<td colspan="2"><%=vote_name %></td>
|
|
<td style="font-size: 14">投票意见:</td>
|
|
<td colspan="2"><%=VOTE_RESULT %></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="font-size: 14">意见:</td>
|
|
<td colspan="5">
|
|
<textarea style="border:0px solid;width:100%" rows="5"><%=VOTE_MEMO %></textarea>
|
|
</td>
|
|
</tr>
|
|
<%} %>
|
|
</tbody>
|
|
</table>
|
|
</body>
|
|
<script type="text/javascript">
|
|
$('textarea').attr('readonly',true);
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |