业务申请,通过婚姻状况初始化配偶信息页面
This commit is contained in:
parent
8481bbabec
commit
d374583324
@ -67,7 +67,6 @@
|
||||
}
|
||||
}
|
||||
function viewAndEdit(){
|
||||
debugger;
|
||||
// var ID = getItemValue(0,getRow(0),'ID');
|
||||
// if("undefined"==ID||""==ID || null==ID){
|
||||
// AsDebug.showMessage("提示","请选中一条数据!","","",true);
|
||||
@ -84,8 +83,8 @@
|
||||
var suphone = getItemValue(0,0,"suphone");
|
||||
var sposition = getItemValue(0,0,"sposition");
|
||||
var smincome = getItemValue(0,0,"smincome");
|
||||
if(name=="" || certid==""){
|
||||
alert("请输入信息!");
|
||||
if(name=="" || certid=="" || tel==""){
|
||||
alert("请输入共同申请人信息!");
|
||||
return;
|
||||
}else{
|
||||
var flowunid = getItemValue(0,0,"flowunid");
|
||||
|
||||
@ -8,6 +8,8 @@
|
||||
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
||||
String flowunid = CurPage.getParameter("FlowUnid");
|
||||
String customerid = Sqlca.getString("select customer_id from lb_union_lessee_temp where flowunid='"+flowunid+"'");
|
||||
String marriage = Sqlca.getString("select MARRIAGE from CUSTOMER_PERSON_TEMP where flowunid='"+flowunid+"'");
|
||||
System.out.print("============================"+marriage);
|
||||
//String customerid = CurPage.getParameter("customerid");
|
||||
if(sPrevUrl == null) sPrevUrl = "";
|
||||
|
||||
@ -22,6 +24,14 @@
|
||||
};
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
if(<%=marriage%>=="01"){
|
||||
changeFamilyRequiredTrue();
|
||||
}else{
|
||||
changeFamilyRequiredFalse();
|
||||
}
|
||||
});
|
||||
|
||||
function changeFamilyRequiredTrue(){
|
||||
setItemRequired(0,"name",true);
|
||||
setItemRequired(0,"certid",true);
|
||||
@ -51,17 +61,13 @@
|
||||
var tel = getItemValue(0,0,"tel");
|
||||
var partner = getItemValue(0,getRow(0),"Partner_");
|
||||
|
||||
// if(name=="" || certid=="" || partner==""){
|
||||
// return;
|
||||
// }else{
|
||||
if(partner=="Y"){
|
||||
var result = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerPartnerCheck","CheckPartnerInfo","flowunid=<%=flowunid%>");
|
||||
if(result=="1"){
|
||||
alert("共同申请人已存在!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
// }
|
||||
if(partner=="Y"){
|
||||
var result = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerPartnerCheck","CheckPartnerInfo","flowunid=<%=flowunid%>");
|
||||
if(result=="1"){
|
||||
alert("¹²Í¬ÉêÇëÈËÒÑ´æÔÚ!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(name.length > 0){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user