OrdersWindow.xaml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <Window x:Class="UP43P_Krupina.Windows.OrdersWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:UP43P_Krupina.Windows"
  7. mc:Ignorable="d"
  8. Title="OrdersWindow" Height="450" Width="800">
  9. <Window.Resources>
  10. <BitmapImage x:Key="defaultImage" UriSource="/Photos/picture.png"/>
  11. </Window.Resources>
  12. <Grid>
  13. <DockPanel>
  14. <Button Content="Назад" Click="Back_Click" Width="100" Height="25" HorizontalAlignment="Left" Margin="10" DockPanel.Dock="Top"/>
  15. <TextBlock x:Name="TBNameUser" Margin="10,0,0,0" DockPanel.Dock="Top"/>
  16. <StackPanel HorizontalAlignment="Center" x:Name="SPForAdminOrManager" DockPanel.Dock="Top">
  17. <RadioButton x:Name="RBDrop" Checked="RadioButton_Checked" Content="Сброс сортировки" HorizontalAlignment="Center"/>
  18. <StackPanel Orientation="Horizontal" Margin="10" HorizontalAlignment="Center">
  19. <TextBlock Text="Сортировка по ценовому диапозону:"/>
  20. <ComboBox x:Name="CBDiscount" Width="200" Margin="20,0,0,0" SelectionChanged="ComboBox_SelectionChanged"/>
  21. </StackPanel>
  22. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  23. <RadioButton x:Name="RBUsial" Checked="RadioButton_Checked" Content="Без сортировки"/>
  24. <RadioButton x:Name="RBUP" Checked="RadioButton_Checked" Content="По возрастанию" Margin="20,0,0,0"/>
  25. <RadioButton x:Name="RBDown" Checked="RadioButton_Checked" Content="По убыванию" Margin="20,0,0,0"/>
  26. </StackPanel>
  27. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  28. <RadioButton x:Name="RBNew" Content="Новые" Checked="RadioButton_Checked" Margin="0,5,0,0"/>
  29. <RadioButton x:Name="RBFinished" Content="Завершенные" Checked="RadioButton_Checked" Margin="20,5,0,0"/>
  30. </StackPanel>
  31. </StackPanel>
  32. <DockPanel DockPanel.Dock="Top" Margin="10">
  33. <ListView x:Name="LVOrders">
  34. <ListView.ItemTemplate>
  35. <DataTemplate>
  36. <Border BorderBrush="Black" BorderThickness="2" Width="700" Height="300">
  37. <StackPanel Orientation="Vertical">
  38. <TextBlock Text="{Binding OrderID, StringFormat=Номер заказа: {0}}" Margin="5"/>
  39. <TextBlock Text="{Binding OrderDate, StringFormat=Дата заказа: {0}}" Margin="5"/>
  40. <TextBlock Text="{Binding OrderDeliveryDate, StringFormat=Дата доставки: {0}}" Margin="5"/>
  41. <TextBlock Text="{Binding PickUpPoint.PointName, StringFormat=Адрес: {0}}" Margin="5"/>
  42. <TextBlock Text="{Binding Code, StringFormat=Код: {0}}" Margin="5"/>
  43. <TextBlock Uid="{Binding OrderID}" Loaded="Products_Loaded" Margin="5"/>
  44. <TextBlock Uid="{Binding OrderID}" Loaded="Summ_Loaded" Margin="5" Height="60"/>
  45. <TextBlock Uid="{Binding UserID}" Loaded="UserName_Loaded" Margin="5"/>
  46. </StackPanel>
  47. </Border>
  48. </DataTemplate>
  49. </ListView.ItemTemplate>
  50. </ListView>
  51. </DockPanel>
  52. </DockPanel>
  53. </Grid>
  54. </Window>