public ActionResult OrderReserveListSearch(OrderListSearchDTO req) { if (req.ListType == 1) { req.offset = (req.offset - 1) * req.limit; } var currentUser = OperatorProvider.Provider.GetCurrent(); req.ManagerRestaurant = currentUser.ManagerRestaurant; var list = _orderRepository.GetOrderList(out int total, req); return(Json(new { rows = list, total = total, code = 0, msg = "" }, JsonRequestBehavior.AllowGet)); }
public ActionResult SearchOrder(OrderListSearchDTO req) { if (req.ListType == 1) { req.offset = (req.offset - 1) * req.limit; } var currentUser = OperatorProvider.Provider.GetCurrent(); req.ManagerRestaurant = currentUser.ManagerRestaurant; var info = _orderRepository.GetOrderStatisticalList(req); return(Json(new { rows = info.OrderList, total = info.ListSummaryObj.TotalRecords, summaryObj = info.ListSummaryObj, code = 0, msg = "", PrintModel = _printerRepository.GetPrintModel() }, JsonRequestBehavior.AllowGet)); }