U8按钮开发

U8按钮加入数据库

--生产订单\物料清单保存事件
DELETE  AA_CustomerButton WHERE   cCustomerObjectName = 'U8Api.U8ButtonEvent.clsButtonLinkCc' and cButtonKey  in ('BtnStudy1','BtnStudy2');
INSERT INTO [AA_CustomerButton]([cButtonID], [cButtonKey], [cButtonType], [cProjectNO], [cFormKey], [cVoucherKey], [cKeyBefore], [iOrder], [cGroup],
 [cCustomerObjectName], [cCaption], [cLocaleID], [cImage], [cToolTip], [cHotKey], [bInneralCommand], [cVariant], [cVisibleAsKey], [cEnableAsKey])
VALUES(newid(), 'BtnStudy1','system', 'U8CustDef', 'MO21', 'MO21','tlbSave','0', 'IEDIT','U8Api.U8ButtonEvent.clsButtonLinkCc','保存','zh-cn','Confirm','保存','Ctrl+N',1,
'保存','tlbSave','tlbSave')
INSERT INTO [AA_CustomerButton]([cButtonID], [cButtonKey], [cButtonType], [cProjectNO], [cFormKey], [cVoucherKey], [cKeyBefore], [iOrder], [cGroup],
 [cCustomerObjectName], [cCaption], [cLocaleID], [cImage], [cToolTip], [cHotKey], [bInneralCommand], [cVariant], [cVisibleAsKey], [cEnableAsKey])
VALUES(newid(), 'BtnStudy2','system', 'U8CustDef', 'BO11', 'BO11','tlbSave','0', 'IEDIT','U8Api.U8ButtonEvent.clsButtonLinkCc','保存','zh-cn','Confirm','保存','Ctrl+N',1,
'保存','tlbSave','tlbSave')

 

2、dll注册

1.在命令行中执行“cd /d C:\Windows\Microsoft.NET\Framework\v4.0.30319”,打开.net framework路径 .

2.然后输入注册命令“ Regasm I:\U816_1\U8SOFT\UAP\RUNTIME\U8Api.dll”即可将COM组件注册到系统中。

posted @ 2022-10-15 20:45  _York  阅读(236)  评论(0编辑  收藏  举报