Example #1
0
        // GET: DoanController/Details/5
        public ActionResult Details(int id)
        {
            idND = id;
            string strId   = nguoidiRepo.getKH(id);
            string strIdnv = nguoidiRepo.getNV(id);
            Doans  d       = _doanService.Get(id);

            idTours       = d.TourId;
            ViewBag.doan  = d;
            ViewBag.kh    = khachhangRepo.GetAll(strId);
            ViewBag.nv    = nhanVienRepo.GetAllId(strIdnv);
            ViewBag.nvs   = nhanVienRepo.GetAll();
            ViewBag.khall = khachhangRepo.GetAlll();
            ViewBag.gia   = gia.Get(Convert.ToInt32(d.TourId));
            ViewBag.slKh  = nguoidiRepo.CountKH(strId);
            ViewBag.slNV  = nguoidiRepo.CountNV(strIdnv);
            try
            {
                ViewBag.tongtien = tongTien();
            }
            catch (System.Exception ex)
            {
                ViewBag.tongtien = 0;
            }
            ViewBag.tour = tour.Get(d.TourId);
            return(View());
        }
Example #2
0
        // GET: DoanController/Details/5
        public ActionResult Details(int id)
        {
            idND = id;
            string strId   = nguoidiRepo.getKH(id);
            string strIdnv = nguoidiRepo.getNV(id);

            ViewBag.kh    = khachhangRepo.GetAll(strId);
            ViewBag.nv    = nhanVienRepo.GetAllId(strIdnv);
            ViewBag.nvs   = nhanVienRepo.GetAll();
            ViewBag.khall = khachhangRepo.GetAlll();
            return(View());
        }