コード例 #1
0
        public ActionResult RefreshOrder()
        {
            RepositoryOrder       repo = new RepositoryOrder();
            List <OrderViewModel> data = repo.Query();

            return(Json(data));
        }
コード例 #2
0
        // 出餐明細
        public ActionResult Detail()
        {
            RepositoryOrder       repo = new RepositoryOrder();
            List <OrderViewModel> data = repo.Query();

            return(View(data));
        }
コード例 #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));
        }