获取dep中新增的实体对象

栏目:s-hr cloud知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

获取dep中新增的实体对象

通过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);

获取dep中新增的实体对象

通过dep的方式创建对象var entityPK = ""com.kingdee.eas.cfoperate.app.BillReference"";var objectValue = new com.kingdee.eas.ep.CoreB...
点击下载文档
分享:
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息