单据转换.二开案例.下推界面关闭时刷新上游列表

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

单据转换.二开案例.下推界面关闭时刷新上游列表

【场景】下推界面关闭时刷新上游列表 参考:[二开案例.单据插件.单据界面关闭后自动刷新列表数据](https://wenku.my7c.com/article/179534077928711424?productLineId=1&isKnowledge=2) 【案例】下推采购订单关闭后,刷新采购申请单列表 ![image.webp](/download/01003acde155a76a4c49abdcb30b09f3e2f3.webp) ```csharp //c#案例 using Kingdee.BOS.Core.Bill.PlugIn; using Kingdee.BOS.Core.DynamicForm.PlugIn.Args; using Kingdee.BOS.Core.List; namespace DynamicFormPlugIn.Test { [Kingdee.BOS.Util.HotUpdate] public class FormPlugIn_CloseAndRefreshParent : AbstractBillPlugIn { public override void BeforeClosed(BeforeClosedEventArgs e) { //判断下推 if (this.View.OpenParameter.CreateFrom != Kingdee.BOS.Core.Metadata.CreateFrom.Push) return; var listView = this.View.ParentFormView as IListView; if (listView == null) return; listView.Refresh(); this.View.SendDynamicFormAction(listView); } } } ``` ```python ##python案例 def BeforeClosed(e): createType = (int)(this.View.OpenParameter.CreateFrom); if createType != 1: return; parentView = this.View.ParentFormView; if parentView == None or parentView.OpenParameter == None: return; if not hasattr(parentView.OpenParameter,"ListType"): return; parentView.Refresh(); this.View.SendDynamicFormAction(parentView); ``` 【效果】 ![20230921 1445.webp](/download/0100f4fe340e300e41b183c1642b8b1331ec.webp)

单据转换.二开案例.下推界面关闭时刷新上游列表

【场景】下推界面关闭时刷新上游列表参考:[二开案例.单据插件.单据界面关闭后自动刷新列表数据](https://wenku.my7c.com/article/17953407...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息