电脑桌面
添加蚂蚁七词文库到电脑桌面
安装后可以在桌面快捷访问

单据转换.二开案例.选单时清空历史分录

来源:金蝶云社区作者:金蝶2024-09-236

单据转换.二开案例.选单时清空历史分录

【场景】选单时清空明细信息里面的已有分录 【案例】通过单据转换插件实现,选单时清空分录 <0>单据转换插件 ```csharp using Kingdee.BOS.Core.Metadata.ConvertElement.PlugIn; using Kingdee.BOS.Core.Metadata.ConvertElement.PlugIn.Args; using Kingdee.BOS.Orm.DataEntity; using Kingdee.BOS.Util; namespace DynamicFormPlugIn.BillConvert { [Kingdee.BOS.Util.HotUpdate] [System.ComponentModel.Description("选单时清空没保存的分录")] public class ClearEntityRowWhileDraw_ServicePlugIn : AbstractConvertPlugIn { public static string EntityKey = "FPOOrderEntry"; public override void OnCreateDrawTarget(CreateDrawTargetEventArgs e) { var entity = e.TargetBusinessInfo.GetEntity(EntityKey); if (entity == null) return; var billObj = e.TargetData; if (!billObj.DynamicObjectType.Properties.ContainsKey(entity.EntryName)) return; DynamicObjectCollection rowColl = billObj[entity.EntryName] as DynamicObjectCollection; if (rowColl == null) return; for(int idx = rowColl.Count -1; idx>=0;--idx) { var row = rowColl[idx];

单据转换.二开案例.选单时清空历史分录

【场景】选单时清空明细信息里面的已有分录【案例】通过单据转换插件实现,选单时清空分录<0>单据转换插件```csharpusing Kingdee.BOS.Cor...
点击下载文档文档为doc格式

声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

已经是第一篇
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息
QQ群
  • 答案:my7c点击这里加入QQ群
支持邮箱
微信
  • 微信