////
        //// GET: /VIS/UserPreference/
        //[HttpGet]
        //[AllowAnonymous]
        public ActionResult Index(string windowno, string adUserId)
        {
            ViewBag.WindowNumber = windowno;

            UserPreferenceModel obj = new UserPreferenceModel();

            if (Session["Ctx"] != null)
            {
                var ctx = Session["ctx"] as Ctx;
                obj          = obj.GetUserSettings(ctx, Convert.ToInt32(adUserId));
                ViewBag.lang = ctx.GetAD_Language();
            }

            return(PartialView(obj));
        }
예제 #2
0
        ////
        //// GET: /VIS/UserPreference/
        //[HttpGet]
        //[AllowAnonymous]
        public ActionResult Index(string windowno, string adUserId)
        {
            ViewBag.WindowNumber = windowno;

            UserPreferenceModel obj = new UserPreferenceModel();

            if (Session["Ctx"] != null)
            {
                var ctx = Session["ctx"] as Ctx;
                obj             = obj.GetUserSettings(ctx, Convert.ToInt32(adUserId));
                ViewBag.lang    = ctx.GetAD_Language();
                ViewBag.IsAdmin = ctx.GetAD_Role_ID() == 0 && (ctx.GetAD_User_ID() == 100 || ctx.GetAD_User_ID() == 0) &&
                                  Util.GetValueOfInt(ctx.GetContext("#FRAMEWORK_VERSION")) > 1;
            }

            return(PartialView(obj));
        }