Example #1
0
 public List <clsTouristCountDTO> GetTouristCount(DateTime fromDate, DateTime toDate, int accomTypeId, int accomId)
 {
     try
     {
         BookingTouristHandler bookingTouristHandler = new BookingTouristHandler();
         return(bookingTouristHandler.GetTouristCount(fromDate, toDate, accomTypeId, accomId));
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }
Example #2
0
 public BookingTouristDTO[] GetBookingTourists(int BookingId)
 {
     try
     {
         if (touristHandler == null)
         {
             touristHandler = new BookingTouristHandler();
         }
         return(touristHandler.GetTourists(BookingId));
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }
Example #3
0
 public void DeleteBookingTourist(int BookingId)
 {
     try
     {
         if (touristHandler == null)
         {
             touristHandler = new BookingTouristHandler();
         }
         touristHandler.DeleteTourist(BookingId);
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }
Example #4
0
 public bool DeleteBookingTourist(int BookingId, int TouristNo)
 {
     try
     {
         if (touristHandler == null)
         {
             touristHandler = new BookingTouristHandler();
         }
         return(touristHandler.DeleteTourist(BookingId, TouristNo));
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }
Example #5
0
 public bool UpdateBookingTourist(BookingTouristDTO oBookingTouristDTO)
 {
     try
     {
         if (touristHandler == null)
         {
             touristHandler = new BookingTouristHandler();
         }
         return(touristHandler.UpdateTouristDetails(oBookingTouristDTO));
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }
Example #6
0
 public bool Addtouristentry(BookingTouristDTO oBookingTouristDTO, out int TouristNo)
 {
     try
     {
         if (touristHandler == null)
         {
             touristHandler = new BookingTouristHandler();
         }
         return(touristHandler.InsertTouristentry(oBookingTouristDTO, out TouristNo));
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }
Example #7
0
 public BookingTouristDTO[] GetTourists(string FirstName, string LastName, string PassportNo, int NationalityID)
 {
     try
     {
         if (touristHandler == null)
         {
             touristHandler = new BookingTouristHandler();
         }
         return(touristHandler.SearchTourists(FirstName, LastName, PassportNo, NationalityID));
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }
Example #8
0
 public BookingTouristDTO GetBookingTouristDetails(int BookingId, int TouristNo)
 {
     try
     {
         if (touristHandler == null)
         {
             touristHandler = new BookingTouristHandler();
         }
         return(touristHandler.GetTouristDetails(BookingId, TouristNo));
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }
Example #9
0
 public BookingTouristDTO[] GetBookingTouristsftr(string bookingCode, string email, string passpno, string name, DateTime chkin, DateTime chkout, int acommid)
 {
     try
     {
         if (touristHandler == null)
         {
             touristHandler = new BookingTouristHandler();
         }
         return(touristHandler.GetTouristsftr(bookingCode, email, passpno, name, chkin, chkout, acommid));
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }
Example #10
0
        private CFormReportDTO GetCFormData(int bookingId, bool foreignNationals, bool indianNationals)
        {
            CFormReportDTO cFormReportDto;
            BookingDTO     bookingDetailsDto;

            BookingTouristDTO[]   bookingTouristDetailsDto;
            BookingHandler        bookingHandler;
            BookingTouristHandler touristHandler;

            try
            {
                bookingHandler = new BookingHandler();
                touristHandler = new BookingTouristHandler();
                cFormReportDto = new CFormReportDTO();

                GenerateCFormNumbers(bookingId);

                bookingDetailsDto      = bookingHandler.GetBookingDetails(bookingId);
                cFormReportDto.CFormNo = GetBookingCFormNo(bookingDetailsDto, foreignNationals, indianNationals);

                cFormReportDto.BookingDetails = bookingDetailsDto;

                bookingTouristDetailsDto = touristHandler.GetAllTouristDetails(bookingId);

                if (foreignNationals && indianNationals)
                {
                    cFormReportDto.BookingTouristDetails = bookingTouristDetailsDto;
                }
                else if (foreignNationals)
                {
                    cFormReportDto.BookingTouristDetails = GetForeignNationalsData(bookingTouristDetailsDto);
                }
                else if (indianNationals)
                {
                    cFormReportDto.BookingTouristDetails = GetIndianNationalsData(bookingTouristDetailsDto);
                }
            }
            catch (Exception exp)
            {
                throw exp;
            }
            return(cFormReportDto);
        }