业务申请,新增申请页面添加业务类型字段并入库

This commit is contained in:
user 2018-06-19 15:22:50 +08:00
parent 436a941a98
commit 5be169d868
3 changed files with 20 additions and 10 deletions

View File

@ -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);
}
}

View File

@ -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";

View File

@ -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;
}