|
|
@@ -2713,18 +2713,17 @@ ORDER BY 产品类别,产品编码";
|
|
|
sqlPara.Add(new CDAParameter("USERCODE", userCode));
|
|
|
//sqlPara.Add(new CDAParameter("PROCEDUREID", context.Request["procedureidMaster"]));
|
|
|
////获取分页参数
|
|
|
- //int page = HttpContext.Current.Request["page"] is object ? Convert.ToInt32(HttpContext.Current.Request["page"]) : 1;
|
|
|
- //int rows = HttpContext.Current.Request["rows"] is int ? 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"] : "";
|
|
|
- sqlStr = sqlStr.Replace("\t", " ");
|
|
|
+ int page = HttpContext.Current.Request["page"] is object ? Convert.ToInt32(HttpContext.Current.Request["page"]) : 1;
|
|
|
+ int rows = HttpContext.Current.Request["rows"] is int ? 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"] : "";
|
|
|
+ // sqlStr = sqlStr.Replace("\t", " ");
|
|
|
//获取分页数据
|
|
|
int total = 0;
|
|
|
- //DataTable dt = conn.SelectPages(page, rows, out total, sqlStr, sqlPara.ToArray());
|
|
|
- DataTable dt = conn.ExecuteDatatable(sqlStr, sqlPara.ToArray());
|
|
|
- total = dt.Rows.Count;
|
|
|
-
|
|
|
- DataTable dts = dt;
|
|
|
+ DataTable dt = conn.SelectPages(page, rows, out total, sqlStr, sqlPara.ToArray());
|
|
|
+ //DataTable dt = conn.ExecuteDatatable(sqlStr, sqlPara.ToArray());
|
|
|
+ // total = dt.Rows.Count;
|
|
|
+
|
|
|
string jsonStr = new JsonResult(dt) { total = total }.ToJson();
|
|
|
conn.Commit();
|
|
|
|