资源描述:
《U8开发之BS门户集成》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、U8知识库文档U8BS门户集成-子产品二次开发1Silverlight子产品1.1代码实现1.继承门户基类NetModule,重载方法Login()LogOff()Initialize()SubSysLogin()}2.继承门户基类NetUesrControl重载方法CreateControl,CreateToolbar等请参考实例UFIDA.U8.Portal.Demo.rar1.2数据库预置数据1.1.1UA_IDT表DELETEFROMua_idtWHEREID='EE'Insertintoua_idt(id,assembly,c
2、atalogtype,type,class,entrypoint,parameter,reserved)values('EE','EE/UFIDA.U8.Portal.Demo.dll',1,0,'UFIDA.U8.Portal.Demo.DemoLoginable','EE','','UFIDA.U8.Portal.Proxy.Supports.NetModule')'Portal/UFIDA.U8.Portal.Demo.dll'表示部署到”U8SoftU8SLEE”目录下1.1.2菜单表Deletefromua_menuwhe
3、recMenu_id='EE'insertintoua_menu(cMenu_id,cMenu_name,cmenu_Eng,cSub_id,iGrade,cSupMenu_id,bEndGrade,cAuth_id,iOrder,iImgIndex,Paramters,Depends,Flag,isWebFlag)values('EE','示例',null,'EE','0','SCMG',0,null,10,1,null,null,null,2)deletefromUFMENU_BUSINESS_LANGwhereMenuId='EE
4、'INSERTINTOUFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)values('EE','示例','zh-cn')INSERTINTOUFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)values('EE','示例','zh-tw')INSERTINTOUFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)values('EE','EE','en-us')www.yonyou.comU8知识库文档Deletefro
5、mua_menuwherecMenu_id='EE01'Insertintoua_menu(cMenu_id,cMenu_name,cmenu_Eng,cSub_id,iGrade,cSupMenu_id,bEndGrade,cAuth_id,iOrder,iImgIndex,Paramters,Depends,Flag,isWebFlag)values('EE01','示例',null,'EE','0','EE',1,null,10,1,null,null,null,2)deletefromUFMENU_BUSINESS_LANGwh
6、ereMenuId='EE01'INSERTINTOUFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)values('EE01','示例','zh-cn')INSERTINTOUFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)values('EE01','示例','zh-tw')INSERTINTOUFMENU_BUSINESS_LANG(MenuId,Caption,Localeid)values('EE01','EE01','en-us')1.1.1预制
7、子产品IFNOTEXISTS(select*Fromua_subsys_basewherecsub_id='EE')BEGINinsertintoua_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)i
8、nsertintoua_subsys_base([cSub_Id],[cSub_Name],[iTasks],[bInstalled],[iVersion],[cObjCreate],[dStart],[n