diff --git a/WebContent/Tenwa/Core/SystemConfig/bankCode/BankCodeInfo.jsp b/WebContent/Tenwa/Core/SystemConfig/bankCode/BankCodeInfo.jsp
new file mode 100644
index 000000000..f6949b989
--- /dev/null
+++ b/WebContent/Tenwa/Core/SystemConfig/bankCode/BankCodeInfo.jsp
@@ -0,0 +1,30 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
+ /*
+ Author: undefined 2020-12-14
+ Content: 示例详情页面
+ History Log:
+ */
+ String id = CurPage.getParameter("id");
+ String sTempletNo = "BankCodeInfo";//--模板号--
+ ASObjectModel doTemp = new ASObjectModel(sTempletNo);
+ if(id!=null&& id.length()>0){
+ doTemp.setReadOnly("bank_code", true);
+ };
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
+ dwTemp.Style = "2";//freeform
+ //dwTemp.ReadOnly = "-2";//只读模式
+ dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
+
+ String sButtons[][] = {
+ {"true","All","Button","保存","保存所有修改","as_save(0,'returnList()')","","","",""},
+ {"true","All","Button","返回","返回列表","returnList()","","","",""}
+ };
+ //sButtonPosition = "south";
+%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
+
+<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Core/SystemConfig/bankCode/BankCodeList.jsp b/WebContent/Tenwa/Core/SystemConfig/bankCode/BankCodeList.jsp
new file mode 100644
index 000000000..ab8e16665
--- /dev/null
+++ b/WebContent/Tenwa/Core/SystemConfig/bankCode/BankCodeList.jsp
@@ -0,0 +1,37 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
+ /*
+ Author: undefined 2020-12-14
+ Content:
+ History Log:
+ */
+ ASObjectModel doTemp = new ASObjectModel("BankCodeList");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ dwTemp.Style="1"; //--设置为Grid风格--
+ dwTemp.ReadOnly = "1"; //只读模式
+ dwTemp.setPageSize(10);
+ dwTemp.genHTMLObjectWindow("");
+
+ //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
+ String sButtons[][] = {
+ {"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
+ {"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
+ {"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""},
+ };
+%><%@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/Comm/LBDebitCard/DebitCardInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfo.jsp
index b14736aa6..ab559b529 100644
--- a/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfo.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfo.jsp
@@ -73,11 +73,10 @@
}
sReturn = sReturn.split("@");
var bankCode = getItemValue(0, 0, "bank_code");
- if("<%=flowNo%>"=="BusinessApplyFlow"||(bankCode!=null&&bankCode!="")){
- setItemValue(0,0,'bank_code',sReturn[0]);
- }
+ setItemValue(0,0,'bank_code',sReturn[0]);
setItemValue(0,0,'bank_type',sReturn[1]);
setItemValue(0,0,"bank_name",sReturn[1]);
+ setItemValue(0,0,"collect_type",sReturn[2]);
},"选择银行名称");
}
//根据选择的用户名选择对应的证件号
@@ -209,9 +208,10 @@
var project_id = getItemValue(0,0,"project_id"); // 项目id
var contract_id = getItemValue(0,0,"contract_id");// 预留手机号
var sign_status = getItemValue(0,0,"sign_status");// 签约信息
+ var collect_type = getItemValue(0,0,"collect_type");// 后去扣款渠道
var flowunid = "<%=FlowUnid%>" ;
- var sparams ="FlowUnid="+flowunid+",account="+account+",acc_number="+acc_number+",bank_name="+bank_name+",mobile="+MOBILE+",projectid="+project_id+",contractid="+contract_id+",sign_status="+sign_status+"";
+ var sparams ="FlowUnid="+flowunid+",account="+account+",acc_number="+acc_number+",bank_name="+bank_name+",mobile="+MOBILE+",projectid="+project_id+",contractid="+contract_id+",sign_status="+sign_status+",collect_type="+collect_type;
var result = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "savaCustomerAccountTomiddle", sparams);
if("true"==result){
as_save("0","re");
@@ -285,6 +285,7 @@
sflag = i;
}
}
+ var bool = true;
if (sflag != -1) {
var name=bankName[sflag].substring(0,bankName[sflag].indexOf("·"));
if(name.indexOf("邮储") != -1 || name.indexOf("邮政") != -1){
@@ -294,17 +295,18 @@
if("error"!= res){
res = res.split("@");
var bankCode = getItemValue(0, 0, "bank_code");
- if("<%=flowNo%>"=="BusinessApplyFlow"||(bankCode!=null&&bankCode!="")){
- setItemValue(0,0,'bank_code',res[0]);
- }
-
+ setItemValue(0,0,'bank_code',res[0]);
setItemValue(0,0,'bank_type',res[1]);
setItemValue(0,getRow(),"bank_name",res[1]);
+ setItemValue(0,0,"collect_type",res[2]);
+ bool = false;
}
- }else{
+ }
+ if(bool){
setItemValue(0,0,'bank_code','');
setItemValue(0,0,'bank_type','');
- setItemValue(0,getRow(),"bank_name",'');
+ setItemValue(0,0,"bank_name",'');
+ setItemValue(0,0,"collect_type",'');
}
setErrorTips("acc_number","");
return true;
diff --git a/WebContent/WEB-INF/etc/jbo/jbo_customer.xml b/WebContent/WEB-INF/etc/jbo/jbo_customer.xml
index 86dc3256c..72c2810eb 100644
--- a/WebContent/WEB-INF/etc/jbo/jbo_customer.xml
+++ b/WebContent/WEB-INF/etc/jbo/jbo_customer.xml
@@ -3463,5 +3463,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/com/amarsoft/app/awe/config/customer/BankCodeMaintainHandler.java b/src/com/amarsoft/app/awe/config/customer/BankCodeMaintainHandler.java
new file mode 100644
index 000000000..40b6bfcd2
--- /dev/null
+++ b/src/com/amarsoft/app/awe/config/customer/BankCodeMaintainHandler.java
@@ -0,0 +1,28 @@
+package com.amarsoft.app.awe.config.customer;
+
+import jbo.app.tenwa.customer.BANK_CODE;
+
+import com.amarsoft.are.ARE;
+import com.amarsoft.are.jbo.BizObject;
+import com.amarsoft.are.jbo.JBOException;
+import com.amarsoft.are.jbo.JBOFactory;
+import com.amarsoft.awe.dw.handler.impl.CommonHandler;
+
+public class BankCodeMaintainHandler extends CommonHandler {
+
+ @Override
+ protected boolean validityCheck(BizObject bo, boolean isInsert) {
+ try {
+ BizObject bc=JBOFactory.createBizObjectQuery(BANK_CODE.CLASS_NAME," bank_code=:bank_code ").setParameter("bank_code", bo.getAttribute("bank_code").getString()).getSingleResult(false);
+ if(bc!=null && (isInsert || !bo.getAttribute("id").getString().equals(bc.getAttribute("id").getString()))){
+ errors = "该银行编号已存在!!!";
+ return false;
+ }
+ } catch (JBOException e) {
+ ARE.getLog().debug(e);
+ errors = e.getMessage();
+ return false;
+ }
+ return true;
+ }
+}
diff --git a/src_core/com/tenwa/comm/customerfilterlist/DebitCardAction.java b/src_core/com/tenwa/comm/customerfilterlist/DebitCardAction.java
index b5a3b3ce5..6dafe2f02 100644
--- a/src_core/com/tenwa/comm/customerfilterlist/DebitCardAction.java
+++ b/src_core/com/tenwa/comm/customerfilterlist/DebitCardAction.java
@@ -57,6 +57,7 @@ public class DebitCardAction {
private String userId;
private String orgId;
private String applyType;
+ private String collect_type;
public String getCustIdByFlowunid(JBOTransaction tx) throws JBOException{
String s=this.getFlowUnid();
@@ -339,10 +340,10 @@ public class DebitCardAction {
selectSql="SELECT PROJECT_ID FROM CUSTOMER_ACCOUNT_MIDDLE WHERE PROJECT_ID='"+projectid+"'";
List