<%@ page contentType="text/html; charset=GBK"%> <%@ include file="/IncludeBeginMD.jsp"%><% /* * Content: 查看信用等级认定意见 */ //获取页面参数 String sObjectType = CurPage.getParameter("ObjectType"); String sObjectNo= CurPage.getParameter("ObjectNo"); String sCurFlowNo = CurPage.getParameter("FlowNo"); String sCurPhaseNo = CurPage.getParameter("PhaseNo"); //将空值转化为空字符串 if(sObjectType==null)sObjectType=""; if(sObjectNo==null)sObjectNo=""; if(sCurFlowNo==null)sCurFlowNo=""; if(sCurPhaseNo==null)sCurPhaseNo=""; String sSql,sOpinionRightType="",sOpinionRightPhases="",sOpinionRightRoles="",sPhaseAction=""; boolean bRolePrivilege = false; //哪些阶段能看 boolean bPhasePrivilege = false;// boolean bPhaseMatch = false;//判断当前意见所处阶段是否在对应的特权阶段 int iCountRecord=0;//用于判断记录是否有审批意见 BizObjectManager fmManager = JBOFactory.getBizObjectManager("jbo.sys.FLOW_MODEL"); BizObjectManager foManager = JBOFactory.getBizObjectManager("jbo.sys.FLOW_OPINION"); BizObjectManager ftManager = JBOFactory.getBizObjectManager("jbo.sys.FLOW_TASK"); //各级人员意见保存在 FLOW_OPINION 中 ,如果需要显示一些其他意见需要修改签署意见界面进行配套 //FLOW_MODEL添加的读于意见查看权限的判断,通过 Attribute3, sSql = " select FO.CustomerName, "+//客户名称 " 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 "+ " 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 and O.ObjectType=:ObjectType ORDER BY O.SerialNo"; List opinionlist = ftManager.createQuery(sSql).setParameter("ObjectNo",sObjectNo) .setParameter("ObjectType",sObjectType).getResultList(false); %> <% for (BizObject opinionBo:opinionlist){ sOpinionRightType = opinionBo.getAttribute("OpinionRightType").getString(); //查看意见方式 all_except(排除一些阶段) none_except(选择一些阶段) sOpinionRightPhases = opinionBo.getAttribute("OpinionRightPhases").getString();//不同查看意见方式对应的阶段 sOpinionRightRoles = opinionBo.getAttribute("OpinionRightRoles").getString(); //意见查看特权角色 sPhaseAction = opinionBo.getAttribute("PhaseAction").getString(); //将空值转化为空字符串 if(sOpinionRightType == null) sOpinionRightType = ""; if(sOpinionRightPhases == null) sOpinionRightPhases = ""; if(sOpinionRightRoles == null) sOpinionRightRoles = ""; if(sPhaseAction == null) sPhaseAction = ""; //1、判断该用户是否拥有特权角色 if(sOpinionRightRoles.equals("")) bRolePrivilege = false; else{ ArrayList roles = CurUser.getRoleTable(); for(int i=0;i=0){ bRolePrivilege = true; break; } } } //2、判断当前意见所处阶段是否在模型对应的特权阶段 if(sOpinionRightPhases.equals("")) bPhaseMatch = false; else{ int iCountPhases = StringFunction.getSeparateSum(sOpinionRightPhases,","); String sTempFlowPhase; for(int i=0;i <% } %>
阶段名称:<%=DataConvert.toString(opinionBo.getAttribute("PhaseName").getString())%> 处理人:<%=DataConvert.toString(opinionBo.getAttribute("UserName").getString())%>
处理人所属机构:<%=DataConvert.toString(opinionBo.getAttribute("OrgName").getString())%> 客户名称:<%=DataConvert.toString(opinionBo.getAttribute("CustomerName").getString())%>
系统评定结果:<%=DataConvert.toMoney(opinionBo.getAttribute("PhaseOpinion1").getString())%> 人工认定结果:<%=DataConvert.toString(opinionBo.getAttribute("PhaseOpinion2").getString())%>
开始时间:<%=DataConvert.toString(opinionBo.getAttribute("BeginTime").getString())%> 完成时间:<%=DataConvert.toString(opinionBo.getAttribute("EndTime").getString())%>
<%="\r\n【评定原因说明】"+ StringFunction.replace(DataConvert.toString(opinionBo.getAttribute("PhaseOpinion").getString()).trim(),"\\r\\n","
")%>
 
<% //如果没有意见或者没有找到对应的对象,则自动关闭 if (iCountRecord==0||sObjectNo.equals("")){ %> 目前此信用等级还没有您可以查看的认定意见! <% } %> <%@ include file="/IncludeEnd.jsp"%>