123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
- <UserControl xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:vm="using:FinancialManagement.ViewModels"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
- x:Class="FinancialManagement.Views.FinanceTable"
- x:DataType="vm:MainWindowViewModel">
- <Grid
- ColumnDefinitions="*"
- RowDefinitions="60, 10, 7*, *"
- Background="#7471E8">
- <StackPanel
- Orientation="Horizontal"
- HorizontalAlignment="Left">
- <Image
- Margin="20 0 0 0"
- HorizontalAlignment="Left"
- Width="50"
- Source="/Assets/Icon_Profile.png"/>
- <Border
- CornerRadius="10"
- Background="#ffffff"
- Padding="10 5 10 5"
- Margin="30 10 10 0"
- Height="40">
- <TextBlock
- HorizontalAlignment="Center"
- FontFamily="{StaticResource NunitoBold}"
- Foreground="#7471E8"
- FontSize="24"
- Text="{Binding FinancialManagementVM.UserName}"/>
- </Border>
- <Button
- Background="#ffffff"
- Foreground="#7471E8"
- CornerRadius="10"
- FontSize="24"
- Content="Редактировать профиль"
- FontFamily="{StaticResource NunitoBold}"
- Height="40"
- HorizontalAlignment="Right"
- Padding="20 5 20 0"
- Margin="20 10 20 0"
- Command="{Binding ToProfile}">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="#E3E6FF"></Setter>
- <Setter Property="Foreground" Value="#7471E8"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- <Button
- Background="#ffffff"
- Foreground="#7471E8"
- CornerRadius="10"
- FontSize="24"
- Content="Выйти"
- FontFamily="{StaticResource NunitoBold}"
- Height="40"
- HorizontalAlignment="Right"
- Padding="20 5 20 0"
- Margin="20 10 20 0"
- Command="{Binding ToLoadOut}">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="#E3E6FF"></Setter>
- <Setter Property="Foreground" Value="#7471E8"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- </StackPanel>
- <Panel
- Grid.Column="0"
- Grid.Row="2"
- Background="#E3E6FF">
- </Panel>
- <Panel
- Grid.Column="1"
- Grid.Row="2"
- Background="#E3E6FF">
- <StackPanel
- Background="#E3E6FF">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <Button
- FontFamily="{StaticResource NunitoBold}"
- Padding="15 10 15 10"
- Content="Назад"
- Background="#ffffff"
- Foreground="#7471E8"
- FontSize="18"
- Margin="0 20 40 20"
- BorderThickness="3"
- BorderBrush="#7471E8"
- HorizontalAlignment="Left"
- Command="{Binding ToFinanceManagementPage}">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="#7471E8"></Setter>
- <Setter Property="Foreground" Value="White"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- <Button
- FontFamily="{StaticResource NunitoBold}"
- Padding="20 10 20 10"
- Content="Создать счет"
- Background="#ffffff"
- Foreground="#7471E8"
- FontSize="20"
- Margin=" 0 20 30 20"
- BorderThickness="3"
- BorderBrush="#7471E8"
- HorizontalAlignment="Center"
- Command="{Binding OpenNewFinanceDate}">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="#7471E8"></Setter>
- <Setter Property="Foreground" Value="#ffffff"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- <Button
- FontFamily="{StaticResource NunitoBold}"
- Padding="20 10 20 10"
- Content="Открыть счет"
- Background="#ffffff"
- Foreground="#7471E8"
- FontSize="20"
- Margin=" 0 20 0 20"
- BorderThickness="3"
- BorderBrush="#7471E8"
- HorizontalAlignment="Center"
- Command="{Binding OpenFinance}">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="#7471E8"></Setter>
- <Setter Property="Foreground" Value="White"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- <Button
- FontFamily="{StaticResource NunitoBold}"
- Padding="20 10 20 10"
- Content="Удалить счет"
- Background="#ffffff"
- Foreground="#7471E8"
- FontSize="20"
- Margin="30 20 0 20"
- BorderThickness="3"
- BorderBrush="#7471E8"
- HorizontalAlignment="Center"
- Command="{Binding DeleteSrticleInBD}">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="#7471E8"></Setter>
- <Setter Property="Foreground" Value="White"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- </StackPanel>
- <DataGrid
- Width="{Binding $parent[StackPanel].Bounds.Width}"
- Height="{Binding $parent[StackPanel].Bounds.Height}"
- Background="White"
- FontFamily="{StaticResource Nunito}"
- FontSize="40"
- IsReadOnly="True"
- GridLinesVisibility="All"
- BorderThickness="3"
- BorderBrush="#7471E8"
- ItemsSource="{Binding FinanceTableVM.Finance}"
- SelectedIndex="{Binding FinanceTableVM.IndexFinance}">
- <DataGrid.Columns>
- <DataGridTextColumn
- Header="Дата"
- Binding="{Binding DataRecording}"
- Width="*"/>
- <DataGridTextColumn
- Header="Оборот"
- Binding="{Binding CategoryFinanceTitle}"
- Width="*"/>
- <DataGridTextColumn
- Header="Название"
- Binding="{Binding Title}"
- Width="2*"/>
- <DataGridTextColumn
- Header="Категория"
- Binding="{Binding CategoryTitle}"
- Width="2*"/>
- <DataGridTextColumn
- Header="Сумма"
- Binding="{Binding Price}"
- Width="*"/>
- </DataGrid.Columns>
- </DataGrid>
- </StackPanel>
- </Panel>
- <Panel
- Grid.Column="1"
- Grid.Row="3"
- Background="#E3E6FF">
- <StackPanel
- Background="#ffffff">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- </StackPanel>
- <DataGrid
- Width="{Binding $parent[StackPanel].Bounds.Width}"
- Height="{Binding $parent[StackPanel].Bounds.Height}"
- Background="White"
- FontFamily="{StaticResource Nunito}"
- FontSize="40"
- IsReadOnly="True"
- GridLinesVisibility="All"
- BorderThickness="3"
- BorderBrush="#7471E8"
- ItemsSource="{Binding FinanceTableVM.Budget}">
- <DataGrid.Columns>
- <DataGridTextColumn
- Header="Доход"
- Binding="{Binding Income}"
- Width="*"/>
- <DataGridTextColumn
- Header="Расход"
- Binding="{Binding Expenditure}"
- Width="*"/>
- <DataGridTextColumn
- Header="Итог"
- Binding="{Binding Result}"
- Width="*"/>
- </DataGrid.Columns>
- </DataGrid>
- </StackPanel>
- </Panel>
- </Grid>
- </UserControl>
|