/// <summary> /// 获取周统计数据 /// </summary> /// <returns></returns> public ActionResult GetWeekStatistics() { ORDER order = RemotingHelp.GetModelObject <ORDER>(); return(Json( order.GetWeekStatistics(), JsonRequestBehavior.AllowGet)); }
/// <summary> /// 订单列表页 /// </summary> /// <param name="startTime"></param> /// <param name="endTime"></param> /// <param name="orderState"></param> /// <returns></returns> //public ActionResult ListOrder(DateTime startTime, DateTime endTime,int page,int count) //{ // var sTime = startTime.ToString("yyyy-MM-dd HH:mm:ss"); // var eTime = endTime.ToString("yyyy-MM-dd HH:mm:ss"); // ORDER order = RemotingHelp.GetModelObject<ORDER>(); // var sqlWhere = $@" AND bsp_orders.addtime between '{sTime}' AND '{eTime}'"; // var list = order.GetOrderList(sqlWhere, page, count); // ViewBag.OrderList = list; // ViewBag.page = page; // return PartialView(); //} /// <summary> /// 销售统计 /// </summary> /// <returns></returns> public ActionResult Statistics() { ORDER order = RemotingHelp.GetModelObject <ORDER>(); ViewBag.TodayStat = order.GetDayStatistics(); ViewBag.WeekStat = order.GetWeekStatistics(); ViewBag.MonthStat = order.GetMonthStatistics(); return(View()); }