文档库 最新最全的文档下载
当前位置:文档库 › U8开发之BS门户集成

U8开发之BS门户集成

U8开发之BS门户集成
U8开发之BS门户集成

U8 BS门户集成-子产品二次开发

1Silverlight子产品

1.1代码实现

1.继承门户基类NetModule,重载方法Login() LogOff() Initialize() SubSysLogin()}

2.继承门户基类NetUesrControl 重载方法CreateControl,CreateToolbar等

请参考实例UFIDA.U8.Portal.Demo.rar

1.2数据库预置数据

1.1.1UA_IDT表

DELETE FROM ua_idt WHERE ID='EE'

Insert into ua_idt

(id,assembly,catalogtype,type,class,entrypoint,parameter,reserved)

values('EE','EE/UFIDA.U8.Portal.Demo.dll',1,0,'UFIDA.U8.Portal.Demo.D emoLoginable','EE','','https://www.wendangku.net/doc/922108061.html,Module')

'Portal/UFIDA.U8.Portal.Demo.dll'表示部署到”U8Soft\U8SL\EE”目录下

1.1.2菜单表

Delete from ua_menu where cMenu_id='EE'

insert into

ua_menu(cMenu_id,cMenu_name,cmenu_Eng,cSub_id,iGrade,cSupMenu_id,bEnd Grade,cAuth_id,iOrder,iImgIndex,Paramters,Depends,Flag,isWebFlag) values('EE','示例

',null,'EE','0','SCMG',0,null,10,1,null,null,null,2)

delete from UFMENU_BUSINESS_LANG where MenuId='EE'

INSERT INTO UFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)

values('EE','示例','zh-cn')

INSERT INTO UFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)

values('EE','示例','zh-tw')

INSERT INTO UFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)

values('EE','EE','en-us')

Delete from ua_menu where cMenu_id='EE01'

Insert into

ua_menu(cMenu_id,cMenu_name,cmenu_Eng,cSub_id,iGrade,cSupMenu_id,bEnd Grade,cAuth_id,iOrder,iImgIndex,Paramters,Depends,Flag,isWebFlag) values('EE01','示例

',null,'EE','0','EE',1,null,10,1,null,null,null,2)

delete from UFMENU_BUSINESS_LANG where MenuId='EE01'

INSERT INTO UFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)

values('EE01','示例','zh-cn')

INSERT INTO UFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)

values('EE01','示例','zh-tw')

INSERT INTO UFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)

values('EE01','EE01','en-us')

1.1.3预制子产品

IF NOT EXISTS(select*From ua_subsys_base where csub_id='EE') BEGIN

insert into ua_subsys_base

([cSub_Id],[cSub_Name],[iTasks],[bInstalled],[iVersion],[cObjCreate], [dStart],[nType],[cEntType],[localeid],[iOrder])

