修复业务申请租赁方式字段值刷新没有问题,修改业务申请发起方法,添加担保人页面单位电话校验

This commit is contained in:
user 2018-06-23 13:18:04 +08:00
parent b276582a38
commit f2a65cbc43
5 changed files with 34 additions and 15 deletions

View File

@ -40,15 +40,20 @@
var certType = getItemValue(0,getRow(0),"CERTTYPE");
var certId = getItemValue(0,getRow(0),"CERTID");
if(certType==""){
//setErrorTips("certType","证件类型不能为空!");
alert("证件类型不能为空!");
return false;
}
if(certId==""){
//setErrorTips("certId","证件号不能为空!");
alert("证件号不能为空!");
return false;
}
if(certType=="Ent02"){
if(checkORGRight1(certId)){
return true;
}else{
//setErrorTips("certId","组织机构代码格式不正确!");
alert("组织机构代码格式不正确!");
return false;
}
@ -57,6 +62,7 @@
if(CheckLicense(certId)){
return true;
}else{
//setErrorTips("certId","身份证格式不正确!");
alert("身份证格式不正确!");
return false;
}
@ -64,25 +70,43 @@
if(certType=="Ent03"){
return true;
}
}
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 checkWorkTel(){
var workTel = getItemValue(0,getRow(0),"WORKTEL");
if(workTel==""){
//setErrorTips("WORKTEL","单位电话不能为空!");
alert("单位电话不能为空!");
return false;
}
if(CheckPhoneCode(workTel)){
return true;
}else{
//setErrorTips("WORKTEL","单位电话格式不正确!");
alert("单位电话格式不正确!");
return false;
}
}
function save(){
if(checkTel()==true&&checkCertId()==true){
debugger;
if(checkTel()==true&&checkCertId()==true&&checkWorkTel()==true){
as_save(0,"goBack()");
}
}

View File

@ -65,12 +65,13 @@
var leasfrom = getItemValue(0,getRow(),"LEAS_FORM");
var projectSource = getItemValue(0,getRow(),"PROJECT_SOURCE");
var customerType = "<%=custype%>";
if(customerType=="01"){
if(customerType=="01"){//法人
as_save("myiframe0","frame_list.window.as_save(0);");
//as_save(0);
}
if(customerType=="03"){
if(customerType=="03"){//自然人
frame_list.window.saveRecord(leasfrom,projectSource);
//as_save("myiframe0","frame_list.window.as_save(0);");
}
}
</script>

View File

@ -15,7 +15,6 @@
String sTempletNo = "BusinessCustomerInfo";//--Ä£°åºÅ--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
String custname=CurPage.getParameter("custname");
System.out.print(custname+"=====================");
doTemp.setHtmlEvent("CERTID","onChange","changeCertid");
doTemp.setHtmlEvent("MARRIAGE","onChange","changeChildrensNumber");
String rightType = CurPage.getParameter("RightType");//Ò³ÃæÖ»¶ÁÓë·ñ
@ -160,6 +159,7 @@
}
function saveRecord(leasfrom,projectSource){
//as_save("myiframe0","frame_list.window.as_save(0);");
<%-- var idexpiry=getItemValue(0,getRow(),"IDEXPIRY");
var date1 = "<%=dateString%>";
if(date1>=idexpiry){

View File

@ -304,7 +304,7 @@
}
}
// if(carAttributes=='1'){
// if(carAttributes=='01'){
// AsDialog.OpenSelector("SelectBusinessType","ProductType,1,TypeNo,0005","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
// function(sReturn){
// if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_")
@ -317,7 +317,7 @@
// setItemValue(0,0,"productId",sReturn[0]);
// setItemValue(0,0,"productName",sReturn[1]);
// },"ÇëÑ¡Ôñ²úÆ·",'');
// }else if(carAttributes=='2'){
// }else if(carAttributes=='02'){
// AsDialog.OpenSelector("SelectBusinessType","ProductType,1,TypeNo,0005","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
// function(sReturn){
// if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_")

View File

@ -77,8 +77,6 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
if(certType.equals("Ent02")){
bmCC.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));
bmCC.setAttributeValue("customerid", customerId);
String custname = this.getAttribute("custname").toString();
String certid = this.getAttribute("certid").toString();
bmCC.setAttributeValue("enterprisename", this.getAttribute("custname"));
bmCC.setAttributeValue("certid", this.getAttribute("certid"));
bmCCT.saveObject(bmCC);
@ -107,13 +105,9 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
bo.setAttributeValue("project_name",this.getAttribute("ProjectNo"));
bo.setAttributeValue("project_manage",this.getAttribute("CurUserID"));
bo.setAttributeValue("project_dept",asUser.getOrgID());
String versionid = this.getAttribute("versionid").toString();
String bustype = this.getAttribute("businessType").toString();
bo.setAttributeValue("VERSIONID", this.getAttribute("versionid"));
bo.setAttributeValue("BUSINESSTYPE", this.getAttribute("businessType"));
bo.setAttributeValue("LEAS_FORM", this.getAttribute("leasehold"));//ĬÈÏ»Ø×â
bo.setAttributeValue("LEAS_FORM", this.getAttribute("leasehold"));//租赁方式
bo.setAttributeValue("PRODUCT_ID",this.getAttribute("ProductId"));//业务品种编号
bo.setAttributeValue("PRODUCT_NAME",this.getAttribute("ProductName"));//业务品种名称
bo.setAttributeValue("PROJECT_STATUS","0");