Ejemplo n.º 1
0
 public ActionResult AddAccomodation(int Count)
 {
     Models.OfflinePropertyBookingModel model = new Models.OfflinePropertyBookingModel();
     model.Type  = 1;
     model.Count = Count;
     return(View("~/Areas/Admin/Views/BookingofflineRequestTransactions/BookingAccDetails.cshtml", model));
 }
Ejemplo n.º 2
0
 public ActionResult GetAccommodationList(long Pid, long?BId, long?CusId, string ChIn, string Chout)
 {
     Models.OfflinePropertyBookingModel model = new Models.OfflinePropertyBookingModel();
     model.Type       = 1;
     model.PropertyId = Pid;
     model.CustomerId = CusId.Value;
     model.BookingId  = BId.Value;
     model.CheckIn    = ChIn;
     model.CheckOut   = Chout;
     return(View("~/Areas/Admin/Views/BookingofflineRequestTransactions/_PropertyAccommodationList.cshtml", model));
 }
Ejemplo n.º 3
0
        public ActionResult BookingModify(long BookingId)
        {
            Models.OfflinePropertyBookingModel model = new Models.OfflinePropertyBookingModel();
            long PropertyId = BLayer.Bookings.GetPropertyId(BookingId);

            CLayer.Property Pdata   = BLayer.Property.Get(PropertyId);
            CLayer.B2B      supdata = BLayer.B2B.Get(Pdata.OwnerId);

            CLayer.Booking            offedit = BLayer.Bookings.GetBookDetailsByBookingId(BookingId);
            List <CLayer.BookingItem> Items   = BLayer.BookingItem.GetAllDetailsforoffline(BookingId);

            model.PropertyId        = PropertyId;
            model.PropertyName      = Pdata.Title;
            model.PropertyAddress   = Pdata.Address;
            model.PropertyCity      = Pdata.CityId;
            model.PropertyCityname  = Pdata.City;
            model.PropertyState     = Pdata.State;
            model.PropertyCountry   = Pdata.Country;
            model.PropertyContactNo = Pdata.Phone;
            model.PropertyEmail     = Pdata.Email;
            model.SupplierName      = supdata.Name;


            model.Accommodationid     = offedit.AccommodationId;
            model.Accommodationtypeid = offedit.AccommodationTypeId;
            model.AccommodatoinType   = Convert.ToInt16(offedit.AccommodationType);
            string ccc = BLayer.Accommodation.GetAccommodationTitle(offedit.AccommodationId);

            model.AccommodationTypeName = ccc;
            model.StayCategoryid        = offedit.StayCategoryId;
            model.CheckIn  = offedit.CheckIn.ToString("dd/MM/yyyy");
            model.CheckOut = offedit.CheckOut.ToString("dd/MM/yyyy");
            //model.NoOfNight = offedit.NoOfNight;
            //model.NoOfRooms = offedit.NoOfRooms;
            model.NoOfPaxAdult   = offedit.NoOfAdults;
            model.NoOfPaxChild   = offedit.NoOfChildren;
            model.Type           = 2;
            model.bookingitmList = Items;
            model.Count          = Items.Count;

            model.BookingId  = BookingId;
            model.CustomerId = BLayer.Bookings.GetBookedByUserId(BookingId);
            return(View("_BookingModify", model));
        }