Ejemplo n.º 1
0
        public PartialViewResult AddItem()
        {
            AssignUserRoleService       service             = new AssignUserRoleService();
            AssignUserRoleItemViewModel assignUserViewModel = service.InitialItem();

            return(PartialView("~/Views/Authorization/AssignUserRole/AssignUserRoleItem.cshtml", assignUserViewModel));
        }
Ejemplo n.º 2
0
        public ActionResult GetValueHelpStatus(int roleID)
        {
            AssignUserRoleService       service = new AssignUserRoleService();
            AssignUserRoleItemViewModel model   = new AssignUserRoleItemViewModel();

            model.StatusText = service.InitialGetRoleStatus(roleID);
            return(Json(model, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 3
0
        public ActionResult SubmitForm(AssignUserRoleViewModel formData)
        {
            AssignUserRoleService service = new AssignUserRoleService();
            ValidationResult      result  = service.SubmitForm(formData, ModelState);

            return(Json(
                       new { success = !result.ErrorFlag, responseText = result.Message, errorList = result.ModelStateErrorList },
                       JsonRequestBehavior.AllowGet
                       ));
        }
Ejemplo n.º 4
0
        public ActionResult List()
        {
            ViewBag.Title = UtilityService.GetPagetTitlePrefix(ConstantVariableService.FormStateList);
            AssignUserRoleService   service = new AssignUserRoleService();
            AssignUserRoleViewModel model   = service.InitialListSearch();

            ViewBag.DisplayOnly = AuthorizeService.CheckDisplayOnly(new[] { AssignUserRoleViewModel.RoleForManageData });

            return(View("~/Views/Authorization/AssignUserRole/AssignUserRoleList.cshtml", model));
        }
Ejemplo n.º 5
0
        public ActionResult Manage(int recordKey, string formState, string assignUserRoleCode, string assignUserType)
        {
            AssignUserRoleService   service             = new AssignUserRoleService();
            AssignUserRoleViewModel assignUserViewModel = service.GetDetail(recordKey, formState, assignUserRoleCode, assignUserType);

            if (assignUserViewModel != null)
            {
                ViewBag.Title = UtilityService.GetPagetTitlePrefix(formState);
                return(View("~/Views/Authorization/AssignUserRole/AssignUserRoleDetail.cshtml", assignUserViewModel));
            }
            else
            {
                //return to List page
                return(List());
            }
        }
Ejemplo n.º 6
0
        public string GetList()//string assignUserType)
        {
            AssignUserRoleService service = new AssignUserRoleService();

            return(service.GetList());//assignUserType);
        }