diff --git a/WebContent/Accounting/LoanSimulation_formal/RentPlanIncomeList_new.jsp b/WebContent/Accounting/LoanSimulation_formal/RentPlanIncomeList_new.jsp
new file mode 100644
index 000000000..e97a51bcd
--- /dev/null
+++ b/WebContent/Accounting/LoanSimulation_formal/RentPlanIncomeList_new.jsp
@@ -0,0 +1,36 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@page import="com.amarsoft.are.jbo.BizObject"%>
+<%@page import="com.amarsoft.are.jbo.JBOException"%>
+<%@page import="com.amarsoft.are.jbo.JBOFactory"%>
+<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
+ /*
+ Author: undefined 2019-05-21
+ Content:
+ History Log:
+ */
+ String contract_id=CurPage.getParameter("id");
+ String plannumber = CurPage.getParameter("plannumber");
+ String sDONo = "VI_LC_RENT_INCOME";
+ BizObject status=JBOFactory.createBizObjectQuery("jbo.app.tenwa.calc.LC_CALC_CONDITION_STATUS","contract_id=:contract_id").setParameter("contract_id", contract_id).getSingleResult(false);
+ if(status==null){
+ sDONo="LC_PAY_RENT_PLAN";
+ }
+ ASObjectModel doTemp = new ASObjectModel(sDONo);
+ if(plannumber!=null&&plannumber.length()>0&&!"null".equals(plannumber)){
+ doTemp.appendJboWhere(" and payment_number='"+plannumber+"'");
+ }
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ dwTemp.Style="1"; //--设置为Grid风格--
+ dwTemp.ReadOnly = "1"; //只读模式
+ dwTemp.setPageSize(20);
+ dwTemp.genHTMLObjectWindow(contract_id);
+
+ //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
+ String sButtons[][] = {
+
+ };
+%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
+
+<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Accounting/LoanSimulation_formal/condition_plan.jsp b/WebContent/Accounting/LoanSimulation_formal/condition_plan.jsp
index 5f9bf0c19..f6fedfeca 100644
--- a/WebContent/Accounting/LoanSimulation_formal/condition_plan.jsp
+++ b/WebContent/Accounting/LoanSimulation_formal/condition_plan.jsp
@@ -12,7 +12,7 @@
}
//参数:0.是否显示, 1.标题,2.URL,3,参数串, 4. Strip高度(默认600px),5. 是否有关闭按钮(默认无) 6. 是否缓存(默认是)
String sTabStrip[][] = {
- {falg, "租金计划", "/Accounting/LoanSimulation_formal/RentPlanIncomeList.jsp",params, "", "", "false"},
+ {falg, "租金计划(回笼)", "/Accounting/LoanSimulation_formal/RentPlanIncomeList_new.jsp",params, "", "", "false"},
{falg.equals("true")?"false":"true", "租金计划", "/Accounting/LoanSimulation_formal/RentPlanList.jsp",params, "", "", "false"},
{"true", "资金计划", "/Accounting/LoanSimulation_formal/FundPlanList.jsp",params, "", "", "false"},
{"true", "现金流", "/Accounting/LoanSimulation_formal/CashFlowList.jsp",params, "", "", "false"},
diff --git a/WebContent/Tenwa/Core/FlowManager/CopyFileToOther.jsp b/WebContent/Tenwa/Core/FlowManager/CopyFileToOther.jsp
index 193d1f4cc..2495a3cd0 100644
--- a/WebContent/Tenwa/Core/FlowManager/CopyFileToOther.jsp
+++ b/WebContent/Tenwa/Core/FlowManager/CopyFileToOther.jsp
@@ -1,16 +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 param = CurPage.getParameter("contractNos");
+ //创建资料
+ String contractNos = CurPage.getParameter("contractNos");
+ String batchNos = CurPage.getParameter("batchNos");
+ String userid = CurPage.getParameter("userid");
+ String sParam = CurPage.getParameter("sParam");
+
+ String templateNo = "8c0b32eefcf349e5b5f76d898df0bbbb";
+
+
FileCopyToOtherPath cp = new FileCopyToOtherPath();
- cp.setContractNos(param);
- String result = cp.copyFile();
- out.print(result);
+ cp.setContractNos(contractNos);
+ cp.setBatchNos(batchNos);
+ cp.setUserid(userid);
+
+ 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/Lease/Flow/Comm/LBAssetTransferRegistration/FileDownloadImportList.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileDownloadImportList.jsp
index 0bc987d12..d37c2ad1a 100644
--- a/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileDownloadImportList.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileDownloadImportList.jsp
@@ -6,6 +6,7 @@
String PG_TITLE = "文件下载"; // 浏览器窗口标题 PG_TITLE
%>
<%
+ String userid=CurUser.getUserID();
ASObjectModel doTemp = new ASObjectModel("li_Property_import");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
@@ -25,8 +26,7 @@
{"true","All","Button","删除","删除","deleteRecord()","","","","btn_icon_delete",""},
{"true","","Button","excel导入","excel导入","importExcel()","","","","btn_icon_import"},
{"true","","Button","模版下载","模版下载","DiscountDownload()","","","","btn_icon_down",""},
- {"true","All","Button","生成租金计划","生成租金计划","createPlan()","","","","btn_icon_generate"},
- {"true","All","Button","测试拷贝","测试拷贝","copyPath()","","","","btn_icon_generate"},
+ {"true","All","Button","下载","下载资料","copy()","","","","btn_icon_generate"},
};
%>
<%/*~END~*/%>
@@ -42,79 +42,34 @@
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
+<%@page import="jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT"%>
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
+ /*
+ Author: undefined 2018-07-16
+ Content:
+ History Log:
+ */
+ String flowunid = CurPage.getParameter("FlowUnid");
+ String contractid = CurPage.getParameter("ContractId");
+ String customerType = CurPage.getParameter("CustomerType");
+ String falg = "false";
+ if("03".equals(customerType)){
+ falg = "true";
+ }
+ CurPage.getParameter("PrevUrl");
+ ASObjectModel doTemp = new ASObjectModel("ChangeDebitCardList");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ dwTemp.Style="1"; //--设置为Grid风格--
+// dwTemp.ReadOnly = "1"; //只读模式
+ dwTemp.setPageSize(10);
+ dwTemp.genHTMLObjectWindow(flowunid);
+ dwTemp.ReadOnly = "1";
+ isShowButton=true;
+ //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
+ String sButtons[][] = {
+ {"true","All","Button","生成模板","生成模板","generatepdf()","","","",""},
+ {falg,"All","Button","发起电子签约","发起电子签约","stamp()","","","",""},
+ {falg,"All","Button","查询签约结果","查询签约结果","getStatus()","","","",""},
+ {falg,"All","Button","重新发送短息","重新发送短息","sendMessageAgain()","","","","btn_icon_refresh"},
+ };
+ //sButtonPosition = "north";
+%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
+
<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Lease/Flow/Contract/ContractOnhire/ContractOnhireApplyList.jsp b/WebContent/Tenwa/Lease/Flow/Contract/ContractOnhire/ContractOnhireApplyList.jsp
index 58bded533..bff71969c 100644
--- a/WebContent/Tenwa/Lease/Flow/Contract/ContractOnhire/ContractOnhireApplyList.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Contract/ContractOnhire/ContractOnhireApplyList.jsp
@@ -27,7 +27,7 @@
var project_name = sReturn[4];
var payment_number = sReturn[5];
var sParams = "applyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
- sParams =sParams+",payment_number="+payment_number+",ProjectId="+project_id+",FlowKey="+payment_number+",ProductId="+product_id+",ContractId="+contract_id+",ProjectName="+project_name;
+ sParams =sParams+",payment_number="+payment_number+",ProjectId="+project_id+",FlowKey="+contract_number+",ProductId="+product_id+",ContractId="+contract_id+",ProjectName="+project_name;
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams);
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
var sReturnInfos=sReturnInfo.split("@");
diff --git a/WebContent/Tenwa/Lease/Flow/RentCollection/generatedreminderletter/GeneratedReminderLetterList.jsp b/WebContent/Tenwa/Lease/Flow/RentCollection/generatedreminderletter/GeneratedReminderLetterList.jsp
index 9da19ac25..d6dbc0368 100644
--- a/WebContent/Tenwa/Lease/Flow/RentCollection/generatedreminderletter/GeneratedReminderLetterList.jsp
+++ b/WebContent/Tenwa/Lease/Flow/RentCollection/generatedreminderletter/GeneratedReminderLetterList.jsp
@@ -39,6 +39,17 @@
}
String useridStr = StringUtils.join(useridList.toArray(), ",");
doTemp.appendJboWhere(" and O.project_manage in (" + useridStr + ")");
+ }else if(roleList.contains("800R00000048")){
+ String userid_kj="";
+ BizObjectManager userInfoBOM = JBOFactory.getBizObjectManager("jbo.awe.USER_INFO");
+ List userListObject = userInfoBOM.createQuery("belongorg=:belongorg").setParameter("belongorg", "8006014").getResultList(false);
+ List useridList_kj = new ArrayList();
+ for(BizObject bo : userListObject){
+ userid_kj = bo.getAttribute("userid").toString();
+ useridList_kj.add("'"+userid_kj+"'");
+ }
+ String useridStr = StringUtils.join(useridList_kj.toArray(), ",");
+ doTemp.appendJboWhere(" and O.project_manage in (" + useridStr + ")");
}
//登录人属于经销商角色 401:经销商roleid
if(roleList.contains("401")){
diff --git a/WebContent/Tenwa/Lease/Flow/RentCollection/overduedunning/OverdueDunningList.jsp b/WebContent/Tenwa/Lease/Flow/RentCollection/overduedunning/OverdueDunningList.jsp
index 087823363..fff9c886e 100644
--- a/WebContent/Tenwa/Lease/Flow/RentCollection/overduedunning/OverdueDunningList.jsp
+++ b/WebContent/Tenwa/Lease/Flow/RentCollection/overduedunning/OverdueDunningList.jsp
@@ -9,6 +9,7 @@
History Log:
*/
String userid=CurUser.getUserID();
+ String belongorg=CurUser.getBelongOrg().getOrgID();
ASObjectModel doTemp = new ASObjectModel("OverdueDunningList");
//String sCondtion=DataRightManager.getRightCondition(CurUser,"O", "contract");
//doTemp.appendJboWhere(sCondtion);
@@ -37,6 +38,17 @@
}
String useridStr = StringUtils.join(useridList.toArray(), ",");
doTemp.appendJboWhere(" and O.project_manage in (" + useridStr + ")");
+ }else if(roleList.contains("800R00000048")){//800R00000048为凯捷催收角色==========8006014为凯捷经销商
+ String userid_kj="";
+ BizObjectManager userInfoBOM = JBOFactory.getBizObjectManager("jbo.awe.USER_INFO");
+ List userListObject = userInfoBOM.createQuery("belongorg=:belongorg").setParameter("belongorg", "8006002").getResultList(false);
+ List useridList_kj = new ArrayList();
+ for(BizObject bo : userListObject){
+ userid_kj = bo.getAttribute("userid").toString();
+ useridList_kj.add("'"+userid_kj+"'");
+ }
+ String useridStr = StringUtils.join(useridList_kj.toArray(), ",");
+ doTemp.appendJboWhere(" and O.project_manage in (" + useridStr + ")");
}
//登录人属于经销商角色 401:经销商roleid
if(roleList.contains("401")){
@@ -51,12 +63,17 @@
//dwTemp.setPageSize(10);
dwTemp.setPageSize(pageSize==null?10:Integer.parseInt(pageSize));
dwTemp.genHTMLObjectWindow("");
-
+
+ //凯捷催收自动分派暂时没有催款员,判断登录为凯捷催收时隐藏修改、批量修改按钮
+ String temp = "true";
+ if("8006002".equals(belongorg)){
+ temp = "false";
+ };
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
String sButtons[][] = {
- {"true","","Button","修改","修改","viewAndEdit()","","","","btn_icon_edit",""},
+ {temp,"","Button","修改","修改","viewAndEdit()","","","","btn_icon_edit",""},
//{"true","","Button","批量修改","批量修改","viewAndEditAll()","","","","btn_icon_edit",""},
- {"true","","Button","批量修改","批量修改","selectPartDept()","","","","btn_icon_edit",""},
+ {temp,"","Button","批量修改","批量修改","selectPartDept()","","","","btn_icon_edit",""},
};
String orgCompany=CurUser.getOrgID();
if(orgCompany.length()>13){
diff --git a/WebContent/Tenwa/Lease/Flow/RentCollection/rentcollection/rentCollectionList.jsp b/WebContent/Tenwa/Lease/Flow/RentCollection/rentcollection/rentCollectionList.jsp
index d98312672..ff8281029 100644
--- a/WebContent/Tenwa/Lease/Flow/RentCollection/rentcollection/rentCollectionList.jsp
+++ b/WebContent/Tenwa/Lease/Flow/RentCollection/rentcollection/rentCollectionList.jsp
@@ -36,6 +36,17 @@
}
String useridStr = StringUtils.join(useridList.toArray(), ",");
doTemp.appendJboWhere(" and O.project_manage in (" + useridStr + ")");
+ }else if(roleList.contains("800R00000045")){
+ String userid_kj="";
+ BizObjectManager userInfoBOM = JBOFactory.getBizObjectManager("jbo.awe.USER_INFO");
+ List userListObject = userInfoBOM.createQuery("belongorg=:belongorg").setParameter("belongorg", "8006014").getResultList(false);
+ List useridList_kj = new ArrayList();
+ for(BizObject bo : userListObject){
+ userid_kj = bo.getAttribute("userid").toString();
+ useridList_kj.add("'"+userid_kj+"'");
+ }
+ String useridStr = StringUtils.join(useridList_kj.toArray(), ",");
+ doTemp.appendJboWhere(" and O.project_manage in (" + useridStr + ")");
}
//登录人属于经销商角色 401:经销商roleid
if(roleList.contains("401")){
diff --git a/WebContent/WEB-INF/etc/jbo/jbo_calc.xml b/WebContent/WEB-INF/etc/jbo/jbo_calc.xml
index 29dd2eb2c..9bd039cf1 100644
--- a/WebContent/WEB-INF/etc/jbo/jbo_calc.xml
+++ b/WebContent/WEB-INF/etc/jbo/jbo_calc.xml
@@ -3948,6 +3948,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/WebContent/WEB-INF/etc/jbo/jbo_doc.xml b/WebContent/WEB-INF/etc/jbo/jbo_doc.xml
index dff05b8de..ba663f8af 100644
--- a/WebContent/WEB-INF/etc/jbo/jbo_doc.xml
+++ b/WebContent/WEB-INF/etc/jbo/jbo_doc.xml
@@ -202,8 +202,7 @@
-
-
+
diff --git a/WebContent/fileTemplate/鍌敹鍑.docx b/WebContent/fileTemplate/鍌敹鍑.docx
index fdf0d01ee..03e63de5e 100644
Binary files a/WebContent/fileTemplate/鍌敹鍑.docx and b/WebContent/fileTemplate/鍌敹鍑.docx differ
diff --git a/WebContent/fileTemplate/绉熼噾鏀粯璁″垝{CONTRACT_NO} .xlsx b/WebContent/fileTemplate/绉熼噾鏀粯璁″垝{CONTRACT_NO} .xlsx
new file mode 100644
index 000000000..bf48a3624
Binary files /dev/null and b/WebContent/fileTemplate/绉熼噾鏀粯璁″垝{CONTRACT_NO} .xlsx differ
diff --git a/WebContent/fileTemplate/绉熼噾鏀粯璁″垝{CONTRACT_NUMBER}.xlsx b/WebContent/fileTemplate/绉熼噾鏀粯璁″垝{CONTRACT_NUMBER}.xlsx
new file mode 100644
index 000000000..e616c5a49
Binary files /dev/null and b/WebContent/fileTemplate/绉熼噾鏀粯璁″垝{CONTRACT_NUMBER}.xlsx differ
diff --git a/calc/com/tenwa/reckon/copydata/FileCopyToOtherPath.java b/calc/com/tenwa/reckon/copydata/FileCopyToOtherPath.java
index 204663eee..824070c8d 100644
--- a/calc/com/tenwa/reckon/copydata/FileCopyToOtherPath.java
+++ b/calc/com/tenwa/reckon/copydata/FileCopyToOtherPath.java
@@ -12,6 +12,7 @@ import java.util.Map;
+
import jbo.app.tenwa.doc.LC_COPYFILE_LOG;
import org.apache.commons.io.FileUtils;
@@ -19,21 +20,35 @@ import org.apache.commons.io.FileUtils;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.JBOFactory;
+import com.amarsoft.are.util.StringFunction;
import com.amarsoft.awe.Configure;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
public class FileCopyToOtherPath {
private String contractNos;
+ private String batchNos;
+ private String userid;
+ public String getUserid() {
+ return userid;
+ }
+ public void setUserid(String userid) {
+ this.userid = userid;
+ }
public String getContractNo() {
return contractNos;
}
public void setContractNos(String contractNos) {
this.contractNos = contractNos;
}
-
- public String doCopy(String contractNo){
+ public String getBatchNos() {
+ return batchNos;
+ }
+ public void setBatchNos(String batchNos) {
+ this.batchNos = batchNos;
+ }
+ public String doCopy(String contractNo,String bacthNo,String type){
Transaction Sqlca = Transaction.createTransaction("als");
//原路径
String srcPath ;
@@ -44,11 +59,11 @@ public class FileCopyToOtherPath {
try {
Configure config = Configure.getInstance();
rootPath = config.getConfigure("FileCopyPath");
- String sql = "SELECT O.FULLPATH AS FULLPATH, CONCAT(LCI.CONTRACT_NO, '/', LDL.ONE_CLASSIFY, '/' , LDL.DOC_NAME, '/', O.FILENAME) AS TARGET_FILE_PATH FROM LB_DOCATTRIBUTE O"
+ String sql = "SELECT O.FULLPATH AS FULLPATH, CONCAT(REPLACE(LCI.CONTRACT_NO,'/','-'), '/','"+type+"','/', REPLACE(LDL.ONE_CLASSIFY,'/','-'), '/' , REPLACE(LDL.DOC_NAME,'/','-'), '/', REPLACE(O.FILENAME,'/','-')) AS TARGET_FILE_PATH FROM LB_DOCATTRIBUTE O"
+" LEFT JOIN LB_DOCLIBRARY LDL ON LDL.ID = O.LIBRARY_ID"
+" LEFT JOIN LB_DOCRELATIVE LDR ON LDL.RELATIVE_ID = LDR.ID"
+" LEFT JOIN LB_CONTRACT_INFO LCI ON LDR.CONTRACT_ID = LCI.ID"
- +" WHERE LCI.CONTRACT_NO ='"+contractNo+"'";
+ +" WHERE LCI.CONTRACT_NO ='"+contractNo+"' AND LDL.DOC_TYPE LIKE '"+type+"%'";
Map params=new HashMap();
List