From 5be169d868b50a60e95ba34189fb840bfed61ce9 Mon Sep 17 00:00:00 2001 From: user Date: Tue, 19 Jun 2018 15:22:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=94=B3=E8=AF=B7=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=94=B3=E8=AF=B7=E9=A1=B5=E9=9D=A2=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=B8=9A=E5=8A=A1=E7=B1=BB=E5=9E=8B=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=B9=B6=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessApproval/ProjectApprovalCreationInfo.jsp | 6 +++--- .../LBProjectIntoTempInitCarBusiness.java | 12 +++++------- .../projectapproval/BusinessApprovalStartAction.java | 12 ++++++++++++ 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp index 4f79c6761..36ed7a49a 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp @@ -92,7 +92,7 @@ var versionid = getItemValue(0,getRow(),"versionid"); var modelid = getItemValue(0,getRow(),"modelid"); var certid = getItemValue(0,getRow(),"certid"); - + var businessType = "汽车业务"; if(carAttributes==""){ alert("请选择车辆属性"); @@ -138,7 +138,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; + 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; var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.projectapproval.BusinessApprovalStartAction","initFLow",sParams); if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_" ) { @@ -146,7 +146,7 @@ } else { - parent.AsDialog.ClosePage(sReturnInfo+"@"+customerType+"@"+carAttributes+"@"+leasehold+"@"+carSystem+"@"+custname+"@"+certtype+"@"+certid+"@"+productModel+"@"+carSeries+"@"+versionid+"@"+modelid); + parent.AsDialog.ClosePage(sReturnInfo+"@"+customerType+"@"+carAttributes+"@"+leasehold+"@"+carSystem+"@"+custname+"@"+certtype+"@"+certid+"@"+productModel+"@"+carSeries+"@"+versionid+"@"+modelid+"@"+businessType); } } 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 2527d4185..4cb7dc96c 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java @@ -30,7 +30,6 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness { BizObjectManager bmLULT = JBOFactory.getBizObjectManager(LB_UNION_LESSEE_TEMP.CLASS_NAME,Sqlca); BizObjectManager bmLPA = JBOFactory.getBizObjectManager(lpapplication.CLASS_NAME,Sqlca); BizObjectManager bmLECT = JBOFactory.getBizObjectManager(LB_EQUIPMENT_CAR_TEMP.CLASS_NAME,Sqlca); - BizObjectManager bmLPIT = JBOFactory.getBizObjectManager(LB_PROJECT_INFO_TEMP.CLASS_NAME,Sqlca); BizObjectManager bmLCIT = JBOFactory.getBizObjectManager(LB_CONTRACT_INFO_TEMP.CLASS_NAME,Sqlca); Sqlca.join(bm); @@ -41,7 +40,6 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness { BizObject boLULT = bmLULT.newObject(); BizObject bmLP = bmLPA.newObject(); BizObject bmLEC = bmLECT.newObject(); - BizObject bmLPI = bmLPIT.newObject(); BizObject bmLCI = bmLCIT.newObject(); @@ -50,10 +48,6 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness { bmLCI.setAttributeValue("FLOWUNID", this.getAttribute("FlowUnid")); bmLCI.setAttributeValue("VERSIONID", this.getAttribute("versionid")); - bmLPI.setAttributeValue("FLOWUNID", this.getAttribute("FlowUnid")); - bmLPI.setAttributeValue("VERSIONID", this.getAttribute("versionid")); - - boCRT.setAttributeValue("flowunid", this.getAttribute("FlowUnid")); boCRT.setAttributeValue("customerid", customerid); boCRT.setAttributeValue("InputOrgID", asUser.getOrgID()); @@ -92,6 +86,11 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness { bo.setAttributeValue("project_name",this.getAttribute("ProjectNo")); bo.setAttributeValue("project_manage",this.getAttribute("CurUserID")); bo.setAttributeValue("project_dept",asUser.getOrgID()); + String versionid = this.getAttribute("versionid").toString(); + String bustype = this.getAttribute("businessType").toString(); + + bo.setAttributeValue("VERSIONID", this.getAttribute("versionid")); + bo.setAttributeValue("BUSINESSTYPE", this.getAttribute("businessType")); bo.setAttributeValue("leas_form", this.getAttribute("leasehold"));//默认回租 bo.setAttributeValue("PRODUCT_ID",this.getAttribute("ProductId"));//业务品种编号 bo.setAttributeValue("PRODUCT_NAME",this.getAttribute("ProductName"));//业务品种名称 @@ -106,7 +105,6 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness { bmLULT.saveObject(boLULT); bmLPA.saveObject(bmLP); bmLECT.saveObject(bmLEC); - bmLPIT.saveObject(bmLPI); bmLCIT.saveObject(bmLCI); String sMessage="true"; 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 b19a61a03..3393aebf2 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/projectapproval/BusinessApprovalStartAction.java +++ b/src_tenwa/com/tenwa/lease/flow/project/projectapproval/BusinessApprovalStartAction.java @@ -44,6 +44,7 @@ public class BusinessApprovalStartAction extends BaseFlowStartAction{ private String carSeries; private String versionid; private String modelid; + private String businessType; @Override public void customOperation(JBOTransaction tx,BizObject flowBussiness) throws Exception { @@ -64,9 +65,20 @@ public class BusinessApprovalStartAction extends BaseFlowStartAction{ this.FlowParam.put("carSeries", getCarSeries()); this.FlowParam.put("versionid", getVersionid()); this.FlowParam.put("modelid", getModelid()); + this.FlowParam.put("businessType", getBusinessType()); } + public String getBusinessType() { + return businessType; + } + + + public void setBusinessType(String businessType) { + this.businessType = businessType; + } + + public String getModelid() { return modelid; }