二开案例.表单插件.BeforeDeleteEntry

【应用场景】
删除分录行全部数据前,校验是否满足删除条件,不满足条件时取消删除行操作。
【案例演示】
采购订单,删除分录行全部数据前,校验是否满足删除条件,不满足条件时取消删除行操作。

【实现步骤】
<1>编写表单插件,代码如下。
using Kingdee.BOS.Core.DynamicForm.PlugIn;
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
using Kingdee.BOS.Util;
using System.ComponentModel;
namespace Jac.XkDemo.BOS.Business.PlugIn
{
/// <summary>
/// 【表单插件】BeforeDeleteEntry
/// </summary>
[Description("【表单插件】BeforeDeleteEntry"), HotUpdate]
public class BeforeDeleteEntryFormPlugIn : AbstractDynamicFormPlugIn
{
public override void EntryBarItemClick(BarItemClickEventArgs e)
{
base.EntryBarItemClick(e);
if (e.BarItemKey.EqualsIgnoreCase("test"))
{
// 删除分录全部数据行
this.Model.DeleteEntryData("FPOOrderEntry");
}
}
public override void BeforeDeleteEntry(BeforeDeleteEntryEventArgs e)
二开案例.表单插件.BeforeDeleteEntry
【应用场景】删除分录行全部数据前,校验是否满足删除条件,不满足条件时取消删除行操作。【案例演示】采购订单,删除分录行全部数据前,校...
点击下载文档文档为doc格式
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
上一篇
已经是第一篇



