897 lines
34 KiB
Plaintext
897 lines
34 KiB
Plaintext
<%@page import="com.sun.org.apache.xalan.internal.xsltc.compiler.sym"%>
|
||
<%@page import="jbo.app.tenwa.customer.CUSTOMER_TYPE"%>
|
||
<%@page import="jbo.app.tenwa.customer.CUSTOMER_INFO"%>
|
||
<%@page import="java.util.Date"%>
|
||
<%@page import="java.text.SimpleDateFormat"%>
|
||
<%@ page contentType="text/html; charset=GBK"%>
|
||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||
|
||
Date curdate = new Date();
|
||
SimpleDateFormat formatter = new SimpleDateFormat("yyyy/MM/dd");
|
||
String dateString = formatter.format(curdate);
|
||
String sPhaseNo=CurPage.getParameter("sPhaseNo");
|
||
String flowunid = CurPage.getParameter("FlowUnid");
|
||
String FlowName = CurPage.getParameter("FlowName");//»ñÈ¡Á÷³ÌÃû³Æ
|
||
String IsHistory = CurPage.getParameter("IsHistory");//»ñÈ¡Á÷³ÌÃû³Æ
|
||
String projectId = CurPage.getParameter("ProjectId");
|
||
String customerid = Sqlca.getString("select customer_id from lb_union_lessee_temp where flowunid='"+flowunid+"'");
|
||
String sTempletNo = "";//--Ä£°åºÅ--
|
||
String sexChange="";
|
||
if("ºÏÍ¬ÖÆ×÷Á÷³Ì".equals(FlowName)||"ºÏͬ±ä¸üÁ÷³Ì".equals(FlowName)){
|
||
sTempletNo = "ContractBusinessCustomerInfo";
|
||
}else{
|
||
sTempletNo = "BusinessCustomerInfo";
|
||
String certtype= CurPage.getParameter("certtype");
|
||
if(!"Ind01".equals(certtype)){
|
||
sexChange="1";
|
||
}
|
||
}
|
||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||
String custname=CurPage.getParameter("custname");
|
||
doTemp.setHtmlEvent("CERTID","onChange","changeCertid");
|
||
//doTemp.setHtmlEvent("MARRIAGE","onChange","changeFamilyRequired");
|
||
if(sexChange.equals("1")){
|
||
doTemp.setReadOnly("SEX", false);
|
||
}else{
|
||
doTemp.setReadOnly("SEX", true);
|
||
}
|
||
doTemp.setHtmlEvent("MARRIAGE","onChange","changeChildrensNumber");
|
||
doTemp.setHtmlEvent("IS_NETCAR","onChange","changeNetCarInfo");
|
||
doTemp.setHtmlEvent("sex","onChange","changeSex");
|
||
doTemp.setHtmlEvent("Mailing_Address","onChange","checkMailingAddress");
|
||
//doTemp.setHtmlEvent("mobile","onChange","checkMobileRepeat");
|
||
//doTemp.setHtmlEvent("EMERGENCY_CONTACT_TEL","onChange","checkEmergencyRepeat");
|
||
//doTemp.setHtmlEvent("REMARK","onChange","checkRemarkRepeat");
|
||
String rightType = CurPage.getParameter("RightType");//Ò³ÃæÖ»¶ÁÓë·ñ
|
||
if(rightType==null)rightType="";
|
||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||
doTemp.setDefaultValue("CERTTYPE", "Ind01");
|
||
if(rightType.equals("ReadOnly")){
|
||
doTemp.setColInnerBtEvent("fulladdress", "");//ÉèÖõØÖ·°´Å¥
|
||
}
|
||
dwTemp.Style = "2";//freeform
|
||
dwTemp.genHTMLObjectWindow(flowunid + "," + customerid);
|
||
CurPage.getCurComp().setAttribute("RightType", rightType);
|
||
if(rightType.equals("ReadOnly")||FlowName.equals("ºÏÍ¬ÖÆ×÷Á÷³Ì")){
|
||
dwTemp.ReadOnly = "-1";//Ö»¶Áģʽ
|
||
}
|
||
String customerType = "03";
|
||
String compClientID = request.getParameter("CompClientID");
|
||
//×ÔÈ»È˱êʶ
|
||
String person = "person";
|
||
dwTemp.replaceColumn("family", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"200px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp?CompClientID="+compClientID+"&customerid="+customerid+"&sPhaseNo="+sPhaseNo+"&IsHistory="+IsHistory+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||
|
||
String sButtons[][] = {
|
||
//{"true","","Button","Éí·ÝУÑé","Éí·ÝУÑé","identityVerification()","","","","btn_icon_check",""}
|
||
};
|
||
|
||
|
||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||
<script type="text/javascript">
|
||
function select(){
|
||
//Ð޸ĴËÑ¡Ôñ¶Ô»°¿òʱ£¬×¢ÒâÏÂÃæÊý×éµÄλÖã¬ÇëÓëÖ®¶ÔÓ¦.
|
||
var projectId = "<%=projectId%>";
|
||
AsDialog.OpenSelector("selectAFFILIATEDNAME","projectId,"+projectId,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
|
||
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="_NONE_"){
|
||
return;
|
||
}
|
||
var value = sReturn.split("@");
|
||
var c_name = ["IS_OPERATION","IS_AFFILIATED","IS_OPERATION_QUALIFICATION","TRANSPORTCERTID","AFFILIATEDNAME","NETCERTNAME","LEGALPERSONNAME","AFFILIATEDDATE","AFFILIATEDENDDATE","REGISTEREDMONEY","AFFILIATEDACTUALADDRESS","AFFILIATEDADDRESS","TRANSPORTDATE","NETCERTID","LEGALPERSONID"];
|
||
for(var i=0;i<value.length;i++){
|
||
setItemValue(0,0,c_name[i],value[i]);
|
||
}
|
||
});
|
||
}
|
||
function checkMailingAddress(){//µ±ÓʼĵØÖ·Ñ¡ÔñΪ»§¼®µØÖ·Ê±£¬»§¼®µØÖ·±ØÌî
|
||
var mailingAddress = getItemValue(0,0,'Mailing_Address');
|
||
if("»§¼®µØÖ·" == mailingAddress){
|
||
setItemRequired(0, "NATIVEPLACE", true);
|
||
}else{
|
||
setItemRequired(0, "NATIVEPLACE", false);
|
||
}
|
||
}
|
||
|
||
/* function identityVerification(){//Éí·ÝУÑé
|
||
var id = getItemValue(0,0,'ID');
|
||
var result=RunJavaMethodTrans("com.tenwa.lease.flow.project.validate.IdentityVerification","doIdentityVerification",'id='+id);
|
||
if(result == 'ERROR'){
|
||
alert('Ñé֤ʧ°Ü');
|
||
}else{
|
||
alert(result);
|
||
}
|
||
} */
|
||
|
||
function changeChildrensNumber(){//ÒÑ»éʱÏÔʾÅäżÐÅÏ¢Ò³Ãæ
|
||
var marriage = getItemValue(0,0,"MARRIAGE");
|
||
if("01" == marriage){
|
||
setItemRequired(0, "childrens_number", true);
|
||
$("#CHILDRENS_NUMBER").removeAttr("ReadOnly");//ɾ³ý×ÓÅ®ÈËÊý×Ö¶ÎÖ»¶ÁÊôÐÔ
|
||
$("#A_Group_0030").attr("style","display:block;");
|
||
changeFamilyRequired();
|
||
}else{
|
||
// setItemValue(0,0,"childrens_number","");
|
||
setItemRequired(0, "childrens_number", false);
|
||
// $("#CHILDRENS_NUMBER").attr("ReadOnly","true");//ÉèÖÃ×ÓÅ®ÈËÊýÖ»¶ÁÊôÐÔ
|
||
// hideItem(0,'family');
|
||
$("#A_Group_0030").attr("style","display:none;");
|
||
changeFamilyRequired();
|
||
}
|
||
}
|
||
|
||
function changeFamilyRequired(){//ÒÑ»éʱÉèÖÃÅäżÐÅÏ¢±ØÌî,²¢½«»éÒö×´¿ö²ÎÊý´«µÝµ½×ÓÒ³Ãæ
|
||
var marriage = getItemValue(0,getRow(0),"MARRIAGE");
|
||
if("01" == marriage){
|
||
frame_list.window.changeFamilyRequiredTrue(marriage);
|
||
//as_save("myiframe0","frame_list.window.as_save(0);");
|
||
}else{
|
||
frame_list.window.changeFamilyRequiredFalse(marriage);
|
||
}
|
||
}
|
||
|
||
function changeSex(){
|
||
var sex = getItemValue(0,getRow(0),"sex");
|
||
frame_list.window.setParent(sex);
|
||
}
|
||
|
||
if(getItemValue(0,0,"CERTTYPE") == null || getItemValue(0,0,"CERTTYPE") == ""){
|
||
setItemValue(0,0,"CERTTYPE","Ind01");
|
||
}
|
||
|
||
function checkName(){//УÑéÐÕÃû
|
||
var customerType = "03";
|
||
var customerName = getItemValue(0,getRow(),"FULLNAME");
|
||
//var certId = getItemValue(0,getRow(),"certid");
|
||
//var sParams = "CustomerName="+customerName+",certId="+certId+",customerType="+customerType;
|
||
var sParams = "CustomerName="+customerName+",customerType="+customerType;
|
||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkName",sParams);
|
||
return sReturnInfo;
|
||
}
|
||
|
||
function checkCertId(){//УÑéÖ¤¼þºÅ
|
||
var customerType = "03";
|
||
//var customerName = getItemValue(0,getRow(),"CustomerName");
|
||
var certId = getItemValue(0,getRow(),"CERTID");
|
||
//var sParams = "CustomerName="+customerName+",certId="+certId+",customerType="+customerType;
|
||
var sParams = "certId="+certId+",customerType="+customerType;
|
||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkCertId",sParams);
|
||
return sReturnInfo;
|
||
}
|
||
|
||
function checkMobile(){//УÑéÊÖ»úºÅ±êºì
|
||
var customerType = "03";
|
||
var mobile = getItemValue(0,getRow(),"mobile");
|
||
var sParams = "mobile="+mobile+",customerType="+customerType;
|
||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobile",sParams);
|
||
return sReturnInfo;
|
||
}
|
||
|
||
function checkMobileRepeat(){//УÑéÊÖ»úºÅÖØ¸´
|
||
var customerType = "03";
|
||
var mobile = getItemValue(0,getRow(),"mobile");
|
||
var sParams = "mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=flowunid%>";
|
||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||
if(sReturnInfo=="8"){
|
||
alert("¸ÃÊÖ»úºÅÒÑÖØ¸´!");
|
||
setItemValue(0,0,"mobile","");
|
||
return;
|
||
}
|
||
}
|
||
|
||
function checkEmergencyContactTel(){//УÑé½ô¼±ÁªÏµÈË1µç»°
|
||
var customerType = "03";
|
||
var emergencyTel = getItemValue(0,getRow(),"EMERGENCY_CONTACT_TEL");
|
||
var sParams = "mobile="+emergencyTel+",customerType="+customerType;
|
||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobile",sParams);
|
||
return sReturnInfo;
|
||
}
|
||
|
||
function checkEmergencyRepeat(){//УÑé½ô¼±ÁªÏµÈË1µç»°Öظ´
|
||
var customerType = "03";
|
||
var emergencyTel = getItemValue(0,getRow(),"EMERGENCY_CONTACT_TEL");
|
||
var sParams = "mobile="+emergencyTel+",customerType="+customerType+",flowunid="+"<%=flowunid%>";
|
||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||
if(sReturnInfo=="8"){
|
||
alert("¸ÃÊÖ»úºÅÒÑÖØ¸´!");
|
||
setItemValue(0,0,"EMERGENCY_CONTACT_TEL","");
|
||
return;
|
||
}
|
||
}
|
||
|
||
function checkRemark(){//УÑé½ô¼±ÁªÏµÈË2µç»°
|
||
var customerType = "03";
|
||
var remark = getItemValue(0,getRow(),"REMARK");
|
||
var sParams = "mobile="+remark+",customerType="+customerType;
|
||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobile",sParams);
|
||
return sReturnInfo;
|
||
}
|
||
|
||
function checkRemarkRepeat(){//УÑé½ô¼±ÁªÏµÈË2µç»°Öظ´
|
||
var customerType = "03";
|
||
var remark = getItemValue(0,getRow(),"REMARK");
|
||
var sParams = "mobile="+remark+",customerType="+customerType+",flowunid="+"<%=flowunid%>";
|
||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||
if(sReturnInfo=="8"){
|
||
alert("¸ÃÊÖ»úºÅÒÑÖØ¸´!");
|
||
setItemValue(0,0,"REMARK","");
|
||
return;
|
||
}
|
||
}
|
||
|
||
// function checkRepeat(mobile,emergencyTel,remark){
|
||
// var result = "";
|
||
// var mobile = getItemValue(0,getRow(),"mobile");
|
||
// var emergencyTel = getItemValue(0,getRow(),"EMERGENCY_CONTACT_TEL");
|
||
// var remark = getItemValue(0,getRow(),"REMARK");
|
||
// if(mobile!=emergencyTel && emergencyTel!=remark && mobile!=remark){
|
||
// result = "true";
|
||
// }else{
|
||
// result = "false";
|
||
// }
|
||
// return result;
|
||
|
||
// }
|
||
|
||
$(document).ready(function(){
|
||
//changeOtherRequired();
|
||
checkMailingAddress();
|
||
//µ±Ò³Ãæ±»¼ÓÔØÊ±±êºì
|
||
// var nameResult = checkName();
|
||
// if(nameResult=="2"){
|
||
// //$("#FULLNAME").attr("style","color:red;");
|
||
// $("#FULLNAME").css("color","red");
|
||
// }
|
||
|
||
if("0030"=="<%=sPhaseNo%>" ||"0040"=="<%=sPhaseNo%>"||"0050"=="<%=sPhaseNo%>"||"0060"=="<%=sPhaseNo%>"|| ("0070"=="<%=sPhaseNo%>" && "false"=="<%=IsHistory%>")){//¾ÏúÉ̽׶ο´²»¼û±êºì,³õÉ󡢸´Éó¡¢ÐÅÉó¿ÉÒÔ±êºì
|
||
|
||
var certResult = checkCertIdAll();
|
||
if(certResult=="4"){
|
||
//$("#FULLNAME").attr("style","color:red;");
|
||
$("#CERTID").css("color","red");
|
||
}
|
||
// var mobileResult = checkMobile();
|
||
var mobile = getItemValue(0,getRow(),"mobile");
|
||
var mobileResult = checkMobileAll(mobile);
|
||
if(mobileResult=="6"){
|
||
//$("#FULLNAME").attr("style","color:red;");
|
||
$("#MOBILE").css("color","red");
|
||
}
|
||
//УÑé½ô¼±ÁªÏµÈË1
|
||
var mobileOne = getItemValue(0,getRow(),"EMERGENCY_CONTACT_TEL");
|
||
var mobileResultOne = checkMobileAll(mobileOne);
|
||
if(mobileResultOne=="6"){
|
||
//$("#FULLNAME").attr("style","color:red;");
|
||
$("#EMERGENCY_CONTACT_TEL").css("color","red");
|
||
}
|
||
//УÑé½ô¼±ÁªÏµÈË2
|
||
var mobileTwo = getItemValue(0,getRow(),"REMARK");
|
||
var mobileResultTwo = checkMobileAll(mobileTwo);
|
||
if(mobileResultTwo=="6"){
|
||
//$("#FULLNAME").attr("style","color:red;");
|
||
$("#REMARK").css("color","red");
|
||
}
|
||
var EmergencyResult = checkEmergencyContactTel();
|
||
if(EmergencyResult=="6"){
|
||
//$("#FULLNAME").attr("style","color:red;");
|
||
$("#EMERGENCY_CONTACT_TEL").css("color","red");
|
||
}
|
||
var remarkResult = checkRemark();
|
||
if(remarkResult=="6"){
|
||
//$("#FULLNAME").attr("style","color:red;");
|
||
$("#REMARK").css("color","red");
|
||
}
|
||
|
||
}
|
||
|
||
|
||
//µÚ¶þ½×¶ÎÒþ²ØÉí·ÝУÑé°´Å¥
|
||
if("0020"!="<%=sPhaseNo%>"){
|
||
$("#ButtonTR").attr("style","display:none;");
|
||
//$("#InfoButtonArea").attr("style","display:none;");
|
||
//$("#B20180630143109929493912231187").attr("style","display:none;");
|
||
//$("#B20180630143109929493912231187").hide();
|
||
//$("#B20180630143109929493912231187").css('display','none');
|
||
//$("#B20180630143109929493912231187").css('visibility', 'hidden');
|
||
}
|
||
//init();
|
||
$("#FULLADDRESS").css("width",$("#FULLADDRESS").parent().parent().parent().parent()[0].clientWidth/2+200+"px");
|
||
$("#FULLADDRESS").attr("ReadOnly","true");
|
||
$("#ENTRYTIME").attr("ReadOnly","true");
|
||
$("#WORKCORP")[0].width = $("#WORKCORP").parent().parent().parent()[0].clientWidth/2+200;
|
||
$("#WORKADD")[0].width = $("#WORKADD").parent().parent().parent()[0].clientWidth/2+200;
|
||
$("#WORKTEL")[0].width = $("#WORKTEL").parent().parent().parent()[0].clientWidth/2+200;
|
||
if("ReadOnly" != "<%=rightType%>"){
|
||
checkDriver();
|
||
}
|
||
ValidityCheck();
|
||
frame_list.window.onload = function(){//µ±Ò³Ãæ¼ÓÔØÍêºóµ÷ÓÃ×ÓÒ³Ãæ·½·¨£¬²»ÄÜÈ¥µô
|
||
changeChildrensNumber();
|
||
changeSex();
|
||
}
|
||
//Ò³Ãæ³õʼ»¯µÄʱºò£¬ÅжÏÊÇ·ñÊÇÍøÔ¼³µ£¬Ä¬ÈÏΪ·ñ
|
||
var netcar = getItemValue(0,0,"IS_NETCAR");
|
||
if(netcar==""){
|
||
$("#IS_NETCAR_0").prop("checked", "checked");
|
||
}
|
||
changeNetCarInfo();
|
||
|
||
})
|
||
var flag=false;//±ê¼ÇÊÇ·ñ¸´Öƹý¿Í»§
|
||
function changeCertid(){
|
||
var certid=getItemValue(0,0,"CERTID");
|
||
var result=RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerAction","checkCustomerByCertID",'certid='+certid);
|
||
if(result.length>0){
|
||
var newInput='<input type="button" id="copyCust" value="¸´ÖÆ" onclick="copyCustomer(\''+result+'\',\'<%=flowunid%>\')"/>';
|
||
$("#CERTID").parent().append(newInput);
|
||
}else{
|
||
$("#copyCust").remove();
|
||
}
|
||
//ÅжÏÊÇ·ñ³Ð×âÈË×âÁÞ³µÁ¾ÊýÁ¿
|
||
var res0=RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerAction","checkCustomerCarByCertid",'certid='+certid);
|
||
if(res0 != "0"){
|
||
alert(res0);
|
||
}
|
||
|
||
}
|
||
function copyCustomer(custid,flowunid){
|
||
RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerAction","copyCustomerInfo",'customerid='+custid+',flowunid='+flowunid);
|
||
alert("¸´ÖƳɹ¦£¡");
|
||
reloadSelf();
|
||
}
|
||
function init(){
|
||
var status = getItemValue(0, getRow(), "status");
|
||
var certtype=getItemValue(0, getRow(), "certtype");
|
||
var certid=getItemValue(0, getRow(), "certid");
|
||
if(status!='status02'){
|
||
setItemRequired(0,"certtype",false);
|
||
setItemRequired(0,"certid",false);
|
||
}
|
||
var custtypes = $("input[name='CUSTTYPE']").length;
|
||
for(var i=0;i<custtypes;i++){
|
||
$("input[name='CUSTTYPE']").get(i).checked=true;
|
||
}
|
||
}
|
||
function changeOtherRequired(){
|
||
var status = getItemValue(0,getRow(),"status");
|
||
var country = getItemValue(0,getRow(),"COUNTRY");
|
||
if(status == "status02"){
|
||
setItemRequired(0,"CUSTSOURCE",true);//¿Í»§À´Ô´
|
||
setItemRequired(0,"CUSTKIND",true);//ÄÚ²¿ÐÐÒµ
|
||
setItemRequired(0,"BIRTHDAY",true);//³öÉúÈÕÆÚ
|
||
setItemRequired(0,"MARRIAGE",true);//»éÒö×´¿ö
|
||
setItemRequired(0,"OCCUPATION",true);//Ö°Òµ
|
||
setItemRequired(0,"UNITKIND",true);//µ¥Î»ËùÊôÐÐÒµ
|
||
setItemRequired(0,"HEADSHIP",true);//Ö°Îñ
|
||
setItemRequired(0,"title",true);//Ö°³Æ
|
||
setItemRequired(0,"WORKCORP",true);//µ¥Î»Ãû³Æ
|
||
setItemRequired(0,"certtype",true);
|
||
setItemRequired(0,"certid",true);
|
||
}else{
|
||
setItemRequired(0,"CUSTSOURCE",false);
|
||
setItemRequired(0,"CUSTKIND",false);
|
||
setItemRequired(0,"BIRTHDAY",false);
|
||
setItemRequired(0,"MARRIAGE",false);
|
||
setItemRequired(0,"OCCUPATION",false);
|
||
setItemRequired(0,"UNITKIND",false);
|
||
setItemRequired(0,"HEADSHIP",false);
|
||
setItemRequired(0,"title",false);
|
||
setItemRequired(0,"WORKCORP",false);
|
||
setItemRequired(0,"certtype",false);
|
||
setItemRequired(0,"certid",false);
|
||
}
|
||
if(status == "status02" && country=='CHN'){
|
||
setItemRequired(0,"provincename",true);
|
||
setItemRequired(0,"cityname",true);
|
||
}else{
|
||
setItemRequired(0,"provincename",false);
|
||
setItemRequired(0,"cityname",false);
|
||
}
|
||
}
|
||
|
||
function CheckDate(){
|
||
var idexpiry=getItemValue(0,getRow(),"IDEXPIRY");
|
||
var date1 = "<%=dateString%>";
|
||
|
||
if(date1>=idexpiry){
|
||
setErrorTips("IDEXPIRY","Ö¤¼þµ½ÆÚÈÕ±ØÐëÍíÓÚµ±Ç°ÈÕÆÚ!");
|
||
return false;
|
||
}else{
|
||
setErrorTips("IDEXPIRY","");
|
||
return true;
|
||
}
|
||
|
||
|
||
}
|
||
|
||
// function IsTelephone(obj){//ÕýÔòÅжϹ̶¨µç»°ÇøºÅ
|
||
// var pattern=/(^[0-9]{3,4}\-[0-9]{3,8}$)|(^[0-9]{3,8}$)|(^\([0-9]{3,4}\)[0-9]{3,8}$)|(^0{0,1}13[0-9]{9}$)/;
|
||
// if(pattern.test(obj))
|
||
// {
|
||
// return true;
|
||
// }
|
||
// else
|
||
// {
|
||
// return false;
|
||
// }
|
||
// }
|
||
|
||
function checkTel(){//УÑéÊÖ»úºÅ¸ñʽºÍ²»Îª¿ÕУÑé
|
||
var mobile = getItemValue(0,getRow(0),"mobile");
|
||
if(mobile==""){
|
||
//setErrorTips("mobile","ÊÖ»úºÅ²»ÄÜΪ¿Õ!");
|
||
// alert("ÊÖ»úºÅ²»ÄÜΪ¿Õ!");
|
||
return true;
|
||
}
|
||
var phone = /^[1][2,3,4,5,6,7,8,9][0-9]{9}$/;
|
||
if(phone.test(mobile)){
|
||
setErrorTips("mobile","");
|
||
return true;
|
||
}else{
|
||
setErrorTips("mobile","ÊÖ»úºÅ¸ñʽ²»ÕýÈ·!");
|
||
//alert("ÊÖ»úºÅ¸ñʽ²»ÕýÈ·!");
|
||
return false;
|
||
}
|
||
/* if(CheckPhoneCode(mobile)){
|
||
return true;
|
||
}else{
|
||
//setErrorTips("mobile","ÊÖ»úºÅ¸ñʽ²»ÕýÈ·!");
|
||
alert("ÊÖ»úºÅ¸ñʽ²»ÕýÈ·!");
|
||
return false;
|
||
} */
|
||
}
|
||
|
||
function saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo,operationType){//±£´æ
|
||
//УÑéÉêÇëÈËÊÖ»úºÅºÍÅäżÊÖ»úºÅÊÇ·ñÖØ¸´
|
||
var RepeatReault = "";
|
||
var customerType = "03";
|
||
var mobile = allTrim(getItemValue(0,getRow(),"mobile"));
|
||
var emergencyTel = allTrim(getItemValue(0,getRow(),"EMERGENCY_CONTACT_TEL"));
|
||
var remark = allTrim(getItemValue(0,getRow(),"REMARK"));
|
||
var id = getItemValue(0,getRow(),"id");
|
||
//¼ìÑé³Ð×âÈËÊÖ»úºÍ½ô¼±ÁªÏµÈ˵ĵ绰ÊÇ·ñÖØ¸´
|
||
if(typeof(mobile)!=undefined && mobile != ''){
|
||
if(mobile==emergencyTel){
|
||
alert("³Ð×âÈ˺ͽô¼±ÁªÏµÈË1ÊÖ»úºÅÖØ¸´!");
|
||
return;
|
||
}else if(mobile==remark){
|
||
alert("³Ð×âÈ˺ͽô¼±ÁªÏµÈË2ÊÖ»úºÅÖØ¸´!");
|
||
return;
|
||
}else{
|
||
var sParams = "CustomerName=Lessee,certId="+id+",mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=flowunid%>";
|
||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||
if("SUCCESS"!=sReturnInfo){
|
||
alert(sReturnInfo);
|
||
return;
|
||
}
|
||
}
|
||
RepeatReault = frame_list.checkRepeat(mobile);//´«²ÎУÑé»ù±¾ÐÅÏ¢ÊÖ»úºÅºÍÅäżÊÇ·ñÖØ¸´
|
||
if(RepeatReault=="false"){
|
||
alert("³Ð×âÈ˺ÍÅäżÊÖ»úºÅÓÐÖØ¸´!");
|
||
return;
|
||
}
|
||
}
|
||
//¼ìÑé½ô¼±ÁªÏµÈË1ÊÖ»úºÅÖØ¸´
|
||
if(typeof(emergencyTel)!=undefined && emergencyTel != ''){
|
||
if(emergencyTel==mobile){
|
||
alert("³Ð×âÈ˺ͽô¼±ÁªÏµÈË1ÊÖ»úºÅÖØ¸´!");
|
||
return;
|
||
}else if(emergencyTel==remark){
|
||
alert("½ô¼±ÁªÏµÈË1ºÍ½ô¼±ÁªÏµÈË2ÊÖ»úºÅÖØ¸´!");
|
||
return;
|
||
}else{
|
||
var sParams = "CustomerName=Lessee1,certId="+id+",mobile="+emergencyTel+",customerType="+customerType+",flowunid="+"<%=flowunid%>";
|
||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||
if("SUCCESS"!=sReturnInfo){
|
||
alert(sReturnInfo);
|
||
return;
|
||
}
|
||
}
|
||
RepeatReault = frame_list.checkRepeat(emergencyTel);//´«²ÎУÑé»ù±¾ÐÅÏ¢ÊÖ»úºÅºÍÅäżÊÇ·ñÖØ¸´
|
||
if(RepeatReault=="false"){
|
||
alert("½ô¼±ÁªÏµÈË1ºÍÅäżÊÖ»úºÅÓÐÖØ¸´!");
|
||
return;
|
||
}
|
||
}
|
||
//¼ìÑé½ô¼±ÁªÏµÈË2ÊÖ»úºÅÖØ¸´
|
||
if(typeof(remark)!=undefined && remark != ''){
|
||
if(remark==emergencyTel){
|
||
alert("½ô¼±ÁªÏµÈË1ºÍ½ô¼±ÁªÏµÈË2ÊÖ»úºÅÖØ¸´!");
|
||
return;
|
||
}else if(mobile==remark){
|
||
alert("³Ð×âÈ˺ͽô¼±ÁªÏµÈË2ÊÖ»úºÅÖØ¸´!");
|
||
return;
|
||
}else{
|
||
var sParams = "CustomerName=Lessee2,certId="+id+",mobile="+remark+",customerType="+customerType+",flowunid="+"<%=flowunid%>";
|
||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||
if("SUCCESS"!=sReturnInfo){
|
||
alert(sReturnInfo);
|
||
return;
|
||
}
|
||
}
|
||
RepeatReault = frame_list.checkRepeat(remark);//´«²ÎУÑé»ù±¾ÐÅÏ¢ÊÖ»úºÅºÍÅäżÊÇ·ñÖØ¸´
|
||
if(RepeatReault=="false"){
|
||
alert("½ô¼±ÁªÏµÈË2ºÍÅäżÊÖ»úºÅÓÐÖØ¸´!");
|
||
return;
|
||
}
|
||
}
|
||
|
||
|
||
//RepeatReault = frame_list.window.checkRepeat(mobile,emergencyTel,remark);//´«²Î»ù±¾ÐÅϢУÑéÈý¸öÊÖ»úºÅ
|
||
|
||
var mobileResult = checkTel();
|
||
if(mobileResult==false){
|
||
return;
|
||
}
|
||
|
||
//УÑ鹫˾µç»°ÇøºÅ
|
||
var workTel = getItemValue(0,0,"WORKTEL");
|
||
/* if(typeof(workTel)!=undefined && mobile != ''){
|
||
var result = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CheckCustomerInfo","CheckWorkTelInfo","workTel="+workTel);
|
||
if(result=="false"){
|
||
alert("¹«Ë¾µç»°¸ñʽ²»ÕýÈ·!ÇëÊäÈëÇøºÅ-¹Ì¶¨µç»°ºÅ!");
|
||
return;
|
||
}
|
||
} */
|
||
// if(CheckPhoneCode(workTel)){
|
||
// }else{
|
||
// setErrorTips("WORKTEL","¹«Ë¾µç»°¸ñʽ²»ÕýÈ·!");
|
||
// //alert("¹«Ë¾µç»°¸ñʽ²»ÕýÈ·!");
|
||
// return;
|
||
// }
|
||
|
||
<%-- var idexpiry=getItemValue(0,getRow(),"IDEXPIRY");
|
||
var date1 = "<%=dateString%>";
|
||
if(date1>=idexpiry){
|
||
alert("»ù±¾ÐÅÏ¢ÖеÄÖ¤¼þµ½ÆÚÈÕµÄÈÕÆÚ±ØÐëÍíÓÚµ±Ç°ÈÕÆÚ");
|
||
return false;
|
||
} --%>
|
||
var idexpiry=getItemValue(0,getRow(),"IDEXPIRY");
|
||
if(idexpiry!=undefined&&idexpiry!=null&&idexpiry!=""){
|
||
if(!CheckDate()){
|
||
return;
|
||
}
|
||
}
|
||
ValidityCheck();
|
||
setItemValue(0,0,"flowunid","<%=flowunid%>");
|
||
if(!checkCertInfo(true)) return ;
|
||
if(!checkEmergencyContactTel(true)) return ;
|
||
if(!checkREMARK(true)) return ;
|
||
if(frame_list.window.save()){
|
||
var certid=getItemValue(0,0,"CERTID");
|
||
<%-- var customerid=RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerAction","updateCustomerId",'certid='+certid+',flowunid=<%=flowunid%>'); --%>
|
||
// setItemValue(0,0,"customerid",customerid);
|
||
as_save("0","saveCertInfo('"+inputName+"','"+inputTel+"','"+leasfrom+"','"+projectSource+"','"+projectNo+"','"+operationType+"')");
|
||
return true;
|
||
};
|
||
}
|
||
|
||
function saveCertInfo(inputName,inputTel,leasfrom,projectSource,projectNo,operationType){
|
||
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoManage","saveCertInfo",'projectNo='+projectNo+',inputName='+inputName+',operationType='+operationType+',inputTel='+inputTel+',project_source='+projectSource+',leas_from='+leasfrom+',idexpiry='+getItemValue(0,0,"idexpiry")+',certtype='+getItemValue(0,0,"certtype")+',customerid='+getItemValue(0,0,"customerid")+',flowunid=<%=flowunid%>,certid='+getItemValue(0,0,"certid")+',name='+getItemValue(0,0,"name")+',userid=<%=CurUser.getUserID()%>,orgid=<%=CurUser.getOrgID()%>');
|
||
if(sResult == "SUCCESS"){
|
||
parent.reloadSelf();
|
||
}
|
||
}
|
||
|
||
function selectHomeAddress(){
|
||
if(getItemValue(0,0,"fulladdress") == ""){
|
||
newRecord();
|
||
}else{
|
||
edit();
|
||
}
|
||
}
|
||
|
||
//ÐÂÔö
|
||
function newRecord(){
|
||
var sUrl = "/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerAddress.jsp";
|
||
var fulladdress = getItemValue(0,getRow(0),'fulladdress');
|
||
var country = getItemValue(0,getRow(0),'country');
|
||
var province = getItemValue(0,getRow(0),'province');
|
||
var dressdetail = getItemValue(0,getRow(0),'dressdetail');
|
||
var zipcode = getItemValue(0,getRow(0),'zipcode');
|
||
var provincename = getItemValue(0,getRow(0),'provincename');
|
||
AsDialog.PopView(sUrl,'customer_id='+getItemValue(0,0,"ASSUROR")+"&flowunid=<%=flowunid%>&fulladdress="+fulladdress+"&country="+country+"&province="+province+"&dressdetail="+dressdetail+"&zipcode="+zipcode+"&provincename="+provincename,"resizable=yes;dialogWidth=600px;dialogHeight=355px;center:yes;status:no;statusbar:no",function(result){
|
||
if(result == "cancel"){
|
||
return;
|
||
}
|
||
if(result !== ""){
|
||
setItemValue(0,0,"addressid",result.split("@")[0]);
|
||
setItemValue(0,0,"fulladdress",result.split("@")[1]);
|
||
setItemValue(0,0,"country",result.split("@")[2]);
|
||
setItemValue(0,0,"province",result.split("@")[3]);
|
||
setItemValue(0,0,"dressdetail",result.split("@")[4]);
|
||
setItemValue(0,0,"zipcode",result.split("@")[5]);
|
||
setItemValue(0,0,"provincename",result.split("@")[6]);
|
||
}
|
||
},"ÐÂÔöµØÖ·ÐÅÏ¢");
|
||
}
|
||
//ÏêÇé
|
||
function view(){
|
||
var sUrl = "/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerAddress.jsp";
|
||
var id = getItemValue(0,getRow(0),'addressid');
|
||
if(typeof(id)=="undefined" || id.length==0 ){
|
||
alert("ÇëÑ¡ÔñÒ»ÌõÐÅÏ¢£¡");
|
||
return ;
|
||
}
|
||
AsDialog.PopView(sUrl,'id=' +id+'&rightType=ReadOnly&flowunid=<%=flowunid%>',"resizable=yes;dialogWidth=600px;dialogHeight=355px;center:yes;status:no;statusbar:no",function(result){
|
||
if(result == "cancel"){
|
||
return;
|
||
}
|
||
if(result !== ""){
|
||
setItemValue(0,0,"addressid",result.split("@")[0]);
|
||
setItemValue(0,0,"fulladdress",result.split("@")[1]);
|
||
setItemValue(0,0,"country",result.split("@")[2]);
|
||
setItemValue(0,0,"province",result.split("@")[3]);
|
||
setItemValue(0,0,"dressdetail",result.split("@")[4]);
|
||
setItemValue(0,0,"zipcode",result.split("@")[5]);
|
||
setItemValue(0,0,"provincename",result.split("@")[6]);
|
||
}
|
||
},"µØÖ·ÏêϸÐÅÏ¢");
|
||
}
|
||
//ÐÞ¸Ä
|
||
function edit(){
|
||
var sUrl = "/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerAddress.jsp";
|
||
var id = getItemValue(0,getRow(0),'addressid');
|
||
var fulladdress = getItemValue(0,getRow(0),'fulladdress');
|
||
var country = getItemValue(0,getRow(0),'country');
|
||
var province = getItemValue(0,getRow(0),'province');
|
||
var dressdetail = getItemValue(0,getRow(0),'dressdetail').replace(/[\r\n]/g,"");
|
||
var zipcode = getItemValue(0,getRow(0),'zipcode');
|
||
var provincename = getItemValue(0,getRow(0),'provincename');
|
||
var flag = "edit";
|
||
if(typeof(id)=="undefined" || id.length==0){
|
||
if(fulladdress.length == 0){
|
||
alert("ÇëÑ¡ÔñÒ»ÌõÐÅÏ¢£¡");
|
||
return ;
|
||
}
|
||
}
|
||
AsDialog.PopView(sUrl,"id="+id+"&customer_id="+getItemValue(0,0,"ASSUROR")+"&flowunid=<%=flowunid%>"+"&flag="+flag+"&fulladdress="+fulladdress+"&country="+country+"&province="+province+"&dressdetail="+dressdetail+"&zipcode="+zipcode+"&provincename="+provincename,"resizable=yes;dialogWidth=600px;dialogHeight=355px;center:yes;status:no;statusbar:no",function(result){
|
||
if(result == "cancel"){
|
||
return;
|
||
}
|
||
if(result !== ""){
|
||
setItemValue(0,0,"addressid",result.split("@")[0]);
|
||
setItemValue(0,0,"fulladdress",result.split("@")[1]);
|
||
setItemValue(0,0,"country",result.split("@")[2]);
|
||
setItemValue(0,0,"province",result.split("@")[3]);
|
||
setItemValue(0,0,"dressdetail",result.split("@")[4]);
|
||
setItemValue(0,0,"zipcode",result.split("@")[5]);
|
||
setItemValue(0,0,"provincename",result.split("@")[6]);
|
||
}
|
||
},"Ð޸ĵØÖ·ÐÅÏ¢");
|
||
}
|
||
|
||
function selectProviceCode(){//Ñ¡ÔñÊ¡·Ý
|
||
var countrycode = getItemValue(0,getRow(),"country");
|
||
if(typeof(countrycode)!=undefined && countrycode == 'CHN'){
|
||
var provincecode = getItemValue(0,getRow(),"province");
|
||
var provincecodename = getItemValue(0,getRow(),"provincename");
|
||
AsDialog.SetTreeValue("SelectProvice", "__0000", "province=itemno@provincename=itemname","itemno","itemname", [provincecode,provincecodename], false, true,"",function(sReturn){
|
||
sReturn = sReturn.split("@");
|
||
if(sReturn[0]!=provincecode){
|
||
setItemValue(0,getRow(),"city","");
|
||
setItemValue(0,getRow(),"cityname","");
|
||
}
|
||
});
|
||
}
|
||
}
|
||
function selectCityCode(){//Ñ¡Ôñ³ÇÊÐ
|
||
var provincecode = getItemValue(0,getRow(),"province");
|
||
if(typeof(provincecode)!=undefined && provincecode != ''){
|
||
var citycode = getItemValue(0,getRow(),"city");
|
||
var citycodename = getItemValue(0,getRow(),"cityname");
|
||
var param = provincecode.substr(0,2);
|
||
AsDialog.SetTreeValue("SelectCity", param+'0000,'+param+'__00', "city=itemno@cityname=itemname","itemno","itemname", [citycode,citycodename], false, true);
|
||
}
|
||
}
|
||
function selectOrgnature(){//Ñ¡Ôñ»ú¹¹ÀàÐÍ
|
||
var orgnature = getItemValue(0,getRow(),"orgnature");
|
||
var orgnaturename = getItemValue(0,getRow(),"orgnaturename");
|
||
AsDialog.SetTreeValue("SelectOrgnature", '_0', "orgnature=itemno@orgnaturename=itemname","itemno","itemname", [orgnature,orgnaturename], false, true);
|
||
}
|
||
function ValidityCheck(){
|
||
|
||
if(<%=customerType%> == '03'){ //¸öÈ˿ͻ§
|
||
//УÑéÖ¤¼þÀàÐÍΪÉí·ÝÖ¤»òÁÙʱÉí·Ý֤ʱ£¬³öÉúÈÕÆÚÊÇ·ñ֤ͬ¼þ±àºÅÖеÄÈÕÆÚÒ»ÖÂ
|
||
var certType = getItemValue(0,getRow(),"CERTTYPE");
|
||
var certID = getItemValue(0,getRow(),"CERTID");
|
||
|
||
if(certType == 'Ind01' || certType == 'Ind08'){
|
||
|
||
//½«Éí·ÝÖ¤ÖеÄÈÕÆÚ×Ô¶¯¸³¸ø³öÉúÈÕÆÚ,°ÑÉí·ÝÖ¤ÖеÄÐԱ𸳸øÐÔ±ð
|
||
if(certID.length == 15){
|
||
sex = certID.substring(14);
|
||
sex = parseInt(sex);
|
||
certID = certID.substring(6,12);
|
||
certID = "19"+certID.substring(0,2)+"/"+certID.substring(2,4)+"/"+certID.substring(4,6);
|
||
setItemValue(0,getRow(),"BIRTHDAY",certID);
|
||
if(sex%2==0){//ÆæÄÐżŮ
|
||
setItemValue(0,getRow(),"SEX","2");
|
||
|
||
}else{
|
||
setItemValue(0,getRow(),"SEX","1");
|
||
|
||
}
|
||
}
|
||
if(certID.length == 18){
|
||
sex = certID.substring(16,17);
|
||
sex = parseInt(sex);
|
||
certID = certID.substring(6,14);
|
||
certID = certID.substring(0,4)+"/"+certID.substring(4,6)+"/"+certID.substring(6,8);
|
||
setItemValue(0,getRow(),"BIRTHDAY",certID);
|
||
if(sex%2==0){//ÆæÄÐżŮ
|
||
setItemValue(0,getRow(),"SEX","2");
|
||
}else{
|
||
setItemValue(0,getRow(),"SEX","1");
|
||
}
|
||
|
||
}
|
||
|
||
}
|
||
}
|
||
}
|
||
|
||
/* function setErrorTips(colName,tips){
|
||
if(tips==""){
|
||
setItemUnit(0,getRow(),colName,"");
|
||
return ;
|
||
}
|
||
setItemUnit(0,getRow(),colName,"<font color=red>"+tips+"</font>");
|
||
} */
|
||
|
||
//УÑé¼Ýʻ֤(ÊÇ/·ñ)
|
||
function checkDriver(){
|
||
var driverLicense = getItemValue(0,getRow(),"DRIVERLICENSE");
|
||
if(driverLicense=='2'){
|
||
setItemValue(0,getRow(),"LICENSENAME","");
|
||
setItemReadOnly(0, getRow(), "LICENSENAME", true);
|
||
setItemRequired(0, "LICENSENAME", false);
|
||
}else{
|
||
setItemReadOnly(0, getRow(), "LICENSENAME", false);
|
||
setItemRequired(0, "LICENSENAME", true);
|
||
}
|
||
}
|
||
|
||
function setIdexpiry(){
|
||
var date = document.getElementById("IDEXPIRY");
|
||
var dateValue = "";
|
||
dateValue = date.value;
|
||
AsDialog.OpenCalender(date,"yyyy/MM/dd","1900/01/01","2100/12/31",function(dateValue){
|
||
var myNewValue = "",myValue="";
|
||
myValue = this.dayValue;
|
||
if(typeof(myValue)!="undefined" && myValue!="undefined"){
|
||
myNewValue = myValue;
|
||
if(dateValue!=amarsoft2Real(myNewValue)){
|
||
date.value = amarsoft2Real(myNewValue);
|
||
setItemValue(0,getRow(0),"idexpiry",date.value);
|
||
}
|
||
}
|
||
},0,document.getElementById("DWTR").offsetTop);
|
||
}
|
||
|
||
function checkCertInfo(flag){
|
||
if(typeof(flag)=="undefined") flag=false;
|
||
var certType = getItemValue(0,getRow(),"certtype");
|
||
var certid = getItemValue(0,getRow(),"certid");
|
||
|
||
//¼ì²é×ÔÈ»ÈËÖ¤¼þ
|
||
if(certType == 'Ind01'){
|
||
if (!checkIdCard(certid)){
|
||
setErrorTips("certid",getBusinessMessage('156'));
|
||
return false;
|
||
}else{
|
||
setErrorTips("certid","");
|
||
}
|
||
}
|
||
// »¤ÕÕÑéÖ¤
|
||
if(certType == 'Ind03'){
|
||
if (!checkCard(certid)){
|
||
setErrorTips("certid","»¤ÕÕ¸ñʽÓÐÎó£¡");
|
||
return false;
|
||
}else{
|
||
setErrorTips("certid","");
|
||
}
|
||
}
|
||
return true;
|
||
}
|
||
|
||
|
||
// »¤ÕÕÑéÖ¤
|
||
function checkCard(value) {
|
||
var re1 = /^[a-zA-Z]{5,17}$/;
|
||
var re2 = /^[a-zA-Z0-9]{5,17}$/;
|
||
return (re2.test(value)) || re1.test(value);
|
||
}
|
||
|
||
function checkIdCard(value) {
|
||
var re = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
|
||
return re.test(value);
|
||
}
|
||
|
||
function checkEmergencyContactTel(){//УÑé½ô¼±ÁªÏµÈË1µÄµç»°¸ñʽ
|
||
var mobile = getItemValue(0,getRow(0),"EMERGENCY_CONTACT_TEL");
|
||
if(mobile==""){
|
||
// setErrorTips("EMERGENCY_CONTACT_TEL","µç»°²»ÄÜΪ¿Õ!");
|
||
return true;
|
||
}
|
||
var phone = /^[1][2,3,4,5,6,7,8,9][0-9]{9}$/;
|
||
if(phone.test(mobile)){
|
||
setErrorTips("EMERGENCY_CONTACT_TEL","");
|
||
return true;
|
||
}else{
|
||
setErrorTips("EMERGENCY_CONTACT_TEL","µç»°¸ñʽ²»ÕýÈ·!");
|
||
return false;
|
||
}
|
||
}
|
||
|
||
function checkREMARK(){//УÑé½ô¼±ÁªÏµÈË2µÄµç»°¸ñʽ
|
||
var mobile = getItemValue(0,getRow(0),"REMARK");
|
||
if(mobile==""){
|
||
// setErrorTips("REMARK","µç»°²»ÄÜΪ¿Õ!");
|
||
return true;
|
||
}
|
||
var phone = /^[1][2,3,4,5,6,7,8,9][0-9]{9}$/;
|
||
if(phone.test(mobile)){
|
||
setErrorTips("REMARK","");
|
||
return true;
|
||
}else{
|
||
setErrorTips("REMARK","µç»°¸ñʽ²»ÕýÈ·!");
|
||
return false;
|
||
}
|
||
}
|
||
|
||
//¸ù¾ÝÊÇ·ñÍøÔ¼³µÏÔʾ²»Í¬µÄÊý¾Ý
|
||
function changeNetCarInfo(){
|
||
var netcar = getItemValue(0,0,"IS_NETCAR");
|
||
if("1" == netcar){
|
||
$("#A_Group_0040").attr("style","display:block;");
|
||
setItemRequired(0,"IS_OPERATION",true);
|
||
setItemRequired(0,"IS_AFFILIATED",true);
|
||
setItemRequired(0,"IS_OPERATION_QUALIFICATION",true);
|
||
// setItemRequired(0,"TRANSPORTCERTID",true);
|
||
setItemRequired(0,"AFFILIATEDNAME",true);
|
||
setItemRequired(0,"NETCERTNAME",true);
|
||
setItemRequired(0,"LEGALPERSONNAME",true);
|
||
setItemRequired(0,"AFFILIATEDDATE",true);
|
||
setItemRequired(0,"AFFILIATEDENDDATE",true);
|
||
setItemRequired(0,"REGISTEREDMONEY",true);
|
||
setItemRequired(0,"AFFILIATEDACTUALADDRESS",true);
|
||
setItemRequired(0,"AFFILIATEDADDRESS",true);
|
||
// setItemRequired(0,"",true);
|
||
setItemRequired(0,"NETCERTID",true);
|
||
setItemRequired(0,"LEGALPERSONID",true);
|
||
document.getElementById("NETCERTNAME").value = 'ÓªÒµÖ´ÕÕ';
|
||
}else{
|
||
$("#A_Group_0040").attr("style","display:none;");
|
||
setItemRequired(0,"IS_OPERATION",false);
|
||
setItemRequired(0,"IS_AFFILIATED",false);
|
||
setItemRequired(0,"IS_OPERATION_QUALIFICATION",false);
|
||
// setItemRequired(0,"TRANSPORTCERTID",false);
|
||
setItemRequired(0,"AFFILIATEDNAME",false);
|
||
setItemRequired(0,"NETCERTNAME",false);
|
||
setItemRequired(0,"LEGALPERSONNAME",false);
|
||
setItemRequired(0,"AFFILIATEDDATE",false);
|
||
setItemRequired(0,"AFFILIATEDENDDATE",false);
|
||
setItemRequired(0,"REGISTEREDMONEY",false);
|
||
setItemRequired(0,"AFFILIATEDACTUALADDRESS",false);
|
||
setItemRequired(0,"AFFILIATEDADDRESS",false);
|
||
// setItemRequired(0,"TRANSPORTDATE",false);
|
||
setItemRequired(0,"NETCERTID",false);
|
||
setItemRequired(0,"LEGALPERSONID",false);
|
||
document.getElementById("NETCERTNAME").value = '';
|
||
}
|
||
}
|
||
|
||
function checkMobileAll(mobile){//¼ìÑéËùÓÐÊÖ»úºÅ
|
||
var sParams = "mobile="+mobile+",flowunid="+"<%=flowunid%>";
|
||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkTel",sParams);
|
||
return sReturnInfo;
|
||
}
|
||
|
||
function checkCertIdAll(){//УÑéÖ¤¼þºÅ
|
||
var certId = getItemValue(0,getRow(),"CERTID");
|
||
var sParams = "certId="+certId+",flowunid="+"<%=flowunid%>";
|
||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkCertIdAll",sParams);
|
||
return sReturnInfo;
|
||
}
|
||
</script>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|