获取dep中新增的实体对象原创
金蝶云社区-hardont
hardont
1人赞赏了该文章 594次浏览 未经作者许可,禁止转载编辑于2022年04月24日 17:28:19

通过dep的方式创建对象

var entityPK = ""com.kingdee.eas.cfoperate.app.BillReference"";
var objectValue = new com.kingdee.eas.ep.CoreBillBaseCustomInfo();
var entityBosType = ""0C24DE85""; //实体的bosType,可通过[元数据检查]获得
objectValue.setBOSType(new com.kingdee.bos.util.BOSObjectType(entityBosType));


通过实体名称创建对象

var entityPK = ""com.kingdee.eas.cfoperate.app.BillReference"";
objectValue.setPK(new com.kingdee.bos.metadata.MetaDataPK(entityPK));
var bizInterface = com.kingdee.bos.BOSObjectFactory.createRemoteCommonBOSObject(new com.kingdee.bos.metadata.MetaDataPK(entityPK));	
var coreBillBaseCustomEntryInfo=new com.kingdee.eas.ep.CoreBillBaseCustomEntryInfo();
coreBillBaseCustomEntryInfo.setBOSType(new com.kingdee.bos.util.BOSObjectType(""A52A84ED""));
coreBillBaseCustomEntryInfo.setPK(new com.kingdee.bos.metadata.MetaDataPK(""com.kingdee.eas.cfoperate.app.BillReferenceEntry""));//""A52A84ED""


获取dep中新建实体的Factory

var projectObj=com.kingdee.eas.hr.base.util.SHRDataTypeUtils.createInfo(null, ""com.kingdee.eas.cfoperate.app.BussinessOpportunity"",null);	// com.kingdee.eas.cfoperate.app.ProjectApprovalBill
var custom=com.kingdee.eas.ep.DataBaseCustomFactory.getRemoteInstance();
custom.setType(projectObj.getBOSType());
var projectCollection = custom.getDataBaseCollection(EntityViewInfo);
图标赞 1
1人点赞
还没有人点赞,快来当第一个点赞的人吧!
图标打赏
0人打赏
还没有人打赏,快来当第一个打赏的人吧!