修改业务申请流程发起脚本
This commit is contained in:
parent
d627a14664
commit
aa5743fae8
@ -246,14 +246,12 @@
|
||||
var lease = false;
|
||||
var carAttributes = getItemValue(0,getRow(),"carAttributes");
|
||||
if(!carAttributes){
|
||||
|
||||
carAttr = false;
|
||||
}else{
|
||||
carAttr = true;
|
||||
}
|
||||
var leasehold = getItemValue(0,getRow(),"leasehold");
|
||||
if(!leasehold){
|
||||
|
||||
lease = false;
|
||||
}else{
|
||||
lease = true;
|
||||
|
||||
@ -33,7 +33,7 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
|
||||
BizObjectManager bmLCIT = JBOFactory.getBizObjectManager(LB_CONTRACT_INFO_TEMP.CLASS_NAME,Sqlca);
|
||||
|
||||
Sqlca.join(bm);
|
||||
String customerid = UUIDUtil.getUUID();
|
||||
String customerId = UUIDUtil.getUUID();
|
||||
|
||||
BizObject bo = bm.newObject();
|
||||
BizObject boCRT = bmCPT.newObject();
|
||||
@ -49,19 +49,38 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
|
||||
bmLCI.setAttributeValue("VERSIONID", this.getAttribute("versionid"));
|
||||
|
||||
boCRT.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));
|
||||
boCRT.setAttributeValue("customerid", customerid);
|
||||
boCRT.setAttributeValue("InputOrgID", asUser.getOrgID());
|
||||
boCRT.setAttributeValue("InputUserID", asUser.getUserID());
|
||||
boCRT.setAttributeValue("InputTime", StringFunction.getToday());
|
||||
boCRT.setAttributeValue("CERTTYPE", this.getAttribute("certtype"));
|
||||
boCRT.setAttributeValue("CERTID", this.getAttribute("certid"));
|
||||
boCRT.setAttributeValue("FULLNAME", this.getAttribute("custname"));
|
||||
|
||||
bmLP.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));
|
||||
bmLP.setAttributeValue("customerid", customerid);
|
||||
bmLP.setAttributeValue("enterprisename", this.getAttribute("custname"));
|
||||
bmLP.setAttributeValue("certtype", this.getAttribute("certtype"));
|
||||
bmLP.setAttributeValue("certid", this.getAttribute("certid"));
|
||||
//根据身份证号判断是否存在该客户,如果有,则带出客户编号
|
||||
String certId = this.getAttribute("certid").toString();
|
||||
BizObject bmbo = bmCPT.createQuery("certid=:certid").setParameter("certid", certId).getSingleResult(false);
|
||||
if(bmbo != null){
|
||||
customerId = bmbo.getAttribute("CUSTOMERID").toString();
|
||||
String customerName = bmbo.getAttribute("FULLNAME").toString();
|
||||
boCRT.setAttributeValue("customerid", customerId);
|
||||
boCRT.setAttributeValue("InputOrgID", asUser.getOrgID());
|
||||
boCRT.setAttributeValue("InputUserID", asUser.getUserID());
|
||||
boCRT.setAttributeValue("InputTime", StringFunction.getToday());
|
||||
boCRT.setAttributeValue("CERTTYPE", this.getAttribute("certtype"));
|
||||
boCRT.setAttributeValue("CERTID", certId);
|
||||
boCRT.setAttributeValue("FULLNAME", customerName);
|
||||
}else{
|
||||
boCRT.setAttributeValue("customerid", customerId);
|
||||
boCRT.setAttributeValue("InputOrgID", asUser.getOrgID());
|
||||
boCRT.setAttributeValue("InputUserID", asUser.getUserID());
|
||||
boCRT.setAttributeValue("InputTime", StringFunction.getToday());
|
||||
boCRT.setAttributeValue("CERTTYPE", this.getAttribute("certtype"));
|
||||
boCRT.setAttributeValue("CERTID", this.getAttribute("certid"));
|
||||
boCRT.setAttributeValue("FULLNAME", this.getAttribute("custname"));
|
||||
}
|
||||
|
||||
//根据客户类型设置参数
|
||||
String certType = this.getAttribute("certtype").toString();
|
||||
if(certType.equals("Ent01")){
|
||||
bmLP.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));
|
||||
bmLP.setAttributeValue("customerid", customerId);
|
||||
bmLP.setAttributeValue("enterprisename", this.getAttribute("custname"));
|
||||
bmLP.setAttributeValue("certtype", this.getAttribute("certtype"));
|
||||
bmLP.setAttributeValue("certid", this.getAttribute("certid"));
|
||||
}
|
||||
|
||||
bmLEC.setAttributeValue("FLOWUNID", this.getAttribute("FlowUnid"));
|
||||
bmLEC.setAttributeValue("MODEL", this.getAttribute("carSystem"));
|
||||
@ -71,7 +90,7 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
|
||||
|
||||
|
||||
boLULT.setAttributeValue("project_id", this.getAttribute("ProjectId"));
|
||||
boLULT.setAttributeValue("customer_id", customerid);
|
||||
boLULT.setAttributeValue("customer_id", customerId);
|
||||
boLULT.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));
|
||||
boLULT.setAttributeValue("InputOrgID", asUser.getOrgID());
|
||||
boLULT.setAttributeValue("InputUserID", asUser.getUserID());
|
||||
@ -86,6 +105,7 @@ 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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user