第一范文网 - 专业文章范例文档资料分享平台

U8门户开发手册(DOC)说课讲解

来源:用户分享 时间:2025/7/31 14:43:54 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

附录:门户示例详解

内容 :增加产品 操作窗口 写入门户消息 联查其他功能

第一步:增加产品

在UFsystem 中执行下列sql --增加门户菜单

INSERT INTO [UFSystem].[dbo].[UA_Menu]([cMenu_Id], [cMenu_Name], [cMenu_Eng], [cSub_Id],

[IGrade], [cSupMenu_Id], [bEndGrade], [cAuth_Id], [iOrder], [iImgIndex], [Paramters], [Depends], [Flag])

VALUES('LZ','测试产品',null,'LZ',0,'SCMG',0,NULL,0,0,NULL,NULL,NULL)

INSERT INTO [UFSystem].[dbo].[UA_Menu]([cMenu_Id], [cMenu_Name], [cMenu_Eng], [cSub_Id],

[IGrade], [cSupMenu_Id], [bEndGrade], [cAuth_Id], [iOrder], [iImgIndex], [Paramters], [Depends], [Flag])

VALUES('LZ01','测试产品单据1',null,'LZ',1,'LZ',1,NULL,0,0,NULL,NULL,NULL)

INSERT INTO [UFSystem].[dbo].[UA_Menu]([cMenu_Id], [cMenu_Name], [cMenu_Eng], [cSub_Id],

[IGrade], [cSupMenu_Id], [bEndGrade], [cAuth_Id], [iOrder], [iImgIndex], [Paramters], [Depends], [Flag])

VALUES('LZ02','测试产品单据1列表',null,'LZ',1,'LZ',1,NULL,0,0,NULL,NULL,NULL) --增加idt对应记录

select * from ua_idt

INSERT INTO [UFSystem].[dbo].[ua_idt]([id], [assembly], [catalogtype], [type], [class], [entrypoint],

[parameter], [reserved])

VALUES('LZ01','TestVBActiveXDll.Person',0,0,null,null,null,null)

INSERT INTO [UFSystem].[dbo].[ua_idt]([id], [assembly], [catalogtype], [type], [class], [entrypoint],

[parameter], [reserved])

VALUES('LZ02','TestVBActiveXDll.Person',0,0,null,null,null,null)

效果如下

第二步:编译

编译TestVBActiveXDll.vbp 到 u8soft\%ufcomsql 目录下

第三步:打开产品

登录 u8打开测试产品单据1 效果如下

第四步:打开单据

界面包含四个部分 1、有关工具条的操作 2、有关窗口操作 3、有关消息中心 4、有关联查单据

1,2 对照代码参考即可

第五步:消息中心

要往门户发自己的消息分两个步骤

1:增加一个消息类型(如果是发现有类型的消息,则忽略该步骤) --预置一条消息类型,指定类型为notice 通知

If Not Exists (Select 1 From UFSystem..UA_MessageType where MsgTypeId = 313555) Insert Into UFSystem..UA_MessageType(MsgTypeId,MsgTypeName,HandlerName,SourceId,NeedProcess,OnlySupportBS) values(313555,'新增通知类型-test','Notice','04',1,0)

go

--在消息导航中增加一条记录

if not exists(select 1 from UA_NavigationNode where Name=N'313555') insert into Ufsystem..UA_NavigationNode(Name,Text,Visible,MsgTypeID,ParentNodeName) values(N'313555',N'313555',0,N'313555',N'Alarmed') GO

2:往门户发送消息,门户消息存于UA_message表中, 可以直接写表,但是不推荐 推荐调用组件写入 '向门户消息中心表中写入数据 '方式1:直接写表

'方式2:调用u8现有组件写入

Private Sub cmdSendMessageToMTC_Click() Dim objMsg As SendMsg.CSendMsg

Set objMsg = CreateObject(\ '设置登录对象

Dim oLoginTmp As Object

Set oLoginTmp = g_business.GetVBclsLogin()

If Not objMsg.SetLogin(oLoginTmp) Then MsgBox \设置登录对象失败\ End If

'调用方法

'用于联查的消息

Dim cn As New ADODB.Connection

cn.ConnectionString = oLoginTmp.ufsystemdb.Name cn.Open

Call objMsg.AddNotifyInfo(cn, \联查单据测试\ cn.Close

Set cn = Nothing ' objMsg.Notify

搜索更多关于: U8门户开发手册(DOC)说课讲解 的文档
U8门户开发手册(DOC)说课讲解.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c2nvmn1jsii6k2tg1xudp48fsc2a7r600rkh_6.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top