PersonalAccountView.axaml 13 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. xmlns:vm="using:Acosta.ViewModels"
  6. x:DataType="vm:MainWindowViewModel"
  7. mc:Ignorable="d" d:DesignWidth="1920" d:DesignHeight="1080"
  8. x:Class="Acosta.Views.PersonalAccountView">
  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}"/>
  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>
  54. <TextBlock Text="Администрирование приложения" FontWeight="Medium" FontFamily="Roboto"
  55. FontSize="30" HorizontalAlignment="Center" Margin="0 100 0 30"></TextBlock>
  56. <StackPanel.Styles>
  57. <Style Selector="Border.field">
  58. <Setter Property="Width" Value="600"></Setter>
  59. <Setter Property="Height" Value="40"></Setter>
  60. <Setter Property="BorderThickness" Value="2"></Setter>
  61. <Setter Property="CornerRadius" Value="8"></Setter>
  62. <Setter Property="BorderBrush" Value="#E40714"></Setter>
  63. <Setter Property="Margin" Value="8"></Setter>
  64. </Style>
  65. <Style Selector="TextBlock.nameField">
  66. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  67. <Setter Property="Margin" Value="20 0"></Setter>
  68. <Setter Property="FontFamily" Value="Roboto"></Setter>
  69. <Setter Property="FontSize" Value="17"></Setter>
  70. <Setter Property="FontWeight" Value="Medium"></Setter>
  71. </Style>
  72. <Style Selector="Button.buttons">
  73. <Setter Property="Background" Value="Transparent"></Setter>
  74. <Setter Property="Margin" Value="10 0"></Setter>
  75. </Style>
  76. <Style Selector="Button.buttons:pointerover /template/ ContentPresenter">
  77. <Setter Property="Foreground" Value="#E40714"></Setter>
  78. <Setter Property="Background" Value="Transparent"></Setter>
  79. </Style>
  80. </StackPanel.Styles>
  81. <Border Classes="field">
  82. <Grid>
  83. <StackPanel Orientation="Horizontal">
  84. <TextBlock Classes="nameField">Визиты</TextBlock>
  85. </StackPanel>
  86. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  87. <Button Classes="buttons" Command="{Binding AddVisitView}">
  88. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  89. <Image Source="avares://Acosta/Assets/plus_black.png" Width="20"></Image>
  90. <TextBlock Text="Добавить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
  91. </StackPanel>
  92. </Button>
  93. <TextBlock VerticalAlignment="Center" FontSize="16">/</TextBlock>
  94. <Button Classes="buttons" Command="{Binding BackVisitView}">
  95. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  96. <Image Source="avares://Acosta/Assets/change.png" Width="20"></Image>
  97. <TextBlock Text="Изменить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
  98. </StackPanel>
  99. </Button>
  100. </StackPanel>
  101. </Grid>
  102. </Border>
  103. <Border Classes="field">
  104. <Grid>
  105. <StackPanel Orientation="Horizontal">
  106. <TextBlock Classes="nameField">Проекты</TextBlock>
  107. </StackPanel>
  108. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  109. <Button Classes="buttons" Command="{Binding AddProjectsView}">
  110. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  111. <Image Source="avares://Acosta/Assets/plus_black.png" Width="20"></Image>
  112. <TextBlock Text="Добавить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
  113. </StackPanel>
  114. </Button>
  115. <TextBlock VerticalAlignment="Center" FontSize="16">/</TextBlock>
  116. <Button Classes="buttons" Command="{Binding BackProjectsView}">
  117. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  118. <Image Source="avares://Acosta/Assets/change.png" Width="20"></Image>
  119. <TextBlock Text="Изменить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
  120. </StackPanel>
  121. </Button>
  122. </StackPanel>
  123. </Grid>
  124. </Border>
  125. <Border Classes="field">
  126. <Grid>
  127. <StackPanel Orientation="Horizontal">
  128. <TextBlock Classes="nameField">Торговые сети</TextBlock>
  129. </StackPanel>
  130. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  131. <Button Classes="buttons" Command="{Binding AddTradeNetworksView}">
  132. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  133. <Image Source="avares://Acosta/Assets/plus_black.png" Width="20"></Image>
  134. <TextBlock Text="Добавить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
  135. </StackPanel>
  136. </Button>
  137. <TextBlock VerticalAlignment="Center" FontSize="16">/</TextBlock>
  138. <Button Classes="buttons" Command="{Binding BackTradeNetworksView}">
  139. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  140. <Image Source="avares://Acosta/Assets/eye.png" Width="20"></Image>
  141. <TextBlock Text="Просмотреть" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
  142. </StackPanel>
  143. </Button>
  144. </StackPanel>
  145. </Grid>
  146. </Border>
  147. <Border Classes="field">
  148. <Grid>
  149. <StackPanel Orientation="Horizontal">
  150. <TextBlock Classes="nameField">Торговые точки</TextBlock>
  151. </StackPanel>
  152. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  153. <Button Classes="buttons" Command="{Binding AddOutletsView}">
  154. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  155. <Image Source="avares://Acosta/Assets/plus_black.png" Width="20"></Image>
  156. <TextBlock Text="Добавить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
  157. </StackPanel>
  158. </Button>
  159. <TextBlock VerticalAlignment="Center" FontSize="16">/</TextBlock>
  160. <Button Classes="buttons" Command="{Binding BackOutletsView}">
  161. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  162. <Image Source="avares://Acosta/Assets/change.png" Width="20"></Image>
  163. <TextBlock Text="Изменить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
  164. </StackPanel>
  165. </Button>
  166. </StackPanel>
  167. </Grid>
  168. </Border>
  169. <Border Classes="field">
  170. <Grid>
  171. <StackPanel Orientation="Horizontal">
  172. <TextBlock Classes="nameField">Сотрудники</TextBlock>
  173. </StackPanel>
  174. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  175. <Button Classes="buttons" Command="{Binding AddEmployeesView}">
  176. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  177. <Image Source="avares://Acosta/Assets/plus_black.png" Width="20"></Image>
  178. <TextBlock Text="Добавить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
  179. </StackPanel>
  180. </Button>
  181. <TextBlock VerticalAlignment="Center" FontSize="16">/</TextBlock>
  182. <Button Classes="buttons" Command="{Binding BackEmployeesView}">
  183. <StackPanel Orientation="Horizontal" VerticalAlignment="Center" >
  184. <Image Source="avares://Acosta/Assets/change.png" Width="20"></Image>
  185. <TextBlock Text="Изменить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
  186. </StackPanel>
  187. </Button>
  188. <ListBox ItemsSource="{Binding ListProjects}" IsVisible="False">
  189. <ListBox.ItemTemplate>
  190. <DataTemplate>
  191. <StackPanel Orientation="Horizontal" Margin="40 20 0 0">
  192. <TextBlock Text="{Binding Projectid}" Classes="TextColumn">ID</TextBlock>
  193. <TextBlock Text="{Binding Title}" Classes="TextColumn">Название</TextBlock>
  194. <TextBlock Text="{Binding }" Classes="TextColumn" Margin="30 0">Количество продуктов</TextBlock>
  195. <TextBlock Text="{Binding Numofvisitsperweek}" Classes="TextColumn">Количество посещений в неделю</TextBlock>
  196. </StackPanel>
  197. </DataTemplate>
  198. </ListBox.ItemTemplate>
  199. </ListBox>
  200. <ListBox ItemsSource="{Binding ListTrades}" IsVisible="False">
  201. <ListBox.ItemTemplate>
  202. <DataTemplate>
  203. <StackPanel Orientation="Vertical">
  204. <Border Classes="Data" CornerRadius="13" Width="1400" Height="40">
  205. <TextBlock Text="{Binding Title}" Classes="Data">Типа название торговой сети</TextBlock>
  206. </Border>
  207. </StackPanel>
  208. </DataTemplate>
  209. </ListBox.ItemTemplate>
  210. </ListBox>
  211. <ListBox ItemsSource="{Binding ListOutlets}" IsVisible="False">
  212. <ListBox.ItemTemplate>
  213. <DataTemplate>
  214. <StackPanel Orientation="Horizontal" Margin="40 20 0 0">
  215. <TextBlock Text="{Binding Outletid}" Classes="EditTextBox" Width="70" Margin="0 0 140 0">Типа id</TextBlock>
  216. <TextBlock Text="{Binding TradeNetworksNavigation.Title}" Classes="EditTextBox" Width="200" Margin="0 0 140 0">Типа название торговой сети</TextBlock>
  217. <Border Classes="Data" CornerRadius="13" Width="220" Height="40" Margin="0 0 145 0">
  218. <TextBlock Text="{Binding Address}" Classes="Data">Типа адрес</TextBlock>
  219. </Border>
  220. <Border Classes="Data" CornerRadius="13" Width="280" Height="40">
  221. <TextBlock Text="{Binding Location}" Classes="Data">Типа местоположение</TextBlock>
  222. </Border>
  223. </StackPanel>
  224. </DataTemplate>
  225. </ListBox.ItemTemplate>
  226. </ListBox>
  227. <ComboBox ItemsSource="{Binding ListAcceptance}" IsVisible="False">
  228. <ComboBox.ItemTemplate>
  229. <DataTemplate>
  230. <StackPanel Orientation="Horizontal" Margin="40 20 0 0">
  231. <TextBlock Text="{Binding Acceptanceid}" Classes="EditTextBox" Width="70" Margin="0 0 140 0">Типа id</TextBlock>
  232. <Border Classes="Data" CornerRadius="13" Width="220" Height="40" Margin="0 0 145 0">
  233. <TextBlock Text="{Binding Title}" Classes="Data">Типа адрес</TextBlock>
  234. </Border>
  235. </StackPanel>
  236. </DataTemplate>
  237. </ComboBox.ItemTemplate>
  238. </ComboBox>
  239. </StackPanel>
  240. </Grid>
  241. </Border>
  242. </StackPanel>
  243. </StackPanel>
  244. </Grid>
  245. </UserControl>