12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- 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();
- /// <summary>
- /// 换表操作
- /// </summary>
- /// <returns></returns>
- 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<ChangeMeterRecordEntity>();
- if (changeMeterBll.ChangeMeter(keyValue, entity))
- {
- return Success("换表成功");
- }
- return Error("换表失败");
- }
- }
- }
|