EmployeeCard.xaml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <Window x:Class="RR2.UI.Views.EmployeeCard"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:RR2.UI.Views"
  7. mc:Ignorable="d"
  8. Title="EmployeeCard" Height="700" Width="700"
  9. WindowStartupLocation="CenterScreen" WindowStyle="None"
  10. Background="Transparent" AllowsTransparency="True"
  11. ResizeMode="NoResize" FontFamily="Poppins">
  12. <Border Background="{DynamicResource SecundaryBackgroundColor}" CornerRadius="8" MouseLeftButtonDown="Border_MouseLeftButtonDown">
  13. <Grid>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="30"/>
  16. <RowDefinition Height="*"/>
  17. </Grid.RowDefinitions>
  18. <!-- Кнопки скрытия,свертывания и закрытия -->
  19. <StackPanel HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,5,10,0" Height="30" Orientation="Horizontal" FlowDirection="RightToLeft" Grid.RowSpan="2">
  20. <Button x:Name="CloseBtn" Style="{DynamicResource NavViewButtonsStyle}" Content="x" Click="CloseBtn_Click" Tag="IsCloseButton"/>
  21. </StackPanel>
  22. <!-- Панель контента -->
  23. <Grid Grid.Row="1" Margin="10">
  24. <Grid.ColumnDefinitions>
  25. <ColumnDefinition Width="2*" />
  26. <ColumnDefinition Width="*" />
  27. </Grid.ColumnDefinitions>
  28. <!-- форма данных сотрудника -->
  29. <Border Grid.Column="0" CornerRadius="8" Background="{DynamicResource WhiteBackgroundColor}" Margin="5" Padding="5">
  30. <StackPanel>
  31. <StackPanel Orientation="Horizontal" Height="31">
  32. <TextBlock Text="Сотрудник:" TextAlignment="Center" FontSize="19"/>
  33. <Image x:Name="penImage" Source="/Resources/pen.png" Width="16" HorizontalAlignment="Right" Height="10" Margin="300 0 0 0"/>
  34. </StackPanel>
  35. <TextBlock Text="ФИО" TextAlignment="Center" Margin="5 10 0 0"/>
  36. <TextBox x:Name="fioBox" TextAlignment="Left" IsEnabled="False" Text="{Binding Person.FullName}" Margin="5"/>
  37. <TextBlock Text="Мобильный телефон" TextAlignment="Center" Margin="5 10 0 0"/>
  38. <TextBox x:Name="MobilePhone" TextAlignment="Left" IsEnabled="False"
  39. PreviewTextInput="MobilePhone_PreviewTextInput"
  40. PreviewKeyDown="MobilePhone_PreviewKeyDown"
  41. Text="{Binding Person.Phone}" Margin="5"/>
  42. <TextBlock Text="День рождения" TextAlignment="Center" Margin="5 10 0 0"/>
  43. <DatePicker x:Name="dateBox" IsEnabled="False" Text="{Binding Person.Birthday}" Margin="5"/>
  44. <TextBlock Text="Структурное подразделение" TextAlignment="Center" Margin="5 10 0 0"/>
  45. <ComboBox x:Name="strucBox" IsEnabled="False" DisplayMemberPath="Name" SelectionChanged="strucBox_SelectionChanged" Margin="5"/>
  46. <TextBlock Text="Должность" TextAlignment="Center" Margin="5 10 0 0"/>
  47. <ComboBox x:Name="positBox" IsEnabled="False" DisplayMemberPath="Name" SelectionChanged="positBox_SelectionChanged" Margin="5"/>
  48. <TextBlock Text="Образование и повышение квалификации" TextAlignment="Center" Margin="5 10 0 0"/>
  49. <TextBox x:Name="educInfo" TextAlignment="Left" IsEnabled="False" Text="{Binding Person.FullName}" Margin="5"/>
  50. <TextBlock Text="Руководитель" TextAlignment="Center" Margin="5 10 0 0"/>
  51. <TextBox x:Name="managerInfo" TextAlignment="Left" IsEnabled="False" Text="{Binding Person.FullName}" Margin="5"/>
  52. <TextBlock Text="Помощник" TextAlignment="Center" Margin="5 10 0 0"/>
  53. <TextBox x:Name="asistInfo" TextAlignment="Left" IsEnabled="False" Text="{Binding Person.FullName}" Margin="5"/>
  54. <TextBlock Text="Рабочий телефон" TextAlignment="Center" Margin="5 10 0 0"/>
  55. <TextBox x:Name="workPhoneInfo" TextAlignment="Left" IsEnabled="False" Text="{Binding Person.FullName}" Margin="5"/>
  56. <TextBlock Text="Электронная почта" TextAlignment="Center" Margin="5 10 0 0"/>
  57. <TextBox x:Name="mailBox" TextAlignment="Left" IsEnabled="False" Text="{Binding Person.FullName}" Margin="5"/>
  58. <TextBlock Text="Кадинет" TextAlignment="Center" Margin="5 10 0 0"/>
  59. <TextBox x:Name="parlorBox" TextAlignment="Left" IsEnabled="False" Text="{Binding Person.FullName}" Margin="5"/>
  60. </StackPanel>
  61. </Border>
  62. <!-- информация о времени работы -->
  63. <Border Grid.Column="1" CornerRadius="8" Background="{DynamicResource WhiteBackgroundColor}" Margin="5" >
  64. <StackPanel>
  65. <StackPanel Orientation="Horizontal">
  66. <Button Content="Прошедшие" Background="{DynamicResource PrimaryHomingColor}" Margin="5" />
  67. <Button Content="Текущие" Background="{DynamicResource PrimaryHomingColor}" Margin="5" />
  68. <Button Content="Будущие" Background="{DynamicResource PrimaryHomingColor}" Margin="5" />
  69. </StackPanel>
  70. <TextBlock Text="Обучения" FontWeight="Bold" Margin="5,10,5,5" />
  71. <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" />
  72. <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" />
  73. <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" />
  74. <TextBlock Text="Отгулы" FontWeight="Bold" Margin="5,10,5,5" />
  75. <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" />
  76. <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" />
  77. <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" />
  78. <TextBlock Text="Отпуска" FontWeight="Bold" Margin="5,10,5,5" />
  79. <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" />
  80. <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" />
  81. <TextBox TextAlignment="Center" Background="{DynamicResource PrimaryBackgroundColor}" IsReadOnly="True" Margin="5" />
  82. </StackPanel>
  83. </Border>
  84. </Grid>
  85. </Grid>
  86. </Border>
  87. </Window>