Exemplo n.º 1
0
        private ExPropsHotel ReadFromDBWithLanguage(string language)
        {
            var prop = new ExPropsHotel();

            prop.CancellationPolicy         = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.CancellationPolicy, language).PropertyValue;
            prop.CheckInPolicy              = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.CheckInPolicy, language).PropertyValue;
            prop.CheckOutPolicy             = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.CheckOutPolicy, language).PropertyValue;
            prop.ChildAndExtraBedRoomPolicy = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.ChildAndExtraBedRoomPolicy, language).PropertyValue;
            prop.ReservationPolicy          = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.ReservationPolicy, language).PropertyValue;
            return(prop);
        }
Exemplo n.º 2
0
 public void ReadFromDB()
 {
     this.ExPropsHotel_EN      = ReadFromDBWithLanguage(Languages.EN);
     this.ExPropsHotel_VN      = ReadFromDBWithLanguage(Languages.VN);
     this.IsAlarmService       = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.AlarmService).PropertyValue.ToBool();
     this.IsExchangeCurrency   = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.ExchangeCurrency).PropertyValue.ToBool();
     this.IsFrontdesk24Hr      = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.Frontdesk24Hr).PropertyValue.ToBool();
     this.IsLifts              = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.Lifts).PropertyValue.ToBool();
     this.IsSpecialHelpService = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.SpecialHelpService).PropertyValue.ToBool();
     this.IsTicketingService   = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.TicketingService).PropertyValue.ToBool();
     this.IsTourDesk           = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.TourDesk).PropertyValue.ToBool();
     this.IsAirConditioning    = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.AirConditioning).PropertyValue.ToBool();
     this.IsCableTelevision    = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.CableTelevision).PropertyValue.ToBool();
     this.IsFan                      = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.Fan).PropertyValue.ToBool();
     this.IsFreewater                = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.Freewater).PropertyValue.ToBool();
     this.IsHairdryer                = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.Hairdryer).PropertyValue.ToBool();
     this.IsIron                     = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.Iron).PropertyValue.ToBool();
     this.IsNonSmokingRoom           = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.NonSmokingRoom).PropertyValue.ToBool();
     this.IsSafe                     = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.Safe).PropertyValue.ToBool();
     this.IsShoeShineTool            = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.ShoeShineTool).PropertyValue.ToBool();
     this.IsSlippers                 = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.Slippers).PropertyValue.ToBool();
     this.IsSmokingRoom              = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.SmokingRoom).PropertyValue.ToBool();
     this.IsTeaCoffee                = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.TeaCoffee).PropertyValue.ToBool();
     this.IsTelephone                = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.Telephone).PropertyValue.ToBool();
     this.IsTelevision               = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.Television).PropertyValue.ToBool();
     this.IsToiletAndBathroom        = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.ToiletAndBathroom).PropertyValue.ToBool();
     this.IsTowel                    = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.Towel).PropertyValue.ToBool();
     this.IsBarLounge                = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.BarLounge).PropertyValue.ToBool();
     this.IsBBQFacilities            = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.BBQFacilities).PropertyValue.ToBool();
     this.IsBreakfast                = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.Breakfast).PropertyValue.ToBool();
     this.IsMinibar                  = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.Minibar).PropertyValue.ToBool();
     this.IsRestaurant               = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.Restaurant).PropertyValue.ToBool();
     this.IsBusinessCenter           = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.BusinessCenter).PropertyValue.ToBool();
     this.IsConferenceFacilitiesRoom = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.ConferenceFacilitiesRoom).PropertyValue.ToBool();
     this.IsPhotocopy                = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.Photocopy).PropertyValue.ToBool();
     this.IsDryCleaningFacilities    = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.DryCleaningFacilities).PropertyValue.ToBool();
     this.IsLaundryService           = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.LaundryService).PropertyValue.ToBool();
     this.IsGolfCourt                = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.GolfCourt).PropertyValue.ToBool();
     this.IsGymFitnessCenter         = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.GymFitnessCenter).PropertyValue.ToBool();
     this.IsPool                     = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.Pool).PropertyValue.ToBool();
     this.IsSpaSauna                 = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.SpaSauna).PropertyValue.ToBool();
     this.IsTennisCourt              = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.TennisCourt).PropertyValue.ToBool();
     this.IsWifiAtFO                 = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.WifiAtFO).PropertyValue.ToBool();
     this.IsWifiAtRoom               = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.WifiAtRoom).PropertyValue.ToBool();
     this.IsCarParking               = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.CarParking).PropertyValue.ToBool();
     this.IsCarRental                = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.CarRental).PropertyValue.ToBool();
     this.IsFreeParking              = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.FreeParking).PropertyValue.ToBool();
     this.IsParking                  = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.Parking).PropertyValue.ToBool();
     this.IsPickOffDropOff           = ReadBusinessEntityDB(this.Id, HotelPropertyKeyName.PickOffDropOff).PropertyValue.ToBool();
 }
Exemplo n.º 3
0
 public Hotel()
 {
     this.IsHotel    = true;
     ExPropsHotel_VN = new ExPropsHotel();
     ExPropsHotel_EN = new ExPropsHotel();
 }