using LeaRun.Util; using LeaRun.Util.WebControl; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using LeaRun.Application.Service.NBManage; using System.Data; using LeaRun.Application.Entity.NBManage; namespace LeaRun.Application.Busines.NBManage { public class NBChangeMeterBLL { NBChangeMeterService service = new NBChangeMeterService(); public string GetRecordJson(string commandId ,Pagination pagination, string queryType, string queryValue, string userNo, string imei) { var json = "[]"; var watch = CommonHelper.TimerStart(); DataTable dt = service.GetChangeMeterData(pagination, queryType, queryValue, userNo, imei, commandId); var JsonData = new { rows = dt, total = pagination.total, page = pagination.page, records = pagination.records, costtime = CommonHelper.TimerEnd(watch) }; return JsonData.ToJson(); } public bool ChangeMeter(string meterId, ChangeMeterRecordEntity entity) { return service.ChangeMeter(meterId, entity); } } }