Merge branch 'develop' of http://git2.tenwa.com.cn/ApzlDev/apzl_leasing.git into liuzhao
This commit is contained in:
commit
c7b7a4c444
@ -44,109 +44,130 @@
|
||||
sButtonPosition = "north";
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function save(){
|
||||
debugger;
|
||||
setItemValue(0,0,"flowunid","<%=FlowUnid%>");
|
||||
setItemValue(0,0,"acc_type","Debit");
|
||||
var res=RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "getCustIdByFlowunid", "FlowUnid=<%=FlowUnid%>");
|
||||
var strarry=res.split(",");
|
||||
var customerid=strarry[0];
|
||||
var projectid=strarry[1];
|
||||
var contractid=strarry[2];
|
||||
//setItemValue(0,0,"customerid",customerid);
|
||||
if(res=="false"){
|
||||
alert("请先填写个人基本信息!");
|
||||
return;
|
||||
}
|
||||
var contract_id= getItemValue(0,0,"contract_id");
|
||||
if(null!=contract_id&&contract_id!=""){
|
||||
contractid=contract_id;
|
||||
}
|
||||
setItemValue(0,0,"customerid",customerid);
|
||||
setItemValue(0,0,"project_id",projectid);
|
||||
if(contractid==""||contractid=="null"||contractid==null){
|
||||
setItemValue(0,0,"contract_id","");
|
||||
}else{
|
||||
setItemValue(0,0,"contract_id",contractid);
|
||||
}
|
||||
|
||||
|
||||
iV_all("0");
|
||||
|
||||
//if(frame_list.window.save(customerid,projectid,contractid)&&frame_lists.window.save(customerid,projectid,contractid)){
|
||||
as_save("0","re");
|
||||
|
||||
//}
|
||||
//reloadSelf();
|
||||
}
|
||||
function re(){
|
||||
var param="CompClientID=<%=sCompClientID%>&FlowUnid=<%=FlowUnid%>&RightType=<%=RightType%>&ishistory=<%=ishistory%>";
|
||||
AsControl.OpenView("/Tenwa/Lease/Flow/Comm/LBDebitCard/PaymentCardInfo.jsp",param,"frame_list");
|
||||
}
|
||||
|
||||
function CheckBank_name(){
|
||||
var bank_name=getItemValue(0, getRow(0), "bank_name");
|
||||
if(bank_name==null||bank_name==""){
|
||||
setErrorTips("bank_name","请输入开户银行!");
|
||||
return false;
|
||||
}else{
|
||||
setErrorTips("bank_name","");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function CheckAccount(){
|
||||
var account=getItemValue(0, getRow(0), "account");
|
||||
if(account==null||account==""){
|
||||
setErrorTips("account","请输入账户名称!");
|
||||
return false;
|
||||
}else{
|
||||
setErrorTips("account","");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/* 银行账号格式校验 */
|
||||
function CheckAcc_number(){
|
||||
var acc=getItemValue(0, getRow(0), "acc_number");
|
||||
if(acc!=null&&acc!=""){
|
||||
/* var reg = /^(\d{16}|\d{19})$/;
|
||||
if(!reg.test(acc)){
|
||||
setErrorTips("acc_number","银行账号格式错误!");
|
||||
return false;
|
||||
}else{ */
|
||||
setErrorTips("acc_number","");
|
||||
return true;
|
||||
|
||||
}else{
|
||||
setErrorTips("acc_number","请输入银行账号!");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
function getNameOfBank(){
|
||||
var sflag=-1;
|
||||
var number=getItemValue(0, getRow(0), "acc_number");
|
||||
/* var reg = /^(\d{14}|\d{16}|\d{19})$/;
|
||||
if(!reg.test(number)){
|
||||
setErrorTips("acc_number","银行账号格式错误!");
|
||||
return false;
|
||||
}else{ */
|
||||
var cardbin = number.substring(0, 6);
|
||||
for (var i=0;i<bankBin.length;i++) {
|
||||
if(cardbin==bankBin[i]){
|
||||
sflag = i;
|
||||
}
|
||||
function checkTel(){
|
||||
var mobile = getItemValue(0,getRow(0),"MOBILE");
|
||||
if(mobile==""){
|
||||
//setErrorTips("mobile","手机号不能为空!");
|
||||
alert("手机号不能为空!");
|
||||
return false;
|
||||
}
|
||||
if(CheckPhoneCode(mobile)){
|
||||
return true;
|
||||
}else{
|
||||
//setErrorTips("mobile","手机号格式不正确!");
|
||||
alert("手机号格式不正确!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function save(){
|
||||
var mobileRes=checkTel();
|
||||
if(mobileRes==false){
|
||||
return;
|
||||
}
|
||||
|
||||
setItemValue(0,0,"flowunid","<%=FlowUnid%>");
|
||||
setItemValue(0,0,"acc_type","Debit");
|
||||
var res=RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "getCustIdByFlowunid", "FlowUnid=<%=FlowUnid%>");
|
||||
var strarry=res.split(",");
|
||||
var customerid=strarry[0];
|
||||
var projectid=strarry[1];
|
||||
var contractid=strarry[2];
|
||||
//setItemValue(0,0,"customerid",customerid);
|
||||
if(res=="false"){
|
||||
alert("请先填写个人基本信息!");
|
||||
return;
|
||||
}
|
||||
var contract_id= getItemValue(0,0,"contract_id");
|
||||
if(null!=contract_id&&contract_id!=""){
|
||||
contractid=contract_id;
|
||||
}
|
||||
if (sflag != -1) {
|
||||
var name=bankName[sflag].substring(0,bankName[sflag].indexOf("·"));
|
||||
setItemValue(0,getRow(),"bank_name",name);
|
||||
}
|
||||
setErrorTips("acc_number","");
|
||||
return true;
|
||||
setItemValue(0,0,"customerid",customerid);
|
||||
setItemValue(0,0,"project_id",projectid);
|
||||
if(contractid==""||contractid=="null"||contractid==null){
|
||||
setItemValue(0,0,"contract_id","");
|
||||
}else{
|
||||
setItemValue(0,0,"contract_id",contractid);
|
||||
}
|
||||
|
||||
|
||||
iV_all("0");
|
||||
|
||||
//if(frame_list.window.save(customerid,projectid,contractid)&&frame_lists.window.save(customerid,projectid,contractid)){
|
||||
as_save("0","re");
|
||||
|
||||
//}
|
||||
//reloadSelf();
|
||||
}
|
||||
function re(){
|
||||
var param="CompClientID=<%=sCompClientID%>&FlowUnid=<%=FlowUnid%>&RightType=<%=RightType%>&ishistory=<%=ishistory%>";
|
||||
AsControl.OpenView("/Tenwa/Lease/Flow/Comm/LBDebitCard/PaymentCardInfo.jsp",param,"frame_list");
|
||||
}
|
||||
|
||||
function CheckBank_name(){
|
||||
var bank_name=getItemValue(0, getRow(0), "bank_name");
|
||||
if(bank_name==null||bank_name==""){
|
||||
setErrorTips("bank_name","请输入开户银行!");
|
||||
return false;
|
||||
}else{
|
||||
setErrorTips("bank_name","");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function CheckAccount(){
|
||||
var account=getItemValue(0, getRow(0), "account");
|
||||
if(account==null||account==""){
|
||||
setErrorTips("account","请输入账户名称!");
|
||||
return false;
|
||||
}else{
|
||||
setErrorTips("account","");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/* 银行账号格式校验 */
|
||||
function CheckAcc_number(){
|
||||
var acc=getItemValue(0, getRow(0), "acc_number");
|
||||
if(acc!=null&&acc!=""){
|
||||
/* var reg = /^(\d{16}|\d{19})$/;
|
||||
if(!reg.test(acc)){
|
||||
setErrorTips("acc_number","银行账号格式错误!");
|
||||
return false;
|
||||
}else{ */
|
||||
setErrorTips("acc_number","");
|
||||
return true;
|
||||
|
||||
}else{
|
||||
setErrorTips("acc_number","请输入银行账号!");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
function getNameOfBank(){
|
||||
var sflag=-1;
|
||||
var number=getItemValue(0, getRow(0), "acc_number");
|
||||
/* var reg = /^(\d{14}|\d{16}|\d{19})$/;
|
||||
if(!reg.test(number)){
|
||||
setErrorTips("acc_number","银行账号格式错误!");
|
||||
return false;
|
||||
}else{ */
|
||||
var cardbin = number.substring(0, 6);
|
||||
for (var i=0;i<bankBin.length;i++) {
|
||||
if(cardbin==bankBin[i]){
|
||||
sflag = i;
|
||||
}
|
||||
}
|
||||
if (sflag != -1) {
|
||||
var name=bankName[sflag].substring(0,bankName[sflag].indexOf("·"));
|
||||
setItemValue(0,getRow(),"bank_name",name);
|
||||
}
|
||||
setErrorTips("acc_number","");
|
||||
return true;
|
||||
}
|
||||
//校验银行卡四要素
|
||||
function verifyFourelementBank(){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user