Exemplo n.º 1
0
        public SalaryCalculationViewModel()
        {
            _dbContext = new SalDbContext();

            _sallogic                   = new SalaryCalculationLogic();
            TheEmployee                 = new Employee();
            ThePeriod                   = new TimePeriod();
            TheSalaryCalculation        = new SalaryCalculation();
            EmployeeCollection          = new ObservableCollection <Employee>(_sallogic.GetEmployee());
            PeriodCollection            = new ObservableCollection <TimePeriod>(_sallogic.GetPC());
            SalaryCalculationCollection = new ObservableCollection <SalaryCalculation>(_sallogic.GetSalaryWithPar(ThePeriod, NavigationYear));
        }
Exemplo n.º 2
0
 private void RefeshCollection()
 {
     SalaryCalculationCollection = new ObservableCollection <SalaryCalculation>(_sallogic.GetSalaryWithPar(ThePeriod, NavigationYear));
 }
Exemplo n.º 3
0
 private void SetDataGridProperties()
 {
     if (SetDateSearch == true)
     {
         SalaryCalculationCollection    = new ObservableCollection <SalaryCalculation>(_salcalLogic.GetSalaryWithPar(ThePeriod, NavigationYear));
         ShowSalaryCollectionCollection = true;
     }
     else if (SetEmployeeSearch == true)
     {
         SalaryCalculationCollection    = new ObservableCollection <SalaryCalculation>(_salcalLogic.GetSalarybyName(TheEmployee));
         ShowSalaryCollectionCollection = true;
     }
     else if (SetSalrySearch == true)
     {
         SalaryCalculationCollection    = new ObservableCollection <SalaryCalculation>(_salcalLogic.GetSalarybySalary(TheSalary));
         ShowSalaryCollectionCollection = true;
     }
 }