找回密码
 注册账号

QQ登录

只需一步,快速开始

手机号码,快捷登录

手机号码,快捷登录

初学者课程:T3自学|T6自学|U8自学软件下载课件下载工具下载资料:通资料|U8资料|NC|培训|年结积分规则 | 使用常见问题Q&A
知识库:U8 | | NC | U9 | OA | 政务U8|U9|NCC|NC65|NC65客开|NCC客开新手必读 | 任务 | 快速增金币用友QQ群[微信群]
查看: 17778|回复: 20

[模式] U8自定义按钮问题

[复制链接]
发表于 2011-3-11 15:22:48 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册账号

×
我在AA_CustomerButton里面插入了一行记录,是在质量管理里面的来料检验单上添加一个联查按钮的。
我在写代码的时候,想通过business对象来做一个联查,我想请问一下,在自定义按钮的代码里面怎样获得business对象?

Public Function RunCommand(ByVal objLogin As Object, ByVal objForm As Object, ByVal objVoucher As Object, _
                            ByVal sKey As String, ByVal VarentValue As Variant, ByVal other As String)
    If DBConn Is Nothing Then
        Set DBConn = New ADODB.Connection
        DBConn.Open objLogin.UfDbName
    End If
     ......................

End Function
发表于 2018-4-19 18:14:34 | 显示全部楼层
同样问题,需要学习一下,我这数据库中没有AA_CustomerButton,这张表,系统11.1
回复 点赞 拍砖

使用道具 举报

发表于 2018-11-7 16:32:43 | 显示全部楼层
一样的,需要好好的学习
回复 点赞 拍砖

使用道具 举报

发表于 2018-11-7 16:32:17 | 显示全部楼层
一样的,需要好好的学习
回复 点赞 拍砖

使用道具 举报

发表于 2018-11-7 16:31:58 | 显示全部楼层
一样的,需要好好的学习
回复 点赞 拍砖

使用道具 举报

发表于 2016-11-3 12:43:49 | 显示全部楼层
高深的问题
同样求教
回复 点赞 拍砖

使用道具 举报

发表于 2011-3-11 19:44:12 | 显示全部楼层
高深的问题
同样求教
发表于 2011-3-14 12:06:18 | 显示全部楼层
一样的,需要好好的学习。
发表于 2011-3-19 11:54:34 | 显示全部楼层
我知道如何使用,代码较长,请与我联系!
部分代码如下:
Option Explicit

Implements UFPortalProxyInterface.ILoginable

Public Property Get Business() As Object
    Set Business = g_oBusiness
End Property

'Step 1
Public Property Set Business(ByRef bBus As Object)
    Set g_oBusiness = bBus  '获得business对象。
End Property

'Step 2
Public Function ILoginable_Login() As Boolean
    If ((Not g_oBusiness Is Nothing) And g_bLogined = False) Then
        Set g_oLogin = g_oBusiness.GetVBclsLogin() '获得login对象
        g_bLogined = True
        ILoginable_Login = True
    Else
        ILoginable_Login = Not g_oBusiness Is Nothing
    End If
End Function

Public Function ILoginable_LogOff() As Boolean
    '程序退出前,添加自己的代码
    ILoginable_LogOff = True '本行代码必须。
    g_bLogined = False '本行代码必须。
End Function


'Step 3
'CallFunction方法是二次开发程序的入口。即当用户双击二次开发节点时,U8门户会从接口类模块的CallFunction方法开始执行二次开发代码。
Public Function ILoginable_CallFunction(ByVal cMenuId As String, ByVal cMenuName As String, ByVal cAuthId As String, ByVal cCmdLine As String) As Object
    '开始执行业务代码
    'cMenuID、cmenuName、cAuthId、cCmlLine均为前述在UA_Menu表中注册的cMenu_Id、cMenu_Name、cAuth_Id、Paramters字段的值。
    'INSERT INTO UA_Menu(cMenu_Id, cMenu_Name, cSub_Id, IGrade, cSupMenu_Id,  bEndGrade, cAuth_Id, iOrder, iImgIndex)
    '            VALUES ('SAM030399', '装箱单*', 'DP', 2, 'SAM0303', 1, 'SAM030399', 0, 4)
    'Columns
      'Column Name            Description                                     Datatype       Length       Allow Nulls
      ' Paramters (U870)       参数,通过commandline,传给调用着              nvarchar       1024           True
      ' Depends (U870)         依赖的产品,如果依赖产品启用,此节点才显示     nvarchar        512           True
      ' Flag (U870)            =1,默认不显示,=8,此产品只支持中文             int            4            True
      ' AutoID (U861)          自动编号                                         int            4            False
      ' cMenu_Id (U861)        菜单编号                                       nvarchar         12           False
      ' cMenu_Name (U861)      菜单名称                                       nvarchar         60           False
      ' cMenu_Eng (U861)       菜单英文名称                                   nvarchar         60           True
      ' cSub_Id (U861)         模块标识                                       nvarchar          2           True
      ' IGrade (U861)          级次                                           smallint          2           True
      ' cSupMenu_Id (U861)     上级菜单编号                                   nvarchar          12          True
      ' bEndGrade (U861)       是否末级                                        bit              1           False
      ' cAuth_Id (U861)         关联功能编号                                   nvarchar         100          True
      ' iOrder (U861)          显示顺序号                                      int              4           False
      ' iImgIndex (U861)       图标索引号                                      int              4           False
发表于 2011-3-25 16:37:14 | 显示全部楼层
需要好好的学习。
发表于 2011-3-30 12:48:49 | 显示全部楼层
自己实现逻辑。 objVoucher.addnew 貌似可以。
头像被屏蔽
发表于 2011-7-10 12:01:22 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2011-7-11 15:30:29 | 显示全部楼层
好难哦。。。。。。。
发表于 2011-7-22 10:52:57 | 显示全部楼层
我也想知道,但我是要用C#.NET开发哦,有哪位大侠知道啊???
发表于 2011-7-22 17:02:59 | 显示全部楼层
我问下各位大侠,你们在做这块开发时需要引用哪些DLL,这个很重要,但U8安装目录下DLL很多,而且很多DLL不能引用到VB开发环境中,不知道谁知道????主要是单据,窗体,控件,我已经知道U8单据列表控件需要引用U8Voucher(在文件夹ufcomsql下)
发表于 2011-8-27 17:18:05 | 显示全部楼层
objVoucher 你应该找的是这个对象吧。
发表于 2011-8-30 11:14:20 | 显示全部楼层
需要好好的学习。
发表于 2012-9-19 11:41:25 | 显示全部楼层
这个,要好好研究一下了
回复 点赞 拍砖

使用道具 举报

发表于 2012-9-23 01:20:15 | 显示全部楼层
学习了,解决了目前遇到的问题,谢谢
回复 点赞 拍砖

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号

本版积分规则

QQ|站长微信|Archiver|手机版|小黑屋|用友之家 ( 蜀ICP备07505338号|51072502110008 )

GMT+8, 2024-4-19 17:38 , Processed in 0.044203 second(s), 9 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表