OutletsView.axaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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 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="590 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="330" Command="{Binding AddOutletsView}">
  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 260 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. </StackPanel>
  186. </Border>
  187. <ScrollViewer Height="500">
  188. <StackPanel Orientation="Vertical">
  189. <ListBox ItemsSource="{Binding ListOutlets}">
  190. <ListBox.ItemTemplate>
  191. <DataTemplate>
  192. <StackPanel Orientation="Horizontal" Margin="40 20 0 0">
  193. <!--<Button Classes="BtEdit" Width="180" Height="40" Margin="0 0 140 0" Command="{Binding EditOutletsView}">
  194. <TextBlock Classes="TextBtEdit">Типа ID</TextBlock>
  195. </Button>-->
  196. <!--<Border Classes="Data" CornerRadius="13" Width="180" Height="40" Margin="0 0 140 0">
  197. <TextBlock Classes="Data">Типа ID</TextBlock>
  198. </Border>-->
  199. <TextBox Text="{Binding Outletid}" Classes="EditTextBox" Width="70" Margin="0 0 140 0">Типа id</TextBox>
  200. <TextBox Text="{Binding TradeNetworks}" Classes="EditTextBox" Width="70" Margin="0 0 140 0">Типа название торговой сети</TextBox>
  201. <!--<Border Classes="Data" CornerRadius="13" Width="310" Height="40" Margin="0 0 140 0">
  202. <TextBlock Classes="Data">Типа название торговой сети</TextBlock>
  203. </Border>-->
  204. <Border Classes="Data" CornerRadius="13" Width="220" Height="40" Margin="0 0 145 0">
  205. <TextBlock Text="{Binding Address}" Classes="Data">Типа адрес</TextBlock>
  206. </Border>
  207. <Border Classes="Data" CornerRadius="13" Width="280" Height="40">
  208. <TextBlock Text="{Binding Location}" Classes="Data">Типа местоположение</TextBlock>
  209. </Border>
  210. </StackPanel>
  211. </DataTemplate>
  212. </ListBox.ItemTemplate>
  213. </ListBox>
  214. </StackPanel>
  215. </ScrollViewer>
  216. </StackPanel>
  217. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  218. <StackPanel.Styles>
  219. <Style Selector="TextBlock.TextBtSave">
  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="20"></Setter>
  224. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  225. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  226. </Style>
  227. <Style Selector="Button.BtSave">
  228. <Setter Property="Width" Value="180"></Setter>
  229. <Setter Property="Height" Value="38"></Setter>
  230. <Setter Property="Margin" Value="0 740 30 20"></Setter>
  231. <Setter Property="Background" Value="#E40714"></Setter>
  232. <Setter Property="CornerRadius" Value="13"></Setter>
  233. </Style>
  234. <Style Selector="Button.BtSave:pointerover /template/ ContentPresenter">
  235. <Setter Property="Background" Value="#A10009"></Setter>
  236. </Style>
  237. <Style Selector="Button.BtSave:pressed">
  238. <Setter Property="RenderTransform" Value="none"/>
  239. </Style>
  240. </StackPanel.Styles>
  241. <Button Classes="BtSave" Command="">
  242. <TextBlock Classes="TextBtSave">Сохранить</TextBlock>
  243. </Button>
  244. </StackPanel>
  245. </Grid>
  246. </UserControl>