public List<V_UserPermissionUI> GetUserPermissionByUserToUI(string userID)
        {

            using (SysUserBLL bll = new SysUserBLL())
            {
                #region 龙康才新增
                List<V_UserPermissionUI> plist;
                T_SYS_FBADMIN UserFb = null;
                string keyString = "GetUserPermissionByUserToUI" + userID;
                if (WCFCache.Current[keyString] == null)
                {

                    if (!string.IsNullOrEmpty(userID))
                    {
                        PermissionService p = new PermissionService();
                        UserFb = p.getFbAdmin(userID);
                    }
                    IQueryable<V_UserPermissionUI> IQList = UserFb != null ? bll.GetUserPermissionByUserToUI(userID, "") : bll.GetUserPermissionByUserToUINotForFbAdmin(userID, "");
                    plist = IQList == null ? null : IQList.ToList();
                    WCFCache.Current.Insert(keyString, plist, DateTime.Now.AddMinutes(15));
                }
                else
                {
                    plist = (List<V_UserPermissionUI>)WCFCache.Current[keyString];
                }
                #endregion

                return plist != null ? plist : null;
            }
        }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Permission.Services.PermissionService p = new PermissionService();
     p.GetFlowUserInfoByRoleID("4228fb43-4bb9-4b20-9316-2e7f6b0bde2a");
 }
Esempio n. 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Permission.Services.PermissionService p = new PermissionService();
     p.GetFlowUserInfoByRoleID("4228fb43-4bb9-4b20-9316-2e7f6b0bde2a");
 }