123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- <UserControl xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="using:Acosta.ViewModels"
- x:DataType="vm:MainWindowViewModel"
- mc:Ignorable="d" d:DesignWidth="1920" d:DesignHeight="1080"
- x:Class="Acosta.Views.PersonalAccountView">
- <Grid>
- <StackPanel>
- <StackPanel Height="50" Background="#E40714" VerticalAlignment="Top">
- <StackPanel.Styles>
- <Style Selector="TextBlock.headerLogo">
- <Setter Property="Foreground" Value="#F5F5F5"></Setter>
- <Setter Property="FontFamily" Value="Roboto"></Setter>
- <Setter Property="FontWeight" Value="Regular"></Setter>
- <Setter Property="FontSize" Value="35"></Setter>
- <Setter Property="Margin" Value="30 0 0 0"></Setter>
- </Style>
- <Style Selector="TextBlock.greeting">
- <Setter Property="Foreground" Value="#F5F5F5"></Setter>
- <Setter Property="FontFamily" Value="Roboto"></Setter>
- <Setter Property="FontWeight" Value="Medium"></Setter>
- <Setter Property="FontSize" Value="16"></Setter>
- </Style>
- <Style Selector="Button.headerBt">
- <Setter Property="Background" Value="Transparent"></Setter>
- <Setter Property="Foreground" Value="#F5F5F5"></Setter>
- <Setter Property="FontFamily" Value="Roboto"></Setter>
- <Setter Property="FontSize" Value="16"></Setter>
- <Setter Property="FontWeight" Value="Medium"></Setter>
- </Style>
- <Style Selector="Button.headerBt:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="Transparent"></Setter>
- <Setter Property="Foreground" Value="#D5AFAF"></Setter>
- <Setter Property="FontWeight" Value="Medium"></Setter>
- <Setter Property="FontSize" Value="16"></Setter>
- </Style>
- <Style Selector="Button.headerBt:pressed">
- <Setter Property="RenderTransform" Value="none"/>
- </Style>
- </StackPanel.Styles>
- <StackPanel Orientation="Horizontal">
- <TextBlock Classes="headerLogo">Acosta</TextBlock>
- <TextBlock Classes="greeting" Margin="770 12 0 0">Добро пожаловать, оператор</TextBlock>
- <TextBlock Classes="greeting" Margin="7 12 0 0" FontWeight="Bold" Name="FIO" Text="{Binding PersonalAccountVM.CurrentUser.Surname}"/>
- <TextBlock Classes="greeting" Margin="10 10 0 0">/</TextBlock>
- <Button Classes="headerBt" Command="{Binding ChangePasswordView}">Изменить пароль</Button>
- <TextBlock Classes="greeting" Margin="0 10 0 0">/</TextBlock>
- <Button Classes="headerBt" Command="{Binding ExitFromProfile}">Выйти</Button>
- </StackPanel>
- </StackPanel>
- <StackPanel>
- <TextBlock Text="Администрирование приложения" FontWeight="Medium" FontFamily="Roboto"
- FontSize="30" HorizontalAlignment="Center" Margin="0 100 0 30"></TextBlock>
- <StackPanel.Styles>
- <Style Selector="Border.field">
- <Setter Property="Width" Value="600"></Setter>
- <Setter Property="Height" Value="40"></Setter>
- <Setter Property="BorderThickness" Value="2"></Setter>
- <Setter Property="CornerRadius" Value="8"></Setter>
- <Setter Property="BorderBrush" Value="#E40714"></Setter>
- <Setter Property="Margin" Value="8"></Setter>
- </Style>
- <Style Selector="TextBlock.nameField">
- <Setter Property="VerticalAlignment" Value="Center"></Setter>
- <Setter Property="Margin" Value="20 0"></Setter>
- <Setter Property="FontFamily" Value="Roboto"></Setter>
- <Setter Property="FontSize" Value="17"></Setter>
- <Setter Property="FontWeight" Value="Medium"></Setter>
- </Style>
- <Style Selector="Button.buttons">
- <Setter Property="Background" Value="Transparent"></Setter>
- <Setter Property="Margin" Value="10 0"></Setter>
- </Style>
- <Style Selector="Button.buttons:pointerover /template/ ContentPresenter">
- <Setter Property="Foreground" Value="#E40714"></Setter>
- <Setter Property="Background" Value="Transparent"></Setter>
- </Style>
- </StackPanel.Styles>
- <Border Classes="field">
- <Grid>
- <StackPanel Orientation="Horizontal">
- <TextBlock Classes="nameField">Визиты</TextBlock>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
- <Button Classes="buttons" Command="{Binding AddVisitView}">
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
- <Image Source="avares://Acosta/Assets/plus_black.png" Width="20"></Image>
- <TextBlock Text="Добавить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
- </StackPanel>
- </Button>
- <TextBlock VerticalAlignment="Center" FontSize="16">/</TextBlock>
- <Button Classes="buttons" Command="{Binding BackVisitView}">
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
- <Image Source="avares://Acosta/Assets/change.png" Width="20"></Image>
- <TextBlock Text="Изменить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
- </StackPanel>
- </Button>
- </StackPanel>
- </Grid>
- </Border>
- <Border Classes="field">
- <Grid>
- <StackPanel Orientation="Horizontal">
- <TextBlock Classes="nameField">Проекты</TextBlock>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
- <Button Classes="buttons" Command="{Binding AddProjectsView}">
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
- <Image Source="avares://Acosta/Assets/plus_black.png" Width="20"></Image>
- <TextBlock Text="Добавить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
- </StackPanel>
- </Button>
- <TextBlock VerticalAlignment="Center" FontSize="16">/</TextBlock>
- <Button Classes="buttons" Command="{Binding BackProjectsView}">
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
- <Image Source="avares://Acosta/Assets/change.png" Width="20"></Image>
- <TextBlock Text="Изменить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
- </StackPanel>
- </Button>
- </StackPanel>
- </Grid>
- </Border>
- <Border Classes="field">
- <Grid>
- <StackPanel Orientation="Horizontal">
- <TextBlock Classes="nameField">Торговые сети</TextBlock>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
- <Button Classes="buttons" Command="{Binding AddTradeNetworksView}">
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
- <Image Source="avares://Acosta/Assets/plus_black.png" Width="20"></Image>
- <TextBlock Text="Добавить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
- </StackPanel>
- </Button>
- <TextBlock VerticalAlignment="Center" FontSize="16">/</TextBlock>
- <Button Classes="buttons" Command="{Binding BackTradeNetworksView}">
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
- <Image Source="avares://Acosta/Assets/eye.png" Width="20"></Image>
- <TextBlock Text="Просмотреть" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
- </StackPanel>
- </Button>
- </StackPanel>
- </Grid>
- </Border>
- <Border Classes="field">
- <Grid>
- <StackPanel Orientation="Horizontal">
- <TextBlock Classes="nameField">Торговые точки</TextBlock>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
- <Button Classes="buttons" Command="{Binding AddOutletsView}">
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
- <Image Source="avares://Acosta/Assets/plus_black.png" Width="20"></Image>
- <TextBlock Text="Добавить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
- </StackPanel>
- </Button>
- <TextBlock VerticalAlignment="Center" FontSize="16">/</TextBlock>
- <Button Classes="buttons" Command="{Binding BackOutletsView}">
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
- <Image Source="avares://Acosta/Assets/change.png" Width="20"></Image>
- <TextBlock Text="Изменить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
- </StackPanel>
- </Button>
- </StackPanel>
- </Grid>
- </Border>
- <Border Classes="field">
- <Grid>
- <StackPanel Orientation="Horizontal">
- <TextBlock Classes="nameField">Сотрудники</TextBlock>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
- <Button Classes="buttons" Command="{Binding AddEmployeesView}">
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
- <Image Source="avares://Acosta/Assets/plus_black.png" Width="20"></Image>
- <TextBlock Text="Добавить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
- </StackPanel>
- </Button>
- <TextBlock VerticalAlignment="Center" FontSize="16">/</TextBlock>
- <Button Classes="buttons" Command="{Binding BackEmployeesView}">
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center" >
- <Image Source="avares://Acosta/Assets/change.png" Width="20"></Image>
- <TextBlock Text="Изменить" VerticalAlignment="Center" FontFamily="Roboto" FontSize="15" Margin="10 0"></TextBlock>
- </StackPanel>
- </Button>
- </StackPanel>
- </Grid>
- </Border>
-
- </StackPanel>
- </StackPanel>
- </Grid>
- </UserControl>
|