|
@@ -3,7 +3,8 @@
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
- xmlns:local="clr-namespace:DontHarmDesktop.Pages"
|
|
|
+ xmlns:root="clr-namespace:DontHarmDesktop"
|
|
|
+ xmlns:local="clr-namespace:DontHarmDesktop.Pages" xmlns:viewmodels="clr-namespace:DontHarmDesktop.ViewModels" d:DataContext="{d:DesignInstance Type=viewmodels:ClientsViewModel}"
|
|
|
mc:Ignorable="d"
|
|
|
d:DesignHeight="450" d:DesignWidth="800"
|
|
|
Title="Clients">
|
|
@@ -11,10 +12,102 @@
|
|
|
<StackPanel Style="{StaticResource FormContainer}">
|
|
|
<TextBlock Text="Список клиентов" Style="{StaticResource H2}"/>
|
|
|
<Grid Style="{StaticResource FormBody}">
|
|
|
- <ListView ItemsSource="{Binding}">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="128"/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ Grid.Row="0"
|
|
|
+ Style="{StaticResource BackButton}"
|
|
|
+ Command="{Binding Source={x:Static root:Navigation.GoBack}}"/>
|
|
|
+
|
|
|
+ <Grid Grid.Row="1" Grid.ColumnSpan="2" Margin="0,8,0,0">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+
|
|
|
+ <TextBlock
|
|
|
+ Text="Поиск по имени"
|
|
|
+ Grid.Column="0"
|
|
|
+ Grid.Row="0"/>
|
|
|
+ <TextBox
|
|
|
+ Grid.Column="0"
|
|
|
+ Grid.Row="1"/>
|
|
|
+
|
|
|
+ <TextBlock
|
|
|
+ Text="Поиск по домену почты"
|
|
|
+ Grid.Column="1"
|
|
|
+ Grid.Row="0"/>
|
|
|
+ <ComboBox
|
|
|
+ Grid.Column="1"
|
|
|
+ Grid.Row="1"
|
|
|
+ />
|
|
|
+
|
|
|
+
|
|
|
+ <CheckBox
|
|
|
+ Grid.Column="2"
|
|
|
+ Content="Отображать скрытые"/>
|
|
|
+
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <ListView
|
|
|
+ Margin="0,8,0,0"
|
|
|
+ Grid.Row="2"
|
|
|
+ Grid.ColumnSpan="2"
|
|
|
+ ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
|
|
+ ItemsSource="{Binding Clients}">
|
|
|
+
|
|
|
+ <ListView.ItemsPanel>
|
|
|
+ <ItemsPanelTemplate>
|
|
|
+ <WrapPanel Orientation="Horizontal"/>
|
|
|
+ </ItemsPanelTemplate>
|
|
|
+ </ListView.ItemsPanel>
|
|
|
+
|
|
|
<ListView.ItemTemplate>
|
|
|
<DataTemplate>
|
|
|
-
|
|
|
+ <Grid>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="128"/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <TextBlock FontSize="18" Grid.ColumnSpan="2" Grid.Row="0" Text="{Binding HumanName}"/>
|
|
|
+
|
|
|
+ <TextBlock FontWeight="Bold" Grid.Column="0" Grid.Row="1" Text="Паспортные данные"/>
|
|
|
+ <TextBlock Grid.Column="1" Grid.Row="1" Text="{Binding HumanPassport}"/>
|
|
|
+
|
|
|
+ <TextBlock FontWeight="Bold" Grid.Column="0" Grid.Row="2" Text="Телефон"/>
|
|
|
+ <TextBlock Grid.Column="2" Grid.Row="2" Text="{Binding phone}"/>
|
|
|
+
|
|
|
+ <TextBlock FontWeight="Bold" Grid.Column="0" Grid.Row="3" Text="Адрес почты"/>
|
|
|
+ <TextBlock Grid.Column="2" Grid.Row="3" Text="{Binding email}"/>
|
|
|
+
|
|
|
+ <TextBlock FontWeight="Bold" Grid.Column="0" Grid.Row="4" Text="День варенья"/>
|
|
|
+ <TextBlock Grid.Column="2" Grid.Row="4" Text="{Binding HumanBirthday}"/>
|
|
|
+
|
|
|
+ </Grid>
|
|
|
</DataTemplate>
|
|
|
</ListView.ItemTemplate>
|
|
|
</ListView>
|