Beispiel #1
0
 //*Added by rahul on 28/02/2020 for storing order number in offlinebookings
 public static void SetOfflinePaymentRefNo(long bookingId, CLayer.Role.Roles userRole, string orderNo = "")
 {
     DataLayer.Booking book = new DataLayer.Booking();
     if (orderNo == "")
     {
         orderNo = GetRefNo(bookingId, userRole);
     }
     book.SetOfflinePaymentRefNo(bookingId, orderNo);
 }
Beispiel #2
0
        //****END



        //Added by rahul for offlinebooking for getting address of booking user
        public static List <CLayer.Address> GetOfflineBookedForUser(long pBookingId)
        {
            DataLayer.Booking     book   = new DataLayer.Booking();
            List <CLayer.Address> result = book.GetOfflineBookedForUser(pBookingId);

            if (result.Count == 0)
            {
                //CLayer.Address adr =
                long userId = BLayer.Bookings.GetOfflineBookedByUserId(pBookingId);
                // result.Add(adr);
            }
            return(result);
        }
Beispiel #3
0
 public static void SetDateForAllItems(long bookingId, DateTime checkIn, DateTime checkOut)
 {
     DataLayer.Booking bok = new DataLayer.Booking();
     bok.SetDateForAllItems(bookingId, checkIn, checkOut);
 }
Beispiel #4
0
 public static string GetGDSBookingRejectionNote(long bookingId)
 {
     DataLayer.Booking bi = new DataLayer.Booking();
     return(bi.GetGDSBookingRejectionNote(bookingId));
 }
Beispiel #5
0
        //***END***


        public static string GetApproverNameByID(long ApproverID)
        {
            DataLayer.Booking bi = new DataLayer.Booking();
            return(bi.GetApproverNameByID(ApproverID));
        }
Beispiel #6
0
 //*Added by rahul on 07-02-2020
 //*This is for getting Offline Booked User Details
 public static CLayer.Booking GetOfflineBookingUserDetails(long bookingId)
 {
     DataLayer.Booking bi = new DataLayer.Booking();
     return(bi.GetBookingUserDetails(bookingId));
 }
Beispiel #7
0
 public static long GetNextApproverID(long bookingId)
 {
     DataLayer.Booking bi = new DataLayer.Booking();
     return(bi.GetNextApproverID(bookingId));
 }
Beispiel #8
0
 public static bool GetBookingApprovalStatus(long Approverid, long BookingId)
 {
     DataLayer.Booking b2b = new DataLayer.Booking();
     return(b2b.GetBookingApprovalStatus(Approverid, BookingId));
 }
Beispiel #9
0
 public static void UpdateStatus(long bookingId, int Status)
 {
     DataLayer.Booking task = new DataLayer.Booking();
     task.UpdateStatus(bookingId, Status);
 }
Beispiel #10
0
 public static void UpdatePropertyInventoryType(long bookingId, int PropertyInventoryType)
 {
     DataLayer.Booking task = new DataLayer.Booking();
     task.UpdatePropertyInventoryType(bookingId, PropertyInventoryType);
 }
Beispiel #11
0
 public static void UpdateBookingforUser(long UserId, long bookingId)
 {
     DataLayer.Booking task = new DataLayer.Booking();
     task.UpdateBookingforUser(UserId, bookingId);
 }
Beispiel #12
0
 public static CLayer.Booking GetDataForCreditBooking(long bookingId)
 {
     DataLayer.Booking bk = new DataLayer.Booking();
     return(bk.GetDataForCreditBooking(bookingId));
 }
Beispiel #13
0
 public static void UpdatePaymentOption(long PayOption, long bookingId)
 {
     DataLayer.Booking task = new DataLayer.Booking();
     task.UpdatePaymentOption(PayOption, bookingId);
 }
Beispiel #14
0
 public static void DeleteForUser(long BookingUserId, long userId, long bookingId)
 {
     DataLayer.Booking task = new DataLayer.Booking();
     task.DeleteForUser(BookingUserId, userId, bookingId);
 }
