EditProjectsView.axaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  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. xmlns:vm="using:Acosta.ViewModels"
  6. x:DataType="vm:MainWindowViewModel"
  7. mc:Ignorable="d" d:DesignWidth="1550" d:DesignHeight="800.5"
  8. x:Class="Acosta.Views.EditProjectsView">
  9. <Grid>
  10. <StackPanel>
  11. <StackPanel Height="50" Background="#E40714" VerticalAlignment="Top">
  12. <StackPanel.Styles>
  13. <Style Selector="TextBlock.headerLogo">
  14. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  15. <Setter Property="FontFamily" Value="Roboto"></Setter>
  16. <Setter Property="FontWeight" Value="Regular"></Setter>
  17. <Setter Property="FontSize" Value="35"></Setter>
  18. <Setter Property="Margin" Value="30 0 0 0"></Setter>
  19. </Style>
  20. <Style Selector="TextBlock.greeting">
  21. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  22. <Setter Property="FontFamily" Value="Roboto"></Setter>
  23. <Setter Property="FontWeight" Value="Medium"></Setter>
  24. <Setter Property="FontSize" Value="16"></Setter>
  25. </Style>
  26. <Style Selector="Button.headerBt">
  27. <Setter Property="Background" Value="Transparent"></Setter>
  28. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  29. <Setter Property="FontFamily" Value="Roboto"></Setter>
  30. <Setter Property="FontSize" Value="16"></Setter>
  31. <Setter Property="FontWeight" Value="Medium"></Setter>
  32. </Style>
  33. <Style Selector="Button.headerBt:pointerover /template/ ContentPresenter">
  34. <Setter Property="Background" Value="Transparent"></Setter>
  35. <Setter Property="Foreground" Value="#D5AFAF"></Setter>
  36. <Setter Property="FontWeight" Value="Medium"></Setter>
  37. <Setter Property="FontSize" Value="16"></Setter>
  38. </Style>
  39. <Style Selector="Button.headerBt:pressed">
  40. <Setter Property="RenderTransform" Value="none"/>
  41. </Style>
  42. </StackPanel.Styles>
  43. <StackPanel Orientation="Horizontal">
  44. <TextBlock Classes="headerLogo">Acosta</TextBlock>
  45. <TextBlock Classes="greeting" Margin="770 12 0 0">Добро пожаловать, оператор</TextBlock>
  46. <TextBlock Classes="greeting" Margin="7 12 0 0" FontWeight="Bold" Name="FIO" Text="{Binding PersonalAccountVM.CurrentUser.Surname}">Фамилия И.О.</TextBlock>
  47. <TextBlock Classes="greeting" Margin="10 10 0 0">/</TextBlock>
  48. <Button Classes="headerBt" Command="{Binding ChangePasswordView}">Изменить пароль</Button>
  49. <TextBlock Classes="greeting" Margin="0 10 0 0">/</TextBlock>
  50. <Button Classes="headerBt" Command="{Binding ExitFromProfile}">Выйти</Button>
  51. </StackPanel>
  52. </StackPanel>
  53. <StackPanel Classes="PanelMenu" Orientation="Horizontal">
  54. <StackPanel.Styles>
  55. <Style Selector="StackPanel.PanelMenu">
  56. <Setter Property="Margin" Value="30"></Setter>
  57. </Style>
  58. <Style Selector="TextBlock.TextBtBack">
  59. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  60. <Setter Property="FontFamily" Value="Roboto"></Setter>
  61. <Setter Property="FontWeight" Value="Medium"></Setter>
  62. <Setter Property="FontSize" Value="20"></Setter>
  63. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  64. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  65. </Style>
  66. <Style Selector="TextBlock.Chapter">
  67. <Setter Property="Foreground" Value="Black"></Setter>
  68. <Setter Property="FontFamily" Value="Roboto"></Setter>
  69. <Setter Property="FontWeight" Value="Medium"></Setter>
  70. <Setter Property="FontSize" Value="20"></Setter>
  71. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  72. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  73. <Setter Property="Margin" Value="30 0"></Setter>
  74. </Style>
  75. <Style Selector="Button.BtBack">
  76. <Setter Property="Width" Value="140"></Setter>
  77. <Setter Property="Height" Value="40"></Setter>
  78. <Setter Property="Background" Value="#E40714"></Setter>
  79. <Setter Property="CornerRadius" Value="13"></Setter>
  80. </Style>
  81. <Style Selector="Button.BtBack:pointerover /template/ ContentPresenter">
  82. <Setter Property="Background" Value="#A10009"></Setter>
  83. </Style>
  84. <Style Selector="Button.BtBack:pressed">
  85. <Setter Property="RenderTransform" Value="none"/>
  86. </Style>
  87. <Style Selector="Button.BtAdd">
  88. <Setter Property="Height" Value="40"></Setter>
  89. <Setter Property="Margin" Value="670 0 0 0"></Setter>
  90. <Setter Property="Background" Value="#E40714"></Setter>
  91. <Setter Property="CornerRadius" Value="13"></Setter>
  92. </Style>
  93. <Style Selector="Button.BtAdd:pointerover /template/ ContentPresenter">
  94. <Setter Property="Background" Value="#A10009"></Setter>
  95. </Style>
  96. <Style Selector="TextBlock.TextBtAdd">
  97. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  98. <Setter Property="FontFamily" Value="Roboto"></Setter>
  99. <Setter Property="FontWeight" Value="Medium"></Setter>
  100. <Setter Property="FontSize" Value="18"></Setter>
  101. <Setter Property="Margin" Value="20 0 0 0"></Setter>
  102. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  103. </Style>
  104. <Style Selector="Button.BtAdd:pressed">
  105. <Setter Property="RenderTransform" Value="none"/>
  106. </Style>
  107. </StackPanel.Styles>
  108. <Button Classes="BtBack" Command="{Binding BackProjectsView}">
  109. <TextBlock Classes="TextBtBack">Назад</TextBlock>
  110. </Button>
  111. <TextBlock Classes="Chapter">Изменение проекта</TextBlock>
  112. </StackPanel>
  113. <StackPanel>
  114. <StackPanel.Styles>
  115. <Style Selector="TextBlock.TextToTextBox">
  116. <Setter Property="Foreground" Value="Black"></Setter>
  117. <Setter Property="FontFamily" Value="Roboto"></Setter>
  118. <Setter Property="FontWeight" Value="Regular"></Setter>
  119. <Setter Property="FontSize" Value="18"></Setter>
  120. <Setter Property="Margin" Value="200 30 0 0"></Setter>
  121. <Setter Property="Width" Value="330"></Setter>
  122. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  123. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  124. </Style>
  125. <Style Selector="TextBox">
  126. <Setter Property="Background" Value="#FFF8F8"></Setter>
  127. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  128. <Setter Property="CornerRadius" Value="9"></Setter>
  129. <Setter Property="BorderThickness" Value="2"></Setter>
  130. <Setter Property="FontSize" Value="14"></Setter>
  131. <Setter Property="FontFamily" Value="Roboto"></Setter>
  132. <Setter Property="Margin" Value="10 30 0 0"></Setter>
  133. <Setter Property="Height" Value="40"></Setter>
  134. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  135. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  136. </Style>
  137. <Style Selector="TextBox:pointerover /template/ TextBlock#PART_Watermark">
  138. <Setter Property="TextBox.BorderBrush" Value="#A10009" />
  139. </Style>
  140. <Style Selector="TextBox:focus /template/ TextBlock#PART_Watermark">
  141. <Setter Property="TextBox.BorderBrush" Value="#A10009" />
  142. </Style>
  143. <Style Selector="Border.TextColumn">
  144. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  145. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  146. <Setter Property="Background" Value="#FFF8F8"></Setter>
  147. <Setter Property="Height" Value="35"></Setter>
  148. <Setter Property="Width" Value="360"></Setter>
  149. <Setter Property="Margin" Value="10 30 0 0"></Setter>
  150. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  151. <Setter Property="BorderThickness" Value="2"></Setter>
  152. <Setter Property="CornerRadius" Value="10"></Setter>
  153. </Style>
  154. <Style Selector="DatePicker.TextColumn">
  155. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  156. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  157. <Setter Property="Background" Value="#FFF8F8"></Setter>
  158. <Setter Property="Width" Value="360"></Setter>
  159. <Setter Property="Margin" Value="10 30 0 0"></Setter>
  160. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  161. <Setter Property="BorderThickness" Value="2"></Setter>
  162. <Setter Property="CornerRadius" Value="10"></Setter>
  163. </Style>
  164. <Style Selector="TimePicker.TextColumn">
  165. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  166. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  167. <Setter Property="Background" Value="#FFF8F8"></Setter>
  168. <Setter Property="Width" Value="360"></Setter>
  169. <Setter Property="Margin" Value="10 30 0 0"></Setter>
  170. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  171. <Setter Property="BorderThickness" Value="2"></Setter>
  172. <Setter Property="CornerRadius" Value="10"></Setter>
  173. </Style>
  174. <Style Selector="CheckBox.TextColumn">
  175. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  176. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  177. <Setter Property="Margin" Value="10 30 0 0"></Setter>
  178. </Style>
  179. <Style Selector="ComboBox.TextColumn">
  180. <Setter Property="Width" Value="360"></Setter>
  181. <Setter Property="Height" Value="30"></Setter>
  182. <Setter Property="Background" Value="Transparent"></Setter>
  183. <Setter Property="BorderBrush" Value="Transparent"></Setter>
  184. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  185. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  186. </Style>
  187. <Style Selector="ComboBox.TextColumn:pointerover /template/ Border#Background">
  188. <Setter Property="Width" Value="360"></Setter>
  189. <Setter Property="Background" Value=""></Setter>
  190. <Setter Property="BorderBrush" Value="Transparent"></Setter>
  191. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  192. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  193. </Style>
  194. </StackPanel.Styles>
  195. <ScrollViewer Height="600">
  196. <StackPanel Orientation="Vertical">
  197. <StackPanel Orientation="Horizontal">
  198. <TextBlock Classes="TextToTextBox">ID:</TextBlock>
  199. <TextBox Classes="TextColumn"></TextBox>
  200. </StackPanel>
  201. <Border Background="#969696" CornerRadius="13" Width="1150" Height="0.5" Margin="200 30 0 10" HorizontalAlignment="Left"></Border>
  202. <StackPanel Orientation="Horizontal">
  203. <TextBlock Classes="TextToTextBox">Название:</TextBlock>
  204. <TextBox Classes="TextColumn" Width="200"></TextBox>
  205. </StackPanel>
  206. <Border Background="#969696" CornerRadius="13" Width="1150" Height="0.5" Margin="200 30 0 10" HorizontalAlignment="Left"></Border>
  207. <StackPanel Orientation="Horizontal">
  208. <TextBlock Classes="TextToTextBox">Количество посещений за неделю:</TextBlock>
  209. <TextBox Classes="TextColumn"></TextBox>
  210. </StackPanel>
  211. <Border Background="#969696" CornerRadius="13" Width="1150" Height="0.5" Margin="200 30 0 10" HorizontalAlignment="Left"></Border>
  212. <StackPanel Orientation="Horizontal">
  213. <TextBlock Classes="TextToTextBox">Количество продуктов:</TextBlock>
  214. <TextBox Classes="TextColumn"></TextBox>
  215. </StackPanel>
  216. <Border Background="#969696" CornerRadius="13" Width="1150" Height="0.5" Margin="200 30 0 10" HorizontalAlignment="Left"></Border>
  217. <StackPanel Margin="0 30">
  218. <StackPanel.Styles>
  219. <Style Selector="TextBlock.TextColumns">
  220. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  221. <Setter Property="FontFamily" Value="Roboto"></Setter>
  222. <Setter Property="FontWeight" Value="Medium"></Setter>
  223. <Setter Property="FontSize" Value="18"></Setter>
  224. <Setter Property="Margin" Value="40 0"></Setter>
  225. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  226. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  227. </Style>
  228. <Style Selector="Border.TextColumns">
  229. <Setter Property="Margin" Value="200 0"></Setter>
  230. </Style>
  231. </StackPanel.Styles>
  232. <Border Classes="TextColumns" Background="#80E40714" CornerRadius="13" Height="40">
  233. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
  234. <TextBlock Classes="TextColumns">ПРОДУКТЫ</TextBlock>
  235. </StackPanel>
  236. </Border>
  237. <StackPanel Orientation="Vertical" Margin="250 20">
  238. <StackPanel.Styles>
  239. <Style Selector="TextBox.TextColumn">
  240. <Setter Property="Foreground" Value="Black"></Setter>
  241. <Setter Property="FontFamily" Value="Roboto"></Setter>
  242. <Setter Property="FontWeight" Value="Medium"></Setter>
  243. <Setter Property="FontSize" Value="18"></Setter>
  244. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  245. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  246. <Setter Property="Margin" Value="0"></Setter>
  247. </Style>
  248. <Style Selector="TextBlock.TextColumn">
  249. <Setter Property="Foreground" Value="Black"></Setter>
  250. <Setter Property="FontFamily" Value="Roboto"></Setter>
  251. <Setter Property="FontWeight" Value="Medium"></Setter>
  252. <Setter Property="FontSize" Value="18"></Setter>
  253. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  254. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  255. <Setter Property="Margin" Value="0 0 30 0"></Setter>
  256. </Style>
  257. </StackPanel.Styles>
  258. <StackPanel Orientation="Horizontal">
  259. <TextBlock Classes="TextColumn">Наименование:</TextBlock>
  260. <TextBox Classes="TextColumn" Width="230"></TextBox>
  261. </StackPanel>
  262. </StackPanel>
  263. </StackPanel>
  264. </StackPanel>
  265. </ScrollViewer>
  266. </StackPanel>
  267. </StackPanel>
  268. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  269. <StackPanel.Styles>
  270. <Style Selector="TextBlock.TextBtDelete">
  271. <Setter Property="Foreground" Value="#E40714"></Setter>
  272. <Setter Property="FontFamily" Value="Roboto"></Setter>
  273. <Setter Property="FontWeight" Value="Medium"></Setter>
  274. <Setter Property="FontSize" Value="20"></Setter>
  275. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  276. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  277. </Style>
  278. <Style Selector="Button.BtDelete">
  279. <Setter Property="BorderThickness" Value="2"></Setter>
  280. <Setter Property="Width" Value="180"></Setter>
  281. <Setter Property="Height" Value="38"></Setter>
  282. <Setter Property="Margin" Value="0 740 70 20"></Setter>
  283. <Setter Property="Background" Value="Transparent"></Setter>
  284. <Setter Property="CornerRadius" Value="13"></Setter>
  285. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  286. </Style>
  287. <Style Selector="Button.BtDelete:pointerover /template/ ContentPresenter">
  288. <Setter Property="BorderBrush" Value="#A10009"></Setter>
  289. <Setter Property="Background" Value="Transparent"></Setter>
  290. </Style>
  291. <Style Selector="Button.BtDelete:pressed">
  292. <Setter Property="RenderTransform" Value="none"/>
  293. </Style>
  294. <Style Selector="TextBlock.TextBtSave">
  295. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  296. <Setter Property="FontFamily" Value="Roboto"></Setter>
  297. <Setter Property="FontWeight" Value="Medium"></Setter>
  298. <Setter Property="FontSize" Value="20"></Setter>
  299. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  300. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  301. </Style>
  302. <Style Selector="Button.BtSave">
  303. <Setter Property="Width" Value="180"></Setter>
  304. <Setter Property="Height" Value="38"></Setter>
  305. <Setter Property="Margin" Value="0 740 30 20"></Setter>
  306. <Setter Property="Background" Value="#E40714"></Setter>
  307. <Setter Property="CornerRadius" Value="13"></Setter>
  308. </Style>
  309. <Style Selector="Button.BtSave:pointerover /template/ ContentPresenter">
  310. <Setter Property="Background" Value="#A10009"></Setter>
  311. </Style>
  312. <Style Selector="Button.BtSave:pressed">
  313. <Setter Property="RenderTransform" Value="none"/>
  314. </Style>
  315. </StackPanel.Styles>
  316. <Button Classes="BtDelete" Command="">
  317. <TextBlock Classes="TextBtDelete">Удалить</TextBlock>
  318. </Button>
  319. <Button Classes="BtSave" Command="">
  320. <TextBlock Classes="TextBtSave">Сохранить</TextBlock>
  321. </Button>
  322. </StackPanel>
  323. </Grid>
  324. </UserControl>