From e69d6d8164197cb1e2a2f122adc578d712492e26 Mon Sep 17 00:00:00 2001 From: zhangbb Date: Sun, 26 May 2019 21:17:33 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=96=87=E4=BB=B6=E5=A4=8D=E5=88=B6=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E9=87=8D=E6=9E=84=EF=BC=9B=202.=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5=EF=BC=9B=203.=E7=A7=9F?= =?UTF-8?q?=E9=87=91=E8=AE=A1=E5=88=92=E6=A8=A1=E6=9D=BF=E5=AE=8C=E5=96=84?= =?UTF-8?q?=EF=BC=9B=204.excel=E9=BB=98=E8=AE=A4=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E6=9B=B4=E6=94=B9=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Core/FlowManager/CopyFileToOther.jsp | 47 ++++++++++- .../Core/FlowManager/CreatRentPlanList.jsp | 36 --------- .../FileDownloadImportList.jsp | 68 ++++------------ .../租金支付计划{CONTRACT_NO} .xlsx | Bin 0 -> 10628 bytes .../reckon/copydata/FileCopyToOtherPath.java | 2 +- .../impl/CopyFIileExportCallBack.java | 74 ++++++++++++++++++ 6 files changed, 132 insertions(+), 95 deletions(-) delete mode 100644 WebContent/Tenwa/Core/FlowManager/CreatRentPlanList.jsp create mode 100644 WebContent/fileTemplate/租金支付计划{CONTRACT_NO} .xlsx create mode 100644 src_core/com/tenwa/officetempalte/exportcallback/impl/CopyFIileExportCallBack.java 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 @@