Beispiel #15
0
 public static long SaveBookingFor(CLayer.Booking data)
 {
     DataLayer.Booking bk = new DataLayer.Booking();
     return(bk.SaveBookingFor(data));
 }
Beispiel #16
0
 public static long BookingApprovalsSave(CLayer.BookingApprovals data)
 {
     DataLayer.Booking b2b = new DataLayer.Booking();
     return(b2b.BookingApprovalsSave(data));
 }
Beispiel #17
0
 public static long GetApprovalStatus(long BookingId, long ApproverID = 0)
 {
     DataLayer.Booking b2b = new DataLayer.Booking();
     return(b2b.GetApprovalStatus(BookingId, ApproverID));
 }
Beispiel #18
0
 public static int GetBookingType(long BookingId)
 {
     DataLayer.Booking book = new DataLayer.Booking();
     return(book.GetBookingType(BookingId));
 }
Beispiel #19
0
 //Added by rahul on 06-02-2020 for getting next approver id for Offline Bookings
 public static CLayer.Booking GetNextApproverDetailsForOfflineBooking(long bookingId)
 {
     DataLayer.Booking bi = new DataLayer.Booking();
     return(bi.GetNextApproverDetailsForOfflineBooking(bookingId));
 }
Beispiel #20
0
 public static int GetGDSbookingIsIGST(long BookingId)
 {
     DataLayer.Booking book = new DataLayer.Booking();
     return(book.GetGDSbookingIsIGST(BookingId));
 }
Beispiel #21
0
 public static List <CLayer.Booking> GetPreviousApproverDetails(long bookingId)
 {
     DataLayer.Booking bi = new DataLayer.Booking();
     return(bi.GetPreviousApproverDetails(bookingId));
 }
Beispiel #22
0
 public static CLayer.Booking GetSBEntityAddressDetailsByBookingId(long BookingID, int StateID)
 {
     DataLayer.Booking book = new DataLayer.Booking();
     return(book.GetSBEntityAddressDetailsByBookingId(BookingID, StateID));
 }
Beispiel #23
0
 //****Ends Here**
 public static void CopyGuestDetails(long oldBookingId, long newBookingId)
 {
     DataLayer.Booking bok = new DataLayer.Booking();
     bok.CopyGuestDetails(oldBookingId, newBookingId);
 }
Beispiel #24
0
 public static CLayer.Booking GetAllGDSCustomerDetails(long BookingId, int UserID)
 {
     DataLayer.Booking book = new DataLayer.Booking();
     return(book.GetAllGDSCustomerDetails(BookingId, UserID));
 }
Beispiel #25
0
 public static string GetCrediBookingApprover(long ApproverID)
 {
     DataLayer.Booking bi = new DataLayer.Booking();
     return(bi.GetCrediBookingApprover(ApproverID));
 }
Beispiel #26
0
 //*Added by rahul on 06-02-2020
 //*this is for getting login user id of offlinebookings
 public static string GetCurrentApproverNameForMailOfOfflineBooking(long BookingID)
 {
     DataLayer.Booking bok = new DataLayer.Booking();
     return(bok.GetCurrentApproverNameForMailOfOfflineBooking(BookingID));
 }
Beispiel #27
0
 public static string GetGstState(string state)
 {
     DataLayer.Booking bi = new DataLayer.Booking();
     return(bi.GetGstState(state));
 }
Beispiel #28
0
 public static CLayer.Booking GetAllGDSpropertyDetails(long BookingId)
 {
     DataLayer.Booking book = new DataLayer.Booking();
     return(book.GetAllGDSpropertyDetails(BookingId));
 }
Beispiel #29
0
 public static long GetBookedByUserId(long bookingId)
 {
     DataLayer.Booking bok = new DataLayer.Booking();
     return(bok.GetBookedByUserId(bookingId));
 }
Beispiel #30
0
 public static List <CLayer.BookingApprovals> GetAllCorporateBookingApprovals(long corporateId)
 {
     DataLayer.Booking b2b = new DataLayer.Booking();
     return(b2b.GetAllCorporateBookingApprovals(corporateId));
 }