public void Chart() { int RecordCount = 0; DataTable DT = BLOB.SamplingAnalysis(out RecordCount, 1, 100000, "StartDate".RequestStr(), "EndDate".RequestStr(), SelectedTestRoomCodes, "Item".RequestStr(), "Factory".RequestStr(), "Model".RequestStr(), "Person".RequestStr()); Response.Write(JsonConvert.SerializeObject(DT)); Response.End(); }
public void List() { int RecordCount = 0; DataTable DT = BLOB.SamplingAnalysis(out RecordCount, "page".RequestStr().Toint(), "rows".RequestStr().Toint(), "StartDate".RequestStr(), "EndDate".RequestStr(), SelectedTestRoomCodes, "Item".RequestStr(), "Factory".RequestStr(), "Model".RequestStr(), "Person".RequestStr()); string Json = JsonConvert.SerializeObject(DT); Json = "{\"rows\":" + Json + ",\"total\":" + RecordCount + "}"; Response.Write(Json); Response.End(); }