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; } }
public BookingTouristDTO[] GetBookingTourists(int BookingId) { try { if (touristHandler == null) { touristHandler = new BookingTouristHandler(); } return(touristHandler.GetTourists(BookingId)); } catch (Exception exp) { throw exp; } }
public void DeleteBookingTourist(int BookingId) { try { if (touristHandler == null) { touristHandler = new BookingTouristHandler(); } touristHandler.DeleteTourist(BookingId); } catch (Exception exp) { throw exp; } }
public bool DeleteBookingTourist(int BookingId, int TouristNo) { try { if (touristHandler == null) { touristHandler = new BookingTouristHandler(); } return(touristHandler.DeleteTourist(BookingId, TouristNo)); } catch (Exception exp) { throw exp; } }
public bool UpdateBookingTourist(BookingTouristDTO oBookingTouristDTO) { try { if (touristHandler == null) { touristHandler = new BookingTouristHandler(); } return(touristHandler.UpdateTouristDetails(oBookingTouristDTO)); } catch (Exception exp) { throw exp; } }
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; } }
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; } }
public BookingTouristDTO GetBookingTouristDetails(int BookingId, int TouristNo) { try { if (touristHandler == null) { touristHandler = new BookingTouristHandler(); } return(touristHandler.GetTouristDetails(BookingId, TouristNo)); } catch (Exception exp) { throw exp; } }
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; } }
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); }