Example #1
0
 public SalaryCaclulationResultViewModel()
 {
     _salcalLogic                = new SalaryCalculationLogic();
     TheSalaryCalculation        = new SalaryCalculation();
     ThePeriod                   = new TimePeriod();
     TheEmployee                 = new Employee();
     EmployeeCollection          = new ObservableCollection <Employee>(_salcalLogic.GetEmployee());
     PeriodCollection            = new ObservableCollection <TimePeriod>(_salcalLogic.GetPC());
     SalaryCalculationCollection = new ObservableCollection <SalaryCalculation>();
 }
Example #2
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));
        }