新增申请,选择产品名称

This commit is contained in:
user 2018-06-17 16:17:22 +08:00
parent b3e08b8339
commit 8973de11c8
3 changed files with 20 additions and 2 deletions

View File

@ -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{

View File

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

View File

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