убраны смайлы и более простой интерфейс
parent
8a542dab9a
commit
8feb1afc41
|
|
@ -51,7 +51,7 @@ public static class DatabaseService
|
|||
RoleId = role
|
||||
};
|
||||
|
||||
// Populate UserSession
|
||||
|
||||
UserSession.UserId = user.Id;
|
||||
UserSession.UserName = user.Login;
|
||||
UserSession.Role = role.Name;
|
||||
|
|
|
|||
|
|
@ -10,33 +10,28 @@
|
|||
Background="#0f172a">
|
||||
|
||||
<Grid ColumnDefinitions="240, *">
|
||||
<!-- Sidebar Navigation -->
|
||||
<Border Grid.Column="0" Background="#1e293b" BorderBrush="#334155" BorderThickness="0,0,1,0" Padding="15">
|
||||
<Grid RowDefinitions="Auto, *, Auto">
|
||||
<!-- Header -->
|
||||
<StackPanel Grid.Row="0" Margin="0,10,0,30">
|
||||
<TextBlock Text="БИБЛИОТЕКА" Foreground="#38bdf8" FontSize="20" FontWeight="Bold" HorizontalAlignment="Center" LetterSpacing="1"/>
|
||||
<TextBlock Text="Панель администратора" Foreground="#94a3b8" FontSize="11" HorizontalAlignment="Center"/>
|
||||
<TextBlock Name="TxtAdminName" Foreground="#cbd5e1" FontSize="12" FontWeight="SemiBold" HorizontalAlignment="Center" Margin="0,10,0,0"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Navigation Buttons -->
|
||||
|
||||
<StackPanel Grid.Row="1">
|
||||
<Button Name="BtnTabBooks" Content="📚 Книги" Click="BtnTab_Click" Tag="Books" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabAuthors" Content="✍️ Авторы" Click="BtnTab_Click" Tag="Authors" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabCopies" Content="🔢 Экземпляры" Click="BtnTab_Click" Tag="Copies" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabUsers" Content="👥 Пользователи" Click="BtnTab_Click" Tag="Users" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabReports" Content="📊 Отчеты" Click="BtnTab_Click" Tag="Reports" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabBooks" Content=" Книги" Click="BtnTab_Click" Tag="Books" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabAuthors" Content=" Авторы" Click="BtnTab_Click" Tag="Authors" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabCopies" Content=" Экземпляры" Click="BtnTab_Click" Tag="Copies" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabUsers" Content=" Пользователи" Click="BtnTab_Click" Tag="Users" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabReports" Content=" Отчеты" Click="BtnTab_Click" Tag="Reports" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Logout -->
|
||||
<Button Grid.Row="3" Content="🚪 Выйти из системы" Click="BtnLogout_Click" HorizontalAlignment="Stretch" Height="40" Background="#ef4444" Foreground="White" FontWeight="Bold" CornerRadius="6" HorizontalContentAlignment="Center"/>
|
||||
<Button Grid.Row="3" Content=" Выйти из системы" Click="BtnLogout_Click" HorizontalAlignment="Stretch" Height="40" Background="#ef4444" Foreground="White" FontWeight="Bold" CornerRadius="6" HorizontalContentAlignment="Center"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<!-- Main Content Area -->
|
||||
<Grid Grid.Column="1" RowDefinitions="Auto, *">
|
||||
<!-- Header bar -->
|
||||
<Border Grid.Row="0" Background="#1e293b" Height="60" Padding="20,0" BorderBrush="#334155" BorderThickness="0,0,0,1">
|
||||
<Grid ColumnDefinitions="*, Auto">
|
||||
<TextBlock Name="TxtActiveTabHeader" Text="📚 Управление книгами" Foreground="White" FontSize="18" FontWeight="Bold" VerticalAlignment="Center"/>
|
||||
|
|
@ -44,9 +39,7 @@
|
|||
</Grid>
|
||||
</Border>
|
||||
|
||||
<!-- Working Content Panes -->
|
||||
<Grid Grid.Row="1" Margin="20">
|
||||
<!-- 1. Books Panel -->
|
||||
<Grid Name="GridBooks" ColumnDefinitions="*, 320">
|
||||
<Grid Grid.Column="0" RowDefinitions="*, Auto">
|
||||
<DataGrid Name="DgBooks" Grid.Row="0" AutoGenerateColumns="False" IsReadOnly="True" GridLinesVisibility="All" BorderThickness="1" BorderBrush="#334155" Background="#1e293b" SelectionChanged="DgBooks_SelectionChanged">
|
||||
|
|
@ -84,10 +77,10 @@
|
|||
<TextBox Name="TxtBookDesc" Height="80" TextWrapping="Wrap" AcceptsReturn="True" CornerRadius="4"/>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,10,0,0">
|
||||
<Button Content="➕ Добавить" Click="BtnAddBook_Click" Background="#22c55e" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content="💾 Сохранить" Click="BtnEditBook_Click" Background="#3b82f6" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content="❌ Удалить" Click="BtnDeleteBook_Click" Background="#ef4444" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content="🔄 Очистить поля" Click="BtnClearBook_Click" Background="#64748b" Foreground="White" HorizontalAlignment="Stretch" Height="34" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content=" Добавить" Click="BtnAddBook_Click" Background="#22c55e" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content=" Сохранить" Click="BtnEditBook_Click" Background="#3b82f6" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content=" Удалить" Click="BtnDeleteBook_Click" Background="#ef4444" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content=" Очистить поля" Click="BtnClearBook_Click" Background="#64748b" Foreground="White" HorizontalAlignment="Stretch" Height="34" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<TextBlock Name="TxtBookStatus" Foreground="#ef4444" FontSize="12" Margin="0,10,0,0" TextWrapping="Wrap" HorizontalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
|
@ -95,7 +88,6 @@
|
|||
</Border>
|
||||
</Grid>
|
||||
|
||||
<!-- 2. Authors Panel -->
|
||||
<Grid Name="GridAuthors" ColumnDefinitions="*, 320" IsVisible="False">
|
||||
<DataGrid Name="DgAuthors" Grid.Column="0" AutoGenerateColumns="False" IsReadOnly="True" GridLinesVisibility="All" BorderThickness="1" BorderBrush="#334155" Background="#1e293b" SelectionChanged="DgAuthors_SelectionChanged">
|
||||
<DataGrid.Columns>
|
||||
|
|
@ -111,17 +103,16 @@
|
|||
<TextBox Name="TxtAuthorName" Height="34" CornerRadius="4"/>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,10,0,0">
|
||||
<Button Content="➕ Добавить" Click="BtnAddAuthor_Click" Background="#22c55e" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content="💾 Сохранить" Click="BtnEditAuthor_Click" Background="#3b82f6" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content="❌ Удалить" Click="BtnDeleteAuthor_Click" Background="#ef4444" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content="🔄 Очистить поля" Click="BtnClearAuthor_Click" Background="#64748b" Foreground="White" HorizontalAlignment="Stretch" Height="34" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content=" Добавить" Click="BtnAddAuthor_Click" Background="#22c55e" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content=" Сохранить" Click="BtnEditAuthor_Click" Background="#3b82f6" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content=" Удалить" Click="BtnDeleteAuthor_Click" Background="#ef4444" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content=" Очистить поля" Click="BtnClearAuthor_Click" Background="#64748b" Foreground="White" HorizontalAlignment="Stretch" Height="34" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<TextBlock Name="TxtAuthorStatus" Foreground="#ef4444" FontSize="12" Margin="0,10,0,0" TextWrapping="Wrap" HorizontalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
|
||||
<!-- 3. Copies Panel -->
|
||||
<Grid Name="GridCopies" ColumnDefinitions="*, 320" IsVisible="False">
|
||||
<DataGrid Name="DgCopies" Grid.Column="0" AutoGenerateColumns="False" IsReadOnly="True" GridLinesVisibility="All" BorderThickness="1" BorderBrush="#334155" Background="#1e293b" SelectionChanged="DgCopies_SelectionChanged">
|
||||
<DataGrid.Columns>
|
||||
|
|
@ -156,17 +147,16 @@
|
|||
<TextBox Name="TxtCopyShelf" Height="34" CornerRadius="4"/>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,10,0,0">
|
||||
<Button Content="➕ Добавить" Click="BtnAddCopy_Click" Background="#22c55e" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content="💾 Сохранить" Click="BtnEditCopy_Click" Background="#3b82f6" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content="❌ Удалить" Click="BtnDeleteCopy_Click" Background="#ef4444" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content="🔄 Очистить поля" Click="BtnClearCopy_Click" Background="#64748b" Foreground="White" HorizontalAlignment="Stretch" Height="34" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content=" Добавить" Click="BtnAddCopy_Click" Background="#22c55e" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content=" Сохранить" Click="BtnEditCopy_Click" Background="#3b82f6" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content=" Удалить" Click="BtnDeleteCopy_Click" Background="#ef4444" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content=" Очистить поля" Click="BtnClearCopy_Click" Background="#64748b" Foreground="White" HorizontalAlignment="Stretch" Height="34" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<TextBlock Name="TxtCopyStatus" Foreground="#ef4444" FontSize="12" Margin="0,10,0,0" TextWrapping="Wrap" HorizontalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
|
||||
<!-- 4. Users Panel -->
|
||||
<Grid Name="GridUsers" ColumnDefinitions="*, 320" IsVisible="False">
|
||||
<DataGrid Name="DgUsers" Grid.Column="0" AutoGenerateColumns="False" IsReadOnly="True" GridLinesVisibility="All" BorderThickness="1" BorderBrush="#334155" Background="#1e293b" SelectionChanged="DgUsers_SelectionChanged">
|
||||
<DataGrid.Columns>
|
||||
|
|
@ -207,10 +197,10 @@
|
|||
<TextBox Name="TxtUserPhone" Height="34" CornerRadius="4"/>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,10,0,0">
|
||||
<Button Content="➕ Добавить" Click="BtnAddUser_Click" Background="#22c55e" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content="💾 Сохранить" Click="BtnEditUser_Click" Background="#3b82f6" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content="❌ Удалить" Click="BtnDeleteUser_Click" Background="#ef4444" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content="🔄 Очистить поля" Click="BtnClearUser_Click" Background="#64748b" Foreground="White" HorizontalAlignment="Stretch" Height="34" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content=" Добавить" Click="BtnAddUser_Click" Background="#22c55e" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content=" Сохранить" Click="BtnEditUser_Click" Background="#3b82f6" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content=" Удалить" Click="BtnDeleteUser_Click" Background="#ef4444" Foreground="White" HorizontalAlignment="Stretch" Height="36" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<Button Content=" Очистить поля" Click="BtnClearUser_Click" Background="#64748b" Foreground="White" HorizontalAlignment="Stretch" Height="34" CornerRadius="4" HorizontalContentAlignment="Center"/>
|
||||
<TextBlock Name="TxtUserStatus" Foreground="#ef4444" FontSize="12" Margin="0,10,0,0" TextWrapping="Wrap" HorizontalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
|
@ -218,9 +208,7 @@
|
|||
</Border>
|
||||
</Grid>
|
||||
|
||||
<!-- 5. Reports Panel -->
|
||||
<Grid Name="GridReports" RowDefinitions="Auto, *" IsVisible="False">
|
||||
<!-- Cards -->
|
||||
<Grid Grid.Row="0" ColumnDefinitions="*, *, Auto">
|
||||
<Border Grid.Column="0" Background="#1e293b" CornerRadius="8" Padding="15" BorderBrush="#334155" BorderThickness="1">
|
||||
<StackPanel>
|
||||
|
|
@ -238,18 +226,16 @@
|
|||
</Grid>
|
||||
|
||||
<Grid Grid.Row="1" ColumnDefinitions="*, *">
|
||||
<!-- Popular Books -->
|
||||
<Border Grid.Column="0" Background="#1e293b" CornerRadius="8" Padding="15" BorderBrush="#334155" BorderThickness="1">
|
||||
<Grid RowDefinitions="Auto, *">
|
||||
<TextBlock Grid.Row="0" Text="🔥 Самые популярные книги (Топ 5)" Foreground="#38bdf8" FontSize="15" FontWeight="Bold" Margin="0,0,0,10"/>
|
||||
<TextBlock Grid.Row="0" Text="Самые популярные книги (Топ 5)" Foreground="#38bdf8" FontSize="15" FontWeight="Bold" Margin="0,0,0,10"/>
|
||||
<DataGrid Name="DgPopularBooks" Grid.Row="1" AutoGenerateColumns="True" IsReadOnly="True" GridLinesVisibility="All" Background="Transparent"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<!-- Overdue Loans -->
|
||||
<Border Grid.Column="1" Background="#1e293b" CornerRadius="8" Padding="15" BorderBrush="#334155" BorderThickness="1">
|
||||
<Grid RowDefinitions="Auto, *">
|
||||
<TextBlock Grid.Row="0" Text="⚠️ Просроченные выдачи книг" Foreground="#ef4444" FontSize="15" FontWeight="Bold" Margin="0,0,0,10"/>
|
||||
<TextBlock Grid.Row="0" Text="Просроченные выдачи книг" Foreground="#ef4444" FontSize="15" FontWeight="Bold" Margin="0,0,0,10"/>
|
||||
<DataGrid Name="DgOverdueLoans" Grid.Row="1" AutoGenerateColumns="True" IsReadOnly="True" GridLinesVisibility="All" Background="Transparent"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
|
|
|||
|
|
@ -10,43 +10,35 @@
|
|||
Background="#0f172a">
|
||||
|
||||
<Grid ColumnDefinitions="240, *">
|
||||
<!-- Sidebar Navigation -->
|
||||
<Border Grid.Column="0" Background="#1e293b" BorderBrush="#334155" BorderThickness="0,0,1,0" Padding="15">
|
||||
<Grid RowDefinitions="Auto, *, Auto">
|
||||
<!-- Header -->
|
||||
<StackPanel Grid.Row="0" Margin="0,10,0,30">
|
||||
<TextBlock Text="БИБЛИОТЕКА" Foreground="#38bdf8" FontSize="20" FontWeight="Bold" HorizontalAlignment="Center" LetterSpacing="1"/>
|
||||
<TextBlock Text="Панель библиотекаря" Foreground="#94a3b8" FontSize="11" HorizontalAlignment="Center"/>
|
||||
<TextBlock Name="TxtLibrarianName" Foreground="#cbd5e1" FontSize="12" FontWeight="SemiBold" HorizontalAlignment="Center" Margin="0,10,0,0"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Navigation Buttons -->
|
||||
<StackPanel Grid.Row="1">
|
||||
<Button Name="BtnTabIssue" Content="📖 Выдача книг" Click="BtnTab_Click" Tag="Issue" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabReturns" Content="🔄 Возврат книг" Click="BtnTab_Click" Tag="Returns" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabRegister" Content="👤 Регистрация читателей" Click="BtnTab_Click" Tag="Register" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabFines" Content="💰 Штрафы" Click="BtnTab_Click" Tag="Fines" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabReservations" Content="🛎️ Бронирования" Click="BtnTab_Click" Tag="Reservations" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabIssue" Content=" Выдача книг" Click="BtnTab_Click" Tag="Issue" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabReturns" Content=" Возврат книг" Click="BtnTab_Click" Tag="Returns" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabRegister" Content=" Регистрация читателей" Click="BtnTab_Click" Tag="Register" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabFines" Content=" Штрафы" Click="BtnTab_Click" Tag="Fines" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabReservations" Content=" Бронирования" Click="BtnTab_Click" Tag="Reservations" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Logout -->
|
||||
<Button Grid.Row="3" Content="🚪 Выйти из системы" Click="BtnLogout_Click" HorizontalAlignment="Stretch" Height="40" Background="#ef4444" Foreground="White" FontWeight="Bold" CornerRadius="6" HorizontalContentAlignment="Center"/>
|
||||
<Button Grid.Row="3" Content=" Выйти из системы" Click="BtnLogout_Click" HorizontalAlignment="Stretch" Height="40" Background="#ef4444" Foreground="White" FontWeight="Bold" CornerRadius="6" HorizontalContentAlignment="Center"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<!-- Main Content Area -->
|
||||
<Grid Grid.Column="1" RowDefinitions="Auto, *">
|
||||
<!-- Header bar -->
|
||||
<Border Grid.Row="0" Background="#1e293b" Height="60" Padding="20,0" BorderBrush="#334155" BorderThickness="0,0,0,1">
|
||||
<Grid ColumnDefinitions="*, Auto">
|
||||
<TextBlock Name="TxtActiveTabHeader" Text="📖 Оформление выдачи книг" Foreground="White" FontSize="18" FontWeight="Bold" VerticalAlignment="Center"/>
|
||||
<TextBlock Name="TxtActiveTabHeader" Text=" Оформление выдачи книг" Foreground="White" FontSize="18" FontWeight="Bold" VerticalAlignment="Center"/>
|
||||
<TextBlock Grid.Column="1" Text="Роль: Библиотекарь" Foreground="#94a3b8" FontSize="12" VerticalAlignment="Center"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<!-- Working Content Panes -->
|
||||
<Grid Grid.Row="1" Margin="20">
|
||||
<!-- 1. Issue Book Panel -->
|
||||
<Grid Name="GridIssue" ColumnDefinitions="450, *">
|
||||
<Border Grid.Column="0" Background="#1e293b" CornerRadius="8" Padding="20" BorderBrush="#334155" BorderThickness="1" VerticalAlignment="Top">
|
||||
<StackPanel>
|
||||
|
|
@ -67,7 +59,7 @@
|
|||
<CalendarDatePicker Name="DpIssueDueDate" HorizontalAlignment="Stretch" Height="36" CornerRadius="4"/>
|
||||
</StackPanel>
|
||||
|
||||
<Button Content="💾 Оформить выдачу" Click="BtnIssueBook_Click" Background="#22c55e" Foreground="White" HorizontalAlignment="Stretch" Height="40" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="0,10,0,0"/>
|
||||
<Button Content=" Оформить выдачу" Click="BtnIssueBook_Click" Background="#22c55e" Foreground="White" HorizontalAlignment="Stretch" Height="40" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="0,10,0,0"/>
|
||||
|
||||
<TextBlock Name="TxtIssueStatus" Text="" Foreground="#cbd5e1" FontSize="13" TextWrapping="Wrap" HorizontalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
|
|
@ -82,7 +74,6 @@
|
|||
</Border>
|
||||
</Grid>
|
||||
|
||||
<!-- 2. Returns Panel -->
|
||||
<Grid Name="GridReturns" RowDefinitions="*, Auto" IsVisible="False">
|
||||
<Grid Grid.Row="0" ColumnDefinitions="*, 320">
|
||||
<DataGrid Name="DgActiveLoans" Grid.Column="0" AutoGenerateColumns="False" IsReadOnly="True" GridLinesVisibility="All" BorderThickness="1" BorderBrush="#334155" Background="#1e293b" SelectionChanged="DgActiveLoans_SelectionChanged">
|
||||
|
|
@ -101,7 +92,7 @@
|
|||
<TextBlock Text="Приём возврата" Foreground="#38bdf8" FontSize="15" FontWeight="Bold"/>
|
||||
<TextBlock Name="TxtReturnDetails" Text="Выберите выдачу из списка слева." Foreground="#cbd5e1" TextWrapping="Wrap" FontSize="13"/>
|
||||
|
||||
<Button Name="BtnReturnBook" Content="🔄 Принять возврат" Click="BtnReturnBook_Click" Background="#3b82f6" Foreground="White" HorizontalAlignment="Stretch" Height="40" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" IsEnabled="False"/>
|
||||
<Button Name="BtnReturnBook" Content=" Принять возврат" Click="BtnReturnBook_Click" Background="#3b82f6" Foreground="White" HorizontalAlignment="Stretch" Height="40" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" IsEnabled="False"/>
|
||||
|
||||
<TextBlock Name="TxtReturnStatus" Text="" Foreground="#22c55e" FontSize="13" TextWrapping="Wrap" HorizontalAlignment="Center" FontWeight="SemiBold"/>
|
||||
</StackPanel>
|
||||
|
|
@ -109,7 +100,6 @@
|
|||
</Grid>
|
||||
</Grid>
|
||||
|
||||
<!-- 3. Register Reader Panel -->
|
||||
<Grid Name="GridRegister" ColumnDefinitions="450, *" IsVisible="False">
|
||||
<Border Grid.Column="0" Background="#1e293b" CornerRadius="8" Padding="20" BorderBrush="#334155" BorderThickness="1" VerticalAlignment="Top">
|
||||
<StackPanel>
|
||||
|
|
@ -140,14 +130,13 @@
|
|||
<TextBox Name="TxtRegPass" Height="34" CornerRadius="4"/>
|
||||
</StackPanel>
|
||||
|
||||
<Button Content="➕ Зарегистрировать" Click="BtnRegisterReader_Click" Background="#22c55e" Foreground="White" HorizontalAlignment="Stretch" Height="38" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="0,10,0,0"/>
|
||||
<Button Content=" Зарегистрировать" Click="BtnRegisterReader_Click" Background="#22c55e" Foreground="White" HorizontalAlignment="Stretch" Height="38" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="0,10,0,0"/>
|
||||
|
||||
<TextBlock Name="TxtRegStatus" Text="" Foreground="#cbd5e1" FontSize="13" HorizontalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
|
||||
<!-- 4. Fines Panel -->
|
||||
<Grid Name="GridFines" ColumnDefinitions="*, 320" IsVisible="False">
|
||||
<DataGrid Name="DgFines" Grid.Column="0" AutoGenerateColumns="False" IsReadOnly="True" GridLinesVisibility="All" BorderThickness="1" BorderBrush="#334155" Background="#1e293b" SelectionChanged="DgFines_SelectionChanged">
|
||||
<DataGrid.Columns>
|
||||
|
|
@ -165,14 +154,13 @@
|
|||
<TextBlock Text="Управление штрафами" Foreground="#38bdf8" FontSize="15" FontWeight="Bold"/>
|
||||
<TextBlock Name="TxtFineDetails" Text="Выберите штраф из списка." Foreground="#cbd5e1" TextWrapping="Wrap" FontSize="13"/>
|
||||
|
||||
<Button Name="BtnPayFine" Content="💵 Отметить как оплаченный" Click="BtnPayFine_Click" Background="#22c55e" Foreground="White" HorizontalAlignment="Stretch" Height="40" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" IsEnabled="False"/>
|
||||
<Button Name="BtnPayFine" Content=" Отметить как оплаченный" Click="BtnPayFine_Click" Background="#22c55e" Foreground="White" HorizontalAlignment="Stretch" Height="40" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" IsEnabled="False"/>
|
||||
|
||||
<TextBlock Name="TxtFineStatus" Text="" Foreground="#22c55e" FontSize="13" TextWrapping="Wrap" HorizontalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
|
||||
<!-- 5. Reservations Panel -->
|
||||
<Grid Name="GridReservations" RowDefinitions="*, Auto" IsVisible="False">
|
||||
<Grid Grid.Row="0" ColumnDefinitions="*, 320">
|
||||
<DataGrid Name="DgReservations" Grid.Column="0" AutoGenerateColumns="False" IsReadOnly="True" GridLinesVisibility="All" BorderThickness="1" BorderBrush="#334155" Background="#1e293b" SelectionChanged="DgReservations_SelectionChanged">
|
||||
|
|
@ -191,7 +179,7 @@
|
|||
<TextBlock Text="Детали бронирования" Foreground="#38bdf8" FontSize="15" FontWeight="Bold"/>
|
||||
<TextBlock Name="TxtReservationDetails" Text="Выберите бронь из списка." Foreground="#cbd5e1" TextWrapping="Wrap" FontSize="13"/>
|
||||
|
||||
<Button Name="BtnCancelReservation" Content="❌ Отменить бронь" Click="BtnCancelReservation_Click" Background="#ef4444" Foreground="White" HorizontalAlignment="Stretch" Height="40" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" IsEnabled="False"/>
|
||||
<Button Name="BtnCancelReservation" Content=" Отменить бронь" Click="BtnCancelReservation_Click" Background="#ef4444" Foreground="White" HorizontalAlignment="Stretch" Height="40" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" IsEnabled="False"/>
|
||||
|
||||
<TextBlock Name="TxtReservationStatus" Text="" Foreground="#cbd5e1" FontSize="13" TextWrapping="Wrap" HorizontalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
|
|
|
|||
|
|
@ -10,32 +10,26 @@
|
|||
Background="#0f172a">
|
||||
|
||||
<Grid ColumnDefinitions="240, *">
|
||||
<!-- Sidebar Navigation -->
|
||||
<Border Grid.Column="0" Background="#1e293b" BorderBrush="#334155" BorderThickness="0,0,1,0" Padding="15">
|
||||
<Grid RowDefinitions="Auto, *, Auto">
|
||||
<!-- Header -->
|
||||
<StackPanel Grid.Row="0" Margin="0,10,0,30">
|
||||
<TextBlock Text="БИБЛИОТЕКА" Foreground="#38bdf8" FontSize="20" FontWeight="Bold" HorizontalAlignment="Center" LetterSpacing="1"/>
|
||||
<TextBlock Text="Личный кабинет" Foreground="#94a3b8" FontSize="11" HorizontalAlignment="Center"/>
|
||||
<TextBlock Name="TxtReaderName" Foreground="#cbd5e1" FontSize="12" FontWeight="SemiBold" HorizontalAlignment="Center" Margin="0,10,0,0"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Navigation Buttons -->
|
||||
<StackPanel Grid.Row="1">
|
||||
<Button Name="BtnTabCatalog" Content="🔍 Поиск книг" Click="BtnTab_Click" Tag="Catalog" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabMyLoans" Content="📚 Мои выдачи" Click="BtnTab_Click" Tag="MyLoans" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabMyFines" Content="💰 Мои штрафы" Click="BtnTab_Click" Tag="MyFines" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabMyReservations" Content="🛎️ Мои брони" Click="BtnTab_Click" Tag="MyReservations" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabCatalog" Content=" Поиск книг" Click="BtnTab_Click" Tag="Catalog" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabMyLoans" Content=" Мои выдачи" Click="BtnTab_Click" Tag="MyLoans" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabMyFines" Content=" Мои штрафы" Click="BtnTab_Click" Tag="MyFines" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
<Button Name="BtnTabMyReservations" Content=" Мои брони" Click="BtnTab_Click" Tag="MyReservations" HorizontalAlignment="Stretch" Height="40" Background="Transparent" Foreground="#94a3b8" FontWeight="SemiBold" CornerRadius="6" HorizontalContentAlignment="Left" Padding="15,0,0,0"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Logout -->
|
||||
<Button Grid.Row="3" Content="🚪 Выйти из системы" Click="BtnLogout_Click" HorizontalAlignment="Stretch" Height="40" Background="#ef4444" Foreground="White" FontWeight="Bold" CornerRadius="6" HorizontalContentAlignment="Center"/>
|
||||
<Button Grid.Row="3" Content=" Выйти из системы" Click="BtnLogout_Click" HorizontalAlignment="Stretch" Height="40" Background="#ef4444" Foreground="White" FontWeight="Bold" CornerRadius="6" HorizontalContentAlignment="Center"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<!-- Main Content Area -->
|
||||
<Grid Grid.Column="1" RowDefinitions="Auto, *">
|
||||
<!-- Header bar -->
|
||||
<Border Grid.Row="0" Background="#1e293b" Height="60" Padding="20,0" BorderBrush="#334155" BorderThickness="0,0,0,1">
|
||||
<Grid ColumnDefinitions="*, Auto">
|
||||
<TextBlock Name="TxtActiveTabHeader" Text="🔍 Каталог и бронирование книг" Foreground="White" FontSize="18" FontWeight="Bold" VerticalAlignment="Center"/>
|
||||
|
|
@ -43,9 +37,7 @@
|
|||
</Grid>
|
||||
</Border>
|
||||
|
||||
<!-- Working Content Panes -->
|
||||
<Grid Grid.Row="1" Margin="20">
|
||||
<!-- 1. Catalog Tab -->
|
||||
<Grid Name="GridCatalog" RowDefinitions="Auto, *">
|
||||
<Grid Grid.Row="0" ColumnDefinitions="*, Auto">
|
||||
<TextBox Name="TxtSearchQuery" Watermark="Введите название книги, автора или ISBN для поиска..." Height="40" CornerRadius="6" VerticalContentAlignment="Center"/>
|
||||
|
|
@ -72,7 +64,7 @@
|
|||
<Separator Background="#334155"/>
|
||||
<TextBlock Name="TxtCatalogAvailability" Text="Доступно копий: -" Foreground="#cbd5e1" FontSize="13"/>
|
||||
|
||||
<Button Name="BtnReserveBook" Content="🛎️ Забронировать" Click="BtnReserveBook_Click" Background="#22c55e" Foreground="White" HorizontalAlignment="Stretch" Height="40" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" IsEnabled="False"/>
|
||||
<Button Name="BtnReserveBook" Content=" Забронировать" Click="BtnReserveBook_Click" Background="#22c55e" Foreground="White" HorizontalAlignment="Stretch" Height="40" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" IsEnabled="False"/>
|
||||
|
||||
<TextBlock Name="TxtCatalogStatus" Text="" Foreground="#22c55e" FontSize="12" TextWrapping="Wrap" HorizontalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
|
|
@ -80,7 +72,6 @@
|
|||
</Grid>
|
||||
</Grid>
|
||||
|
||||
<!-- 2. My Loans Tab -->
|
||||
<Grid Name="GridMyLoans" IsVisible="False">
|
||||
<DataGrid Name="DgMyLoans" AutoGenerateColumns="False" IsReadOnly="True" GridLinesVisibility="All" BorderThickness="1" BorderBrush="#334155" Background="#1e293b">
|
||||
<DataGrid.Columns>
|
||||
|
|
@ -94,7 +85,6 @@
|
|||
</DataGrid>
|
||||
</Grid>
|
||||
|
||||
<!-- 3. My Fines Tab -->
|
||||
<Grid Name="GridMyFines" ColumnDefinitions="*, 320" IsVisible="False">
|
||||
<DataGrid Name="DgMyFines" Grid.Column="0" AutoGenerateColumns="False" IsReadOnly="True" GridLinesVisibility="All" BorderThickness="1" BorderBrush="#334155" Background="#1e293b">
|
||||
<DataGrid.Columns>
|
||||
|
|
@ -114,7 +104,6 @@
|
|||
</Border>
|
||||
</Grid>
|
||||
|
||||
<!-- 4. My Reservations Tab -->
|
||||
<Grid Name="GridMyReservations" ColumnDefinitions="*, 320" IsVisible="False">
|
||||
<DataGrid Name="DgMyReservations" Grid.Column="0" AutoGenerateColumns="False" IsReadOnly="True" GridLinesVisibility="All" BorderThickness="1" BorderBrush="#334155" Background="#1e293b" SelectionChanged="DgMyReservations_SelectionChanged">
|
||||
<DataGrid.Columns>
|
||||
|
|
@ -130,7 +119,7 @@
|
|||
<TextBlock Text="Действия с бронью" Foreground="#38bdf8" FontSize="15" FontWeight="Bold"/>
|
||||
<TextBlock Name="TxtMyReservationDetails" Text="Выберите бронь из списка." Foreground="#cbd5e1" TextWrapping="Wrap" FontSize="13"/>
|
||||
|
||||
<Button Name="BtnCancelMyReservation" Content="❌ Отменить бронь" Click="BtnCancelMyReservation_Click" Background="#ef4444" Foreground="White" HorizontalAlignment="Stretch" Height="40" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" IsEnabled="False"/>
|
||||
<Button Name="BtnCancelMyReservation" Content=" Отменить бронь" Click="BtnCancelMyReservation_Click" Background="#ef4444" Foreground="White" HorizontalAlignment="Stretch" Height="40" FontWeight="Bold" CornerRadius="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" IsEnabled="False"/>
|
||||
|
||||
<TextBlock Name="TxtMyReservationStatus" Text="" Foreground="#cbd5e1" FontSize="13" TextWrapping="Wrap" HorizontalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -13,7 +13,7 @@ using System.Reflection;
|
|||
[assembly: System.Reflection.AssemblyCompanyAttribute("CourseProject1125")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+94ba730bfd29b006005775fd927e084e1264287e")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+8a542dab9a38ef76bd9f1d3f21c3efa28fec406b")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("CourseProject1125")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("CourseProject1125")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
199308ad45c6022a30bd612b69020354e151f670ef25fcfe99a1daf1efc55601
|
||||
9a4025adff3d649d85b89675111898ab0bc2a30a8f4af1b135b7e618fe0229bf
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
17793765728196273
|
||||
17793773331207376
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"DatabaseConnection": {
|
||||
"ConnectionString": "server=127.0.0.1; userid=root; password=; database=courseproject1125; port=3306; characterset=utf8"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue