apzl_leasing/WebContent/Common/WorkFlow/ViewMeetingOpinions.jsp
2018-06-03 22:26:41 +08:00

38 lines
1.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@page import="com.amarsoft.biz.workflow.FlowTask"%>
<%@ page contentType="text/html; charset=GBK"%><%@
include file="/IncludeBegin.jsp"%><%
String sTaskNo = CurComp.getParameter("TaskNo");
String sObjectType = CurComp.getParameter("ObjectType");
String sObjectNo = CurComp.getParameter("ObjectNo");
//找出各个委员的意见
FlowTask ft = new FlowTask(sTaskNo,Sqlca);
String queryString = "select O.serialNo,O.inputUser from O where O.serialNo in (select ft.serialNo from jbo.sys.FLOW_TASK ft where ft.flowNo=:flowNo and ft.phaseNo=:phaseNo and ft.relativeSerialNo=:relativeSerialNo and ft.serialNo<>:taskNo)";
List<BizObject> l =JBOFactory.createBizObjectQuery("jbo.sys.FLOW_OPINION", queryString)
.setParameter("flowNo", ft.FlowNo).setParameter("phaseNo", ft.PhaseNo)
.setParameter("relativeSerialNo", ft.RelativeSerialNo).setParameter("taskNo", sTaskNo).getResultList(false);
ArrayList<String> list = new ArrayList<String>();
for(BizObject bo : l){
list.add(bo.getAttribute("serialNo").getString()+"@"+bo.getAttribute("inputUser").getString());
}
//根据委员的意见生成strip
String[][] sStrips = new String[list.size()][];
for(int i=0; i<list.size(); i++){
String[] strs = list.get(i).split("@");
//0.是否显示, 1.标题2.高度3.组件ID4.URL5参数串6.事件
sStrips[i] = new String[]{"true","委员["+strs[1]+"]意见","240","","/Common/WorkFlow/SignTaskOpinionInfo.jsp", "TaskNo="+strs[0]+"&ObjectType="+sObjectType+"&ObjectNo="+sObjectNo+"&RightType=ReadOnly",""};
}
String sButtons[][] = {
//{"true","","Button","按钮1","按钮1","aaa()","","btn_icon_edit"},
};
%><%@include file="/Resources/CodeParts/Strip05.jsp"%>
<script type="text/javascript">
$(document).ready(function(){
if(<%=list.size()%> == 0){
document.writeln("<br/><br/><div style='padding:30px;'>没有委员意见!!</div>");
}
});
</script>
<%@ include file="/IncludeEnd.jsp"%>