コード例 #1
0
        // GET: Group/Detail/5
        public ActionResult DetailBooking(string BookingCode)
        {
            List <string> json = new List <string>();
            DataSet       ds   = new DataSet();

            try
            {
                UserID    = Session[CConfig.SESSION_USERID] == null ? 1 : Convert.ToInt32(Session[CConfig.SESSION_USERID]);
                HotelCode = Session[CConfig.SESSION_HOTELCODE].ToString();

                //Lấy danh sách giá thời điểm
                ViewData["giathoidiem"] = new SelectList(data.GetList_DefineCategory("GIATHOIDIEM", UserID), "Value", "Name");
                //Lấy danh sách khung giá phòng
                ViewData["khunggiaphong"] = new SelectList(data.GetList_DefineCategory("KHUNGGIAPHONG", UserID), "Value", "Name");

                if (HotelCode == null)
                {
                    Response.Redirect("Receptionist/BookingList");
                }
                json = data.GetReservationRoom_Detail(BookingCode, HotelCode, UserID);
                //ds = data.GetReservationRoom_Detail( BookingCode, HotelCode, UserID);
                //Thông tin đặt phòng
                ViewData["BookingInfo"] = json[0];
                // thong tin phong
                ViewData["SetRoom"] = json[1];
                //Thông tin khách hàng
                ViewData["CustomerInfo"] = json[2];
            }
            catch (Exception ex)
            {
                CLog.LogError(CBase.GetDeepCaller(), CBase.GetDetailError(ex));
            }
            return(View());
        }