public string GetUserRoles(string loginIdentifer)
        {
            JavaScriptObject obj2 = new JavaScriptObject();

            obj2.Add("Result", false);
            obj2.Add("Message", "");
            JavaScriptArray array = new JavaScriptArray();

            obj2.Add("UserRoles", array);
            LoginUser loginUser = GlobalAppModule.GetLoginUser(loginIdentifer);

            if (loginUser == null)
            {
                obj2["Message"] = "未登录";
                return(JavaScriptConvert.SerializeObject(obj2));
            }
            if (loginUser.LoginTimeout)
            {
                obj2["Message"] = "登录超时";
                return(JavaScriptConvert.SerializeObject(obj2));
            }
            loginUser.LastOperateTime = DateTime.Now;
            CommonUtil.WaitMainLibInit();
            try
            {
                foreach (long str in RoleModule.GetRoleID())
                {
                    JavaScriptObject item = new JavaScriptObject();
                    item.Add("ID", str);
                    item.Add("Name", RoleModule.GetRoleName(str));
                    item.Add("UserCount", SysUserModule.GetUserListByRole(str).Count);
                    array.Add(item);
                }
            }
            catch (Exception exception)
            {
                obj2["Message"] = exception.Message;
                return(JavaScriptConvert.SerializeObject(obj2));
            }
            obj2["Result"] = true;
            return(JavaScriptConvert.SerializeObject(obj2));
        }