protected void btnHtlPromotionCode_Click(object sender, EventArgs e)
    {
        List <KoDTicketingLibrary.DTO.Promotion> listPromo = VistaBOL.GetPromostionCode();
        HotelList <string> PromoClass    = new HotelList <string>();
        List <string>      Promotions    = PromoClass.listofHotels();
        string             PromotionCode = txtHtlPromotionCode.Text;
        int list = listPromo.Count;

        for (int i = 0; i < list; i++)
        {
            if (Promotions.Contains(listPromo[i].PromotionCode.ToString().ToUpper()))     //listPromo[i].PromotionCode.ToString().ToUpper()
            {
                bool isMatch = Regex.IsMatch(PromotionCode, listPromo[i].RegexValidator);
                if (isMatch)
                {
                    listPromo[i].WebPromotionId               = txtHtlPromotionCode.Text.ToUpper();
                    Session["PromotionCode"]                  = listPromo[i];
                    Session[listPromo[i].PromotionCode]       = listPromo[i];
                    Session["a" + listPromo[i].PromotionCode] = listPromo[i];
                    Session["Hotel"] = listPromo[i].PromotionCode.ToString();
                    Response.Redirect("Default.aspx?Hotel=s&promo=" + Encrypt(listPromo[i].PromotionCode));
                }
            }
        }
        PromotionNotValid();
    }
