生产入库单审核后,自动生成生产补料单,先要求自动提交审核目标单据
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如何取值?
推荐阅读
您的鼓励与嘉奖将成为创作者们前进的动力,如果觉得本文还不错,可以给予作者创作打赏哦!
请选择打赏金币数 *