生产入库单审核后,自动生成生产补料单,先要求自动提交审核目标单据
ConvertOperationResult operationResult = convertService.Push(this.Context, pushArgs, OperateOption.Create());
// 获取生成的目标单据数据包
DynamicObject[] objs = (from p in operationResult.TargetDataEntities select p.DataEntity).ToArray();
// 读取目标单据元数据
var targetBillMeta = metaDataService.Load(this.Context, "PRD_FeedMtrl") as FormMetadata;
// 数据保存,并获取保存结果
BusinessInfo targetInfo = targetBillMeta.BusinessInfo;
ISaveService saveService = Kingdee.BOS.App.ServiceHelper.GetService
var saveResult = saveService.Save(this.Context, targetInfo, objs);
ISubmitService SubmitService=Kingdee.BOS.App.ServiceHelper.GetService
SubmitService.Submit(this.Context,targetInfo,object[]Ids);
这个object[] Ids如何取值?
推荐阅读