Example #1
0
        public static void LoadFunctionUsers()
        {
            try
            {
                FunctionsController _FunctionsController = new FunctionsController();
                ArrayList           _arr = _FunctionsController.Function_GetAll();
                c_hashFunctionList.Clear();
                foreach (FunctionsInfo _FuncInfo in _arr)
                {
                    if (_FuncInfo.objname != null && _FuncInfo.objname != "")
                    {
                        c_hashFunctionList[_FuncInfo.objname] = _FuncInfo;
                    }
                }

                User_Controller _UserControler = new User_Controller();
                c_arrQuyen = _UserControler.Send_Users_Get_MenuItem(CommonData.c_Urser_Info.User_Name);
                c_hash_Quyen.Clear();
                foreach (User_FunctionsInfo item in c_arrQuyen)
                {
                    if (item.name != null)
                    {
                        c_hash_Quyen[item.name] = item;
                    }
                }
            }
            catch (Exception ex)
            {
                ErrorLog.log.Error(ex.ToString());
            }
        }