From eaf9cdb71d6f9365c5e696ee0f45db8264b50db8 Mon Sep 17 00:00:00 2001 From: maksim Date: Sun, 1 Dec 2024 16:19:48 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=8D=D0=BA=D1=80=D0=B0=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=20=D0=BC=D0=B5=D0=BD=D0=B5=D0=B4=D0=B6=D0=B5=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20Salary=20=D0=B8=20Vacation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Employee/EmployeeManagementWindow.xaml.cs | 8 ++- .../Salary/SalaryManagementWindow.xaml | 47 ++++++++++++++++++ .../Salary/SalaryManagementWindow.xaml.cs | 36 ++++++++++++++ .../Vacation/VacationManagementWindow.xaml | 48 ++++++++++++++++++ .../Vacation/VacationManagementWindow.xaml.cs | 36 ++++++++++++++ .../Employee/ViewEmployeeWindow.xaml | 20 +++++++- .../Employee/ViewEmployeeWindow.xaml.cs | 49 ++++++++++++++++++- EmployeeManagmentView/MainWindow.xaml.cs | 8 ++- .../ViewPhysicalPersonsWindow.xaml | 1 + 9 files changed, 246 insertions(+), 7 deletions(-) create mode 100644 EmployeeManagmentView/Employee/Salary/SalaryManagementWindow.xaml create mode 100644 EmployeeManagmentView/Employee/Salary/SalaryManagementWindow.xaml.cs create mode 100644 EmployeeManagmentView/Employee/Vacation/VacationManagementWindow.xaml create mode 100644 EmployeeManagmentView/Employee/Vacation/VacationManagementWindow.xaml.cs diff --git a/EmployeeManagmentView/Employee/EmployeeManagementWindow.xaml.cs b/EmployeeManagmentView/Employee/EmployeeManagementWindow.xaml.cs index 379b655..ca0cb02 100644 --- a/EmployeeManagmentView/Employee/EmployeeManagementWindow.xaml.cs +++ b/EmployeeManagmentView/Employee/EmployeeManagementWindow.xaml.cs @@ -25,11 +25,15 @@ namespace EmployeeManagmentView.Employee private readonly IEmployeeLogic _employeeLogic; private readonly IPhisicalPersonLogic _phisicalPersonLogic; + private readonly ISalaryLogic _salaryLogic; + private readonly IVacationLogic _vacationLogic; - public EmployeeManagementWindow(IEmployeeLogic employeeLogic, IPhisicalPersonLogic phisicalPersonLogic) + public EmployeeManagementWindow(IEmployeeLogic employeeLogic, IPhisicalPersonLogic phisicalPersonLogic, ISalaryLogic salaryLogic, IVacationLogic vacationLogic) { _employeeLogic = employeeLogic; _phisicalPersonLogic = phisicalPersonLogic; + _salaryLogic = salaryLogic; + _vacationLogic = vacationLogic; InitializeComponent(); } @@ -89,7 +93,7 @@ namespace EmployeeManagmentView.Employee } } - var viewWindow = new ViewEmployeeWindow(_employeeLogic); + var viewWindow = new ViewEmployeeWindow(_employeeLogic, _salaryLogic, _vacationLogic); viewWindow.Show(); } } diff --git a/EmployeeManagmentView/Employee/Salary/SalaryManagementWindow.xaml b/EmployeeManagmentView/Employee/Salary/SalaryManagementWindow.xaml new file mode 100644 index 0000000..6e554c9 --- /dev/null +++ b/EmployeeManagmentView/Employee/Salary/SalaryManagementWindow.xaml @@ -0,0 +1,47 @@ + + + + + + + + +