public ActionResult VoltageCurrentThreeSecond(RecordDataRequest request) { var range = new RequestRange() { StartIndex = int.Parse(Request["StartIndex"]), RequestCount = int.Parse(Request["RequestCount"]), RecordId = long.Parse(Request["RecordId"]) }; var process = new RecordProcess(); var voltageCurrent = process.LoadVoltageCurrentThreeSecond(range); var jsonResult = Json(new { recordData = voltageCurrent }, JsonRequestBehavior.AllowGet); jsonResult.MaxJsonLength = int.MaxValue; return(jsonResult); }
public ActionResult RecordData(RecordDataRequest request) { var range = new RequestRange() { StartIndex = int.Parse(Request["StartIndex"]), RequestCount = int.Parse(Request["RequestCount"]), RecordId = long.Parse(Request["RecordId"]) }; var process = new RecordProcess(); var activeValues = process.LoadActiveValues(range); var jsonResult = Json(new { recordData = activeValues }, JsonRequestBehavior.AllowGet); jsonResult.MaxJsonLength = int.MaxValue; return(jsonResult); }