单据保存后自动审核,适用于单据自动下推后自动审核原创
9人赞赏了该文章
3,454次浏览
编辑于2021年06月23日 16:09:59
clr clr.AddReference() clr.AddReference() clr.AddReference() clr.AddReference() clr.AddReference() clr.AddReference() clr.AddReference() Kingdee.BOS * Kingdee.BOS.Core * Kingdee.BOS.Core.Bill * Kingdee.BOS.Contracts * Kingdee.BOS.App * Kingdee.BOS.Core.DynamicForm.PlugIn * Kingdee.BOS.Core.DynamicForm.PlugIn.ControlModel * System * System.Data * System.Text * System.Collections * Kingdee.BOS.App.Data * System.Collections.Generic List Kingdee.BOS.ServiceHelper * (e): e.FieldKeys.Add();(e): idList =List[](); billObj e.DataEntitys: BillId = (billObj[]); F_IsAutoAudit = (billObj[]); (F_IsAutoAudit == F_IsAutoAudit == ): idList.Add(BillId); (idList.Count <= ): ; pkArray = idList.ToArray(); formID=this.BusinessInfo.GetForm().Id; meta = MetaDataServiceHelper.Load(this.ContextformID); submitOption = ; subResult =BusinessDataServiceHelper.Submit(this.Contextmeta.BusinessInfopkArraysubmitOption); (subResult .IsSuccess == ): auditOption = ; auditResult = BusinessDataServiceHelper.Audit(this.Contextmeta.BusinessInfopkArrayauditOption);
推荐阅读