<%@ 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" %> <%@ page import="com.amarsoft.app.util.ProductParamUtil" %> <%@ page import="jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT" %> <% /* Author: undefined 2016-09-01 Content: History Log: */ String objectno = CurPage.getParameter("FlowUnid"); String flowunid=""; String contractId = CurPage.getParameter("ContractId"); String projectId = CurPage.getParameter("ProjectId"); System.out.println("contractId=" + contractId); //将空值转化为空字符串 BizObjectManager fbo = JBOFactory.getBizObjectManager(FLOW_BUSSINESS_OBJECT.CLASS_NAME); String sSql = " select ldl.flow_unid " + " from LB_DOCLIBRARY ld " + " LEFT JOIN LB_DOCRELATIVE ldl on ld.relative_id=ldl.id " + " where ldl.proj_id='"+ projectId +"' and ldl.objecttype='FundPaymentCarFlow' and ldl.flow_unid <> '"+objectno+"' " + " GROUP BY ldl.flow_unid "; ASResultSet rs = null; rs = Sqlca.getASResultSet(sSql); while (rs.next()) { flowunid = DataConvert.toString(rs.getString("flow_unid")); } rs.getStatement().close(); String flowstate=CurPage.getParameter("flowstate"); String CustomerType=CurPage.getParameter("CustomerType"); String carAttributes=CurPage.getParameter("carAttributes");//获取车类型 if(flowunid==""||flowunid==null){ flowunid="flowunid"; } BizObject flow=GetFlowAction.getFlowBussinessObject(flowunid);//流程对象 String sObjectType = "FlowPayDocListDelete";//付款申请 String ishistory=CurPage.getParameter("IsHistory"); String nodeNo=CurPage.getParameter("NodeNo"); String RightType= "ReadOnly"; String username=CurUser.getUserName(); String phaseNo = CurPage.getParameter("PhaseNo"); String apply = CurPage.getParameter("ApplyType"); String type= "fundPay"; if(type==null)type=""; List list = ProductParamUtil.getProductDocInfo(CurPage.getParameter("ProductId"),"PRD0412");//方案类型 String types=""; String docList=""; for(int i=0;i map=(Map)list.get(i); if(sObjectType.equals(map.get("FLOW_INFO").toString())){ types=map.get("TYPE").toString(); if("SingleRow".equals(types)){ docList=map.get("DOCLIST").toString(); }else{ List l=(List)map.get("DOCCONFIG"); docList=l.toString(); } } } String docClassItemno=docList; String[] itemnos=docClassItemno.split(","); String s=""; String classItemno =""; for(int i=0;i0){ s=s.substring(0, s.length()-1); classItemno = s.replace(",", "@"); } String compClientID = request.getParameter("CompClientID"); ASObjectModel doTemp = new ASObjectModel("FlowPayDocListDelete"); doTemp.setVisible("operation", false); // String otherWhere = "and rela.proj_id='"+ projectId +"'and rela.flow_unid='"+ flowunid +"' and rela.objecttype='FundPaymentCarFlow'"; // String otherWhere = and rela.proj_id='4e0962e029a8473492f784732a004e2e' and (rela.contract_id='' or rela.contract_id is null or rela.contract_id='d6bd7d316ea24b7bbfad1bc9f83b2b56') ; String otherWhere = "and rela.proj_id='"+ projectId +"' and rela.objecttype='FundPaymentCarFlow'"; doTemp.appendJboWhere(otherWhere); doTemp.setLockCount(2); ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); dwTemp.Style="1"; //--设置为Grid风格-- dwTemp.ReadOnly = "1";//只读模式 isShowButton=false; dwTemp.setPageSize(500); dwTemp.genHTMLObjectWindow(flowunid); //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 String sButtons[][] =null; sButtons=new String[][]{ {"true","","Button","保存","保存所有修改","saveRecord()","","","",""}, {"true","","Button","批量下载","批量下载","downloadZipFile()","","","","btn_icon_down"}, }; %> <%@include file="/Frame/resources/include/ui/include_list.jspf"%> <%@ include file="/Frame/resources/include/include_end.jspf"%>