// GET: /ParameterSet/SetSystemParameter/ public ActionResult SetSystemParameter(AUTH_SYSTEM_PARAMETER systemParameter) { string error = string.Empty; string userName=this.User.Identity.Name.ToString(); bool bResult = SystemParameterService.SetSystemParameter(systemParameter,userName, out error); string msg = bResult ? "修改成功" : "修改失败"; return Json(JsonMessageHelper.getJsonMessage(bResult, msg, error), "text", JsonRequestBehavior.AllowGet); }
// GET: /ParameterSet/GetSystemParameter/ public ActionResult GetSystemParameter(int page, int rows, FormCollection collection) { string parameterName = collection["ParameterName"] ?? ""; string parameterValue = collection["ParameterValue"] ?? ""; string remark = collection["Remark"] ?? ""; string userName = collection["UserName"] ?? ""; AUTH_SYSTEM_PARAMETER sp = new AUTH_SYSTEM_PARAMETER(); sp.PARAMETER_NAME = parameterName; sp.PARAMETER_VALUE = parameterValue; sp.REMARK = remark; sp.USER_NAME = userName; var result = SystemParameterService.GetSystemParameter(page, rows, sp); return Json(result, "text", JsonRequestBehavior.AllowGet); }