public JsonResult AppUserUpdateTePi(SpecialApprovalViewModel model) { var bll = new jmp_user(); var flag = bll.UpdateIsSpecialApproval(model.UserId, model.IsSpecialApproval, model.IsSpecialApproval == 1 ? model.SpecialApproval : "0"); if (!flag) { return(Json(new { success = 0, msg = "特批失败!" })); } var info = "修改开发者特批状态(" + model.UserId + ")的状态为" + model.IsSpecialApproval + ""; Logger.OperateLog("修改开发者特批状态", info); return(Json(new { success = flag ? 1 : 0, msg = flag ? "特批成功!" : "特批失败!" })); }
/// <summary> /// 特批页面 /// </summary> /// <returns></returns> public ActionResult AppUserTePi() { var userid = Request.HttpGetParaByName("userid", 0); var bll = new jmp_user(); var model = bll.GetModel(userid); var m = new SpecialApprovalViewModel { UserId = userid, IsSpecialApproval = model.IsSpecialApproval ? 1 : 0, SpecialApproval = model.SpecialApproval.ToString(CultureInfo.InvariantCulture), SpecialApprovalDataSource = SpecialApprovalDataSource.DataSource }; return(View(m)); }