diff --git a/WebContent/Tenwa/Comm/DocList/PayDocListFk.jsp b/WebContent/Tenwa/Comm/DocList/PayDocListFk.jsp new file mode 100644 index 000000000..51895f566 --- /dev/null +++ b/WebContent/Tenwa/Comm/DocList/PayDocListFk.jsp @@ -0,0 +1,273 @@ +<%@ 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 flowunid=""; + String contractId = CurPage.getParameter("ContractId"); + System.out.println("contractId=" + contractId); + //将空值转化为空字符串 + if(contractId==null)contractId=""; + BizObjectManager ftManager = JBOFactory.getBizObjectManager("jbo.sys.FLOW_TASK"); + BizObjectManager fbo = JBOFactory.getBizObjectManager(FLOW_BUSSINESS_OBJECT.CLASS_NAME); + List opinionList = new ArrayList(); + BizObject fboRes = fbo.createQuery("flow_name=:flow_name and contract_id=:contract_id").setParameter("contract_id", contractId).setParameter("flow_name", "付款申请(汽车)").getSingleResult(false); + if(null != fboRes) { + flowunid = fboRes.getAttribute("flow_unid").getString(); + } + 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 = "FundPaymentCarFlow";//付款申请 + + + 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=CurPage.getParameter("docList"); +// String docClassItemno=CurPage.getParameter("docList"); + 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"); + + Map docParam=new HashMap(); + Map other=new HashMap(); + other.put("carAttributes", carAttributes); + other.put("CustomerType", CustomerType); + docParam.put("ObjectType",sObjectType); + docParam.put("proj_id", flow.getAttribute("proj_id").getString()); + docParam.put("contract_id", flow.getAttribute("contract_id").getString()); + docParam.put("flow_unid", flowunid); + docParam.put("inputtime", StringFunction.getTodayNow()); + docParam.put("inputuserid", CurPage.getUserId()); + docParam.put("inputorgid", CurPage.getUser().getOrgID()); + + String projectId = flow.getAttribute("proj_id").getString(); + + //判断是否存在,不存在就从配置表倒到临时表 + //DocListInitAction.initDocList(docParam,other,docClassItemno,CurConfig); + ASObjectModel doTemp = new ASObjectModel("FlowPayDocList"); + if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){ + doTemp.setVisible("operation", false); + String otherWhere=DocListInitAction.getHistoryFlowWhere(flow,"rela"); + System.out.println(otherWhere); + doTemp.appendJboWhere(DocListInitAction.getHistoryFlowWhere(flow,"rela")); + }else{ + //判断是否存在,不存在就从配置表倒到临时表 + DocListInitAction.initDocList(docParam,other,docClassItemno,CurConfig); + String otherWhere=DocListInitAction.getFlowWhere(flow,"","rela"); + doTemp.appendJboWhere(otherWhere); + doTemp.appendJboWhere(" and O.doc_Class_Itemno in ("+s+")"); + } + 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"%> \ No newline at end of file