更改业务申请发起脚本方法
This commit is contained in:
parent
ec2c4befdd
commit
dfe77a4b1f
@ -44,25 +44,25 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
|
||||
BizObject bmCC = bmCCT.newObject();
|
||||
BizObject bmLEC = bmLECT.newObject();
|
||||
BizObject bmLCI = bmLCIT.newObject();
|
||||
BizObject bmLC = bmCI.newObject();
|
||||
BizObject bmC = bmCI.newObject();
|
||||
|
||||
|
||||
ASUser asUser=new ASUser(this.getAttribute("CurUserID").toString());
|
||||
|
||||
//¿Í»§ÐÅÏ¢±í
|
||||
bmLC.setAttributeValue("customerid", customerId);//自然人ID
|
||||
bmLC.setAttributeValue("customername", this.getAttribute("custname"));//自然人名称
|
||||
bmLC.setAttributeValue("customertype", this.getAttribute("CustomerType"));//客户类型
|
||||
bmLC.setAttributeValue("certtype", this.getAttribute("certtype"));//证件类型
|
||||
bmLC.setAttributeValue("certid", this.getAttribute("certid"));//证件号
|
||||
bmLC.setAttributeValue("inputuserid", asUser.getUserID());//登记人
|
||||
bmLC.setAttributeValue("inputorgid", asUser.getOrgID());//登记部门
|
||||
bmLC.setAttributeValue("inputtime", StringFunction.getTodayNow());//登记时间,系统当前时间
|
||||
bmC.setAttributeValue("customerid", customerId);//自然人ID
|
||||
bmC.setAttributeValue("customername", this.getAttribute("custname"));//自然人名称
|
||||
bmC.setAttributeValue("customertype", this.getAttribute("CustomerType"));//客户类型
|
||||
bmC.setAttributeValue("certtype", this.getAttribute("certtype"));//证件类型
|
||||
bmC.setAttributeValue("certid", this.getAttribute("certid"));//证件号
|
||||
bmC.setAttributeValue("inputuserid", asUser.getUserID());//登记人
|
||||
bmC.setAttributeValue("inputorgid", asUser.getOrgID());//登记部门
|
||||
bmC.setAttributeValue("inputtime", StringFunction.getTodayNow());//登记时间,系统当前时间
|
||||
String deptid = asUser.getOrgID() ;
|
||||
if(deptid.startsWith("8006")) {
|
||||
BizObject distributor_bo=JBOFactory.createBizObjectQuery(DISTRIBUTOR_INFO.CLASS_NAME,"orgid=:orgid").setParameter("orgid",deptid).getSingleResult(false);
|
||||
if(distributor_bo!=null) {
|
||||
bmLC.setAttributeValue("distributor_id",distributor_bo.getAttribute("distributor_no"));//经销商ID
|
||||
bmC.setAttributeValue("distributor_id",distributor_bo.getAttribute("distributor_no"));//经销商ID
|
||||
}
|
||||
}
|
||||
|
||||
@ -155,6 +155,7 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
|
||||
bmLULT.saveObject(boLULT);
|
||||
bmLECT.saveObject(bmLEC);
|
||||
bmLCIT.saveObject(bmLCI);
|
||||
bmCI.saveObject(bmC);
|
||||
|
||||
String sMessage="true";
|
||||
return sMessage;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user