Esempio n. 1
0
        public ActionResult ChiTietDonHang(string orderID)
        {
            var session            = (UserLogin)Session[CommonConstants.USER_SESSION];
            var thongTinDonHangDAO = new ThongTinDonHangDAO();
            var TatCaDonHang       = thongTinDonHangDAO.ToanBoDonDatHang(session.UserID);

            DonHangViewModel dHModel = new DonHangViewModel();

            foreach (var item in TatCaDonHang)
            {
                if (item.OrderID.Trim() == orderID.Trim())
                {
                    dHModel.OrderID     = item.OrderID;
                    dHModel.SanPhamID   = item.SanPhamID;
                    dHModel.DonGia      = item.OrderID;
                    dHModel.Quantity    = item.Quantity;
                    dHModel.ThanhTien   = item.ThanhTien;
                    dHModel.CreateDate  = item.CreateDate;
                    dHModel.ShipName    = item.ShipName;
                    dHModel.ShipMobile  = item.ShipMobile;
                    dHModel.ShipAddress = item.ShipAddress;
                    dHModel.ShipEmail   = item.ShipEmail;
                    dHModel.UserID      = item.UserID;
                    dHModel.TongTien    = item.TongTien;
                    dHModel.TenSanPham  = item.TenSanPham;
                    dHModel.Status      = item.Status;
                }
            }
            return(View(dHModel));
        }
Esempio n. 2
0
        public PartialViewResult TatCaDonHang()
        {
            var session            = (UserLogin)Session[CommonConstants.USER_SESSION];
            var thongTinDonHangDAO = new ThongTinDonHangDAO();

            ViewBag.TatCaDonHang = thongTinDonHangDAO.ToanBoDonDatHang(session.UserID);
            return(PartialView());
        }
Esempio n. 3
0
        public PartialViewResult DonHangDaGiao()
        {
            var session            = (UserLogin)Session[CommonConstants.USER_SESSION];
            var thongTinDonHangDAO = new ThongTinDonHangDAO();

            ViewBag.DonHangDaGiao = thongTinDonHangDAO.DonHangDaGiao(session.UserID);
            return(PartialView());
        }
Esempio n. 4
0
        public ActionResult QuanLyDonHang()
        {
            var session            = (UserLogin)Session[CommonConstants.USER_SESSION];
            var thongTinDonHangDAO = new ThongTinDonHangDAO();
            var donHang            = thongTinDonHangDAO.ToanBoDonDatHang(session.UserID);

            return(View(donHang));
        }