<%@ page contentType="text/html; charset=GBK"%> <%@ include file="/Frame/resources/include/include_begin_simplelist.jspf"%> <%@ page import="com.tenwa.doc.action.DocListInitAction" %> <%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %> <% /* Author: undefined 2016-09-01 Content: History Log: */ String custid=CurPage.getParameter("customerid");//客户ID if(custid==""||custid==null){ custid="custid"; } String mainType=CurPage.getParameter("mainType"); if(mainType==null){ mainType=""; } String flowunid=CurPage.getParameter("ObjectNo");//流程号 if(flowunid==""||flowunid==null){ flowunid="flowunid"; } String flowno=CurPage.getParameter("FlowNo");//流程号 if(flowno==null){ flowno=""; } String phaseno=CurPage.getParameter("PhaseNo");//流程号 if(phaseno==null){ phaseno=""; } String type=CurPage.getParameter("type"); if(type==null)type=""; String sObjectType = CurPage.getParameter("FlowNo");//流程类型 //System.out.println(sObjectType); String ishistory=CurPage.getParameter("IsHistory"); String nodeNo=CurPage.getParameter("NodeNo"); String RightType= CurPage.getParameter("RightType"); if(RightType==null){ RightType=""; } //CurPage.getCurComp().setAttribute("RightType",null); String sTempletNo=CurPage.getParameter("TempletNo");//模板号 if(sTempletNo==null){ sTempletNo="FlowDocList"; } BizObject flow=GetFlowAction.getFlowBussinessObject(flowunid);//流程对象 String projid=flow.getAttribute("PROJ_ID").getString(); String docClassItemno= CurPage.getParameter("docClassItemno"); String compClientID = request.getParameter("CompClientID"); String username=CurUser.getUserName(); BizObject ent=JBOFactory.createBizObjectQuery("jbo.app.tenwa.customer.CUSTOMER_COMPANY","CUSTOMERID=:customerid").setParameter("customerid", custid).getSingleResult(false); if(ent!=null||mainType.equals("Payfiles")||mainType.equals("Customer_Fact")){ docClassItemno+="001"; }else{ docClassItemno+="002"; } Map docParam=new HashMap(); Map other=new HashMap(); docParam.put("ObjectType",sObjectType); docParam.put("cust_id",custid); docParam.put("proj_id", projid); docParam.put("contract_id", flow.getAttribute("contract_id").getString()); docParam.put("flow_unid", flowunid); //判断是否存在,不存在就从配置表倒到临时表 DocListInitAction.initDocList(docParam,other,docClassItemno,CurConfig); ASObjectModel doTemp = new ASObjectModel(sTempletNo); String otherWhere=DocListInitAction.getFlowWhere(flow,"","rela"); doTemp.appendJboWhere(otherWhere); doTemp.appendJboWhere(" and O.doc_Class_Itemno='"+docClassItemno+"' and rela.cust_id='"+custid+"'"); doTemp.setLockCount(2); if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){ doTemp.setVisible("operation", false); } ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); dwTemp.Style="1"; //--设置为Grid风格-- dwTemp.ReadOnly = "0"; dwTemp.MultiSelect=true;//多选 dwTemp.setPageSize(50); if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){ dwTemp.ReadOnly = "1";//只读模式 isShowButton=false; }else{ isShowButton=true; } dwTemp.genHTMLObjectWindow(""); //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 String sButtons[][] =null; if(flowno.equals("ProjectCreditFlow")&&phaseno.equals("0030")){ sButtons=new String[][]{ {"true","","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"}, {"true","","Button","批量下载","批量下载","downloadZipFile()","","","","btn_icon_down"}, {"true","","Button","批量已提交","批量已提交","updateReviewCheck()","","","","btn_icon_down"} }; }else{ sButtons=new String[][]{ {"true","","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"}, {"true","","Button","批量下载","批量下载","downloadZipFile()","","","","btn_icon_down"} }; } %><%@include file="/Frame/resources/include/ui/include_list.jspf"%> <%@ include file="/Frame/resources/include/include_end.jspf"%>