2018-06-03 22:26:41 +08:00

75 lines
2.8 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2017-07-10
Content: 示例详情页面
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
String flowunid = CurPage.getParameter("FlowUnid");
String customerid = CurPage.getParameter("customerid");
if(sPrevUrl == null) sPrevUrl = "";
String sTempletNo = "CustomerFamilyTempInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(flowunid + "," + customerid);
String sButtons[][] = {
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function save(){
var name = getItemValue(0,0,"name");
var certid = getItemValue(0,0,"certid");
var tel = getItemValue(0,0,"tel");
if(name.length > 0){
if(certid.length > 0){
if(!CheckLicense(certid)){
parent.parent.openDWDialog();
setErrorTips("certid","身份证格式有误!");
parent.parent.resetDWDialog("配偶身份证信息错误!",false);
return false;
}
<%-- var sReturn=RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerAction","checkCustomerByCertid","flowunid=<%=flowunid%>,certid="+certid);
if(sReturn=="false"){
setErrorTips("certid","配偶证件号码不可与承租人相同!");
return false;
} --%>
else{
setItemUnit(0,0,"certid","");
parent.parent.autoCloseDWDialog();
}
}
if(tel.length > 0){
if(!CheckPhoneCode(tel)){
parent.parent.openDWDialog();
setErrorTips("tel","手机号格式有误!");
parent.parent.resetDWDialog("配偶手机号信息错误!",false);
return false;
}else{
setItemUnit(0,0,"tel","")
parent.parent.autoCloseDWDialog();
}
}
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoManage","saveCustomerFamily",
"relative=01,status=valid,customerid=<%=customerid%>,flowunid=<%=flowunid%>,certid="+getItemValue(0,0,"certid")+",name="+getItemValue(0,0,"name")+",tel="+getItemValue(0,0,"tel"));
if(sResult == "SUCCESS"){
reloadSelf();
}
}
if(name==null||name==""){
setItemValue(0,0,"certid","");
setItemValue(0,0,"tel","");
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoManage","saveCustomerFamily",
"relative=01,status=valid,customerid=<%=customerid%>,flowunid=<%=flowunid%>,certid="+getItemValue(0,0,"certid")+",name="+getItemValue(0,0,"name")+",tel="+getItemValue(0,0,"tel"));
if(sResult == "SUCCESS"){
reloadSelf();
}
}
return true;
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>