public ActionResult InitEnterDeatilData(int id) { string keyword = RequestHelper.GetDeStrByName("keyword");//标题查询 int page = RequestHelper.GetIntByName("page"); int rows = RequestHelper.GetIntByName("rows"); List <WGJG_ZXDetail> list = operateContext.bllSession.T_EnterDetail.GetEnterDetailData(page, rows, id, keyword); TableModel tModel = new TableModel() { rows = list, total = operateContext.bllSession.T_EnterDetail.SelectCount(s => s.ed_title.Contains(keyword)) }; return(Json(tModel, JsonRequestBehavior.AllowGet)); }
public ActionResult InitEnterTable() { string unitName = RequestHelper.GetDeStrByName("unitName"); int page = RequestHelper.GetIntByName("page"); int rows = RequestHelper.GetIntByName("rows"); List <HCQ2_Model.WGJG_ZX> list = operateContext.bllSession.WGJG_ZX.SelectUnitDataByName(page, rows, unitName); TableModel tModel = new TableModel() { rows = list, total = operateContext.bllSession.WGJG_ZX.SelCountData(unitName) }; return(Json(tModel, JsonRequestBehavior.AllowGet)); }
public ActionResult InitOwnListTable() { int page = Helper.ToInt(Request["page"]); int rows = Helper.ToInt(Request["rows"]); string userName = RequestHelper.GetDeStrByName("userName"); List <HCQ2_Model.WGJG_GRZX> list = operateContext.bllSession.WGJG_GRZX.SelectOwnDataByName(page, rows, userName); TableModel tModel = new TableModel() { total = operateContext.bllSession.WGJG_GRZX.SelectCount(s => s.WGJG_GRZX02.Contains(userName)), rows = list }; return(Json(tModel, JsonRequestBehavior.AllowGet)); }