Beispiel #2
0
        public SearchDataResponse SearchData()
        {
            var result = new SearchDataResponse
            {
                ListBookings      = DayaxeDbContext.Bookings.OrderByDescending(x => x.BookingId).ToList(),
                ListCustomerInfos = CustomerInfoList.Where(c => !c.IsDelete).ToList()
            };

            result.ListBookings.ForEach(booking =>
            {
                var product = ProductList.FirstOrDefault(p => p.ProductId == booking.ProductId);
                var hotel   = HotelList.FirstOrDefault(h => h.HotelId == (product != null ? product.HotelId : 0));

                booking.BookingsTypeString = product != null ? GetProductType(product.ProductType) : string.Empty;
                booking.TimeZoneId         = hotel != null ? hotel.TimeZoneId : string.Empty;
            });

            result.ListCustomerInfos.ForEach(customer =>
            {
                var discount = GetSubscriptionDiscount(customer.CustomerId);
                if (discount != null)
                {
                    customer.SubscriptionCode = discount.Code;
                }
            });

            return(result);
        }
        public Surveys GetSurveysByCode(string code)
        {
            var surveys = GetAll().FirstOrDefault(x => x.Code == code);

            if (surveys != null)
            {
                var booking = BookingList.FirstOrDefault(b => b.BookingId == surveys.BookingId);
                if (booking != null)
                {
                    var product = ProductList.FirstOrDefault(p => p.ProductId == booking.ProductId);
                    surveys.RedeemedDate = booking.RedeemedDate;
                    surveys.HotelPrice   = booking.HotelPrice;
                    if (product != null)
                    {
                        var    hotel    = HotelList.FirstOrDefault(h => h.HotelId == product.HotelId);
                        string imageUrl = Constant.ImageDefault;
                        var    image    = ProductImageList.FirstOrDefault(x => x.ProductId == product.ProductId && x.IsCover && x.IsActive);
                        if (image != null)
                        {
                            imageUrl = image.Url;
                        }
                        surveys.ImageUrl = imageUrl;
                        if (hotel != null)
                        {
                            surveys.HotelInfo = string.Format("{0} at {1}<br/> {2}, {3}",
                                                              product.ProductName,
                                                              hotel.HotelName,
                                                              hotel.Neighborhood,
                                                              hotel.City);
                        }
                    }
                }
            }
            return(surveys);
        }
        public async Task <IActionResult> Create([Bind("Id,ImagePath,ImageTitle,Title,SubTitle,Text,Phone,OtherPhone,Email,SiteAddress,Address,ServiceId")] HotelList hotelList, IFormFile ImagePath)
        {
            CustomDateTimeFile customDateTimeFile = new CustomDateTimeFile();
            string             fileName           = customDateTimeFile.GetFileName(ImagePath.FileName);

            if (ModelState.IsValid)
            {
                hotelList.ImagePath = fileName;
                if (_IsAcceptedFormat(ImagePath.ContentType))
                {
                    string path = Path.Combine(hostingEnvironment.WebRootPath, "images", fileName);
                    byte[] data = new byte[ImagePath.Length];

                    using (FileStream fileStream = new FileStream(path, FileMode.Create))
                    {
                        await ImagePath.CopyToAsync(fileStream);
                    }
                }
                await _context.AddAsync(hotelList);

                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["ServiceId"] = new SelectList(_context.Services, "Id", "Id", hotelList.ServiceId);
            return(View(hotelList));
        }
        public async Task <IActionResult> Edit(int id, [Bind("Id,ImagePath,ImageTitle,Title,SubTitle,Text,Phone,OtherPhone,Email,SiteAddress,Address,ServiceId")] HotelList hotelList)
        {
            if (id != hotelList.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(hotelList);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!HotelListExists(hotelList.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            ViewData["ServiceId"] = new SelectList(_context.Services, "Id", "Id", hotelList.ServiceId);
            return(View(hotelList));
        }
        private void btnSearch_Click(object sender, RoutedEventArgs e)
        {
            HotelList win = new HotelList();

            win.ShowInTaskbar = true;
            win.ShowDialog();
        }
 protected void btnHtlPromotionCode_Click(object sender, EventArgs e)
 {
     List<KoDTicketingLibrary.DTO.Promotion> listPromo = VistaBOL.GetPromostionCode();
     HotelList<string> PromoClass = new HotelList<string>();
     List<string> Promotions = PromoClass.listofHotels();
     string PromotionCode = txtHtlPromotionCode.Text;
     int list = listPromo.Count;
     for (int i = 0; i < list; i++)
     {
         if (Promotions.Contains(listPromo[i].PromotionCode.ToString().ToUpper())) //listPromo[i].PromotionCode.ToString().ToUpper()
         {
             bool isMatch = Regex.IsMatch(PromotionCode, listPromo[i].RegexValidator);
             if (isMatch)
             {
                 listPromo[i].WebPromotionId = txtHtlPromotionCode.Text.ToUpper();
                 Session["PromotionCode"] = listPromo[i];
                 Session[listPromo[i].PromotionCode] = listPromo[i];
                 Session["a" + listPromo[i].PromotionCode] = listPromo[i];
                 Session["Hotel"] = listPromo[i].PromotionCode.ToString();
                 Response.Redirect("Default.aspx?Hotel=s&promo=" + Encrypt(listPromo[i].PromotionCode));
             }
         }
     }
     PromotionNotValid();
 }
        public override async Task <HotelList> getHotelList(Empty request, ServerCallContext context)
        {
            try
            {
                //HotelList hotelList = new HotelList();
                //var list = await _service.GetHotelList();

                //var result = Mapper.Map<List<Hotel>, List<HotelVM>>(list);

                //hotelList.Listdata.AddRange(result);
                //hotelList.Total = result.Count;
                //return hotelList;

                var list = await _service.GetHotelList();

                HotelList hotelList = new HotelList();

                foreach (var item in list)
                {
                    var hotel = Mapper.Map <Hotel, HotelVM>(item);
                    if (item.HotelRoomTypes.Count > 0)
                    {
                        var hotelRoomTypeList = Mapper.Map <List <HotelRoomType>, List <HotelRoomTypeStruct> >(item.HotelRoomTypes);
                        hotel.HotelRoomTypes.AddRange(hotelRoomTypeList);
                    }
                    hotelList.Listdata.Add(hotel);
                }
                hotelList.Total = list.Count;
                return(hotelList);
            }
            catch (Exception ex)
            {
                LogHelper.Error(this, ex);
                throw ex;
            }
        }
Beispiel #9
0
 public void AddHotel(string name, int nr)
 {
     HotelList.Add(new Hotel(name, nr));
 }
Beispiel #10
0
        private static string PrepareContentMailForHotel(bool seatsBooked, DataRow dr, string _BookingID, string _ReferenceNo, string _ReceiptNo)
        {
            Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Write("Entered to take Mail Content ");
            try
            {
                System.Text.StringBuilder BMess = new System.Text.StringBuilder();
                BMess.Append("Dear ");
                BMess.Append(dr["Name"]);
                BMess.Append("<br/><br/>");
                if (seatsBooked)
                {
                    BMess.Append("Your Tickets have been successfully booked, and details are mentioned below...<br/><br/>");
                    BMess.Append("Booking ID : " + dr["BookingID"] + "<br/>");
                }
                else
                {
                    BMess.Append("Your Transaction was successful, but due to some technical reason your seats were not Booked.");
                    BMess.Append(" Please Contact 0124 - 4528000 to confirm your seats. Below are the details...<br/><br/>");
                    BMess.Append("Booking Id : " + _BookingID + "<br/>");
                    BMess.Append("Receipt No : " + _ReceiptNo + "<br/>");
                }


                //Promotion Code Specific Code
                decimal DiscountPercentage = decimal.Parse(dr["DiscountPercentage"].ToString());
                decimal tktAmount = decimal.Parse(dr["TotalAmount"].ToString());
                int numberOfSeats = int.Parse(dr["TotalSeats"].ToString());
                if (DiscountPercentage > 0)
                {

                    decimal SingleTicketPrice = tktAmount / numberOfSeats;

                    decimal DiscountedPrice = SingleTicketPrice - (SingleTicketPrice * DiscountPercentage / 100);
                    DiscountedPrice = decimal.Truncate(DiscountedPrice);
                    if (DiscountedPrice == 1274)
                        DiscountedPrice = DiscountedPrice + 1;
                    else if (DiscountedPrice == 2124)
                        DiscountedPrice = DiscountedPrice + 1;
                    else if (DiscountedPrice == 2974)
                        DiscountedPrice = DiscountedPrice + 1;
                    else if (DiscountedPrice == 4249)
                        DiscountedPrice = DiscountedPrice + 1;

                    tktAmount = DiscountedPrice * numberOfSeats;

                    Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Write("Total Amount Price For a Ticket" + tktAmount.ToString());


                }
                if (dr["PromotionCode"].ToString() == "VIVANTABYTAJ" || dr["PromotionCode"].ToString() == "OBEROI" || dr["PromotionCode"].ToString() == "TRIDENT" || dr["PromotionCode"].ToString() == "OBEROIDELHI" || dr["PromotionCode"].ToString() == "EROSMANAGED" || dr["PromotionCode"].ToString() == "CROWNEPLAZAROHINI")
                {
                    tktAmount = decimal.Parse(dr["PayableAmount"].ToString());
                }

                HotelList<string> PromoClass = new HotelList<string>();
                List<string> Promotions = PromoClass.listofHotels();

                if (dr["PromotionCode"].ToString() != "" || dr["PromotionCode"] != null)
                {
                    if (Promotions.Contains(dr["PromotionCode"].ToString()))
                    {
                        BMess.Append("Promo Code : " + dr["PromotionCode"].ToString() + "<br/>");
                    }
                    if (Convert.ToBoolean(dr["WantComplimentary"].ToString()) == true || Convert.ToBoolean(dr["WantComplimentaryDrop"].ToString()) == true)
                    {
                        BMess.Append("Contact No. :" + dr["MobileNo"] + "<br/>");

                        if (Convert.ToBoolean(dr["WantComplimentary"].ToString()) == true)
                        {
                            BMess.Append("Place Of Pick :" + dr["PlaceOfPick"] + "<br/>");
                            BMess.Append("Time Of Pick :" + dr["TimeOfPick"] + "<br/>");
                        }
                        if (Convert.ToBoolean(dr["WantComplimentaryDrop"].ToString()) == true)
                        {
                            BMess.Append("Place Of Pick For Drop :" + dr["PlaceOfDrop"] + "<br/>");
                            BMess.Append("Time Of Pick For Drop :" + dr["TimeOfDrop"] + "<br/>");
                        }
                    }
                }
                ////////
                //if (dr["PromotionCode"].ToString() == "PULMAN")
                //{
                //    if (Convert.ToBoolean(dr["WantComplimentary"].ToString()) == true)
                //    {
                //        BMess.Append("Place Of Pick :" + dr["PlaceOfPick"] + "<br/>");
                //        BMess.Append("Time Of Pick :" + dr["TimeOfPick"] + "<br/>");
                //        BMess.Append("Contact No. :" + dr["MobileNo"] + "<br/>");
                //    }
                //    BMess.Append("Promo Code : Pullman Hotel <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "EROSMANAGED")
                //{
                //    BMess.Append("Promo Code : Eros managed by Hilton  <br/>");
                //}

                //if (dr["PromotionCode"].ToString() == "GINGERROOTS")
                //{
                //    BMess.Append("Promo Code : Ginger Roots  <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "OPTUSSAROVAR")
                //{
                //    BMess.Append("Promo Code : Optus Sarovar Premiere <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "HERITAGEVILLAGE")
                //{
                //    BMess.Append("Promo Code : Heritage Village Resort & Spa     <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "THEUPPAL")
                //{
                //    BMess.Append("Promo Code : The Uppal     <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "FORTUNEDJPARKAVENUE")
                //{
                //    BMess.Append("Promo Code : Fortune Dj Park Avenue    <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "KEYSHOTEL")
                //{
                //    BMess.Append("Promo Code : Keys Hotel Chattarpur   <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "KEYOODLESNP")
                //{
                //    BMess.Append("Promo Code : Key oodles Nehru Place  <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "MAPPLEEMERALD")
                //{
                //    BMess.Append("Promo Code : Mapple Emerald <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "BRISTOL")
                //{
                //    BMess.Append("Promo Code : BRISTOL <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "MAPPLEEXOTICA")
                //{
                //    BMess.Append("Promo Code : MAPPLE EXOTICA <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "THESUNRISEHOUSE")
                //{
                //    BMess.Append("Promo Code : THE SUN RISE HOUSE <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "GALAXY")
                //{
                //    BMess.Append("Promo Code : GALAXY <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "RAMADAGURGAONCENTRAL")
                //{
                //    BMess.Append("Promo Code : Ramada Gurgaon Central <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "STARGRANDVILLA")
                //{
                //    BMess.Append("Promo Code : STAR GRAND VILLA <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "THEROYALPARK")
                //{
                //    BMess.Append("Promo Code : THE ROYAL PARK <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "ROYALPARKPLAZA")
                //{
                //    BMess.Append("Promo Code : The Royal Park Plaza <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "COUNTRYINN")
                //{
                //    BMess.Append("Promo Code : Country Inn & Suites <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "DOUBLETREE")
                //{
                //    BMess.Append("Promo Code : Double Tree by Hilton <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "ITCMAURYA")
                //{
                //    BMess.Append("Promo Code : ITC Maurya <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "SONAHOSPITALITY")
                //{
                //    BMess.Append("Promo Code : Sona Hospitality <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "PLLAZIO")
                //{
                //    BMess.Append("Promo Code : PLLAZIO <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "BESTWESTERN")
                //{
                //    BMess.Append("Promo Code : BEST WESTERN <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "COUNTRYINNSEC12")
                //{
                //    BMess.Append("Promo Code : COUNTRY INN SEC12 <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "KINGSTON")
                //{
                //    BMess.Append("Promo Code : KINGSTON <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "VATIKA")
                //{
                //    BMess.Append("Promo Code : VATIKA <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "COUNTRYINN&SUIT")
                //{
                //    BMess.Append("Promo Code :  Country Inn & Suites, Chattarpur <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "MADHUBAN")
                //{
                //    BMess.Append("Promo Code :  Madhuban, managed by Peppermint, Greater Kailash <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "VIVANTABYTAJ")
                //{
                //    BMess.Append("Promo Code :    Vivanta by Taj <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "OBEROI")
                //{
                //    BMess.Append("Promo Code : Oberoi <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "OBEROIDELHI")
                //{
                //    BMess.Append("Promo Code : Oberoi delhi  <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "TRIDENT")
                //{
                //    BMess.Append("Promo Code : Trident <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "THEUMRAO")
                //{
                //    BMess.Append("Promo Code : THEUMRAO <br/>");
                //}

                //if (dr["PromotionCode"].ToString() == "THECLAREMONT")
                //{
                //    BMess.Append("Promo Code : THE CLAREMONT <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "ROYALRAMIRORESIDENCY")
                //{
                //    BMess.Append("Promo Code : ROYAL RAMIRO RESIDENCY <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "RADISSONBLUSUITES")
                //{
                //    BMess.Append("Promo Code : RADISSON BLU SUITES <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "KARONINN")
                //{
                //    BMess.Append("Promo Code : KARON INN <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "GOLDENTULIP")
                //{
                //    BMess.Append("Promo Code : GOLDEN TULIP <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "HOTELOSCAR")
                //{
                //    BMess.Append("Promo Code : HOTEL OSCAR <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "KARONHOTELS")
                //{
                //    BMess.Append("Promo Code : KARON HOTELS <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "LEELAKEMPINSKI")
                //{
                //    if (Convert.ToBoolean(dr["WantComplimentary"].ToString()) == true)
                //    {
                //        BMess.Append("Place Of Pick :" + dr["PlaceOfPick"] + "<br/>");
                //        BMess.Append("Time Of Pick :" + dr["TimeOfPick"] + "<br/>");
                //        BMess.Append("Contact No. :" + dr["MobileNo"] + "<br/>");
                //    }
                //    BMess.Append("Promo Code : Leela Kempinski  <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "CROWNPLAZA")
                //{
                //    if (Convert.ToBoolean(dr["WantComplimentary"].ToString()) == true || Convert.ToBoolean(dr["WantComplimentaryDrop"].ToString()) == true)
                //    {
                //        BMess.Append("Contact No. :" + dr["MobileNo"] + "<br/>");
                //    }
                //    if (Convert.ToBoolean(dr["WantComplimentary"].ToString()) == true)
                //    {
                //        BMess.Append("Place Of Pick :" + dr["PlaceOfPick"] + "<br/>");
                //        BMess.Append("Time Of Pick :" + dr["TimeOfPick"] + "<br/>");
                //    }
                //    if (Convert.ToBoolean(dr["WantComplimentaryDrop"].ToString()) == true)
                //    {
                //        BMess.Append("Place Of Pick For Drop :" + dr["PlaceOfDrop"] + "<br/>");
                //        BMess.Append("Time Of Pick For Drop :" + dr["TimeOfDrop"] + "<br/>");
                //    }

                //    BMess.Append("Promo Code : CROWNPLAZA HOTEL  <br/>");
                //}
                BMess.Append("Venue : Kingdom Of Dreams, Gurgaon<br/>");
                BMess.Append("Location : NCR<br/>");
                BMess.Append("Show Name : " + dr["Play"] + "<br/>");
                BMess.Append("Show Date : " + Convert.ToDateTime(dr["ShowDate"].ToString()).ToLongDateString() +
                    " at " + Convert.ToDateTime(dr["ShowTime"]).ToShortTimeString() + "<br/>");
                BMess.Append("Seat Info : " + dr["Category"] + " - " + dr["SeatInfo"] + "<br/>");
                BMess.Append("Total Amount : " + tktAmount + "<br/><br/>");
                BMess.Append("Payment Mode : " + dr["PaymentType"] + "<br/>");
                BMess.Append("Booking Date : " + Convert.ToDateTime(dr["DateOfBooking"].ToString()).ToLongDateString() +
                    " at " + Convert.ToDateTime(dr["TimeOfBooking"]).ToShortTimeString() + "<br/><br/>");
                if (seatsBooked)
                {
                    BMess.Append("Please Bring this Booking ID to the Box-office of Kingdom of Dreams to collect your tickets" +
                        " and also you need to present the same credit card on which the booking has" +
                        " been done, if tickets booked with credit card.<br/><br/>" +
                        "<b> Terms & conditions :" + "<br/>" +
                        " 1.A child less than two years of age, will not be allowed for the show due to high decibel level. Price of a show ticket for a child above two years would be same as for adults for all categories." + "<br/>" +
                        " 2.Make your Payment only through your Royal Membership Card to earn reward points. No claim will be entertained after printing of the tickets." + "<br/>" +
                        " 3.The Rewards point earned will be available for redemption only on next visit." + "<b/><br/><br/>" +
                        "<b>CANCELLATION/REFUND POLICY<b/><br/>As per policy we do not cancel/refund/change any tickets once booked." +
                        "<br/><br/>");
                }
                BMess.Append("Regards,<br/>Team<br/>Kingdom of Dreams");
                Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Write("returned " + BMess.ToString());
                return BMess.ToString();

            }
            catch (Exception ex)
            {
                Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Write("Email Notification Error: " + ex.Message);
                return string.Empty;
            }
        }
Beispiel #11
0
        public static void SuccessPaymentResponse(bool seatsBooked, DataRow dr, String _ReferenceNo, String _BookingID, String _ReceiptNo, String AdminId)
        {
            AdminId = "*****@*****.**";  //mail id for quality department
            try
            {
                String Enddate = "2013.09.29";
                DateTime End = Convert.ToDateTime(Enddate);
                String Presentdate = Convert.ToDateTime(dr["ShowDate"]).ToString("yyyy-MM-dd");
                DateTime Present = Convert.ToDateTime(Presentdate);
                System.Text.StringBuilder BMess = new System.Text.StringBuilder();
                BMess.Append("Dear ");
                BMess.Append(dr["Name"]);
                BMess.Append("<br/><br/>");
                if (seatsBooked)
                {
                    BMess.Append("Your Tickets have been successfully booked, and details are mentioned below...<br/><br/>");
                    BMess.Append("Booking ID : " + dr["BookingID"] + "<br/>");
                    if (dr["PromotionCode"].ToString() == "OCTOBERFEST")
                        BMess.Append("Promo Code : " + "OCTOBER FEST (Buy one get one free)" + "<br/>");
                }
                else
                {
                    BMess.Append("Your Transaction was successful, but due to some technical reason your seats were not Booked.");
                    BMess.Append(" Please Contact 0124 - 4528000 to confirm your seats. Below are the details...<br/><br/>");
                    BMess.Append("Booking Id : " + _BookingID + "<br/>");
                    BMess.Append("Receipt No : " + _ReceiptNo + "<br/>");
                }


                //Promotion Code Specific Code
                decimal DiscountPercentage = decimal.Parse(dr["DiscountPercentage"].ToString());
                decimal tktAmount = decimal.Parse(dr["TotalAmount"].ToString());
                int numberOfSeats = int.Parse(dr["TotalSeats"].ToString());

                if (DiscountPercentage > 0)
                {

                    decimal SingleTicketPrice = tktAmount / numberOfSeats;

                    decimal DiscountedPrice = SingleTicketPrice - (SingleTicketPrice * DiscountPercentage / 100);
                    DiscountedPrice = decimal.Truncate(DiscountedPrice);
                    if (DiscountedPrice == 1274)
                        DiscountedPrice = DiscountedPrice + 1;
                    else if (DiscountedPrice == 2124)
                        DiscountedPrice = DiscountedPrice + 1;
                    else if (DiscountedPrice == 2974)
                        DiscountedPrice = DiscountedPrice + 1;
                    else if (DiscountedPrice == 4249)
                        DiscountedPrice = DiscountedPrice + 1;

                    tktAmount = DiscountedPrice * numberOfSeats;

                    Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Write("Total Amount Price For a Ticket" + tktAmount.ToString());
                    //*************Jhumroo Offer (1+1) mail content changes START here*******************
                    //String Enddatte = "2014.04.10";
                    //DateTime Endt = Convert.ToDateTime(Enddatte);
                    //String Presentdatte = Convert.ToDateTime(dr["ShowDate"]).ToString("yyyy-MM-dd");
                    //DateTime Presentt = Convert.ToDateTime(Presentdatte);
                    //if (dr["Play"].ToString() == "JHUMROO" && (dr["Category"].ToString() == "SILVER" || dr["Category"].ToString() == "GALLERY" || dr["Category"].ToString() == "GOLD" || dr["Category"].ToString() == "DIAMOND" || dr["Category"].ToString() == "PLATINUM") && Presentt <= Endt && (dr["PromotionCode"].ToString() == "" || dr["PromotionCode"] == null))
                    //{
                    //    Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Write("Enter into Jhumroo offer");
                    //    tktAmount = decimal.Parse(dr["PayableAmount"].ToString());
                    //}
                    //*************Jhumroo Offer (1+1) mail content changes END here*******************

                }
                if (Convert.ToDecimal(dr["TotalSeats"].ToString()) > 3 && dr["Play"].ToString() == "JHUMROO" && dr["Category"].ToString() != "BRONZE" && dr["Category"].ToString() != "COPPER" && Present <= End && (dr["PromotionCode"].ToString() == "" || dr["PromotionCode"] == null))
                {
                    tktAmount = decimal.Parse(dr["TotalAmount"].ToString());
                }
                if (dr["PromotionCode"].ToString() == "VIVANTABYTAJ" || dr["PromotionCode"].ToString() == "OBEROI" || dr["PromotionCode"].ToString() == "TRIDENT" || dr["PromotionCode"].ToString() == "OBEROIDELHI" || dr["PromotionCode"].ToString() == "EROSMANAGED" || dr["PromotionCode"].ToString() == "OCTOBERFEST" || dr["PromotionCode"].ToString() == "CROWNEPLAZAROHINI")
                {
                    tktAmount = decimal.Parse(dr["PayableAmount"].ToString());
                }
               

                HotelList<string> PromoClass = new HotelList<string>();
                List<string> Promotions = PromoClass.listofHotels();

                if (dr["PromotionCode"].ToString() != "" || dr["PromotionCode"] != null)
                {
                    if (Promotions.Contains(dr["PromotionCode"].ToString()))
                    {
                        BMess.Append("Promo Code : " + dr["PromotionCode"].ToString() + "<br/>");
                    }
                    if (Convert.ToBoolean(dr["WantComplimentary"].ToString()) == true || Convert.ToBoolean(dr["WantComplimentaryDrop"].ToString()) == true)
                    {
                        BMess.Append("Contact No. :" + dr["MobileNo"] + "<br/>");

                        if (Convert.ToBoolean(dr["WantComplimentary"].ToString()) == true)
                        {
                            BMess.Append("Place Of Pick :" + dr["PlaceOfPick"] + "<br/>");
                            BMess.Append("Time Of Pick :" + dr["TimeOfPick"] + "<br/>");
                        }
                        if (Convert.ToBoolean(dr["WantComplimentaryDrop"].ToString()) == true)
                        {
                            BMess.Append("Place Of Pick For Drop :" + dr["PlaceOfDrop"] + "<br/>");
                            BMess.Append("Time Of Pick For Drop :" + dr["TimeOfDrop"] + "<br/>");
                        }
                    }
                }
                


                ////////
                //if (dr["PromotionCode"].ToString() == "PULMAN")
                //{
                //    if (Convert.ToBoolean(dr["WantComplimentary"].ToString()) == true)
                //    {
                //        BMess.Append("Place Of Pick :" + dr["PlaceOfPick"] + "<br/>");
                //        BMess.Append("Time Of Pick :" + dr["TimeOfPick"] + "<br/>");
                //        BMess.Append("Contact No. :" + dr["MobileNo"] + "<br/>");
                //    }
                //    BMess.Append("Promo Code : Pullman Hotel <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "EROSMANAGED")
                //{
                //    BMess.Append("Promo Code : Eros managed by Hilton  <br/>");
                //}

                //if (dr["PromotionCode"].ToString() == "GINGERROOTS")
                //{
                //    BMess.Append("Promo Code : Ginger Roots  <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "OPTUSSAROVAR")
                //{
                //    BMess.Append("Promo Code : Optus Sarovar Premiere <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "HERITAGEVILLAGE")
                //{
                //    BMess.Append("Promo Code : Heritage Village Resort & Spa     <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "THEUPPAL")
                //{
                //    BMess.Append("Promo Code : The Uppal     <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "FORTUNEDJPARKAVENUE")
                //{
                //    BMess.Append("Promo Code : Fortune Dj Park Avenue    <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "KEYSHOTEL")
                //{
                //    BMess.Append("Promo Code : Keys Hotel Chattarpur   <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "KEYOODLESNP")
                //{
                //    BMess.Append("Promo Code : Key oodles Nehru Place  <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "MAPPLEEMERALD")
                //{
                //    BMess.Append("Promo Code : Mapple Emerald <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "BRISTOL")
                //{
                //    BMess.Append("Promo Code : BRISTOL <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "MAPPLEEXOTICA")
                //{
                //    BMess.Append("Promo Code : MAPPLE EXOTICA <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "THESUNRISEHOUSE")
                //{
                //    BMess.Append("Promo Code : THE SUN RISE HOUSE <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "GALAXY")
                //{
                //    BMess.Append("Promo Code : GALAXY <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "ROYALPARKPLAZA")
                //{
                //    BMess.Append("Promo Code : The Royal Park Plaza <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "THEROYALPARK")
                //{
                //    BMess.Append("Promo Code : The Royal Park <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "STARGRANDVILLA")
                //{
                //    BMess.Append("Promo Code : STAR GRAND VILLA <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "RAMADAGURGAONCENTRAL")
                //{
                //    BMess.Append("Promo Code : Ramada Gurgaon Central <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "COUNTRYINN")
                //{
                //    BMess.Append("Promo Code : Country Inn & Suites <br/>");
                //}

                //if (dr["PromotionCode"].ToString() == "DOUBLETREE")
                //{
                //    BMess.Append("Promo Code : Double Tree by Hilton <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "ITCMAURYA")
                //{
                //    BMess.Append("Promo Code : ITC Maurya <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "SONAHOSPITALITY")
                //{
                //    BMess.Append("Promo Code : Sona Hospitality <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "PLLAZIO")
                //{
                //    BMess.Append("Promo Code : PLLAZIO <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "KODHDFCEMPMAR13")
                //{
                //    BMess.Append("Promo Code : HDFC <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "BESTWESTERN")
                //{
                //    BMess.Append("Promo Code : BEST WESTERN <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "COUNTRYINNSEC12")
                //{
                //    BMess.Append("Promo Code : COUNTRY INN SEC12 <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "KINGSTON")
                //{
                //    BMess.Append("Promo Code : KINGSTON <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "VATIKA")
                //{
                //    BMess.Append("Promo Code : VATIKA <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "COUNTRYINN&SUIT")
                //{
                //    BMess.Append("Promo Code :  Country Inn & Suites, Chattarpur <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "MADHUBAN")
                //{
                //    BMess.Append("Promo Code :  Madhuban, managed by Peppermint, Greater Kailash <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "VIVANTABYTAJ")
                //{
                //    BMess.Append("Promo Code :    Vivanta by Taj <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "OBEROI")
                //{
                //    BMess.Append("Promo Code : Oberoi <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "OBEROIDELHI")
                //{
                //    BMess.Append("Promo Code : Oberoi delhi <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "TRIDENT")
                //{
                //    BMess.Append("Promo Code : Trident <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "THEUMRAO")
                //{
                //    BMess.Append("Promo Code : THEUMRAO <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "MARCHPROMOTION")
                //{
                //    BMess.Append("Promo Code : March Promotion <br/>");
                //    BMess.Append("Amount of Per Package :" + "Rs.4999" + "<br/>");
                //    BMess.Append("Category :" + "GOLD" + "<br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "MONTHOFMARCH")
                //{
                //    BMess.Append("Promo Code : Month of March <br/>");
                //    BMess.Append("Amount of Per Package :" + "Rs.1275" + "<br/>");
                //    BMess.Append("Category :" + "SILVER" + "<br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "LEELAKEMPINSKI")
                //{
                //    if (Convert.ToBoolean(dr["WantComplimentary"].ToString()) == true)
                //    {
                //        BMess.Append("Place Of Pick :" + dr["PlaceOfPick"] + "<br/>");
                //        BMess.Append("Time Of Pick :" + dr["TimeOfPick"] + "<br/>");
                //        BMess.Append("Contact No. :" + dr["MobileNo"] + "<br/>");
                //    }
                //    BMess.Append("Promo Code : Leela Kempinski  <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "THECLAREMONT")
                //{
                //    BMess.Append("Promo Code : THE CLAREMONT <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "ROYALRAMIRORESIDENCY")
                //{
                //    BMess.Append("Promo Code : ROYAL RAMIRO RESIDENCY <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "RADISSONBLUSUITES")
                //{
                //    BMess.Append("Promo Code : RADISSON BLU SUITES <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "KARONINN")
                //{
                //    BMess.Append("Promo Code : KARON INN <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "GOLDENTULIP")
                //{
                //    BMess.Append("Promo Code : GOLDEN TULIP <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "HOTELOSCAR")
                //{
                //    BMess.Append("Promo Code : HOTEL OSCAR <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "KARONHOTELS")
                //{
                //    BMess.Append("Promo Code : KARON HOTELS <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "MMTDOMESTIC")
                //{
                //    BMess.Append("Promo Code : MMT domestic <br/>");
                //}
                //if (dr["PromotionCode"].ToString() == "CROWNPLAZA")
                //{
                //    if (Convert.ToBoolean(dr["WantComplimentary"].ToString()) == true || Convert.ToBoolean(dr["WantComplimentaryDrop"].ToString()) == true)
                //    {
                //        BMess.Append("Contact No. :" + dr["MobileNo"] + "<br/>");
                //    }
                //    if (Convert.ToBoolean(dr["WantComplimentary"].ToString()) == true)
                //    {
                //        BMess.Append("Place Of Pick Up :" + dr["PlaceOfPick"] + "<br/>");
                //        BMess.Append("Time Of Pick Up :" + dr["TimeOfPick"] + "<br/>");
                //    }
                //    if (Convert.ToBoolean(dr["WantComplimentaryDrop"].ToString()) == true)
                //    {
                //        BMess.Append("Place Of Pick Up For Drop :" + dr["PlaceOfDrop"] + "<br/>");
                //        BMess.Append("Time Of Pick Up For Drop :" + dr["TimeOfDrop"] + "<br/>");
                //    }

                //    BMess.Append("Promo Code : CROWNPLAZA HOTEL <br/>");
                //}
                if (Convert.ToDecimal(dr["TotalSeats"].ToString()) > 3 && dr["Play"].ToString() == "JHUMROO" && dr["Category"].ToString() != "BRONZE" && dr["Category"].ToString() != "COPPER" && Present <= End && (dr["PromotionCode"].ToString() == "" || dr["PromotionCode"] == null))
                {
                    BMess.Append("Promo Offer : " + "Jhoomro Anniversary offer" + "<br/>");
                }
                BMess.Append("Venue : Kingdom Of Dreams, Gurgaon<br/>");
                BMess.Append("Location : NCR<br/>");
                BMess.Append("Show Name : " + dr["Play"] + "<br/>");
                BMess.Append("Show Date : " + Convert.ToDateTime(dr["ShowDate"].ToString()).ToLongDateString() +
                    " at " + Convert.ToDateTime(dr["ShowTime"]).ToShortTimeString() + "<br/>");
                BMess.Append("Seat Info : " + dr["Category"] + " - " + dr["SeatInfo"] + "<br/>");

                if (dr["PromotionCode"].ToString() != "MONTHOFMARCH" && dr["PromotionCode"].ToString() != "MARCHPROMOTION")
                {
                    BMess.Append("Total Amount : " + tktAmount + "<br/><br/>");

                }
                if (Convert.ToDecimal(dr["TotalSeats"].ToString()) > 3 && dr["Play"].ToString() == "JHUMROO" && dr["Category"].ToString() != "BRONZE" && dr["Category"].ToString() != "COPPER" && Present <= End && (dr["PromotionCode"].ToString() == "" || dr["PromotionCode"] == null))
                {
                    BMess.Append("Paid Amount : " + dr["PayableAmount"].ToString() + " (Buy three get one free - Jhoomro anniversary offer)<br/>");
                }
                BMess.Append("Payment Mode : " + dr["PaymentType"] + "<br/>");
                BMess.Append("Booking Date : " + Convert.ToDateTime(dr["DateOfBooking"].ToString()).ToLongDateString() +
                    " at " + Convert.ToDateTime(dr["TimeOfBooking"]).ToShortTimeString() + "<br/><br/>");

                if (dr["PromotionCode"].ToString() == "MONTHOFMARCH")
                {
                    BMess.Append("Package Details : Silver Category Show Ticket for Jhumroo, Welcome Drink, Culture Gully Smart Card Worth Rs.500 per person, 10% Discount on Retail Purchase at Culture Gully.<br/>");
                }
                if (dr["PromotionCode"].ToString() == "MARCHPROMOTION")
                {
                    BMess.Append("Gold Category Show Ticket for Jhumroo, Welcome Drink, Culture Gully Smart Card Worth Rs.2500 per couple, 10% Discount on Retail Purchase at Culture Gully.<br/> ");
                }

                if (seatsBooked)
                {
                    if (dr["PromotionCode"].ToString() == "MONTHOFMARCH" || dr["PromotionCode"].ToString() == "MARCHPROMOTION")
                    {
                        BMess.Append("Please bring this Booking ID along with you to collect your tickets" +
                            " and also you need to present the same credit card on which the booking has" +
                            " been done, if tickets booked with credit card." +
                            " Collection of tickets and smart cards will be on the same day for which you have booked your package.<br/><br/>" +
                            "<b>Terms & conditions :" + "<br/>" +
                            " 1.A child less than two years of age, will not be allowed for the show due to high decibel level. Price of a show ticket for a child above two years would be same as for adults for all categories."+"<br/>"+
                            " 2.Make your Payment only through your Royal Membership Card to earn reward points. No claim will be entertained after printing of the tickets." + "<br/>" +
                            " 3.The Rewards point earned will be available for redemption only on next visit." + "<b><br/><br/>" +
                            "<b>CANCELLATION/REFUND POLICY<b/><br/>As per policy we do not cancel/refund/change any tickets once booked." +
                            "<br/><br/>");
                    }
                    else
                    {
                        BMess.Append("Please Bring this Booking ID to the Box-office of Kingdom of Dreams to collect your tickets" +
                            " and also you need to present the same credit card on which the booking has" +
                            " been done, if tickets booked with credit card.<br/><br/>" +
                            " <b>Terms & conditions :" + "<br/>" +
                            " 1.A child less than two years of age, will not be allowed for the show due to high decibel level. Price of a show ticket for a child above two years would be same as for adults for all categories." + "<br/>" +
                            " 2.Make your Payment only through your Royal Membership Card to earn reward points. No claim will be entertained after printing of the tickets." + "<br/>" +
                            " 3.The Rewards point earned will be available for redemption only on next visit." + "<b/><br/><br/>" +
                            "<b>CANCELLATION/REFUND POLICY<b/><br/>As per policy we do not cancel/refund/change any tickets once booked." +
                            "<br/><br/>");
                    }
                }
                BMess.Append("Regards,<br/>Team<br/>Kingdom of Dreams");
                if (Convert.ToBoolean(dr["IsChecked"]) == true)
                {
                    if (SendMailToCustomer(dr["OptionalEmail"].ToString(), dr["Name"].ToString(), BMess))
                        KoDTicketing.GTICKV.LogEntry(_ReferenceNo.ToString(), "Mail Sent", "23", dr["BookingID"].ToString());
                }
                if (Convert.ToBoolean(dr["IsChecked"]) == false)
                {
                    if (SendMailToCustomer(dr["EmailID"].ToString(), dr["Name"].ToString(), BMess))
                        KoDTicketing.GTICKV.LogEntry(_ReferenceNo.ToString(), "Mail Sent", "23", dr["BookingID"].ToString());
                    if (dr["OptionalEmail"].ToString() != "")
                    {
                        if (SendMailToCustomer(dr["OptionalEmail"].ToString(), dr["Name"].ToString(), BMess))
                            KoDTicketing.GTICKV.LogEntry(_ReferenceNo.ToString(), "Mail Sent", "23", dr["BookingID"].ToString());
                    }

                }
                if (AdminId != "")
                {
                    if (SendMailToCustomer(AdminId.ToString(), "Admin", BMess))
                        KoDTicketing.GTICKV.LogEntry(_ReferenceNo.ToString(), "Mail Sent", "23", dr["BookingID"].ToString());
                }
            }
            catch (Exception ex)
            {
                Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Write("Email Notification Error: " + ex.Message);
            }

            try
            {
                string promo = dr["PromotionCode"].ToString();
                if (promo == "MMTDOMESTIC")
                    SendSignUpSMSForMMT(dr["Name"].ToString(), dr["BookingId"].ToString(), dr["MobileNo"].ToString(), dr["TotalSeats"].ToString(), dr["Play"].ToString(), Convert.ToDateTime(dr["ShowDate"].ToString()), Convert.ToDateTime(dr["ShowTime"].ToString()), dr["PromotionCode"].ToString());
                else
                    Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Write("Send SMS: " + dr["MobileNo"].ToString());
                SendSignUpSMS(dr["Name"].ToString(), dr["BookingId"].ToString(), dr["MobileNo"].ToString(), dr["TotalSeats"].ToString(), dr["Play"].ToString(), Convert.ToDateTime(dr["ShowDate"].ToString()), Convert.ToDateTime(dr["ShowTime"].ToString()));
                KoDTicketing.GTICKV.LogEntry(_ReferenceNo.ToString(), "SMS Sent", "24", dr["BookingID"].ToString());
            }
            catch (Exception ex)
            {
                Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Write("SMS Notification Error: " + ex.Message);
            }
        }
Beispiel #12
0
        public static void SuccessPaymentResponseForHotels(bool seatsBooked, DataRow dtRow, string referecneNo, string bookingId, string receiptNo, string GCabEmail1, string GCabEmail2, string KODrefEmail, string KODrefEmail2)
        {
            // TO check which hotel booking & to which users, mail needs to be sent
            string prmotionCode = "";
            bool iscaballocatedforPick = false;
            bool iscaballocatedforDrop = false;
            Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Write("Mail send to GCAB and REF. KOD");
            string mailContent = PrepareContentMailForHotel(seatsBooked, dtRow, referecneNo, bookingId, receiptNo);
            prmotionCode = dtRow["PromotionCode"].ToString();
            iscaballocatedforPick = Convert.ToBoolean(dtRow["WantComplimentary"]);
            iscaballocatedforDrop = Convert.ToBoolean(dtRow["WantComplimentaryDrop"]);
            HotelList<string> PromoClass = new HotelList<string>();
            List<string> Promotions = PromoClass.listofHotels();

            switch (Promotions.Contains(prmotionCode))
            {
                default:
                    {

                    }
                    break;
                case (true):
                    {

                        if (iscaballocatedforPick == true || iscaballocatedforDrop == true)
                        {
                            SendMailForGCab(dtRow, GCabEmail1.ToString(), GCabEmail2.ToString(), KODrefEmail.ToString(), KODrefEmail2.ToString(), dtRow["Name"].ToString(), mailContent, referecneNo, bookingId);

                        }
                        else if (iscaballocatedforPick == false && iscaballocatedforDrop == false)
                        {
                            SendMailForWithoutGCab(dtRow, KODrefEmail.ToString(), KODrefEmail2.ToString(), dtRow["Name"].ToString(), mailContent, referecneNo, bookingId);
                        }
                        else
                        {
                            SendMailForWithoutGCab(dtRow, KODrefEmail.ToString(), KODrefEmail2.ToString(), dtRow["Name"].ToString(), mailContent, referecneNo, bookingId);
                        }
                        break;
                    }
                case (false):
                    {
                        break;
                    }
            }
        }
Beispiel #13
0
    public List <string> listofHotels()
    {
        var listHotel = new HotelList <string> {
            { "ACURABMK" },
            { "ALTISHOTEL" },
            { "BESTWESTERNSKYCITY" },
            { "CHECKINNHOTEL" },
            { "CLARENSHOTEL" },
            { "CROWNPLAZAOKHLA" },
            { "EDDISON" },
            { "EMBLEM" },
            { "EMBLEMGURGAON" },
            { "EXPSAROVARPORTICO" },
            { "FRASERSUITES" },
            { "HCITYPARK" },
            { "HOTELCHAUPAL" },
            { "HOTELDELHI37" },
            { "HOTELDIPLOMAT" },
            { "HOTELERA" },
            { "HOTELGRENVILLEBANQUE" },
            { "HOTELSHANTIPALACE" },
            { "HOTELSTAR" },
            { "HOTELTRANSIT" },
            { "HOTELVIVADESTINATION" },
            { "HYATTREGENCYGURGAON" },
            { "IBISHOTEL" },
            { "INTERNATIONALINN" },
            { "KEMPINSKIAMBIENCE" },
            { "KHOTEL" },
            { "PARKDEFENCECOLONY" },
            { "PARKLANDCHIRAGENCLAV" },
            { "PARKLANDGRANDKAPASHE" },
            { "PARKLANDKAILASHCOLON" },
            { "PARKLANDKALKAJI" },
            { "PARKLANDSAFDARJUNG" },
            { "QUALITYINN" },
            { "ROYALORCHID" },
            { "SATYAMRESIDENCY" },
            { "TAJPALACE" },
            { "THEDRANDHOTELBIZOTEL" },
            { "THELALITNEWDELHI" },
            { "THELEAGUE" },
            { "ZIPBYSPREEBLUESTONE" },
            { "COUNTRYINN" },
            { "DOUBLETREE" },
            { "ITCMAURYA" },
            { "LEELAKEMPINSKI" },
            { "PULMAN" },
            { "SONAHOSPITALITY" },
            { "PLLAZIO" },
            { "OBEROI" },
            { "TRIDENT" },
            { "KODHDFCEMPMAR13" },
            { "BESTWESTERN" },
            { "COUNTRYINNSEC12" },
            { "KINGSTON" },
            { "VATIKA" },
            { "COUNTRYINN&SUIT" },
            { "MADHUBAN" },
            { "VIVANTABYTAJ" },
            { "CROWNPLAZA" },
            { "THEUMRAO" },
            { "RAMADAGURGAONCENTRAL" },
            { "ROYALPARKPLAZA" },
            { "OBEROIDELHI" },
            { "STARGRANDVILLA" },
            { "THEROYALPARK" },
            { "GOLDENTULIP" },
            { "HOTELOSCAR" },
            { "KARONHOTELS" },
            { "BRISTOL" },
            { "GALAXY" },
            { "MAPPLEEXOTICA" },
            { "THESUNRISEHOUSE" },
            { "MAPPLEEMERALD" },
            { "GETSHOLIDAYS" },
            { "KEYOODLESNP" },
            { "KEYSHOTEL" },
            { "FORTUNEDJPARKAVENUE" },
            { "THEUPPAL" },
            { "HERITAGEVILLAGE" },
            { "OPTUSSAROVAR" },
            { "GINGERROOTS" },
            { "EROSMANAGED" },
            { "PEPPERMINTGURGAON" },
            { "PREMIERINN" },
            { "1589CITYMARK" },
            { "PARKPLAZAGGN" },
            { "CROWNEPLAZAROHINI" },
            { "THEAWESOMEFARMS" },
            { "TIVOLIGARDENRESORT" }
        };

        return(listHotel);
    }