金蝶二次开发C#

1 建立C#类库项目

2 引用EBOS组建Kingdee.K3.BOS.PlugInModel

3 示例代码

usingSystem;
usingSystem.Collections.Generic;
usingSystem.Text;
usingKingdee.K3.BOS.PlugInModel.Bill;
usingKingdee.K3.BOS.PlugInModel.Bill.Events;
namespaceKingdee.K3.BOS.Plugint
{
public class BillPlugin : IBillPlugIn
{
private BillInterface m_oBillInterface public void Show(BillInterface oBillInterface) { m_oBillInterface = oBillInterface; m_oBillInterface.CommandClick += new CommandClickHandler(m_oBillInterface_CommandClick); } void m_oBillInterface_CommandClick(object sender, CommandClickEventArgs e) { switch (e.CommandName) { case “FBUTTON”: m_oBillInterface.Alert(m_oBillInterface.GetFieldValue(“FBillNo”).ToString()); break; default: break; }}}}
4 DLL文件部署路径//K3ERP/KDHR/SITEFILE/WEBUI/BIN

5 插件中输入命名空间名+类名

6 可设置程序属性中的生成目录为//K3ERP/KDHR/SITEFILE/WEBUI/BIN方便测试和部署

7 调试附加到进程 w3wp.exe(winSer系统)/aspnet_wp.exe(xp系统)

上一篇:金蝶云星空二开示例


下一篇:在 Linux 上监控 CPU 和 GPU 温度