EmployeesView.axaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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="Margin" Value="40 0 100 0"></Setter>
  138. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  139. </Style>
  140. <Style Selector="Border.TextColumns">
  141. <Setter Property="Margin" Value="0 0 0 20"></Setter>
  142. </Style>
  143. <Style Selector="Border.Data">
  144. <Setter Property="Background" Value="#FFF8F8"></Setter>
  145. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  146. <Setter Property="CornerRadius" Value="13"></Setter>
  147. <Setter Property="BorderThickness" Value="2"></Setter>
  148. </Style>
  149. <Style Selector="TextBlock.Data">
  150. <Setter Property="Background" Value="#FFF8F8"></Setter>
  151. <Setter Property="FontSize" Value="15"></Setter>
  152. <Setter Property="FontFamily" Value="Roboto"></Setter>
  153. <Setter Property="FontWeight" Value="Medium"></Setter>
  154. <Setter Property="Margin" Value="20 0 0 0"></Setter>
  155. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  156. </Style>
  157. <Style Selector="TextBlock.TextBtEdit">
  158. <Setter Property="Foreground" Value="Black"></Setter>
  159. <Setter Property="FontFamily" Value="Roboto"></Setter>
  160. <Setter Property="FontWeight" Value="Medium"></Setter>
  161. <Setter Property="FontSize" Value="15"></Setter>
  162. <Setter Property="Padding" Value="20 4 0 0"></Setter>
  163. </Style>
  164. <Style Selector="Button.BtEdit">
  165. <Setter Property="BorderThickness" Value="2"></Setter>
  166. <Setter Property="Width" Value="180"></Setter>
  167. <Setter Property="Height" Value="38"></Setter>
  168. <Setter Property="Background" Value="#FFF8F8"></Setter>
  169. <Setter Property="CornerRadius" Value="13"></Setter>
  170. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  171. </Style>
  172. <Style Selector="Button.BtEdit:pointerover /template/ ContentPresenter">
  173. <Setter Property="Background" Value="#FFF8F8"></Setter>
  174. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  175. </Style>
  176. <Style Selector="Button.BtEdit:pressed">
  177. <Setter Property="RenderTransform" Value="none"/>
  178. </Style>
  179. </StackPanel.Styles>
  180. <Border Classes="TextColumns" Background="#80E40714" CornerRadius="13" Width="1490" Height="40">
  181. <StackPanel Orientation="Horizontal">
  182. <TextBlock Classes="TextColumns">ID</TextBlock>
  183. <!--<TextBlock Classes="TextColumns">СОТРУДНИКИ</TextBlock>-->
  184. <TextBlock Classes="TextColumns">ФАМИЛИЯ</TextBlock>
  185. <TextBlock Classes="TextColumns">ИМЯ</TextBlock>
  186. <TextBlock Classes="TextColumns">ОТЧЕСТВО</TextBlock>
  187. <TextBlock Classes="TextColumns">РОЛЬ</TextBlock>
  188. <TextBlock Classes="TextColumns">ПОЧТА</TextBlock>
  189. <TextBlock Classes="TextColumns">ТЕЛЕФОН</TextBlock>
  190. </StackPanel>
  191. </Border>
  192. <ScrollViewer Height="500">
  193. <StackPanel Orientation="Vertical">
  194. <!--СЛИТНОЕ ФИО-->
  195. <!--<StackPanel Orientation="Horizontal" Margin="40 0 0 0">
  196. <Button Classes="BtEdit" Width="180" Height="40" Margin="0 0 65 0" Command="{Binding EditEmployeesView}">
  197. <TextBlock Classes="TextBtEdit">Типа ID</TextBlock>
  198. </Button>
  199. --><!--<Border Classes="Data" CornerRadius="13" Width="180" Height="40" Margin="0 0 140 0">
  200. <TextBlock Classes="Data">Типа ID</TextBlock>
  201. </Border>--><!--
  202. <TextBox Classes="EditTextBox" Width="230" Margin="0 0 125 0">Типа сотрудник</TextBox>
  203. --><!--<Border Classes="Data" CornerRadius="13" Width="310" Height="40" Margin="0 0 140 0">
  204. <TextBlock Classes="Data">Типа название торговой сети</TextBlock>
  205. </Border>--><!--
  206. <Border Classes="Data" CornerRadius="13" Width="170" Height="40" Margin="0 0 105 0">
  207. <TextBlock Classes="Data">Типа роль</TextBlock>
  208. </Border>
  209. <Border Classes="Data" CornerRadius="13" Width="190" Height="40" Margin="0 0 100 0">
  210. <TextBlock Classes="Data">Типа почта</TextBlock>
  211. </Border>
  212. <Border Classes="Data" CornerRadius="13" Width="255" Height="40">
  213. <TextBlock Classes="Data">Типа телефон</TextBlock>
  214. </Border>
  215. </StackPanel>-->
  216. <!--<StackPanel Orientation="Horizontal" Margin="40 20 0 0">
  217. <Button Classes="BtEdit" Width="180" Height="40" Margin="0 0 65 0" Command="{Binding EditEmployeesView}">
  218. <TextBlock Classes="TextBtEdit">Типа ID</TextBlock>
  219. </Button>
  220. -->
  221. <!--<Border Classes="Data" CornerRadius="13" Width="180" Height="40" Margin="0 0 140 0">
  222. <TextBlock Classes="Data">Типа ID</TextBlock>
  223. </Border>-->
  224. <!--
  225. <TextBox Classes="EditTextBox" Width="230" Margin="0 0 125 0">Типа сотрудник</TextBox>
  226. -->
  227. <!--<Border Classes="Data" CornerRadius="13" Width="310" Height="40" Margin="0 0 140 0">
  228. <TextBlock Classes="Data">Типа название торговой сети</TextBlock>
  229. </Border>-->
  230. <!--
  231. <Border Classes="Data" CornerRadius="13" Width="170" Height="40" Margin="0 0 105 0">
  232. <TextBlock Classes="Data">Типа роль</TextBlock>
  233. </Border>
  234. <Border Classes="Data" CornerRadius="13" Width="190" Height="40" Margin="0 0 100 0">
  235. <TextBlock Classes="Data">Типа почта</TextBlock>
  236. </Border>
  237. <Border Classes="Data" CornerRadius="13" Width="255" Height="40">
  238. <TextBlock Classes="Data">Типа телефон</TextBlock>
  239. </Border>
  240. </StackPanel>-->
  241. <!--РАЗДЕЛЬНОЕ ФИО-->
  242. <StackPanel Orientation="Horizontal" Margin="70 0 0 0"><!--Margin="40 0 0 0"-->
  243. <Button Classes="BtEdit" Width="90" Height="40" Margin="0 0 70 0" Command="{Binding EditEmployeesView}">
  244. <TextBlock Classes="TextBtEdit">ID</TextBlock>
  245. </Button>
  246. <!--<Border Classes="Data" CornerRadius="13" Width="180" Height="40" Margin="0 0 140 0">
  247. <TextBlock Classes="Data">Типа ID</TextBlock>
  248. </Border>-->
  249. <!--<TextBox Classes="EditTextBox" Width="230" Margin="0 0 125 0">Типа сотрудник</TextBox>-->
  250. <TextBox Classes="EditTextBox" Width="170" Margin="0 0 70 0">Типа фамилия</TextBox>
  251. <TextBox Classes="EditTextBox" Width="130" Margin="0 0 55 0">Типа имя</TextBox>
  252. <TextBox Classes="EditTextBox" Width="170" Margin="0 0 70 0">Типа отчество</TextBox>
  253. <!--<Border Classes="Data" CornerRadius="13" Width="310" Height="40" Margin="0 0 140 0">
  254. <TextBlock Classes="Data">Типа название торговой сети</TextBlock>
  255. </Border>-->
  256. <Border Classes="Data" CornerRadius="13" Width="130" Height="40" Margin="0 0 63 0">
  257. <TextBlock Classes="Data">Типа роль</TextBlock>
  258. </Border>
  259. <Border Classes="Data" CornerRadius="13" Width="150" Height="40" Margin="0 0 55 0">
  260. <TextBlock Classes="Data">Типа почта</TextBlock>
  261. </Border>
  262. <Border Classes="Data" CornerRadius="13" Width="170" Height="40">
  263. <TextBlock Classes="Data">Типа телефон</TextBlock>
  264. </Border>
  265. </StackPanel>
  266. <StackPanel Orientation="Horizontal" Margin="70 20 0 0">
  267. <!--Margin="40 0 0 0"-->
  268. <Button Classes="BtEdit" Width="90" Height="40" Margin="0 0 70 0" Command="{Binding EditEmployeesView}">
  269. <TextBlock Classes="TextBtEdit">ID</TextBlock>
  270. </Button>
  271. <!--<Border Classes="Data" CornerRadius="13" Width="180" Height="40" Margin="0 0 140 0">
  272. <TextBlock Classes="Data">Типа ID</TextBlock>
  273. </Border>-->
  274. <!--<TextBox Classes="EditTextBox" Width="230" Margin="0 0 125 0">Типа сотрудник</TextBox>-->
  275. <TextBox Classes="EditTextBox" Width="170" Margin="0 0 70 0">Типа фамилия</TextBox>
  276. <TextBox Classes="EditTextBox" Width="130" Margin="0 0 55 0">Типа имя</TextBox>
  277. <TextBox Classes="EditTextBox" Width="170" Margin="0 0 70 0">Типа отчество</TextBox>
  278. <!--<Border Classes="Data" CornerRadius="13" Width="310" Height="40" Margin="0 0 140 0">
  279. <TextBlock Classes="Data">Типа название торговой сети</TextBlock>
  280. </Border>-->
  281. <Border Classes="Data" CornerRadius="13" Width="130" Height="40" Margin="0 0 63 0">
  282. <TextBlock Classes="Data">Типа роль</TextBlock>
  283. </Border>
  284. <Border Classes="Data" CornerRadius="13" Width="150" Height="40" Margin="0 0 55 0">
  285. <TextBlock Classes="Data">Типа почта</TextBlock>
  286. </Border>
  287. <Border Classes="Data" CornerRadius="13" Width="170" Height="40">
  288. <TextBlock Classes="Data">Типа телефон</TextBlock>
  289. </Border>
  290. </StackPanel>
  291. </StackPanel>
  292. </ScrollViewer>
  293. </StackPanel>
  294. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  295. <StackPanel.Styles>
  296. <Style Selector="TextBlock.TextBtSave">
  297. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  298. <Setter Property="FontFamily" Value="Roboto"></Setter>
  299. <Setter Property="FontWeight" Value="Medium"></Setter>
  300. <Setter Property="FontSize" Value="20"></Setter>
  301. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  302. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  303. </Style>
  304. <Style Selector="Button.BtSave">
  305. <Setter Property="Width" Value="180"></Setter>
  306. <Setter Property="Height" Value="38"></Setter>
  307. <Setter Property="Margin" Value="0 740 30 20"></Setter>
  308. <Setter Property="Background" Value="#E40714"></Setter>
  309. <Setter Property="CornerRadius" Value="13"></Setter>
  310. </Style>
  311. <Style Selector="Button.BtSave:pointerover /template/ ContentPresenter">
  312. <Setter Property="Background" Value="#A10009"></Setter>
  313. </Style>
  314. <Style Selector="Button.BtSave:pressed">
  315. <Setter Property="RenderTransform" Value="none"/>
  316. </Style>
  317. </StackPanel.Styles>
  318. <Button Classes="BtSave" Command="">
  319. <TextBlock Classes="TextBtSave">Сохранить</TextBlock>
  320. </Button>
  321. </StackPanel>
  322. </Grid>
  323. </UserControl>