//*Added by rahul for Saving BookingItems table data to Booking details table on 28/02/20 public static long SaveIntialBookingDetailsData(CLayer.BookingItem data) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); if (data.NoOfDays < 1 && data.CheckOut > data.CheckIn) { data.NoOfDays = (data.CheckOut - data.CheckIn).Days; } return(bi.SaveIntialBookingDetailsData(data)); }
public static string GetOfferAppliedAsString(long bookingItemId) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.GetOfferAppliedAsString(bookingItemId)); }
public static List <CLayer.BookingItem> GetAccomodationFromBookingCode(string BookingCode) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.GetAccomodationFromBookingCode(BookingCode)); }
public static int GetBookedUserId(long bookingItemId) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.GetBookedUserId(bookingItemId)); }
public static string GetRatesApplied(long bookingItemId) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.GetRatesApplied(bookingItemId)); }
public static void UpdateGDSCurrencyDetails(CLayer.BookingItem pBookingItem) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); bi.UpdateGDSCurrencyDetails(pBookingItem); }
public static void UpdateHotelConfirmNumber(long bookingId, long AccommodationID, string HotelConfirmNumber) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); bi.UpdateHotelConfirmNumber(bookingId, AccommodationID, HotelConfirmNumber); }
public static void SaveGDSCountry(CLayer.BookingItem data) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); bi.SaveGDSCountry(data); }
public static long GetAssisted_By(long BookingId) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.GetAssisted_By(BookingId)); }
public static string GetBillingFor(long BookingId) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.GetBillingFor(BookingId)); }
//*Added by Rahul for Updating the values for BilingFor and BookingFor Columns in Booking Table UpdateBillingAndBookingForInBookingTable public static void UpdateBillingAndBookingForInBookingTable(long bookingid, string BookingFor, string BillingFor, long AssistedCorporateUserID) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); bi.UpdateBillingAndBookingForInBookingTable(bookingid, BookingFor, BillingFor, AssistedCorporateUserID); }
public static void UpdateCustomBook(long bookitemId, long IsCustomBook) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); bi.UpdateCustomBook(bookitemId, IsCustomBook); }
public static void SetCancAmount(long bookitemId, decimal cancAccCharge, decimal totalAmount) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); bi.SetCancAmount(bookitemId, cancAccCharge, totalAmount); }
//*** public static void SavePartialAmount(long bookingId, decimal Partialamountperc, decimal Partialamount, decimal remainingamount) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); bi.SavePartialAmount(bookingId, Partialamountperc, Partialamount, remainingamount); }
//***Save Amount for offlinebookings bookingdetails //**Added by rahul on 29/02/20 public static void SaveBookingDetailsAmounts(CLayer.BookingItem data) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); bi.SaveBookingDetailsAmounts(data); }
public static void AddOffer(long bookingItemId, long offerId, string offerTitle) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); bi.AddOffer(bookingItemId, offerId, offerTitle); }
//****** public static string GetGDSCountry(long BookingId) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.GetGDSCountry(BookingId)); }
public static List <CLayer.BookingItem> GetIncompleteGDSBookings() { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.GetIncompleteGDSBookings()); }
//**Added by Rahul //**For saving Offline booking - offlinebookingtaxesGST public static long SaveOfflineBookingtaxdata(long BookId, long BItId, long TaxTitleId, decimal rate, decimal TaxAmountBItem) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.SaveOfflineBookingtaxdata(BookId, BItId, TaxTitleId, rate, TaxAmountBItem)); }
//*This is for getting details of offlinebooking //*Done by rahul on 06-02-2020 public static List <CLayer.BookingItem> GetAllOfflineDetails(long bookingId, bool IsAmedus = false) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.GetAllOfflineDetails(bookingId, IsAmedus)); }
public static void UpdateHotelGDSError(long bookingId, long AccommodationID, string GDSError) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); bi.UpdateGDSError(bookingId, AccommodationID, GDSError); }
//*--End---- public static List <CLayer.BookingItem> GetAllDetailsforoffline(long bookingId) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.GetAllDetailsforoffline(bookingId)); }
public static List <CLayer.BookingItem> GetAllBookingDetailsForApproval(long bookingId, bool IsAmedus = false) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.GetAllBookingDetailsForApproval(bookingId, IsAmedus)); }
public static List <CLayer.BookingItem> GetAllDetailsForPartialPay(long bookingId, bool IsAmadeus = false) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.GetAllDetailsForPartialPay(bookingId, IsAmadeus)); }
public static long GetCustomBookByItemId(long bookingItemId) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.GetCustomBookByItemId(bookingItemId)); }
public static long getofferId(long pPropertyId, long pAccommodationId) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.getofferId(pPropertyId, pAccommodationId)); }
public static void UpdateCheckInAndOut(long bookingId, DateTime checkIn, DateTime checkOut) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); bi.UpdateCheckInAndOut(bookingId, checkIn, checkOut); }
public static List <CLayer.BookingItem> GetAllUnderCart(long userId) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.GetAllUnderCart((int)CLayer.ObjectStatus.BookingStatus.Cart, userId)); }
public CLayer.ObjectStatus.StatusType GetStatus(long bookingItemId) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.GetStatus(bookingItemId)); }
public static decimal GetGrantTotalTaxbyBookingId(long BookingId) { DataLayer.BookingItem bi = new DataLayer.BookingItem(); return(bi.GetGrantTotalTaxbyBookingId(BookingId)); }