using LeaRun.Util; using LeaRun.Util.WebControl; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using LeaRun.Application.Busines.NBManage; using LeaRun.Application.Entity.NBManage; namespace LeaRun.Application.Web.Areas.NBManage.Controllers { public class NBChangeMeterManageController : MvcControllerBase { NBChangeMeterBLL changeMeterBll = new NBChangeMeterBLL(); /// /// 换表操作 /// /// public ActionResult Index() { return View(); } #region 获取数据 [HttpGet] public ActionResult GetRecordJson(string commandId, Pagination pagination, string queryType, string queryValue, string userNo, string imei) { string resultJson = changeMeterBll.GetRecordJson(commandId,pagination, queryType,queryValue,userNo,imei); return Content(resultJson); } #endregion public ActionResult Form() { return View(); } public ActionResult SaveForm(string keyValue, string jsonData) { ChangeMeterRecordEntity entity = jsonData.ToObject(); if (changeMeterBll.ChangeMeter(keyValue, entity)) { return Success("换表成功"); } return Error("换表失败"); } } }