public ActionResult Index() { var batch = _plansBatchService.GetPlatPlanList(1, 1000); ViewBag.BatchList = new SelectList(batch.rows, "BatchID", "BatchNO"); return(View()); }
/// <summary> /// 分页数据 /// </summary> /// <param name="page"></param> /// <param name="rows"></param> /// <returns></returns> public JsonResult GetList(int page, int rows) { var list = new GridList <PlatPlanDto>(); try { list = _plansBatchService.GetPlatPlanList(page, rows); } catch (Exception) { } return(JsonEx(list)); }