public ActionResult PostIndex(int pageindex = 1) { var criteria = new Ets.Model.ParameterModel.Order.OrderSearchCriteria(); TryUpdateModel(criteria); Ets.Service.Provider.Common.HomeCountProvider homeCountProvider = new Ets.Service.Provider.Common.HomeCountProvider(); ViewBag.homeCountTitleToAllData = homeCountProvider.GetHomeCountTitleToAllData(); //获取总统计数据 ViewBag.homeCountTitleModel = homeCountProvider.GetHomeCountTitle(); //当前统计 ViewBag.clienteStorerGrabStatistical = iClienterProvider.GetClienteStorerGrabStatisticalInfo(); var pagedList = iOrderProvider.GetCurrentDateCountAndMoney(criteria); return(PartialView("_PartialIndex", pagedList)); }
// GET: HomeCount public ActionResult Index() { if (!UserContext.Current.HasAuthority(50)) { return(new ContentResult() { Content = "<script>window.location='/order/order'</script>" }); } Ets.Service.Provider.Common.HomeCountProvider homeCountProvider = new Ets.Service.Provider.Common.HomeCountProvider(); var criteria = new Ets.Model.ParameterModel.Order.OrderSearchCriteria(); ViewBag.homeCountTitleToAllData = homeCountProvider.GetHomeCountTitleToAllData(); ViewBag.homeCountTitleModel = homeCountProvider.GetCurrentDateModel(); IList <Ets.Model.DomainModel.Business.BusinessesDistributionModel> clienteStorerGrabStatistical = iClienterProvider.GetClienteStorerGrabStatisticalInfo(); ViewBag.clienteStorerGrabStatistical = clienteStorerGrabStatistical.ToList(); var pagedList = iOrderProvider.GetCurrentDateCountAndMoney(criteria); return(View(pagedList)); }