业务申请,共同申请人页面校验手机号是否重复
This commit is contained in:
parent
2aae7ba60a
commit
9bc9e5a75e
@ -14,6 +14,7 @@
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
doTemp.setColTips("", "");
|
||||
doTemp.setDefaultValue("project_id", ProjectId);
|
||||
doTemp.setHtmlEvent("tel","onChange","checkTelRepeat");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "-2";//只读模式
|
||||
@ -21,7 +22,6 @@
|
||||
String customerid = Sqlca.getString("select customer_id from lb_union_lessee_temp where flowunid='"+FlowUnid+"'");
|
||||
// dwTemp.genHTMLObjectWindow(CurPage.getParameter("FlowUnid"));flowunid + "," + customerid
|
||||
String Partner = Sqlca.getString("select Partner_ from CUSTOMER_FAMILY_TEMP where flowunid='"+FlowUnid+"'");
|
||||
System.out.print("+++++++++++++++++++++++++++++"+Partner);
|
||||
if(Partner==null){
|
||||
dwTemp.genHTMLObjectWindow(FlowUnid);
|
||||
}else if(Partner.equals("Y")){
|
||||
@ -30,7 +30,6 @@
|
||||
dwTemp.genHTMLObjectWindow(FlowUnid);
|
||||
}
|
||||
|
||||
|
||||
String sButtons[][] = {
|
||||
//{"true","","Button","新增","新增","newRecord()","","","","btn_icon_add"},
|
||||
{"true","","Button","保存","保存","viewAndEdit()","","","","btn_icon_edit"},
|
||||
@ -40,7 +39,7 @@
|
||||
//sButtonPosition = "south";
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function checkCertId(){
|
||||
function checkCertId(){//校验共同申请人证件号格式
|
||||
var certId = getItemValue(0,getRow(0),"certid");
|
||||
if(certId==""){
|
||||
//setErrorTips("certId","证件号不能为空!");
|
||||
@ -58,7 +57,7 @@
|
||||
|
||||
}
|
||||
|
||||
function checkTel(){
|
||||
function checkTel(){//校验共同申请人手机号格式
|
||||
var tel = getItemValue(0,getRow(0),"tel");
|
||||
if(tel==""){
|
||||
//setErrorTips("mobile","手机号不能为空!");
|
||||
@ -74,7 +73,19 @@
|
||||
}
|
||||
}
|
||||
|
||||
function newRecord(){
|
||||
function checkTelRepeat(){//校验共同申请人手机号重复
|
||||
var customerType = "03";
|
||||
var tel = getItemValue(0,getRow(),"tel");
|
||||
var sParams = "mobile="+tel+",customerType="+customerType;
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||||
if(sReturnInfo=="8"){
|
||||
alert("该手机号已重复!");
|
||||
setItemValue(0,0,"tel","");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
function newRecord(){//新增
|
||||
var name = getItemValue(0,0,"name");
|
||||
var certid = getItemValue(0,0,"certid");
|
||||
var tel = getItemValue(0,0,"tel");
|
||||
@ -102,7 +113,7 @@
|
||||
reloadSelf();
|
||||
}
|
||||
}
|
||||
function viewAndEdit(){
|
||||
function viewAndEdit(){//保存
|
||||
var CertIdResult = checkCertId();
|
||||
if(CertIdResult==false){
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user