From 1cca9432eb36bd65eb8c02eb0e2810a9e2ebb0c8 Mon Sep 17 00:00:00 2001 From: maksim Date: Sun, 1 Dec 2024 16:34:36 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BA=D1=83=D1=87=D0=B0=20=D0=BE=D0=BA=D0=BE=D0=BD=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20CRUD=20=D0=B7=D0=B0=D1=80=D0=BF=D0=BB=D0=B0?= =?UTF-8?q?=D1=82=20=D0=B8=20=D0=BE=D1=82=D0=BF=D1=83=D1=81=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Employee/Salary/AddSalaryWindow.xaml | 12 ++++ .../Employee/Salary/AddSalaryWindow.xaml.cs | 33 ++++++++++ .../Employee/Salary/DeleteSalaryWindow.xaml | 12 ++++ .../Salary/DeleteSalaryWindow.xaml.cs | 32 ++++++++++ .../Employee/Salary/EditSalaryWindow.xaml | 12 ++++ .../Employee/Salary/EditSalaryWindow.xaml.cs | 32 ++++++++++ .../Salary/SalaryManagementWindow.xaml | 12 ++-- .../Salary/SalaryManagementWindow.xaml.cs | 64 ++++++++++++++++++- .../Employee/Salary/ViewSalaryWindow.xaml | 12 ++++ .../Employee/Salary/ViewSalaryWindow.xaml.cs | 32 ++++++++++ .../Employee/Vacation/AddVacationWindow.xaml | 12 ++++ .../Vacation/AddVacationWindow.xaml.cs | 33 ++++++++++ .../Vacation/DeleteVacationWindow.xaml | 12 ++++ .../Vacation/DeleteVacationWindow.xaml.cs | 32 ++++++++++ .../Employee/Vacation/EditVacationWindow.xaml | 12 ++++ .../Vacation/EditVacationWindow.xaml.cs | 32 ++++++++++ .../Vacation/VacationManagementWindow.xaml | 12 ++-- .../Vacation/VacationManagementWindow.xaml.cs | 60 +++++++++++++++++ .../Employee/Vacation/ViewVacationWindow.xaml | 12 ++++ .../Vacation/ViewVacationWindow.xaml.cs | 32 ++++++++++ 20 files changed, 493 insertions(+), 9 deletions(-) create mode 100644 EmployeeManagmentView/Employee/Salary/AddSalaryWindow.xaml create mode 100644 EmployeeManagmentView/Employee/Salary/AddSalaryWindow.xaml.cs create mode 100644 EmployeeManagmentView/Employee/Salary/DeleteSalaryWindow.xaml create mode 100644 EmployeeManagmentView/Employee/Salary/DeleteSalaryWindow.xaml.cs create mode 100644 EmployeeManagmentView/Employee/Salary/EditSalaryWindow.xaml create mode 100644 EmployeeManagmentView/Employee/Salary/EditSalaryWindow.xaml.cs create mode 100644 EmployeeManagmentView/Employee/Salary/ViewSalaryWindow.xaml create mode 100644 EmployeeManagmentView/Employee/Salary/ViewSalaryWindow.xaml.cs create mode 100644 EmployeeManagmentView/Employee/Vacation/AddVacationWindow.xaml create mode 100644 EmployeeManagmentView/Employee/Vacation/AddVacationWindow.xaml.cs create mode 100644 EmployeeManagmentView/Employee/Vacation/DeleteVacationWindow.xaml create mode 100644 EmployeeManagmentView/Employee/Vacation/DeleteVacationWindow.xaml.cs create mode 100644 EmployeeManagmentView/Employee/Vacation/EditVacationWindow.xaml create mode 100644 EmployeeManagmentView/Employee/Vacation/EditVacationWindow.xaml.cs create mode 100644 EmployeeManagmentView/Employee/Vacation/ViewVacationWindow.xaml create mode 100644 EmployeeManagmentView/Employee/Vacation/ViewVacationWindow.xaml.cs diff --git a/EmployeeManagmentView/Employee/Salary/AddSalaryWindow.xaml b/EmployeeManagmentView/Employee/Salary/AddSalaryWindow.xaml new file mode 100644 index 0000000..980b0e1 --- /dev/null +++ b/EmployeeManagmentView/Employee/Salary/AddSalaryWindow.xaml @@ -0,0 +1,12 @@ + + + + + diff --git a/EmployeeManagmentView/Employee/Salary/AddSalaryWindow.xaml.cs b/EmployeeManagmentView/Employee/Salary/AddSalaryWindow.xaml.cs new file mode 100644 index 0000000..9423575 --- /dev/null +++ b/EmployeeManagmentView/Employee/Salary/AddSalaryWindow.xaml.cs @@ -0,0 +1,33 @@ +using EmployeeManagmentContracts.BusinessLogicContracts; +using EmployeeManagmentContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Shapes; + +namespace EmployeeManagmentView.Employee.Salary +{ + /// + /// Логика взаимодействия для AddSalaryWindow.xaml + /// + public partial class AddSalaryWindow : Window + { + + private readonly ISalaryLogic _salaryLogic; + + public AddSalaryWindow(ISalaryLogic salaryLogic) + { + _salaryLogic = salaryLogic; + InitializeComponent(); + } + } +} diff --git a/EmployeeManagmentView/Employee/Salary/DeleteSalaryWindow.xaml b/EmployeeManagmentView/Employee/Salary/DeleteSalaryWindow.xaml new file mode 100644 index 0000000..2cfd14a --- /dev/null +++ b/EmployeeManagmentView/Employee/Salary/DeleteSalaryWindow.xaml @@ -0,0 +1,12 @@ + + + + + diff --git a/EmployeeManagmentView/Employee/Salary/DeleteSalaryWindow.xaml.cs b/EmployeeManagmentView/Employee/Salary/DeleteSalaryWindow.xaml.cs new file mode 100644 index 0000000..8d6ae44 --- /dev/null +++ b/EmployeeManagmentView/Employee/Salary/DeleteSalaryWindow.xaml.cs @@ -0,0 +1,32 @@ +using EmployeeManagmentContracts.BusinessLogicContracts; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Shapes; + +namespace EmployeeManagmentView.Employee.Salary +{ + /// + /// Логика взаимодействия для DeleteSalaryWindow.xaml + /// + public partial class DeleteSalaryWindow : Window + { + + private readonly ISalaryLogic _salaryLogic; + + public DeleteSalaryWindow(ISalaryLogic salaryLogic) + { + _salaryLogic = salaryLogic; + InitializeComponent(); + } + } +} diff --git a/EmployeeManagmentView/Employee/Salary/EditSalaryWindow.xaml b/EmployeeManagmentView/Employee/Salary/EditSalaryWindow.xaml new file mode 100644 index 0000000..aafbb8e --- /dev/null +++ b/EmployeeManagmentView/Employee/Salary/EditSalaryWindow.xaml @@ -0,0 +1,12 @@ + + + + + diff --git a/EmployeeManagmentView/Employee/Salary/EditSalaryWindow.xaml.cs b/EmployeeManagmentView/Employee/Salary/EditSalaryWindow.xaml.cs new file mode 100644 index 0000000..25a4fba --- /dev/null +++ b/EmployeeManagmentView/Employee/Salary/EditSalaryWindow.xaml.cs @@ -0,0 +1,32 @@ +using EmployeeManagmentContracts.BusinessLogicContracts; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Shapes; + +namespace EmployeeManagmentView.Employee.Salary +{ + /// + /// Логика взаимодействия для EditSalaryWindow.xaml + /// + public partial class EditSalaryWindow : Window + { + + private readonly ISalaryLogic _salaryLogic; + + public EditSalaryWindow(ISalaryLogic salaryLogic) + { + _salaryLogic = salaryLogic; + InitializeComponent(); + } + } +} diff --git a/EmployeeManagmentView/Employee/Salary/SalaryManagementWindow.xaml b/EmployeeManagmentView/Employee/Salary/SalaryManagementWindow.xaml index 6e554c9..24af958 100644 --- a/EmployeeManagmentView/Employee/Salary/SalaryManagementWindow.xaml +++ b/EmployeeManagmentView/Employee/Salary/SalaryManagementWindow.xaml @@ -21,27 +21,31 @@ Width="250" Height="40" Margin="0,0,0,10" Background="#004890" Foreground="#FFFFFF" - Style="{StaticResource RoundedButtonStyle}"/> + Style="{StaticResource RoundedButtonStyle}" + Click="OpenDeleteSalaryWindow"/>