diff --git a/WebContent/Tenwa/Core/FlowManager/CopyFileToOther.jsp b/WebContent/Tenwa/Core/FlowManager/CopyFileToOther.jsp index b45ef2e01..2495a3cd0 100644 --- a/WebContent/Tenwa/Core/FlowManager/CopyFileToOther.jsp +++ b/WebContent/Tenwa/Core/FlowManager/CopyFileToOther.jsp @@ -1,20 +1,59 @@ <%@page import="com.tenwa.reckon.copydata.FileCopyToOtherPath"%> +<%@page import="com.tenwa.officetempalte.action.CreateOfficeAction"%> +<%@page import="jbo.app.tenwa.doc.LC_COPYFILE_LOG"%> +<%@page import="com.amarsoft.are.util.StringFunction"%> <%@page import="com.amarsoft.are.jbo.JBOFactory"%> +<%@page import="com.amarsoft.are.jbo.JBOTransaction"%> <%@page import="com.amarsoft.are.jbo.BizObjectManager"%> <%@page import="com.amarsoft.are.jbo.BizObjectQuery"%> <%@page import="com.amarsoft.are.jbo.BizObject"%> <%@ page contentType="text/html; charset=GBK"%><%@ include file="/IncludeBeginMDAJAX.jsp"%><% - String batchNos = CurPage.getParameter("batchNos"); + //创建资料 String contractNos = CurPage.getParameter("contractNos"); - String type = CurPage.getParameter("type"); + String batchNos = CurPage.getParameter("batchNos"); String userid = CurPage.getParameter("userid"); + String sParam = CurPage.getParameter("sParam"); + + String templateNo = "8c0b32eefcf349e5b5f76d898df0bbbb"; + + FileCopyToOtherPath cp = new FileCopyToOtherPath(); cp.setContractNos(contractNos); cp.setBatchNos(batchNos); cp.setUserid(userid); - String result = cp.copyFile(type); - out.print(result); + + CreateOfficeAction coa = new CreateOfficeAction(); + JBOTransaction tx = JBOFactory.createJBOTransaction(); + + if(sParam.contains("PayFileList")){ + cp.copyFile("PayFileList"); + } + if(sParam.contains("FileList")){ + cp.copyFile("FileList"); + } + if(sParam.contains("RentPlan")){ + String[] contractNoArray = contractNos.split("@"); + String[] batchNoArray = batchNos.split("@"); + for(int i=0;i<%@ include file="/IncludeEndAJAX.jsp"%> \ No newline at end of file diff --git a/WebContent/Tenwa/Core/FlowManager/CreatRentPlanList.jsp b/WebContent/Tenwa/Core/FlowManager/CreatRentPlanList.jsp deleted file mode 100644 index 9fb85e73e..000000000 --- a/WebContent/Tenwa/Core/FlowManager/CreatRentPlanList.jsp +++ /dev/null @@ -1,36 +0,0 @@ -<%@page import="com.tenwa.officetempalte.action.CreateOfficeAction"%> -<%@page import="jbo.app.tenwa.doc.LC_COPYFILE_LOG"%> -<%@page import="com.amarsoft.are.util.StringFunction"%> -<%@page import="com.amarsoft.are.jbo.JBOFactory"%> -<%@page import="com.amarsoft.are.jbo.JBOTransaction"%> -<%@page import="com.amarsoft.are.jbo.BizObjectManager"%> -<%@page import="com.amarsoft.are.jbo.BizObjectQuery"%> -<%@page import="com.amarsoft.are.jbo.BizObject"%> - -<%@ page contentType="text/html; charset=GBK"%><%@ include file="/IncludeBeginMDAJAX.jsp"%><% - String templateNo = CurPage.getParameter("templateNo"); - String templateParam = CurPage.getParameter("templateParam"); - String contractNo = CurPage.getParameter("contractNo"); - String batchNo = CurPage.getParameter("batchNo"); - String userid = CurPage.getParameter("userid"); - CreateOfficeAction coa = new CreateOfficeAction(); - JBOTransaction tx = JBOFactory.createJBOTransaction(); - coa.setTemplateNo(templateNo); - coa.setTemplateParam(templateParam); - String result = coa.createOfficeByTemplate(tx); - if("success".equals(result)){ - BizObjectManager bom = JBOFactory.getBizObjectManager(LC_COPYFILE_LOG.CLASS_NAME); - BizObject nbom = bom.newObject(); - nbom.setAttributeValue("CONTRACT_NO", contractNo); - nbom.setAttributeValue("BATCH_NO", batchNo); - nbom.setAttributeValue("COPY_TYPE","租金计划"); - nbom.setAttributeValue("INPUTTIME",StringFunction.getTodayNow()); - nbom.setAttributeValue("INPUTUSERID",userid); - bom.saveObject(nbom); - } - - //成功为"success" - out.print(result); -%><%@ include file="/IncludeEndAJAX.jsp"%> - - \ No newline at end of file diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileDownloadImportList.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileDownloadImportList.jsp index fe171d6be..d37c2ad1a 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileDownloadImportList.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileDownloadImportList.jsp @@ -43,73 +43,33 @@