|
|
@@ -716,15 +716,17 @@ public class rpt : IHttpHandler, IReadOnlySessionState
|
|
|
sqlPara.Add(new CDAParameter("DATEEND", dateend, DataType.DateTime));
|
|
|
sqlPara.Add(new CDAParameter("GROUTINGLINENO", groutingLineNo));
|
|
|
//获取分页参数
|
|
|
- int page = HttpContext.Current.Request["page"] is object ? Convert.ToInt32(HttpContext.Current.Request["page"]) : 1;
|
|
|
- int rows = HttpContext.Current.Request["rows"] is object ? Convert.ToInt32(HttpContext.Current.Request["rows"]) : 10000;
|
|
|
- string sort = HttpContext.Current.Request["sort"] is object ? HttpContext.Current.Request["sort"] : "m.REPORTCODE";
|
|
|
- string order = HttpContext.Current.Request["order"] is object ? HttpContext.Current.Request["order"] : "";
|
|
|
+ //int page = HttpContext.Current.Request["page"] is object ? Convert.ToInt32(HttpContext.Current.Request["page"]) : 1;
|
|
|
+ //int rows = HttpContext.Current.Request["rows"] is object ? Convert.ToInt32(HttpContext.Current.Request["rows"]) : 10000;
|
|
|
+ //string sort = HttpContext.Current.Request["sort"] is object ? HttpContext.Current.Request["sort"] : "m.REPORTCODE";
|
|
|
+ //string order = HttpContext.Current.Request["order"] is object ? HttpContext.Current.Request["order"] : "";
|
|
|
|
|
|
//获取分页数据
|
|
|
int total = 0;
|
|
|
- DataTable dt = conn.SelectPages(page, rows, out total, sqlStr, sqlPara.ToArray());
|
|
|
- string jsonStr = new JsonResult(dt) { total = total }.ToJson();
|
|
|
+
|
|
|
+ //DataTable dt = conn.SelectPages(page, rows, out total, sqlStr, sqlPara.ToArray());
|
|
|
+ DataTable dt = conn.ExecuteDatatable(sqlStr, sqlPara.ToArray());
|
|
|
+ string jsonStr = new JsonResult(dt) { total = dt.Rows.Count }.ToJson();
|
|
|
|
|
|
context.Response.Write(jsonStr);
|
|
|
|