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"/>
+ Background="#004890" Foreground="#FFFFFF"
+ Click="OpenAddSalaryWindow"/>
+ Background="#004890" Foreground="#FFFFFF"
+ Click="OpenEditSalaryWindow"/>
+ Background="#004890" Foreground="#FFFFFF"
+ Click="OpenViewSalaryWindow"/>
diff --git a/EmployeeManagmentView/Employee/Salary/SalaryManagementWindow.xaml.cs b/EmployeeManagmentView/Employee/Salary/SalaryManagementWindow.xaml.cs
index ae65796..2d3f6ff 100644
--- a/EmployeeManagmentView/Employee/Salary/SalaryManagementWindow.xaml.cs
+++ b/EmployeeManagmentView/Employee/Salary/SalaryManagementWindow.xaml.cs
@@ -1,5 +1,7 @@
-using EmployeeManagmentContracts.BusinessLogicContracts;
+using EmployeeManagmentBusinessLogic.BusinessLogic;
+using EmployeeManagmentContracts.BusinessLogicContracts;
using EmployeeManagmentContracts.ViewModels;
+using EmployeeManagmentView.Employee.Vacation;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -32,5 +34,65 @@ namespace EmployeeManagmentView.Employee.Salary
InitializeComponent();
}
+
+ private void OpenAddSalaryWindow(object sender, RoutedEventArgs e)
+ {
+ foreach (Window window in Application.Current.Windows)
+ {
+ if (window is AddSalaryWindow existingWindow)
+ {
+ existingWindow.Activate();
+ return;
+ }
+ }
+
+ var addWindow = new AddSalaryWindow(_salaryLogic);
+ addWindow.Show();
+ }
+
+ private void OpenDeleteSalaryWindow(object sender, RoutedEventArgs e)
+ {
+ foreach (Window window in Application.Current.Windows)
+ {
+ if (window is DeleteSalaryWindow existingWindow)
+ {
+ existingWindow.Activate();
+ return;
+ }
+ }
+
+ var deleteWindow = new DeleteSalaryWindow(_salaryLogic);
+ deleteWindow.Show();
+ }
+
+ private void OpenEditSalaryWindow(object sender, RoutedEventArgs e)
+ {
+ foreach (Window window in Application.Current.Windows)
+ {
+ if (window is EditSalaryWindow existingWindow)
+ {
+ existingWindow.Activate();
+ return;
+ }
+ }
+
+ var editWindow = new EditSalaryWindow(_salaryLogic);
+ editWindow.Show();
+ }
+
+ private void OpenViewSalaryWindow(object sender, RoutedEventArgs e)
+ {
+ foreach (Window window in Application.Current.Windows)
+ {
+ if (window is ViewSalaryWindow existingWindow)
+ {
+ existingWindow.Activate();
+ return;
+ }
+ }
+
+ var viewWindow = new ViewSalaryWindow(_salaryLogic);
+ viewWindow.Show();
+ }
}
}
diff --git a/EmployeeManagmentView/Employee/Salary/ViewSalaryWindow.xaml b/EmployeeManagmentView/Employee/Salary/ViewSalaryWindow.xaml
new file mode 100644
index 0000000..7b37d0f
--- /dev/null
+++ b/EmployeeManagmentView/Employee/Salary/ViewSalaryWindow.xaml
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/EmployeeManagmentView/Employee/Salary/ViewSalaryWindow.xaml.cs b/EmployeeManagmentView/Employee/Salary/ViewSalaryWindow.xaml.cs
new file mode 100644
index 0000000..634d50f
--- /dev/null
+++ b/EmployeeManagmentView/Employee/Salary/ViewSalaryWindow.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
+{
+ ///
+ /// Логика взаимодействия для ViewSalaryWindow.xaml
+ ///
+ public partial class ViewSalaryWindow : Window
+ {
+
+ private readonly ISalaryLogic _salaryLogic;
+
+ public ViewSalaryWindow(ISalaryLogic salaryLogic)
+ {
+ _salaryLogic = salaryLogic;
+ InitializeComponent();
+ }
+ }
+}
diff --git a/EmployeeManagmentView/Employee/Vacation/AddVacationWindow.xaml b/EmployeeManagmentView/Employee/Vacation/AddVacationWindow.xaml
new file mode 100644
index 0000000..2b8fca3
--- /dev/null
+++ b/EmployeeManagmentView/Employee/Vacation/AddVacationWindow.xaml
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/EmployeeManagmentView/Employee/Vacation/AddVacationWindow.xaml.cs b/EmployeeManagmentView/Employee/Vacation/AddVacationWindow.xaml.cs
new file mode 100644
index 0000000..670c38f
--- /dev/null
+++ b/EmployeeManagmentView/Employee/Vacation/AddVacationWindow.xaml.cs
@@ -0,0 +1,33 @@
+using EmployeeManagmentBusinessLogic.BusinessLogic;
+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.Vacation
+{
+ ///
+ /// Логика взаимодействия для AddVacationWindow.xaml
+ ///
+ public partial class AddVacationWindow : Window
+ {
+
+ private readonly IVacationLogic _vacationLogic;
+
+ public AddVacationWindow(IVacationLogic vacationLogic)
+ {
+ _vacationLogic = vacationLogic;
+ InitializeComponent();
+ }
+ }
+}
diff --git a/EmployeeManagmentView/Employee/Vacation/DeleteVacationWindow.xaml b/EmployeeManagmentView/Employee/Vacation/DeleteVacationWindow.xaml
new file mode 100644
index 0000000..c155aa2
--- /dev/null
+++ b/EmployeeManagmentView/Employee/Vacation/DeleteVacationWindow.xaml
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/EmployeeManagmentView/Employee/Vacation/DeleteVacationWindow.xaml.cs b/EmployeeManagmentView/Employee/Vacation/DeleteVacationWindow.xaml.cs
new file mode 100644
index 0000000..470578c
--- /dev/null
+++ b/EmployeeManagmentView/Employee/Vacation/DeleteVacationWindow.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.Vacation
+{
+ ///
+ /// Логика взаимодействия для DeleteVacationWindow.xaml
+ ///
+ public partial class DeleteVacationWindow : Window
+ {
+
+ private readonly IVacationLogic _vacationLogic;
+
+ public DeleteVacationWindow(IVacationLogic vacationLogic)
+ {
+ _vacationLogic = vacationLogic;
+ InitializeComponent();
+ }
+ }
+}
diff --git a/EmployeeManagmentView/Employee/Vacation/EditVacationWindow.xaml b/EmployeeManagmentView/Employee/Vacation/EditVacationWindow.xaml
new file mode 100644
index 0000000..3083752
--- /dev/null
+++ b/EmployeeManagmentView/Employee/Vacation/EditVacationWindow.xaml
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/EmployeeManagmentView/Employee/Vacation/EditVacationWindow.xaml.cs b/EmployeeManagmentView/Employee/Vacation/EditVacationWindow.xaml.cs
new file mode 100644
index 0000000..34ab555
--- /dev/null
+++ b/EmployeeManagmentView/Employee/Vacation/EditVacationWindow.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.Vacation
+{
+ ///
+ /// Логика взаимодействия для EditVacationWindow.xaml
+ ///
+ public partial class EditVacationWindow : Window
+ {
+
+ private readonly IVacationLogic _vacationLogic;
+
+ public EditVacationWindow(IVacationLogic vacationLogic)
+ {
+ _vacationLogic = vacationLogic;
+ InitializeComponent();
+ }
+ }
+}
diff --git a/EmployeeManagmentView/Employee/Vacation/VacationManagementWindow.xaml b/EmployeeManagmentView/Employee/Vacation/VacationManagementWindow.xaml
index a6af8c5..5700145 100644
--- a/EmployeeManagmentView/Employee/Vacation/VacationManagementWindow.xaml
+++ b/EmployeeManagmentView/Employee/Vacation/VacationManagementWindow.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="OpenDeleteVacationWindow"/>
+ Background="#004890" Foreground="#FFFFFF"
+ Click="OpenAddVacationWindow"/>
+ Background="#004890" Foreground="#FFFFFF"
+ Click="OpenEditVacationWindow"/>
+ Background="#004890" Foreground="#FFFFFF"
+ Click="OpenViewVacationWindow"/>
diff --git a/EmployeeManagmentView/Employee/Vacation/VacationManagementWindow.xaml.cs b/EmployeeManagmentView/Employee/Vacation/VacationManagementWindow.xaml.cs
index 7603ddd..83d7ce2 100644
--- a/EmployeeManagmentView/Employee/Vacation/VacationManagementWindow.xaml.cs
+++ b/EmployeeManagmentView/Employee/Vacation/VacationManagementWindow.xaml.cs
@@ -32,5 +32,65 @@ namespace EmployeeManagmentView.Employee.Vacation
InitializeComponent();
}
+
+ private void OpenAddVacationWindow(object sender, RoutedEventArgs e)
+ {
+ foreach (Window window in Application.Current.Windows)
+ {
+ if (window is AddVacationWindow existingWindow)
+ {
+ existingWindow.Activate();
+ return;
+ }
+ }
+
+ var addWindow = new AddVacationWindow(_vacationLogic);
+ addWindow.Show();
+ }
+
+ private void OpenDeleteVacationWindow(object sender, RoutedEventArgs e)
+ {
+ foreach (Window window in Application.Current.Windows)
+ {
+ if (window is DeleteVacationWindow existingWindow)
+ {
+ existingWindow.Activate();
+ return;
+ }
+ }
+
+ var deleteWindow = new DeleteVacationWindow(_vacationLogic);
+ deleteWindow.Show();
+ }
+
+ private void OpenEditVacationWindow(object sender, RoutedEventArgs e)
+ {
+ foreach (Window window in Application.Current.Windows)
+ {
+ if (window is EditVacationWindow existingWindow)
+ {
+ existingWindow.Activate();
+ return;
+ }
+ }
+
+ var editWindow = new EditVacationWindow(_vacationLogic);
+ editWindow.Show();
+ }
+
+ private void OpenViewVacationWindow(object sender, RoutedEventArgs e)
+ {
+ foreach (Window window in Application.Current.Windows)
+ {
+ if (window is ViewVacationWindow existingWindow)
+ {
+ existingWindow.Activate();
+ return;
+ }
+ }
+
+ var viewWindow = new ViewVacationWindow(_vacationLogic);
+ viewWindow.Show();
+ }
}
}
diff --git a/EmployeeManagmentView/Employee/Vacation/ViewVacationWindow.xaml b/EmployeeManagmentView/Employee/Vacation/ViewVacationWindow.xaml
new file mode 100644
index 0000000..4aa0222
--- /dev/null
+++ b/EmployeeManagmentView/Employee/Vacation/ViewVacationWindow.xaml
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/EmployeeManagmentView/Employee/Vacation/ViewVacationWindow.xaml.cs b/EmployeeManagmentView/Employee/Vacation/ViewVacationWindow.xaml.cs
new file mode 100644
index 0000000..4e57c32
--- /dev/null
+++ b/EmployeeManagmentView/Employee/Vacation/ViewVacationWindow.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.Vacation
+{
+ ///
+ /// Логика взаимодействия для ViewVacationWindow.xaml
+ ///
+ public partial class ViewVacationWindow : Window
+ {
+
+ private readonly IVacationLogic _vacationLogic;
+
+ public ViewVacationWindow(IVacationLogic vacationLogic)
+ {
+ _vacationLogic = vacationLogic;
+ InitializeComponent();
+ }
+ }
+}