<Window x:Class="RR2.UI.Views.EmployeeCard" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:RR2.UI.Views" mc:Ignorable="d" Title="EmployeeCard" Height="700" Width="700" WindowStartupLocation="CenterScreen" WindowStyle="None" Background="Transparent" AllowsTransparency="True" ResizeMode="NoResize" FontFamily="Poppins"> <Border Background="{DynamicResource SecundaryBackgroundColor}" CornerRadius="8" MouseLeftButtonDown="Border_MouseLeftButtonDown"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="30"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <!-- Кнопки скрытия,свертывания и закрытия --> <StackPanel HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,5,10,0" Height="30" Orientation="Horizontal" FlowDirection="RightToLeft" Grid.RowSpan="2"> <Button x:Name="CloseBtn" Style="{DynamicResource NavViewButtonsStyle}" Content="x" Click="CloseBtn_Click" Tag="IsCloseButton"/> </StackPanel> <!-- Панель контента --> <Grid Grid.Row="1" Margin="10"> <Grid.ColumnDefinitions> <ColumnDefinition Width="2*" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <!-- форма данных сотрудника --> <Border Grid.Column="0" CornerRadius="8" Background="{DynamicResource WhiteBackgroundColor}" Margin="5" Padding="5"> <StackPanel> <StackPanel Orientation="Horizontal" Height="31"> <TextBlock Text="Сотрудник:" TextAlignment="Center" FontSize="19"/> <Image x:Name="penImage" Source="/Resources/pen.png" Width="16" HorizontalAlignment="Right" Height="10" Margin="300 0 0 0"/> </StackPanel> <TextBlock Text="ФИО" TextAlignment="Center" Margin="5 10 0 0"/> <TextBox x:Name="fioBox" TextAlignment="Left" IsEnabled="False" Text="{Binding Person.FullName}" Margin="5"/> <TextBlock Text="Мобильный телефон" TextAlignment="Center" Margin="5 10 0 0"/> <TextBox x:Name="MobilePhone" TextAlignment="Left" IsEnabled="False" PreviewTextInput="MobilePhone_PreviewTextInput" PreviewKeyDown="MobilePhone_PreviewKeyDown" Text="{Binding Person.Phone}" Margin="5"/> <TextBlock Text="День рождения" TextAlignment="Center" Margin="5 10 0 0"/> <DatePicker x:Name="dateBox" IsEnabled="False" Text="{Binding Person.Birthday}" Margin="5"/> <TextBlock Text="Структурное подразделение" TextAlignment="Center" Margin="5 10 0 0"/> <ComboBox x:Name="strucBox" IsEnabled="False" DisplayMemberPath="Name" SelectionChanged="strucBox_SelectionChanged" Margin="5"/> <TextBlock Text="Должность" TextAlignment="Center" Margin="5 10 0 0"/> <ComboBox x:Name="positBox" IsEnabled="False" DisplayMemberPath="Name" SelectionChanged="positBox_SelectionChanged" Margin="5"/> <TextBlock Text="Образование и повышение квалификации" TextAlignment="Center" Margin="5 10 0 0"/> <TextBox x:Name="educInfo" TextAlignment="Left" IsEnabled="False" Text="{Binding Person.FullName}" Margin="5"/> <TextBlock Text="Руководитель" TextAlignment="Center" Margin="5 10 0 0"/> <TextBox x:Name="managerInfo" TextAlignment="Left" IsEnabled="False" Text="{Binding Person.FullName}" Margin="5"/> <TextBlock Text="Помощник" TextAlignment="Center" Margin="5 10 0 0"/> <TextBox x:Name="asistInfo" TextAlignment="Left" IsEnabled="False" Text="{Binding Person.FullName}" Margin="5"/> <TextBlock Text="Рабочий телефон" TextAlignment="Center" Margin="5 10 0 0"/> <TextBox x:Name="workPhoneInfo" TextAlignment="Left" IsEnabled="False" Text="{Binding Person.FullName}" Margin="5"/> <TextBlock Text="Электронная почта" TextAlignment="Center" Margin="5 10 0 0"/> <TextBox x:Name="mailBox" TextAlignment="Left" IsEnabled="False" Text="{Binding Person.FullName}" Margin="5"/> <TextBlock Text="Кадинет" TextAlignment="Center" Margin="5 10 0 0"/> <TextBox x:Name="parlorBox" TextAlignment="Left" IsEnabled="False" Text="{Binding Person.FullName}" Margin="5"/> </StackPanel> </Border> <!-- информация о времени работы --> <Border Grid.Column="1" CornerRadius="8" Background="{DynamicResource WhiteBackgroundColor}" Margin="5" > <StackPanel> <StackPanel Orientation="Horizontal"> <Button Content="Прошедшие" Background="{DynamicResource PrimaryHomingColor}" Margin="5" /> <Button Content="Текущие" Background="{DynamicResource PrimaryHomingColor}" Margin="5" /> <Button Content="Будущие" Background="{DynamicResource PrimaryHomingColor}" Margin="5" /> </StackPanel> <TextBlock Text="Обучения" FontWeight="Bold" Margin="5,10,5,5" /> <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" /> <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" /> <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" /> <TextBlock Text="Отгулы" FontWeight="Bold" Margin="5,10,5,5" /> <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" /> <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" /> <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" /> <TextBlock Text="Отпуска" FontWeight="Bold" Margin="5,10,5,5" /> <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" /> <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" /> <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" /> </StackPanel> </Border> </Grid> </Grid> </Border> </Window>