public ActionResult RoleEdit() { int RoleSysNo = 0; int.TryParse(Request["RoleSysNo"], out RoleSysNo); RoleEdit_Model model = new RoleEdit_Model(); if (RoleSysNo != 0) { model.RoleInfo = role_sevice.LoadRole(RoleSysNo); } else { model.RoleInfo.CommonStatus = CommonStatus.Actived; } model.allApps = AuthServiceLocal.LoadAllSystemApplication(); return(View(model)); }
public ActionResult UserEdit() { int UserSysNo = 0; int.TryParse(Request["UserSysNo"], out UserSysNo); UserEdit_Model model = new UserEdit_Model(); if (UserSysNo != 0) { model.UserInfo = user_service.LoadSystemUser(UserSysNo); model.UserRoles = role_service.GetAllRolesByUserSysNo(UserSysNo); } else { model.UserInfo.CommonStatus = CommonStatus.Actived; } model.allApps = AuthServiceLocal.LoadAllSystemApplication(); return(View(model)); }