Exemplo n.º 1
0
        public ActionResult RefreshOrder()
        {
            RepositoryOrder       repo = new RepositoryOrder();
            List <OrderViewModel> data = repo.Query();

            return(Json(data));
        }
Exemplo n.º 2
0
        // 出餐明細
        public ActionResult Detail()
        {
            RepositoryOrder       repo = new RepositoryOrder();
            List <OrderViewModel> data = repo.Query();

            return(View(data));
        }
Exemplo n.º 3
0
        // 點餐明細
        public ActionResult OrderDetail(string Date)
        {
            RepositoryOrder       repo = new RepositoryOrder();
            List <OrderViewModel> data = repo.Query().Where(x => x.UpdateTime.ToString("yyyy/MM/dd").Equals(Date)).ToList();

            ViewBag.Date = Date;

            return(PartialView("_OrderDetail", data));
        }