Exemplo n.º 1
0
        public LoginViewModel()
        {
            _ServiceProxy = new DataAccess();
            Credentials   = new User();

            OneCommand   = new RelayCommand(PassOne);
            TwoCommand   = new RelayCommand(PassTwo);
            ThreeCommand = new RelayCommand(PassThree);
            FourCommand  = new RelayCommand(PassFour);
            FiveCommand  = new RelayCommand(PassFive);
            SixCommand   = new RelayCommand(PassSix);
            SevenCommand = new RelayCommand(PassSeven);
            EightCommand = new RelayCommand(PassEight);
            NineCommand  = new RelayCommand(PassNine);
            ZeroCommand  = new RelayCommand(PassZero);
            EnterCommand = new RelayCommand(ExecuteVerifyLogin);
            Users        = new ObservableCollection <User>();
            GetUsers();
            SelectionChangedCommand = new RelayCommand(ExecuteSelectionChanged);
            ClockedIn = new ObservableCollection <User_ClockInStatus>();
            GetClockedInPersonel();

            GetClockedInCommand  = new RelayCommand(GetClockedInPersonel);
            GetClockedOutCommand = new RelayCommand(GetClockedOutPersonel);
            SelectedClockedIn    = new User_ClockInStatus();
            ClockinStaffCommand  = new RelayCommand(ExecuteClockinStaffVerification);
        }
Exemplo n.º 2
0
        public void UpdateClockInStatus(User_ClockInStatus s)
        {
            UserClockinStatu st = new UserClockinStatu();

            st.Status   = s.Status;
            st.UserId   = s.UserId;
            st.StatusId = s.StatusId;
            _Context.Entry(st).State = System.Data.Entity.EntityState.Modified;
            _Context.SaveChanges();
        }
Exemplo n.º 3
0
        /// <summary>
        /// Constructor
        /// </summary>
        public LoginStaffViewModel()
        {
            _ServiceProxy = new DataAccess();

            OneCommand   = new RelayCommand(PassOne);
            TwoCommand   = new RelayCommand(PassTwo);
            ThreeCommand = new RelayCommand(PassThree);
            FourCommand  = new RelayCommand(PassFour);
            FiveCommand  = new RelayCommand(PassFive);
            SixCommand   = new RelayCommand(PassSix);
            SevenCommand = new RelayCommand(PassSeven);
            EightCommand = new RelayCommand(PassEight);
            NineCommand  = new RelayCommand(PassNine);
            ZeroCommand  = new RelayCommand(PassZero);

            ClockedInStaff = new ObservableCollection <User_ClockInStatus>();
            SelectedClockedInStaffMember = new User_ClockInStatus();
            GetClockedInStaff();
            EnterCommand            = new RelayCommand(ExecuteVerifyLogin);
            SelectionChangedCommand = new RelayCommand(ExecuteSelectionChanged);
            ClockInCommand          = new RelayCommand(ExecuteClockIn);
            CancelClockInCommand    = new RelayCommand(ExecuteCancelClockIn);
        }