From f5e6f3df612296391fa2944a4e935e1488882171 Mon Sep 17 00:00:00 2001 From: user Date: Thu, 28 Jun 2018 16:32:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=94=B3=E8=AF=B7=EF=BC=8C?= =?UTF-8?q?=E7=A7=9F=E8=B5=81=E8=BD=A6=E8=BE=86=E4=BF=A1=E6=81=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=B8=A6=E5=87=BA=E6=A1=A3=E4=BD=8D=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=95=B0=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectApprovalCreationInfo.jsp | 13 +++++++--- .../LBProjectIntoTempInitCarBusiness.java | 1 + .../BusinessApprovalStartAction.java | 26 ++++++++++++++----- 3 files changed, 29 insertions(+), 11 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp index 49e55cab5..cbe9f9b57 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp @@ -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("请先选择车系"); diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java index 642a97abf..7ad5243e3 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java @@ -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); diff --git a/src_tenwa/com/tenwa/lease/flow/project/projectapproval/BusinessApprovalStartAction.java b/src_tenwa/com/tenwa/lease/flow/project/projectapproval/BusinessApprovalStartAction.java index 7024fdfff..716ce85ab 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/projectapproval/BusinessApprovalStartAction.java +++ b/src_tenwa/com/tenwa/lease/flow/project/projectapproval/BusinessApprovalStartAction.java @@ -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; }