AddVisitView.axaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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:vm="using:Acosta.ViewModels"
  5. x:DataType="vm:MainWindowViewModel"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. mc:Ignorable="d" d:DesignWidth="1550" d:DesignHeight="1000"
  8. x:Class="Acosta.Views.AddVisitView">
  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 BackVisitView}">
  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="270"></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">Торговая точка:</TextBlock>
  199. <Border Classes="TextColumn">
  200. <ComboBox Classes="TextColumn">
  201. <ComboBoxItem>название</ComboBoxItem>
  202. </ComboBox>
  203. </Border>
  204. </StackPanel>
  205. <Border Background="#969696" CornerRadius="13" Width="1150" Height="0.5" Margin="200 30 0 10" HorizontalAlignment="Left"></Border>
  206. <StackPanel Orientation="Horizontal">
  207. <TextBlock Classes="TextToTextBox">Проект:</TextBlock>
  208. <Border Classes="TextColumn">
  209. <ComboBox Classes="TextColumn">
  210. <ComboBoxItem>название</ComboBoxItem>
  211. </ComboBox>
  212. </Border>
  213. </StackPanel>
  214. <Border Background="#969696" CornerRadius="13" Width="1150" Height="0.5" Margin="200 30 0 10" HorizontalAlignment="Left"></Border>
  215. <StackPanel Orientation="Horizontal">
  216. <TextBlock Classes="TextToTextBox">Дата визита:</TextBlock>
  217. <DatePicker Classes="TextColumn"></DatePicker>
  218. </StackPanel>
  219. <Border Background="#969696" CornerRadius="13" Width="1150" Height="0.5" Margin="200 30 0 10" HorizontalAlignment="Left"></Border>
  220. <StackPanel Orientation="Horizontal">
  221. <TextBlock Classes="TextToTextBox">Время визита:</TextBlock>
  222. <TimePicker Classes="TextColumn"></TimePicker>
  223. </StackPanel>
  224. <Border Background="#969696" CornerRadius="13" Width="1150" Height="0.5" Margin="200 30 0 10" HorizontalAlignment="Left"></Border>
  225. <StackPanel Orientation="Horizontal">
  226. <TextBlock Classes="TextToTextBox">Визит принят:</TextBlock>
  227. <CheckBox Classes="TextColumn"></CheckBox>
  228. </StackPanel>
  229. <Border Background="#969696" CornerRadius="13" Width="1150" Height="0.5" Margin="200 30 0 10" HorizontalAlignment="Left"></Border>
  230. <StackPanel Orientation="Horizontal">
  231. <TextBlock Classes="TextToTextBox">Комментарий мерчандайзера:</TextBlock>
  232. <TextBox Classes="TextColumn" Width="500"></TextBox>
  233. </StackPanel>
  234. <Border Background="#969696" CornerRadius="13" Width="1150" Height="0.5" Margin="200 30 0 10" HorizontalAlignment="Left"></Border>
  235. <StackPanel Margin="0 30">
  236. <StackPanel.Styles>
  237. <Style Selector="TextBlock.TextColumns">
  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="18"></Setter>
  242. <Setter Property="Margin" Value="40 0"></Setter>
  243. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  244. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  245. </Style>
  246. <Style Selector="Border.TextColumns">
  247. <Setter Property="Margin" Value="200 0"></Setter>
  248. </Style>
  249. </StackPanel.Styles>
  250. <Border Classes="TextColumns" Background="#80E40714" CornerRadius="13" Height="40">
  251. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  252. <TextBlock Classes="TextColumns">НАИМЕНОВАНИЕ</TextBlock>
  253. <TextBlock Classes="TextColumns">ЦЕНА</TextBlock>
  254. <TextBlock Classes="TextColumns">ЦЕНА ПО КАРТЕ</TextBlock>
  255. <TextBlock Classes="TextColumns">ФАКТИЧЕСКИЙ БАЛАНС</TextBlock>
  256. <TextBlock Classes="TextColumns">ВИРТУАЛЬНЫЙ БАЛАНС</TextBlock>
  257. </StackPanel>
  258. </Border>
  259. <StackPanel Orientation="Vertical" Margin="65 20">
  260. <StackPanel.Styles>
  261. <Style Selector="TextBox.TextColumn">
  262. <Setter Property="Foreground" Value="Black"></Setter>
  263. <Setter Property="FontFamily" Value="Roboto"></Setter>
  264. <Setter Property="FontWeight" Value="Medium"></Setter>
  265. <Setter Property="FontSize" Value="18"></Setter>
  266. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  267. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  268. </Style>
  269. </StackPanel.Styles>
  270. <StackPanel Orientation="Horizontal" Margin="140 0" >
  271. <TextBox Classes="TextColumn" Width="220" Margin="0 0 40 0"></TextBox>
  272. <TextBox Classes="TextColumn" Width="90" Margin="0 0 40 0"></TextBox>
  273. <TextBox Classes="TextColumn" Width="180" Margin="0 0 40 0"></TextBox>
  274. <TextBox Classes="TextColumn" Width="240" Margin="0 0 40 0"></TextBox>
  275. <TextBox Classes="TextColumn" Width="220" Margin="0 0 40 0"></TextBox>
  276. </StackPanel>
  277. </StackPanel>
  278. </StackPanel>
  279. </StackPanel>
  280. </ScrollViewer>
  281. </StackPanel>
  282. </StackPanel>
  283. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  284. <StackPanel.Styles>
  285. <Style Selector="TextBlock.TextBtSave">
  286. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  287. <Setter Property="FontFamily" Value="Roboto"></Setter>
  288. <Setter Property="FontWeight" Value="Medium"></Setter>
  289. <Setter Property="FontSize" Value="20"></Setter>
  290. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  291. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  292. </Style>
  293. <Style Selector="Button.BtSave">
  294. <Setter Property="Width" Value="180"></Setter>
  295. <Setter Property="Height" Value="38"></Setter>
  296. <Setter Property="Margin" Value="0 740 30 20"></Setter>
  297. <Setter Property="Background" Value="#E40714"></Setter>
  298. <Setter Property="CornerRadius" Value="13"></Setter>
  299. </Style>
  300. <Style Selector="Button.BtSave:pointerover /template/ ContentPresenter">
  301. <Setter Property="Background" Value="#A10009"></Setter>
  302. </Style>
  303. <Style Selector="Button.BtSave:pressed">
  304. <Setter Property="RenderTransform" Value="none"/>
  305. </Style>
  306. </StackPanel.Styles>
  307. <Button Classes="BtSave" Command="">
  308. <TextBlock Classes="TextBtSave">Сохранить</TextBlock>
  309. </Button>
  310. </StackPanel>
  311. </Grid>
  312. </UserControl>