diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp index ba38d843c..a905069e5 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp @@ -75,6 +75,7 @@ /*~[Describe=保存并初始化数据;InputParam=无;OutPutParam=无;]~*/ function saveRecord() { + debugger; //从页面上获取客户编号,产品编号 var carAttributes = getItemValue(0,getRow(),"carAttributes"); var leasehold = getItemValue(0,getRow(),"leasehold"); @@ -89,6 +90,9 @@ var certtype = getItemValue(0,getRow(),"certtype"); var certid = getItemValue(0,getRow(),"certid"); var versionid = getItemValue(0,getRow(),"versionid"); + var modelid = getItemValue(0,getRow(),"modelid"); + var certid = getItemValue(0,getRow(),"certid"); + if(certtype==""){ @@ -127,7 +131,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; + 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; var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.projectapproval.BusinessApprovalStartAction","initFLow",sParams); if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_" ) { @@ -135,7 +139,7 @@ } else { - parent.AsDialog.ClosePage(sReturnInfo+"@"+customerType+"@"+carAttributes+"@"+leasehold+"@"+carSystem+"@"+custname+"@"+certtype+"@"+certid+"@"+productModel+"@"+carSeries+"@"+versionid); + parent.AsDialog.ClosePage(sReturnInfo+"@"+customerType+"@"+carAttributes+"@"+leasehold+"@"+carSystem+"@"+custname+"@"+certtype+"@"+certid+"@"+productModel+"@"+carSeries+"@"+versionid+"@"+modelid); } } @@ -219,6 +223,7 @@ sReturn = sReturn.split("@"); MyOjbect.modelid=sReturn[0]; MyOjbect.modelname=sReturn[1]; + setItemValue(0,getRow(),"modelid",sReturn[0]); setItemValue(0,getRow(),"carSystem",sReturn[1]); },"请选择车型",''); }else{ 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 6d6a7f418..a1a92a3fd 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java @@ -73,6 +73,7 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness { bmLEC.setAttributeValue("MODEL", this.getAttribute("carSystem")); bmLEC.setAttributeValue("BRAND", this.getAttribute("productModel")); bmLEC.setAttributeValue("car_series", this.getAttribute("carSeries")); + bmLEC.setAttributeValue("modelId", this.getAttribute("modelid")); boLULT.setAttributeValue("project_id", this.getAttribute("ProjectId")); 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 205a74154..b19a61a03 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/projectapproval/BusinessApprovalStartAction.java +++ b/src_tenwa/com/tenwa/lease/flow/project/projectapproval/BusinessApprovalStartAction.java @@ -43,6 +43,7 @@ public class BusinessApprovalStartAction extends BaseFlowStartAction{ private String productModel; private String carSeries; private String versionid; + private String modelid; @Override public void customOperation(JBOTransaction tx,BizObject flowBussiness) throws Exception { @@ -62,9 +63,20 @@ public class BusinessApprovalStartAction extends BaseFlowStartAction{ this.FlowParam.put("productModel", getProductModel()); this.FlowParam.put("carSeries", getCarSeries()); this.FlowParam.put("versionid", getVersionid()); + this.FlowParam.put("modelid", getModelid()); } + public String getModelid() { + return modelid; + } + + + public void setModelid(String modelid) { + this.modelid = modelid; + } + + public String getVersionid() { return versionid; }