业务申请,修改车辆租赁信息页面车牌号字段校验
This commit is contained in:
parent
81c306d300
commit
3e724f8e11
@ -33,6 +33,7 @@
|
||||
<%
|
||||
String sFlowUnid = CurPage.getParameter("FlowUnid");//Á÷³Ì±àºÅ
|
||||
String projectId = CurPage.getParameter("ProjectId");
|
||||
String ApplyType = CurPage.getParameter("ApplyType");
|
||||
BizObject boLPI= JBOFactory.createBizObjectQuery(LB_PROJECT_INFO.CLASS_NAME,"ID='"+projectId+"'").getSingleResult(false);
|
||||
//String carType=boLPI.getAttribute("CAR_TYPE").toString();
|
||||
String carType="new_car";
|
||||
@ -124,18 +125,27 @@
|
||||
if(framNum != "0" && checkFrameNumber()==false){
|
||||
return;
|
||||
}
|
||||
debugger;
|
||||
var ApplyType = "<%=ApplyType%>";
|
||||
|
||||
if(plate_number!=null&&plate_number!=""){
|
||||
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.BusinessApproveManager","saveAreaCode","flowunid="+sFlowUnid+",plate_number="+plate_number);
|
||||
if(sResult=="SUCCESS"){
|
||||
if(ApplyType=="BContractApproveApply"){
|
||||
as_save("myiframe0","");
|
||||
//as_save(0,"goBack()");
|
||||
return;
|
||||
}else{
|
||||
alert("请填写正确的车牌号码!");
|
||||
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.BusinessApproveManager","saveAreaCode","flowunid="+sFlowUnid+",plate_number="+plate_number);
|
||||
if(sResult=="SUCCESS"){
|
||||
as_save("myiframe0","");
|
||||
//as_save(0,"goBack()");
|
||||
}else{
|
||||
alert("请填写正确的车牌号码!");
|
||||
}
|
||||
}
|
||||
}else{
|
||||
as_save("myiframe0","");
|
||||
//as_save(0,"goBack()");
|
||||
as_save("myiframe0","");
|
||||
//as_save(0,"goBack()");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user