U8开发之CS门户集成(2)

2019-02-16 13:11

U8知识库文档

',null,'DM',1,'DM',1,NULL,0,0,NULL,NULL,NULL) --增加idt对应记录 DELETE FROM [UFSystem].[dbo].[ua_idt] where id='DM' INSERT INTO [UFSystem].[dbo].[ua_idt]([id], [assembly], [catalogtype], [type], [class], [entrypoint], [parameter], [reserved]) VALUES('DM','TestVBActiveX.Person',0,0,null,null,null,null) DELETE FROM [UFSystem].[dbo].[ua_idt] where id='DM01' INSERT INTO [UFSystem].[dbo].[ua_idt]([id], [assembly], [catalogtype], [type], [class], [entrypoint], [parameter], [reserved]) VALUES('DM01','TestVBActiveX.Person',0,0,null,null,null,null) DELETE FROM [UFSystem].[dbo].[ua_idt] where id='DM02' INSERT INTO [UFSystem].[dbo].[ua_idt]([id], [assembly], [catalogtype], [type], [class], [entrypoint], [parameter], [reserved]) VALUES('DM02','TestVBActiveX.Person',0,0,null,null,null,null) 3. 系统启用

如何开发可与门户集成的 .Net UserControl?

1.

代码修改(890/10.0/10.1)

第一步:使用VisualStudio创建项目UFIDA.U8.Portal.NetProductSample项目引用路

www.yonyou.com

U8知识库文档

径:

U8安装路径\\ Interop\\Interop.U8Login

U8安装路径\\Portal\\UFIDA.U8.Portal.Framework.dll U8安装路径\\ Portal \\UFIDA.U8.Portal.Proxy.dll U8安装路径\\ Portal \\UFIDA.U8.Portal.Common.dll

第二步:继承 NetLoginable,重载SubSysLogin,SubSysLogOff和CallFunction方法

继承 NetLoginable public class MyLoginable : UFIDA.U8.Portal.Proxy.supports.NetLoginable { public override object CallFunction(string cMenuId, string cMenuName, string cAuthId, string cCmdLine) { INetUserControl mycontrol = new MyNetUserControl(); mycontrol.Title = \测试\; base.ShowEmbedControl(mycontrol, cMenuId, true); return null; } public override bool SubSysLogin() { GlobalParameters.gLoginable = this; return base.SubSysLogin(); } public override bool SubSysLogOff() { return base.SubSysLogOff(); } } 第三步:实现INetUserControl,重载SubSysLogin,SubSysLogOff和CallFunction方法

实现 INetUserControl public class MyNetUserControl:UFIDA.U8.Portal.Proxy.editors.INetUserControl { #region INetUserControl 成员 UserControl1 usercontrol = null; private IEditorInput _editInput = null; private IEditorPart _editPart = null; private string _title; ///

/// EditorInput /// public IEditorInput EditorInput

www.yonyou.com

U8知识库文档

{ get { return _editInput; } set { _editInput = value; } } ///

/// EditorPart /// public IEditorPart EditorPart { get { return _editPart; } set { _editPart = value; } } /// /// 页签标题 /// public string Title { get { return this._title; } set { this._title = value; } } public bool CloseEvent() { //throw new Exception(\method or operation is not implemented.\

www.yonyou.com

U8知识库文档

return true; } public System.Windows.Forms.Control CreateControl(clsLogin login, string MenuID, string Paramters) { //构造U8登陆对象 U8Login.clsLogin u8login = new U8Login.clsLoginClass(); if (login != null) { u8login.ConstructLogin(login.userToken); string taskId = login.GetTaskID(\); u8login.set_TaskId(ref taskId); } usercontrol = new UserControl1(); usercontrol.Name = \; return usercontrol; } public UFIDA.U8.Portal.Proxy.Actions.NetAction[] CreateToolbar(clsLogin login) { IActionDelegate nsd = new NetSampleDelegate(); string skey = \; NetAction ac = new NetAction(\, nsd); NetAction[] aclist ; aclist= new NetAction[1]; ac.Text = \; ac.Tag = usercontrol; aclist[0]= ac; return aclist; // throw new Exception(\method or operation is not implemented.\ } private void buttonclick(string buttonid) { } #endregion }

www.yonyou.com

U8知识库文档

2. 预置菜单

菜单预置数据 --例:增加门户菜单,将您的程序挂接到供应链(SCMG)下面 DELETE FROM [UFSystem].[dbo].[UA_Menu] WHERE [cMenu_Id]='AB' 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('AB','测试UserControl',null,'DP',0,'SCMG',1,NULL,0,0,NULL,NULL,NULL) DELETE FROM [UFSystem].[dbo].[ua_idt] where id='AB' INSERT INTO [UFSystem].[dbo].[ua_idt]([id], [assembly], [catalogtype], [type], [class], [entrypoint], [parameter], [reserved]) VALUES('AB','.\\Portal\\UFIDA.U8.Portal.NetProductSample.dll',0,2,'UFIDA.U8.Portal.NetProductSample.MyLoginable',null,null,null) 3. 部署

将程序集UFIDA.U8.Portal.NetProductSample.dll拷贝到U8安装目录Portal目录下

www.yonyou.com


U8开发之CS门户集成(2).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:浅谈虚拟现实技术在旅游实验教学应用

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: