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)); }
public PartialViewResult TatCaDonHang() { var session = (UserLogin)Session[CommonConstants.USER_SESSION]; var thongTinDonHangDAO = new ThongTinDonHangDAO(); ViewBag.TatCaDonHang = thongTinDonHangDAO.ToanBoDonDatHang(session.UserID); return(PartialView()); }
public PartialViewResult DonHangDaGiao() { var session = (UserLogin)Session[CommonConstants.USER_SESSION]; var thongTinDonHangDAO = new ThongTinDonHangDAO(); ViewBag.DonHangDaGiao = thongTinDonHangDAO.DonHangDaGiao(session.UserID); return(PartialView()); }
public ActionResult QuanLyDonHang() { var session = (UserLogin)Session[CommonConstants.USER_SESSION]; var thongTinDonHangDAO = new ThongTinDonHangDAO(); var donHang = thongTinDonHangDAO.ToanBoDonDatHang(session.UserID); return(View(donHang)); }