values('EE','测试子产品

',0,'0',8.7,'CreateCom',Null,64,Null,'en-US',30)

insert into ua_subsys_base

([cSub_Id],[cSub_Name],[iTasks],[bInstalled],[iVersion],[cObjCreate], [dStart],[nType],[cEntType],[localeid],[iOrder])

values('EE','测试子产品

',0,'0',8.7,'CreateCom',Null,64,Null,'zh-CN',30)

insert into ua_subsys_base

([cSub_Id],[cSub_Name],[iTasks],[bInstalled],[iVersion],[cObjCreate], [dStart],[nType],[cEntType],[localeid],[iOrder])

values('EE','测试子产品

',0,'0',8.7,'CreateCom',Null,64,Null,'zh-TW',30)

END

1.3部署

1.将UFIDA.U8.Portal.Demo.dll及其依赖的组件放到U8Soft\U8SL\ClientBin\EE

2.执行D:\U8SOFT\U8SL\ClientBin\手动生成依赖\生成依赖.bat,自动生成依赖关系

1.4在基础设置中启用子产品

1.5客户端与服务端通信

1.1.4自己实现

1.1.5使用BS门户提供的WCF方式。

https://www.wendangku.net/doc/922108061.html,和Asp子产品

2.1、子产品实现

1、子产品创建页面Login.aspx,实现登录Login、注销Logout和在线检查Logcheck三

个方法

2、子产品创建页面main.aspx,子产品内部的路径导航

SubsysID="BM">/EE/Login.aspx?wci=userLogin2

utURL>/EE/Login.aspx?wci=userLogout2

/EE/Login.aspx?wci=userLogcheck2

/EE/main.asp?cSender={0}&cMsgType={1}&CMenuID={2}&am

p;cMsgInfo={3}

请参考实例UFIDA.U8.Portal.Demo.rar

2.2、数据库预置数据

2.2.1、UA_IDT表

DELETE FROM ua_idt WHERE ID='EE'

Insert into ua_idt

(id,assembly,catalogtype,type,class,entrypoint,parameter,reserved)

values('EE',’Portal/UFIDA.U8.Portal.Facade.dll’,1,0,’UFIDA.U8.Portal.

Facade.WebLoginable’,'EE',’

SubsysID="BM">/EE/Login.aspx?wci=userLogin2

utURL>/EE/Login.aspx?wci=userLogout2

/EE/Login.aspx?wci=userLogcheck2 /EE/main.asp?cSender={0}&cMsgType={1}&CMenuID={2}&am

p;cMsgInfo={3}’,

‘https://www.wendangku.net/doc/922108061.html,Module’ )

2.2.2、菜单表

Delete from ua_menu where cMenu_id='EE'

insert into

ua_menu(cMenu_id,cMenu_name,cmenu_Eng,cSub_id,iGrade,cSupMenu_id,bEnd Grade,cAuth_id,iOrder,iImgIndex,Paramters,Depends,Flag,isWebFlag) values('EE','示例

',null,'EE','0','SCMG',0,null,10,1,null,null,null,2)

delete from UFMENU_BUSINESS_LANG where MenuId='EE'

INSERT INTO UFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)

values('EE','示例','zh-cn')

INSERT INTO UFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)

values('EE','示例','zh-tw')

INSERT INTO UFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)

values('EE','EE','en-us')

Delete from ua_menu where cMenu_id='EE01'

Insert into

ua_menu(cMenu_id,cMenu_name,cmenu_Eng,cSub_id,iGrade,cSupMenu_id,bEnd Grade,cAuth_id,iOrder,iImgIndex,Paramters,Depends,Flag,isWebFlag) values('EE01','示例

',null,'EE','0','EE',1,null,10,1,null,null,null,2)

delete from UFMENU_BUSINESS_LANG where MenuId='EE01'

INSERT INTO UFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)

values('EE01','示例','zh-cn')

INSERT INTO UFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)

values('EE01','示例','zh-tw')

INSERT INTO UFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)

values('EE01','EE01','en-us')

2.2.3、预制子产品

IF NOT EXISTS(select*From ua_subsys_base where csub_id='EE') BEGIN

insert into ua_subsys_base

([cSub_Id],[cSub_Name],[iTasks],[bInstalled],[iVersion],[cObjCreate], [dStart],[nType],[cEntType],[localeid],[iOrder])

values('EE','测试子产品

',0,'0',8.7,'CreateCom',Null,64,Null,'en-US',30)

insert into ua_subsys_base

([cSub_Id],[cSub_Name],[iTasks],[bInstalled],[iVersion],[cObjCreate], [dStart],[nType],[cEntType],[localeid],[iOrder])

values('EE','测试子产品

',0,'0',8.7,'CreateCom',Null,64,Null,'zh-CN',30)

insert into ua_subsys_base

([cSub_Id],[cSub_Name],[iTasks],[bInstalled],[iVersion],[cObjCreate], [dStart],[nType],[cEntType],[localeid],[iOrder])

values('EE','测试子产品

',0,'0',8.7,'CreateCom',Null,64,Null,'zh-TW',30)

END

相关文档