EmployeesView.axaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. mc:Ignorable="d" d:DesignWidth="1550" d:DesignHeight="800.5"
  6. xmlns:vm="using:Acosta.ViewModels"
  7. x:DataType="vm:MainWindowViewModel"
  8. x:Class="Acosta.Views.EmployeesView">
  9. <Grid>
  10. <StackPanel Width="1550" Height="50" Background="#E40714" VerticalAlignment="Top">
  11. <StackPanel.Styles>
  12. <Style Selector="TextBlock.headerLogo">
  13. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  14. <Setter Property="FontFamily" Value="Roboto"></Setter>
  15. <Setter Property="FontWeight" Value="Regular"></Setter>
  16. <Setter Property="FontSize" Value="35"></Setter>
  17. <Setter Property="Margin" Value="30 0 0 0"></Setter>
  18. </Style>
  19. <Style Selector="TextBlock.greeting">
  20. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  21. <Setter Property="FontFamily" Value="Roboto"></Setter>
  22. <Setter Property="FontWeight" Value="Medium"></Setter>
  23. <Setter Property="FontSize" Value="20"></Setter>
  24. </Style>
  25. <Style Selector="Button.headerBt">
  26. <Setter Property="Background" Value="Transparent"></Setter>
  27. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  28. <Setter Property="FontFamily" Value="Roboto"></Setter>
  29. <Setter Property="FontSize" Value="20"></Setter>
  30. <Setter Property="FontWeight" Value="Medium"></Setter>
  31. <Setter Property="Margin" Value="0 5 0 0"></Setter>
  32. </Style>
  33. <Style Selector="Button.headerBt:pointerover /template/ ContentPresenter">
  34. <Setter Property="Background" Value="Transparent"></Setter>
  35. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  36. <Setter Property="TextBlock.TextDecorations" Value="Underline"></Setter>
  37. <Setter Property="FontWeight" Value="Medium"></Setter>
  38. <Setter Property="FontSize" Value="20"></Setter>
  39. </Style>
  40. <Style Selector="Button.headerBt:pressed">
  41. <Setter Property="RenderTransform" Value="none"/>
  42. </Style>
  43. </StackPanel.Styles>
  44. <StackPanel Orientation="Horizontal">
  45. <TextBlock Classes="headerLogo">Acosta</TextBlock>
  46. <TextBlock Classes="greeting" Margin="670 12 0 0">Добро пожаловать, оператор</TextBlock>
  47. <TextBlock Classes="greeting" Margin="7 12 0 0" FontWeight="Bold" Name="FIO">Фамилия И.О.</TextBlock>
  48. <TextBlock Classes="greeting" Margin="10 10 0 0">/</TextBlock>
  49. <Button Classes="headerBt" Command="">Изменить пароль</Button>
  50. <TextBlock Classes="greeting" Margin="0 10 0 0">/</TextBlock>
  51. <Button Classes="headerBt" Command="{Binding ExitFromProfile}">Выйти</Button>
  52. </StackPanel>
  53. </StackPanel>
  54. <StackPanel>
  55. <StackPanel.Styles>
  56. <Style Selector="TextBlock.TextBtBack">
  57. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  58. <Setter Property="FontFamily" Value="Roboto"></Setter>
  59. <Setter Property="FontWeight" Value="Medium"></Setter>
  60. <Setter Property="FontSize" Value="20"></Setter>
  61. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  62. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  63. </Style>
  64. <Style Selector="TextBlock.Chapter">
  65. <Setter Property="Foreground" Value="Black"></Setter>
  66. <Setter Property="FontFamily" Value="Roboto"></Setter>
  67. <Setter Property="FontWeight" Value="Medium"></Setter>
  68. <Setter Property="FontSize" Value="20"></Setter>
  69. <Setter Property="Margin" Value="30 85 0 0"></Setter>
  70. </Style>
  71. <Style Selector="Button.BtBack">
  72. <Setter Property="Width" Value="140"></Setter>
  73. <Setter Property="Height" Value="40"></Setter>
  74. <Setter Property="Margin" Value="30 80 0 0"></Setter>
  75. <Setter Property="Background" Value="#E40714"></Setter>
  76. <Setter Property="CornerRadius" Value="13"></Setter>
  77. </Style>
  78. <Style Selector="Button.BtBack:pointerover /template/ ContentPresenter">
  79. <Setter Property="Background" Value="#A10009"></Setter>
  80. </Style>
  81. <Style Selector="Button.BtBack:pressed">
  82. <Setter Property="RenderTransform" Value="none"/>
  83. </Style>
  84. <Style Selector="Button.BtAdd">
  85. <Setter Property="Height" Value="40"></Setter>
  86. <Setter Property="Margin" Value="670 80 0 0"></Setter>
  87. <Setter Property="Background" Value="#E40714"></Setter>
  88. <Setter Property="CornerRadius" Value="13"></Setter>
  89. </Style>
  90. <Style Selector="Button.BtAdd:pointerover /template/ ContentPresenter">
  91. <Setter Property="Background" Value="#A10009"></Setter>
  92. </Style>
  93. <Style Selector="TextBlock.TextBtAdd">
  94. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  95. <Setter Property="FontFamily" Value="Roboto"></Setter>
  96. <Setter Property="FontWeight" Value="Medium"></Setter>
  97. <Setter Property="FontSize" Value="20"></Setter>
  98. <Setter Property="Margin" Value="20 0 0 0"></Setter>
  99. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  100. </Style>
  101. <Style Selector="Button.BtAdd:pressed">
  102. <Setter Property="RenderTransform" Value="none"/>
  103. </Style>
  104. </StackPanel.Styles>
  105. <StackPanel Orientation="Horizontal">
  106. <Button Classes="BtBack" Command="">
  107. <TextBlock Classes="TextBtBack">Назад</TextBlock>
  108. </Button>
  109. <TextBlock Classes="Chapter">Выберите Сотрудника для изменения</TextBlock>
  110. <StackPanel Orientation="Horizontal">
  111. <Button Classes="BtAdd" Width="290" Command="{Binding AddEmployeesView}">
  112. <TextBlock Classes="TextBtAdd">Добавить сотрудника</TextBlock>
  113. </Button>
  114. <Image Source="avares://Acosta/Assets/plus.png" Width="25" Margin="-70 80 0 0"></Image>
  115. </StackPanel>
  116. </StackPanel>
  117. </StackPanel>
  118. <StackPanel Background="Transparent" Margin="0 150 0 0" HorizontalAlignment="Center">
  119. <StackPanel.Styles>
  120. <Style Selector="TextBox.EditTextBox">
  121. <Setter Property="Foreground" Value="Black"></Setter>
  122. <Setter Property="FontFamily" Value="Roboto"></Setter>
  123. <Setter Property="FontWeight" Value="Medium"></Setter>
  124. <Setter Property="FontSize" Value="15"></Setter>
  125. <Setter Property="Background" Value="#FFF8F8"></Setter>
  126. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  127. <Setter Property="CornerRadius" Value="13"></Setter>
  128. <Setter Property="BorderThickness" Value="2"></Setter>
  129. <Setter Property="Padding" Value="20 8 0 0"></Setter>
  130. </Style>
  131. <Style Selector="TextBlock.TextColumns">
  132. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  133. <Setter Property="FontFamily" Value="Roboto"></Setter>
  134. <Setter Property="FontWeight" Value="Medium"></Setter>
  135. <Setter Property="FontSize" Value="20"></Setter>
  136. <Setter Property="Margin" Value="40 0 185 0"></Setter>
  137. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  138. </Style>
  139. <Style Selector="Border.TextColumns">
  140. <Setter Property="Margin" Value="0 0 0 20"></Setter>
  141. </Style>
  142. <Style Selector="Border.Data">
  143. <Setter Property="Background" Value="#FFF8F8"></Setter>
  144. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  145. <Setter Property="CornerRadius" Value="13"></Setter>
  146. <Setter Property="BorderThickness" Value="2"></Setter>
  147. </Style>
  148. <Style Selector="TextBlock.Data">
  149. <Setter Property="Background" Value="#FFF8F8"></Setter>
  150. <Setter Property="FontSize" Value="15"></Setter>
  151. <Setter Property="FontFamily" Value="Roboto"></Setter>
  152. <Setter Property="FontWeight" Value="Medium"></Setter>
  153. <Setter Property="Margin" Value="20 0 0 0"></Setter>
  154. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  155. </Style>
  156. <Style Selector="TextBlock.TextBtEdit">
  157. <Setter Property="Foreground" Value="Black"></Setter>
  158. <Setter Property="FontFamily" Value="Roboto"></Setter>
  159. <Setter Property="FontWeight" Value="Medium"></Setter>
  160. <Setter Property="FontSize" Value="15"></Setter>
  161. <Setter Property="Padding" Value="20 4 0 0"></Setter>
  162. </Style>
  163. <Style Selector="Button.BtEdit">
  164. <Setter Property="BorderThickness" Value="2"></Setter>
  165. <Setter Property="Width" Value="180"></Setter>
  166. <Setter Property="Height" Value="38"></Setter>
  167. <Setter Property="Background" Value="#FFF8F8"></Setter>
  168. <Setter Property="CornerRadius" Value="13"></Setter>
  169. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  170. </Style>
  171. <Style Selector="Button.BtEdit:pointerover /template/ ContentPresenter">
  172. <Setter Property="Background" Value="#FFF8F8"></Setter>
  173. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  174. </Style>
  175. <Style Selector="Button.BtEdit:pressed">
  176. <Setter Property="RenderTransform" Value="none"/>
  177. </Style>
  178. </StackPanel.Styles>
  179. <Border Classes="TextColumns" Background="#80E40714" CornerRadius="13" Width="1490" Height="40">
  180. <StackPanel Orientation="Horizontal">
  181. <TextBlock Classes="TextColumns">ID</TextBlock>
  182. <TextBlock Classes="TextColumns">СОТРУДНИКИ</TextBlock>
  183. <TextBlock Classes="TextColumns">РОЛЬ</TextBlock>
  184. <TextBlock Classes="TextColumns">ПОЧТА</TextBlock>
  185. <TextBlock Classes="TextColumns">ТЕЛЕФОН</TextBlock>
  186. </StackPanel>
  187. </Border>
  188. <ScrollViewer Height="500">
  189. <StackPanel Orientation="Vertical">
  190. <StackPanel Orientation="Horizontal" Margin="40 0 0 0">
  191. <Button Classes="BtEdit" Width="180" Height="40" Margin="0 0 65 0" Command="{Binding EditEmployeesView}">
  192. <TextBlock Classes="TextBtEdit">Типа ID</TextBlock>
  193. </Button>
  194. <!--<Border Classes="Data" CornerRadius="13" Width="180" Height="40" Margin="0 0 140 0">
  195. <TextBlock Classes="Data">Типа ID</TextBlock>
  196. </Border>-->
  197. <TextBox Classes="EditTextBox" Width="230" Margin="0 0 125 0">Типа сотрудник</TextBox>
  198. <!--<Border Classes="Data" CornerRadius="13" Width="310" Height="40" Margin="0 0 140 0">
  199. <TextBlock Classes="Data">Типа название торговой сети</TextBlock>
  200. </Border>-->
  201. <Border Classes="Data" CornerRadius="13" Width="170" Height="40" Margin="0 0 105 0">
  202. <TextBlock Classes="Data">Типа роль</TextBlock>
  203. </Border>
  204. <Border Classes="Data" CornerRadius="13" Width="190" Height="40" Margin="0 0 100 0">
  205. <TextBlock Classes="Data">Типа почта</TextBlock>
  206. </Border>
  207. <Border Classes="Data" CornerRadius="13" Width="255" Height="40">
  208. <TextBlock Classes="Data">Типа телефон</TextBlock>
  209. </Border>
  210. </StackPanel>
  211. <StackPanel Orientation="Horizontal" Margin="40 20 0 0">
  212. <Button Classes="BtEdit" Width="180" Height="40" Margin="0 0 65 0" Command="{Binding EditEmployeesView}">
  213. <TextBlock Classes="TextBtEdit">Типа ID</TextBlock>
  214. </Button>
  215. <!--<Border Classes="Data" CornerRadius="13" Width="180" Height="40" Margin="0 0 140 0">
  216. <TextBlock Classes="Data">Типа ID</TextBlock>
  217. </Border>-->
  218. <TextBox Classes="EditTextBox" Width="230" Margin="0 0 125 0">Типа сотрудник</TextBox>
  219. <!--<Border Classes="Data" CornerRadius="13" Width="310" Height="40" Margin="0 0 140 0">
  220. <TextBlock Classes="Data">Типа название торговой сети</TextBlock>
  221. </Border>-->
  222. <Border Classes="Data" CornerRadius="13" Width="170" Height="40" Margin="0 0 105 0">
  223. <TextBlock Classes="Data">Типа роль</TextBlock>
  224. </Border>
  225. <Border Classes="Data" CornerRadius="13" Width="190" Height="40" Margin="0 0 100 0">
  226. <TextBlock Classes="Data">Типа почта</TextBlock>
  227. </Border>
  228. <Border Classes="Data" CornerRadius="13" Width="255" Height="40">
  229. <TextBlock Classes="Data">Типа телефон</TextBlock>
  230. </Border>
  231. </StackPanel>
  232. </StackPanel>
  233. </ScrollViewer>
  234. </StackPanel>
  235. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  236. <StackPanel.Styles>
  237. <Style Selector="TextBlock.TextBtSave">
  238. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  239. <Setter Property="FontFamily" Value="Roboto"></Setter>
  240. <Setter Property="FontWeight" Value="Medium"></Setter>
  241. <Setter Property="FontSize" Value="20"></Setter>
  242. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  243. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  244. </Style>
  245. <Style Selector="Button.BtSave">
  246. <Setter Property="Width" Value="180"></Setter>
  247. <Setter Property="Height" Value="38"></Setter>
  248. <Setter Property="Margin" Value="0 740 30 20"></Setter>
  249. <Setter Property="Background" Value="#E40714"></Setter>
  250. <Setter Property="CornerRadius" Value="13"></Setter>
  251. </Style>
  252. <Style Selector="Button.BtSave:pointerover /template/ ContentPresenter">
  253. <Setter Property="Background" Value="#A10009"></Setter>
  254. </Style>
  255. <Style Selector="Button.BtSave:pressed">
  256. <Setter Property="RenderTransform" Value="none"/>
  257. </Style>
  258. </StackPanel.Styles>
  259. <Button Classes="BtSave" Command="">
  260. <TextBlock Classes="TextBtSave">Сохранить</TextBlock>
  261. </Button>
  262. </StackPanel>
  263. </Grid>
  264. </UserControl>