融为平台注意的问题

1      当我们更改了项目Model的命名空间后,如改为CRM.Model 还要记得到全局文件做相应的修改;同样当删除了工作流程序集后,也要到这里做相应的删除。如下图

       

         代码里面改完后,还要对全局文件点右键 选择打开标记  做对应的更改

     2  为PortalService设置万能密码的方法,是到Aim.Portal.Service->UserSessionService->UserSessionServer.cs在授权用户方法里加一段代码,如下图

3         IEnumerable<SysModule> topAuthExamMdls = new List<SysModule>();//通过应用程序CODE 获取登录用户有访问权限的模块
            string appcode = EXAMINING_APP_CODE;
            if (this.Request.QueryString["App"] != null && this.Request.QueryString["App"].Trim() != "")
            {
                appcode = this.Request.QueryString["App"];
            }
            if (UserContext.AccessibleApplications.Count > 0)
            {
                SysApplication examApp = UserContext.AccessibleApplications.FirstOrDefault(tent => tent.Code == appcode);
                if (examApp != null && UserContext.AccessibleModules.Count > 0)
                {
                    topAuthExamMdls = UserContext.AccessibleModules.Where(tent => tent.ApplicationID == examApp.ApplicationID && String.IsNullOrEmpty(tent.ParentID));
                    topAuthExamMdls = topAuthExamMdls.OrderBy(tent => tent.SortIndex);
                }
            }

           //获取登录用户有访问权限的应用程序
            IList<SysApplication> saEnts = UserContext.AccessibleApplications.OrderBy(tens => tens.SortIndex).Where(ent => ent.Status == 1).ToArray();
            PageState.Add("Modules", saEnts);

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值