123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <Window x:Class="UP43P_Krupina.Windows.OrdersWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- 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:local="clr-namespace:UP43P_Krupina.Windows"
- mc:Ignorable="d"
- Title="OrdersWindow" Height="450" Width="800">
- <Window.Resources>
- <BitmapImage x:Key="defaultImage" UriSource="/Photos/picture.png"/>
- </Window.Resources>
- <Grid>
- <DockPanel>
- <Button Content="Назад" Click="Back_Click" Width="100" Height="25" HorizontalAlignment="Left" Margin="10" DockPanel.Dock="Top"/>
- <TextBlock x:Name="TBNameUser" Margin="10,0,0,0" DockPanel.Dock="Top"/>
- <StackPanel HorizontalAlignment="Center" x:Name="SPForAdminOrManager" DockPanel.Dock="Top">
- <RadioButton x:Name="RBDrop" Checked="RadioButton_Checked" Content="Сброс сортировки" HorizontalAlignment="Center"/>
- <StackPanel Orientation="Horizontal" Margin="10" HorizontalAlignment="Center">
- <TextBlock Text="Сортировка по ценовому диапозону:"/>
- <ComboBox x:Name="CBDiscount" Width="200" Margin="20,0,0,0" SelectionChanged="ComboBox_SelectionChanged"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <RadioButton x:Name="RBUsial" Checked="RadioButton_Checked" Content="Без сортировки"/>
- <RadioButton x:Name="RBUP" Checked="RadioButton_Checked" Content="По возрастанию" Margin="20,0,0,0"/>
- <RadioButton x:Name="RBDown" Checked="RadioButton_Checked" Content="По убыванию" Margin="20,0,0,0"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <RadioButton x:Name="RBNew" Content="Новые" Checked="RadioButton_Checked" Margin="0,5,0,0"/>
- <RadioButton x:Name="RBFinished" Content="Завершенные" Checked="RadioButton_Checked" Margin="20,5,0,0"/>
- </StackPanel>
- </StackPanel>
- <DockPanel DockPanel.Dock="Top" Margin="10">
- <ListView x:Name="LVOrders">
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border BorderBrush="Black" BorderThickness="2" Width="700" Height="300">
- <StackPanel Orientation="Vertical">
- <TextBlock Text="{Binding OrderID, StringFormat=Номер заказа: {0}}" Margin="5"/>
- <TextBlock Text="{Binding OrderDate, StringFormat=Дата заказа: {0}}" Margin="5"/>
- <TextBlock Text="{Binding OrderDeliveryDate, StringFormat=Дата доставки: {0}}" Margin="5"/>
- <TextBlock Text="{Binding PickUpPoint.PointName, StringFormat=Адрес: {0}}" Margin="5"/>
- <TextBlock Text="{Binding Code, StringFormat=Код: {0}}" Margin="5"/>
- <TextBlock Uid="{Binding OrderID}" Loaded="Products_Loaded" Margin="5"/>
- <TextBlock Uid="{Binding OrderID}" Loaded="Summ_Loaded" Margin="5" Height="60"/>
- <TextBlock Uid="{Binding UserID}" Loaded="UserName_Loaded" Margin="5"/>
- </StackPanel>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </DockPanel>
- </DockPanel>
- </Grid>
- </Window>
|