using System.Collections.Generic;
using System.Linq;
using System.Text;
//引用,单据体插件
using Kingdee.BOS.Core.Bill.PlugIn;
using Kingdee.BOS;
using System.ComponentModel;
namespace Kingdee.Bos.Project.BillEntry.Plugln
{
//插件名字
[Description("单据体属性测试")]
//热启动
[Kingdee.BOS.Util.HotUpdate]
//继承表单插件类
public class ClassName:AbstractBillPlugIn
{
//单据体,按钮点击事件
public override void EntryBarItemClick(BOS.Core.DynamicForm.PlugIn.Args.BarItemClickEventArgs e)
{
base.EntryBarItemClick(e);
//if条件判断,当点击YDIE_tbTest这个按钮时候触发
if(e.BarItemKey.Equals("YDIE_tbTest"))
{
//删除单据体信息
//FSaleOrderEntry,代表订单明细
//this.View.Model.DeleteEntryData("FSaleOrderEntry");
//逐行,删除单据体分录,0代表第1行
this.View.Model.DeleteEntryRow("FSaleOrderEntry", 0);
//刷新,单据体界面
this.View.UpdateView("FSaleOrderEntry");
}
}
}
}