Ejemplo n.º 1
0
        /// <summary>
        /// 判断管理员是否有某权限
        /// </summary>
        /// <param name="UID"></param>
        /// <param name="FN_ID"></param>
        /// <returns></returns>
        public virtual bool HasFunction(string UID, int FN_ID)
        {
            try
            {
                if (varsionTrackBo.IsSystemManager(UID))
                {
                    return(true);
                }

                return(SMC_UserListDao.HasFunction(UID, FN_ID));
            }
            catch (DalException ex)
            {
                throw new BOException("????????????????", ex);
            }
        }
Ejemplo n.º 2
0
        public virtual IList <SMC_Functions> QueryFunctionsListByUID(string UL_UID)
        {
            try
            {
                //SMC_FunctionsDao frDao = new SMC_FunctionsDao(AppConfig.statisticDBKey);
                IList <SMC_Functions> funcs = null;

                bool isSystemManager = varsionTrackBo.IsSystemManager(UL_UID);
                if (isSystemManager)
                {
                    funcs = SMC_FunctionsDao.QueryFunctionsListSys();
                }
                else
                {
                    funcs = SMC_FunctionsDao.QueryFunctionsListByUID(UL_UID);
                }
                return(funcs);
            }
            catch (DalException ex)
            {
                throw new BOException("QueryFunctionsByUnitID", ex);
            }
        }