public ActionResult SaleList() { var uService = new UserService(); var model = new SaleListModel { UserList = uService.GetAllUserWithDeActive() .Where(c => c.GroupId == (int)UserGroup.SALE && c.ReferUserId == AccessFactory.CurrentUser.Id) }; return(View(model)); }
/// <summary> /// 销售明细 /// </summary> /// <param name="startTime">开始时间</param> /// <param name="endTime">结束时间</param> /// <param name="pageNumber">当前页数</param> /// <param name="pageSize">每页数</param> /// <returns></returns> public ActionResult SaleList(string startTime, string endTime, int pageNumber = 1, int pageSize = 15) { PageModel pageModel = new PageModel(pageSize, pageNumber, AdminOrders.GetSaleProductCount(startTime, endTime)); SaleListModel model = new SaleListModel() { SaleProductList = AdminOrders.GetSaleProductList(pageModel.PageSize, pageModel.PageNumber, startTime, endTime), PageModel = pageModel, StartTime = startTime, EndTime = endTime }; return(View(model)); }