public CheckInRoom()
 {
     dbInfo          = BLL.ServiceModules.IoC.Get <IDbInfo>();
     dbCrud          = BLL.ServiceModules.IoC.Get <IDbCrud>();
     completeCheckIn = IoC.Get <ICompleteCheckIn>();
     Clear();
 }
Beispiel #2
0
        public VMAdmit()
        {
            navigation      = IoC.Get <INavigation>();
            completeCheckIn = IoC.Get <ICompleteCheckIn>();
            checkInGuest    = IoC.Get <ICheckInGuest>();
            checkInRoom     = IoC.Get <ICheckInRoom>();
            employee        = IoC.Get <IEmployee>();

            navigation.CurrentPageChanged += (sender, e) => OnPropertyChanged(e.PropertyName);
            navigation.VisibilityChanged  += (sender, e) => OnPropertyChanged(e.PropertyName);
            checkInGuest.GuestInfoChanged += (sender, e) => OnPropertyChanged(e.PropertyName);
            employee.ListChanged          += (sender, e) => OnPropertyChanged(e.PropertyName);
            employee.UserChanged          += (sender, e) => OnPropertyChanged(e.PropertyName);

            Visibilities  = new List <Visibility>();
            GuestsHeaders = new List <string>();

            for (int i = 0; i < completeCheckIn.Guests.Count; i++)
            {
                Visibilities.Add(Visibility.Visible);
                GuestsHeaders.Add(completeCheckIn.Guests[i].Surname + " " + completeCheckIn.Guests[i].GuestName[0] + ". " + completeCheckIn.Guests[i].Patronymic[0] + ".");
            }
            for (int i = completeCheckIn.Guests.Count; i < 4; i++)
            {
                Visibilities.Add(Visibility.Collapsed);
                GuestsHeaders.Add(" ");
            }
        }
 public VMCheckInRoomPage()
 {
     navigation                     = IoC.Get <INavigation>();
     checkInRoom                    = IoC.Get <ICheckInRoom>();
     checkInGuest                   = IoC.Get <ICheckInGuest>();
     completeCheckIn                = IoC.Get <ICompleteCheckIn>();
     checkInRoom.RoomInfoChanged   += (sender, e) => OnPropertyChanged(e.PropertyName);
     checkInRoom.RoomNumberChanged += (sender, e) => OnPropertyChanged(e.PropertyName);
     navigation.CurrentPageChanged += (sender, e) => OnPropertyChanged(e.PropertyName);
 }
Beispiel #4
0
 public EmployeeProperties()
 {
     dbInfo          = BLL.ServiceModules.IoC.Get <IDbInfo>();
     checkInService  = BLL.ServiceModules.IoC.Get <ICheckInService>();
     completeCheckIn = IoC.Get <ICompleteCheckIn>();
     checkInRoom     = IoC.Get <ICheckInRoom>();
     checkInGuest    = IoC.Get <ICheckInGuest>();
     Periods         = new List <Period>();
     Periods.Add(new Period(0, "Текущие заселения"));
     Periods.Add(new Period(1, "Предстоящие заселения"));
     Periods.Add(new Period(-1, "Прошедшие заселения"));
     CurrentPeriodIndex = 0;
 }
Beispiel #5
0
 public CheckInGuest()
 {
     completeCheckIn = IoC.Get <ICompleteCheckIn>();
     dbInfo          = BLL.ServiceModules.IoC.Get <IDbInfo>();
     Clear();
 }