OutletsView.axaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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.OutletsView">
  9. <Grid>
  10. <StackPanel 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="16"></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="16"></Setter>
  30. <Setter Property="FontWeight" Value="Medium"></Setter>
  31. </Style>
  32. <Style Selector="Button.headerBt:pointerover /template/ ContentPresenter">
  33. <Setter Property="Background" Value="Transparent"></Setter>
  34. <Setter Property="Foreground" Value="#D5AFAF"></Setter>
  35. <Setter Property="FontWeight" Value="Medium"></Setter>
  36. <Setter Property="FontSize" Value="16"></Setter>
  37. </Style>
  38. <Style Selector="Button.headerBt:pressed">
  39. <Setter Property="RenderTransform" Value="none"/>
  40. </Style>
  41. </StackPanel.Styles>
  42. <StackPanel Orientation="Horizontal">
  43. <TextBlock Classes="headerLogo">Acosta</TextBlock>
  44. <TextBlock Classes="greeting" Margin="770 12 0 0">Добро пожаловать, оператор</TextBlock>
  45. <TextBlock Classes="greeting" Margin="7 12 0 0" FontWeight="Bold" Name="FIO" Text="{Binding PersonalAccountVM.CurrentUser.Surname}">Фамилия И.О.</TextBlock>
  46. <TextBlock Classes="greeting" Margin="10 10 0 0">/</TextBlock>
  47. <Button Classes="headerBt" Command="{Binding ChangePasswordView}">Изменить пароль</Button>
  48. <TextBlock Classes="greeting" Margin="0 10 0 0">/</TextBlock>
  49. <Button Classes="headerBt" Command="{Binding ExitFromProfile}">Выйти</Button>
  50. </StackPanel>
  51. </StackPanel>
  52. <StackPanel>
  53. <StackPanel.Styles>
  54. <Style Selector="TextBlock.TextBtBack">
  55. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  56. <Setter Property="FontFamily" Value="Roboto"></Setter>
  57. <Setter Property="FontWeight" Value="Medium"></Setter>
  58. <Setter Property="FontSize" Value="20"></Setter>
  59. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  60. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  61. </Style>
  62. <Style Selector="TextBlock.Chapter">
  63. <Setter Property="Foreground" Value="Black"></Setter>
  64. <Setter Property="FontFamily" Value="Roboto"></Setter>
  65. <Setter Property="FontWeight" Value="Medium"></Setter>
  66. <Setter Property="FontSize" Value="20"></Setter>
  67. <Setter Property="Margin" Value="30 85 0 0"></Setter>
  68. </Style>
  69. <Style Selector="Button.BtBack">
  70. <Setter Property="Width" Value="140"></Setter>
  71. <Setter Property="Height" Value="40"></Setter>
  72. <Setter Property="Margin" Value="30 80 0 0"></Setter>
  73. <Setter Property="Background" Value="#E40714"></Setter>
  74. <Setter Property="CornerRadius" Value="13"></Setter>
  75. </Style>
  76. <Style Selector="Button.BtBack:pointerover /template/ ContentPresenter">
  77. <Setter Property="Background" Value="#A10009"></Setter>
  78. </Style>
  79. <Style Selector="Button.BtBack:pressed">
  80. <Setter Property="RenderTransform" Value="none"/>
  81. </Style>
  82. <Style Selector="Button.BtAdd">
  83. <Setter Property="Height" Value="40"></Setter>
  84. <Setter Property="Margin" Value="590 80 0 0"></Setter>
  85. <Setter Property="Background" Value="#E40714"></Setter>
  86. <Setter Property="CornerRadius" Value="13"></Setter>
  87. </Style>
  88. <Style Selector="Button.BtAdd:pointerover /template/ ContentPresenter">
  89. <Setter Property="Background" Value="#A10009"></Setter>
  90. </Style>
  91. <Style Selector="TextBlock.TextBtAdd">
  92. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  93. <Setter Property="FontFamily" Value="Roboto"></Setter>
  94. <Setter Property="FontWeight" Value="Medium"></Setter>
  95. <Setter Property="FontSize" Value="18"></Setter>
  96. <Setter Property="Margin" Value="20 0 0 0"></Setter>
  97. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  98. </Style>
  99. <Style Selector="Button.BtAdd:pressed">
  100. <Setter Property="RenderTransform" Value="none"/>
  101. </Style>
  102. </StackPanel.Styles>
  103. <StackPanel Orientation="Horizontal">
  104. <Button Classes="BtBack" Command="{Binding BackPersonalAccountView}">
  105. <TextBlock Classes="TextBtBack">Назад</TextBlock>
  106. </Button>
  107. <TextBlock Classes="Chapter">Выберите Торговую точку для изменения</TextBlock>
  108. <StackPanel Orientation="Horizontal">
  109. <Button Classes="BtAdd" Width="330" Command="{Binding AddOutletsView}">
  110. <TextBlock Classes="TextBtAdd">Добавить торговую точку</TextBlock>
  111. </Button>
  112. <Image Source="avares://Acosta/Assets/plus.png" Width="25" Margin="-70 80 0 0"></Image>
  113. </StackPanel>
  114. </StackPanel>
  115. </StackPanel>
  116. <StackPanel Background="Transparent" Margin="0 150 0 0" HorizontalAlignment="Center">
  117. <StackPanel.Styles>
  118. <Style Selector="ListBox.filters ListBoxItem:pointerover /template/ ContentPresenter">
  119. <Setter Property="Background" Value="#FFF8F8"/>
  120. </Style>
  121. <Style Selector="ListBox.filters ListBoxItem:focus-within /template/ ContentPresenter">
  122. <Setter Property="Background" Value="#FFF8F8"/>
  123. </Style>
  124. <Style Selector="ListBox.filters ListBoxItem:selected /template/ ContentPresenter">
  125. <Setter Property="Background" Value="#F48288"/>
  126. </Style>
  127. <Style Selector="TextBox.EditTextBox">
  128. <Setter Property="Foreground" Value="Black"></Setter>
  129. <Setter Property="FontFamily" Value="Roboto"></Setter>
  130. <Setter Property="FontWeight" Value="Medium"></Setter>
  131. <Setter Property="FontSize" Value="15"></Setter>
  132. <Setter Property="Background" Value="#FFF8F8"></Setter>
  133. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  134. <Setter Property="CornerRadius" Value="13"></Setter>
  135. <Setter Property="BorderThickness" Value="2"></Setter>
  136. <Setter Property="Padding" Value="20 8 0 0"></Setter>
  137. </Style>
  138. <Style Selector="TextBlock.TextColumns">
  139. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  140. <Setter Property="FontFamily" Value="Roboto"></Setter>
  141. <Setter Property="FontWeight" Value="Medium"></Setter>
  142. <Setter Property="FontSize" Value="20"></Setter>
  143. <Setter Property="Margin" Value="40 0 220 0"></Setter>
  144. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  145. </Style>
  146. <Style Selector="Border.TextColumns">
  147. <Setter Property="Margin" Value="0 0 0 20"></Setter>
  148. </Style>
  149. <Style Selector="Border.Data">
  150. <Setter Property="Background" Value="#FFF8F8"></Setter>
  151. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  152. <Setter Property="CornerRadius" Value="13"></Setter>
  153. <Setter Property="BorderThickness" Value="2"></Setter>
  154. </Style>
  155. <Style Selector="TextBlock.Data">
  156. <Setter Property="Background" Value="#FFF8F8"></Setter>
  157. <Setter Property="FontSize" Value="15"></Setter>
  158. <Setter Property="FontFamily" Value="Roboto"></Setter>
  159. <Setter Property="FontWeight" Value="Medium"></Setter>
  160. <Setter Property="Margin" Value="20 0 0 0"></Setter>
  161. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  162. </Style>
  163. <Style Selector="TextBlock.TextBtEdit">
  164. <Setter Property="Foreground" Value="Black"></Setter>
  165. <Setter Property="FontFamily" Value="Roboto"></Setter>
  166. <Setter Property="FontWeight" Value="Medium"></Setter>
  167. <Setter Property="FontSize" Value="15"></Setter>
  168. <Setter Property="Padding" Value="20 4 0 0"></Setter>
  169. </Style>
  170. <Style Selector="Button.BtEdit">
  171. <Setter Property="BorderThickness" Value="2"></Setter>
  172. <Setter Property="Width" Value="180"></Setter>
  173. <Setter Property="Height" Value="38"></Setter>
  174. <Setter Property="Background" Value="#FFF8F8"></Setter>
  175. <Setter Property="CornerRadius" Value="13"></Setter>
  176. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  177. </Style>
  178. <Style Selector="Button.BtEdit:pointerover /template/ ContentPresenter">
  179. <Setter Property="Background" Value="#FFF8F8"></Setter>
  180. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  181. </Style>
  182. <Style Selector="Button.BtEdit:pressed">
  183. <Setter Property="RenderTransform" Value="none"/>
  184. </Style>
  185. </StackPanel.Styles>
  186. <Border Classes="TextColumns" Background="#80E40714" CornerRadius="13" Width="1490" Height="40">
  187. <StackPanel Orientation="Horizontal">
  188. <TextBlock Classes="TextColumns">ID</TextBlock>
  189. <TextBlock Classes="TextColumns">ТОРГОВАЯ СЕТЬ</TextBlock>
  190. <TextBlock Classes="TextColumns">АДРЕС</TextBlock>
  191. <TextBlock Classes="TextColumns">МЕСТОПОЛОЖЕНИЕ</TextBlock>
  192. </StackPanel>
  193. </Border>
  194. <ScrollViewer Height="550">
  195. <StackPanel Orientation="Vertical">
  196. <ListBox Classes="filters" ItemsSource="{Binding ListOutlets}" Background="Transparent" IsTabStop="False">
  197. <ListBox.ItemTemplate>
  198. <DataTemplate>
  199. <StackPanel Orientation="Horizontal" Margin="40 0 0 0">
  200. <!--<Button Classes="BtEdit" Width="180" Height="40" Margin="0 0 140 0" Command="{Binding EditOutletsView}">
  201. <TextBlock Classes="TextBtEdit">Типа ID</TextBlock>
  202. </Button>-->
  203. <!--<Border Classes="Data" CornerRadius="13" Width="180" Height="40" Margin="0 0 140 0">
  204. <TextBlock Classes="Data">Типа ID</TextBlock>
  205. </Border>-->
  206. <Border Classes="Data" CornerRadius="13" Width="150" Height="40" Margin="0 0 120 0">
  207. <TextBlock Text="{Binding Outletid}" Classes="Data">Типа id</TextBlock>
  208. </Border>
  209. <Border Classes="Data" CornerRadius="13" Width="280" Height="40" Margin="0 0 130 0">
  210. <TextBlock Text="{Binding TradeNetworksNavigation.Title}" Classes="Data">Типа название торговой сети</TextBlock>
  211. </Border>
  212. <!--<Border Classes="Data" CornerRadius="13" Width="310" Height="40" Margin="0 0 140 0">
  213. <TextBlock Classes="Data">Типа название торговой сети</TextBlock>
  214. </Border>-->
  215. <Border Classes="Data" CornerRadius="13" Width="220" Height="40" Margin="0 0 110 0">
  216. <ScrollViewer VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Disabled" Width="190" Height="35">
  217. <TextBlock TextWrapping="Wrap" Text="{Binding Address}" Classes="Data">Типа адрес</TextBlock>
  218. </ScrollViewer>
  219. </Border>
  220. <Border Classes="Data" CornerRadius="13" Width="350" Height="40" Margin="0 0 20 0">
  221. <TextBlock Text="{Binding Location}" Classes="Data">Типа местоположение</TextBlock>
  222. </Border>
  223. <!--<Button Classes="BtEdit" Content="Изменить" Command="{Binding $parent[Window].((vm:MainWindowViewModel)DataContext).EditOutlet}" CommandParameter ="{Binding Outletid}"/>-->
  224. <StackPanel Orientation="Horizontal">
  225. <Button Classes="BtEdit" Width="40" Command="{Binding $parent[Window].((vm:MainWindowViewModel)DataContext).EditOutlet}" CommandParameter ="{Binding Outletid}">
  226. <Image Source="avares://Acosta/Assets/change.png" Width="25"></Image>
  227. </Button>
  228. </StackPanel>
  229. </StackPanel>
  230. </DataTemplate>
  231. </ListBox.ItemTemplate>
  232. </ListBox>
  233. </StackPanel>
  234. </ScrollViewer>
  235. </StackPanel>
  236. <!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  237. <StackPanel.Styles>
  238. <Style Selector="TextBlock.TextBtSave">
  239. <Setter Property="Foreground" Value="#F5F5F5"></Setter>
  240. <Setter Property="FontFamily" Value="Roboto"></Setter>
  241. <Setter Property="FontWeight" Value="Medium"></Setter>
  242. <Setter Property="FontSize" Value="20"></Setter>
  243. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  244. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  245. </Style>
  246. <Style Selector="Button.BtSave">
  247. <Setter Property="Width" Value="180"></Setter>
  248. <Setter Property="Height" Value="38"></Setter>
  249. <Setter Property="Margin" Value="0 740 30 20"></Setter>
  250. <Setter Property="Background" Value="#E40714"></Setter>
  251. <Setter Property="CornerRadius" Value="13"></Setter>
  252. </Style>
  253. <Style Selector="Button.BtSave:pointerover /template/ ContentPresenter">
  254. <Setter Property="Background" Value="#A10009"></Setter>
  255. </Style>
  256. <Style Selector="Button.BtSave:pressed">
  257. <Setter Property="RenderTransform" Value="none"/>
  258. </Style>
  259. </StackPanel.Styles>
  260. <Button Classes="BtSave" Command="">
  261. <TextBlock Classes="TextBtSave">Сохранить</TextBlock>
  262. </Button>
  263. </StackPanel>-->
  264. </Grid>
  265. </UserControl>