在Meta库中Meta库.AA_Customerbutton中,一行数据代表一个按钮
INSERT INTO [UFMeta_1657].[dbo].[AA_CustomerButton]
([cButtonID]
,[cButtonKey]
,[cButtonType]
,[cProjectNO]
,[cFormKey]
,[cVoucherKey]
,[cKeyBefore]
,[iOrder]
,[cGroup]
,[cCustomerObjectName]
,[cCaption]
,[cLocaleID]
,[cImage]
,[cToolTip]
,[cHotKey]
,[bInneralCommand]
,[cVariant]
,[cVisibleAsKey]
,[cEnableAsKey])
VALUES
(<cButtonID, uniqueidentifier,>
,<cButtonKey, nvarchar(50),>
,<cButtonType, nvarchar(50),>
,<cProjectNO, nvarchar(50),>
,<cFormKey, nvarchar(50),>
,<cVoucherKey, nvarchar(50),>
,<cKeyBefore, nvarchar(50),>
,<iOrder, nvarchar(50),>
,<cGroup, nvarchar(50),>
,<cCustomerObjectName, nvarchar(100),>
,<cCaption, nvarchar(100),>
,<cLocaleID, nvarchar(50),>
,<cImage, nvarchar(100),>
,<cToolTip, nvarchar(200),>
,<cHotKey, nvarchar(50),>
,<bInneralCommand, int,>
,<cVariant, nvarchar(400),>
,<cVisibleAsKey, nvarchar(100),>
,<cEnableAsKey, nvarchar(100),>)
GO
cButtonID cButtonKey cButtonType cProjectNO cFormKey cVoucherKey
cKeyBefore iOrder cGroup cCustomerObjectName cCaption cLocaleID cImage
cToolTip cHotKey bInneralCommand cVariant cVisibleAsKey cEnableAsKey
45814D73 DAction_C default U8Custdef NULL 88
Refresh 0 IEDIT UFIDA.U8.UAP.Plugin.AddButton.clsbdpo 采购合同 zh-cn print
current 生成采购合同 Ctrl+N 1 CustomPrintA modify Refresh
******************************************************8
UFIDA.U8.UAP.Plugin.AddButton.clsdpo为dll程序集
需要注册
注册方法
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\regasm.exe /tlb c:\U8SOFT\UAP\Runtime\CustomAction.dll
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\regasm.exe c:\U8SOFT\UAP\Runtime
\UFIDA.U8.UAP.Plugin.AddButton.dll
在命令行执行或者存入*.bat文件
新建一个VB类,并写入以下方法即可 ‘执行按钮,objVoucher为单据或列表对象&
varentValue为在表中预置的cVariant的值