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; ///
www.yonyou.com
U8知识库文档
{ get { return _editInput; } set { _editInput = value; } } ///
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
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库U8开发之CS门户集成(2)在线全文阅读。
相关推荐: