/// <summary> /// 分页查询 /// </summary> /// <param name="pp"></param> /// <param name="title"></param> /// <param name="cateid"></param> /// <returns></returns> public JsonResult GetArticleByPager(PageParam pp, string title, int cateid = -1) { var res = ArticleMgr.GetArticlesByPager(cateid, title, pp); LayUITableModel model = new LayUITableModel(res.Total, res.Rows); return(Json(model)); }
/// <summary> /// 骑手-抢单(分页) /// </summary> /// <param name="page"></param> /// <returns></returns> public ActionResult GetOrderNotShippedPager(PageParam page) { var res = OrderMgr.GetOrderNotShippedPager(page); LayUITableModel models = new LayUITableModel(res.Total, res.Rows); return(Json(models)); }
/// <summary> /// 骑手-未完成订单(分页查询) /// </summary> /// <param name="page"></param> /// <returns></returns> public ActionResult GetOrderUnfinishedPager(PageParam page) { int RiderID = int.Parse(Session["RiderID"].ToString()); var res = OrderMgr.GetOrderUnfinishedPager(page, RiderID); LayUITableModel models = new LayUITableModel(res.Total, res.Rows); return(Json(models)); }
/// <summary> /// 分页查询 /// </summary> /// <param name="page"></param> /// <returns></returns> public JsonResult GetArticleByPager(PageParam page) { int shopID = int.Parse(Session["shopID"].ToString()); var res = SellerMgr.GetArticlesByPager(page, shopID); LayUITableModel model = new LayUITableModel(res.Total, res.Rows); return(Json(model)); }
/// <summary> /// 查询所有订单 /// </summary> /// <returns></returns> public JsonResult OrderQuery() { List <TB_ORDER> list = SellerMgr.OrderQuery(); //string jsonStr = Newtonsoft.Json.JsonConvert.SerializeObject(list, Config.FULL_DATE_FORMAT); //return Json(jsonStr); //使用layui table的方式 LayUITableModel res = new LayUITableModel(list.Count, list); return(Json(res)); }
/// <summary> /// 获取文章列表 /// </summary> /// <returns></returns> public JsonResult GetArticles() { List <Article> list = ArticleMgr.GetArticles(); //默认的序列化,时间格式会有问题 //return Json(list); //string jsonStr = JsonConvert.SerializeObject(list, Config.FULL_DATE_FORMAT); //return Json(jsonStr); //使用layui table的方式 LayUITableModel res = new LayUITableModel(list.Count, list); return(Json(res)); }