public void Chart() { int RecordCount = 0; DataTable DT = BLOB.DataAnalysis(out RecordCount, 1, 100000, "StartDate".RequestStr(), "EndDate".RequestStr(), SelectedTestRoomCodes, "Item".RequestStr(), "Factory".RequestStr(), "Attr".RequestStr(), "AttrName".RequestStr(), "Model".RequestStr()); Response.Write(JsonConvert.SerializeObject(DT)); Response.End(); }
public void List() { int RecordCount = 0; DataTable DT = BLOB.DataAnalysis(out RecordCount, "page".RequestStr().Toint(), "rows".RequestStr().Toint(), "StartDate".RequestStr(), "EndDate".RequestStr(), SelectedTestRoomCodes, "Item".RequestStr(), "Factory".RequestStr(), "Attr".RequestStr(), "AttrName".RequestStr(), "Model".RequestStr()); string Json = JsonConvert.SerializeObject(DT); Json = "{\"rows\":" + Json + ",\"total\":" + RecordCount + "}"; Response.Write(Json); Response.End(); }
public void Chart() { int RecordCount = 0; string M = "M".RequestStr(); M = M.IsNullOrEmpty() ? "" : M.Replace("月份", ""); string StartDate = M + "-1"; string EndDate = (M + "-1").ToDateTime().AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd"); if (!"StartDate".RequestStr().IsNullOrEmpty() && !"EndDate".RequestStr().IsNullOrEmpty()) { StartDate = "StartDate".RequestStr(); EndDate = "EndDate".RequestStr(); } DataTable DT = BLOB.DataAnalysis(out RecordCount, 1, 100000, StartDate, EndDate, SelectedTestRoomCodes, "Item".RequestStr(), "Factory".RequestStr(), "Attr".RequestStr(), "AttrName".RequestStr(), "Model".RequestStr()); Response.Write(JsonConvert.SerializeObject(DT)); Response.End(); }