【学习】添加类和引用 重写点击事件

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

【学习】添加类和引用 重写点击事件

image.webpimage.webpimage.webpimage.webpimage.webpimage.webpimage.webp

  • 需要引用的两个DLL文件

  • Kingdee.BOS.DLL
  • Kingdee.BOS.Core.DLL
  • 需要继承父类

  • AbstractBillPlugIn
using Kingdee.BOS.Core.Bill.PlugIn;
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
using Kingdee.BOS.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace XueXi
{
    [Description("学习按钮点击事件"), HotUpdate]//插件备注+热更新
    public class Class1 : AbstractBillPlugIn
    {
        public override void BarItemClick(BarItemClickEventArgs e)
        {
            base.BarItemClick(e);
            string BarItemKey = e.BarItemKey;//获取本次点击的按钮标识
            this.View.ShowMessage(BarItemKey + ": Hello Word");//输出按钮标识
        }
    }
}


【学习】添加类和引用 重写点击事件

需要引用的两个DLL文件Kingdee.BOS.DLLKingdee.BOS.Core.DLL需要继承父类AbstractBillPlugInusing Kingdee.BOS.Core.Bill.PlugIn;using Kin...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息