业务申请,租赁车辆信息页面带出档位字段数值

This commit is contained in:
user 2018-06-28 16:32:52 +08:00
parent 465e86f20b
commit f5e6f3df61
3 changed files with 29 additions and 11 deletions

View File

@ -95,6 +95,7 @@
var businessType = "汽车业务";
var price = getItemValue(0,getRow(),"price");
var liter = getItemValue(0,getRow(),"liter");
var geartype = getItemValue(0,getRow(),"geartype");
if(carAttributes==""){
alert("请选择车辆属性");
@ -140,7 +141,7 @@
}
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
sParams =sParams+",ProductId="+productid+",ProductName="+productname+",CustomerType="+customerType+",carAttributes="+carAttributes+",leasehold="+leasehold+",carSystem="+carSystem+",custname="+custname+",certtype="+certtype+",certid="+certid+",productModel="+productModel+",carSeries="+carSeries+",versionid="+versionid+",modelid="+modelid+",businessType="+businessType+",price="+price+",liter="+liter;
sParams =sParams+",ProductId="+productid+",ProductName="+productname+",CustomerType="+customerType+",carAttributes="+carAttributes+",leasehold="+leasehold+",carSystem="+carSystem+",custname="+custname+",certtype="+certtype+",certid="+certid+",productModel="+productModel+",carSeries="+carSeries+",versionid="+versionid+",modelid="+modelid+",businessType="+businessType+",price="+price+",liter="+liter+",geartype="+geartype;
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.projectapproval.BusinessApprovalStartAction","initFLow",sParams);
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_" )
{
@ -148,7 +149,7 @@
}
else
{
parent.AsDialog.ClosePage(sReturnInfo+"@"+customerType+"@"+carAttributes+"@"+leasehold+"@"+carSystem+"@"+custname+"@"+certtype+"@"+certid+"@"+productModel+"@"+carSeries+"@"+versionid+"@"+modelid+"@"+businessType+"@"+price);
parent.AsDialog.ClosePage(sReturnInfo+"@"+customerType+"@"+carAttributes+"@"+leasehold+"@"+carSystem+"@"+custname+"@"+certtype+"@"+certid+"@"+productModel+"@"+carSeries+"@"+versionid+"@"+modelid+"@"+businessType+"@"+price+"@"+geartype);
}
}
@ -250,14 +251,18 @@
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
debugger;
sReturn = sReturn.split("@");
MyOjbect.modelid=sReturn[0];
MyOjbect.modelname=sReturn[1];
MyOjbect.price=sReturn[2];
MyOjbect.price=sReturn[2]*10000+"Ԫ";
MyOjbect.liter=sReturn[3];
MyOjbect.geartype=sReturn[4];
setItemValue(0,getRow(),"modelid",sReturn[0]);
setItemValue(0,getRow(),"carSystem",sReturn[1]);
setItemValue(0,getRow(),"price",sReturn[2]);
setItemValue(0,getRow(),"price",MyOjbect.price);
setItemValue(0,getRow(),"liter",sReturn[3]);
setItemValue(0,getRow(),"geartype",sReturn[4]);
},"请选择车型",'');
}else{
alert("请先选择车系");

View File

@ -91,6 +91,7 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
bmLEC.setAttributeValue("NOW_TOTAL", this.getAttribute("price"));
bmLEC.setAttributeValue("VNDR_NAME", asUser.getUserID());
bmLEC.setAttributeValue("DISPLACEMENT", this.getAttribute("liter"));
bmLEC.setAttributeValue("gears", this.getAttribute("geartype"));
boLULT.setAttributeValue("project_id", this.getAttribute("ProjectId"));
boLULT.setAttributeValue("customer_id", customerId);

View File

@ -47,6 +47,7 @@ public class BusinessApprovalStartAction extends BaseFlowStartAction{
private String businessType;
private String price;
private String liter;
private String geartype;
@Override
public void customOperation(JBOTransaction tx,BizObject flowBussiness) throws Exception {
@ -63,16 +64,27 @@ public class BusinessApprovalStartAction extends BaseFlowStartAction{
this.FlowParam.put("custname", this.getCustname());
this.FlowParam.put("certtype", this.getCerttype());
this.FlowParam.put("certid", this.getCertid());
this.FlowParam.put("productModel", getProductModel());
this.FlowParam.put("carSeries", getCarSeries());
this.FlowParam.put("versionid", getVersionid());
this.FlowParam.put("modelid", getModelid());
this.FlowParam.put("businessType", getBusinessType());
this.FlowParam.put("price", getPrice());
this.FlowParam.put("liter", getLiter());
this.FlowParam.put("productModel", this.getProductModel());
this.FlowParam.put("carSeries", this.getCarSeries());
this.FlowParam.put("versionid", this.getVersionid());
this.FlowParam.put("modelid", this.getModelid());
this.FlowParam.put("businessType", this.getBusinessType());
this.FlowParam.put("price", this.getPrice());
this.FlowParam.put("liter", this.getLiter());
this.FlowParam.put("geartype", this.getGeartype());
}
public String getGeartype() {
return geartype;
}
public void setGeartype(String geartype) {
this.geartype = geartype;
}
public String getLiter() {
return liter;
}