业务申请,带出车辆指导价和供应商的值
This commit is contained in:
parent
5bea28e7e7
commit
c1db2a62f4
@ -93,6 +93,7 @@
|
||||
var modelid = getItemValue(0,getRow(),"modelid");
|
||||
var certid = getItemValue(0,getRow(),"certid");
|
||||
var businessType = "汽车业务";
|
||||
var price = getItemValue(0,getRow(),"price");
|
||||
|
||||
if(carAttributes==""){
|
||||
alert("请选择车辆属性");
|
||||
@ -138,7 +139,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;
|
||||
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;
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.projectapproval.BusinessApprovalStartAction","initFLow",sParams);
|
||||
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_" )
|
||||
{
|
||||
@ -146,7 +147,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
parent.AsDialog.ClosePage(sReturnInfo+"@"+customerType+"@"+carAttributes+"@"+leasehold+"@"+carSystem+"@"+custname+"@"+certtype+"@"+certid+"@"+productModel+"@"+carSeries+"@"+versionid+"@"+modelid+"@"+businessType);
|
||||
parent.AsDialog.ClosePage(sReturnInfo+"@"+customerType+"@"+carAttributes+"@"+leasehold+"@"+carSystem+"@"+custname+"@"+certtype+"@"+certid+"@"+productModel+"@"+carSeries+"@"+versionid+"@"+modelid+"@"+businessType+"@"+price);
|
||||
}
|
||||
}
|
||||
|
||||
@ -251,8 +252,10 @@
|
||||
sReturn = sReturn.split("@");
|
||||
MyOjbect.modelid=sReturn[0];
|
||||
MyOjbect.modelname=sReturn[1];
|
||||
MyOjbect.price=sReturn[2];
|
||||
setItemValue(0,getRow(),"modelid",sReturn[0]);
|
||||
setItemValue(0,getRow(),"carSystem",sReturn[1]);
|
||||
setItemValue(0,getRow(),"price",sReturn[2]);
|
||||
},"请选择车型",'');
|
||||
}else{
|
||||
alert("请先选择车系");
|
||||
|
||||
@ -87,7 +87,8 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
|
||||
bmLEC.setAttributeValue("BRAND", this.getAttribute("productModel"));
|
||||
bmLEC.setAttributeValue("car_series", this.getAttribute("carSeries"));
|
||||
bmLEC.setAttributeValue("modelId", this.getAttribute("modelid"));
|
||||
|
||||
bmLEC.setAttributeValue("NOW_TOTAL", this.getAttribute("price"));
|
||||
bmLEC.setAttributeValue("VNDR_NAME", asUser.getUserID());
|
||||
|
||||
boLULT.setAttributeValue("project_id", this.getAttribute("ProjectId"));
|
||||
boLULT.setAttributeValue("customer_id", customerId);
|
||||
|
||||
@ -45,6 +45,7 @@ public class BusinessApprovalStartAction extends BaseFlowStartAction{
|
||||
private String versionid;
|
||||
private String modelid;
|
||||
private String businessType;
|
||||
private String price;
|
||||
|
||||
@Override
|
||||
public void customOperation(JBOTransaction tx,BizObject flowBussiness) throws Exception {
|
||||
@ -66,9 +67,20 @@ public class BusinessApprovalStartAction extends BaseFlowStartAction{
|
||||
this.FlowParam.put("versionid", getVersionid());
|
||||
this.FlowParam.put("modelid", getModelid());
|
||||
this.FlowParam.put("businessType", getBusinessType());
|
||||
this.FlowParam.put("price", getPrice());
|
||||
}
|
||||
|
||||
|
||||
public String getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
|
||||
public void setPrice(String price) {
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
|
||||
public String getBusinessType() {
|
||||
return businessType;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user