123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- <Window x:Class="WriteErase.ClassWindows.WindowOrderView"
- 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:WriteErase.ClassWindows"
- mc:Ignorable="d"
- Title="Пиши-Стирай | Корзина"
- Icon="/Assets/icon.ico"
- Height="560" Width="500"
- ResizeMode="NoResize"
- FontFamily="Comic Sans MS">
- <Grid Margin="15 10">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0" Orientation="Horizontal">
- <TextBlock Text="Пункт выдачи" Margin="0 0 10 0"
- FontSize="16" Foreground="#498C51"/>
- <ComboBox Name="cbPoint"
- IsTextSearchEnabled="False"
- IsEditable="True"
- TextBoxBase.TextChanged="cbPointTextChanged"
- Width="330"
- HorizontalAlignment="Stretch"/>
- </StackPanel>
- <TextBlock Name="tbkCountProduct"
- Text="Количество продуктов"
- HorizontalAlignment="Right"
- Grid.Row="1"
- Foreground="#498C51"
- Margin="0 10"/>
- <ListView Name="lvProduct" Grid.Row="2"
- ItemsSource="{Binding}"
- Margin="0 5 0 0"
- ScrollViewer.HorizontalScrollBarVisibility="Hidden"
- ScrollViewer.VerticalScrollBarVisibility="Auto"
- BorderThickness="0"
- HorizontalContentAlignment="Stretch">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel></StackPanel>
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border CornerRadius="15" Margin="0 0 15 0">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="Auto"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"></RowDefinition>
- <RowDefinition Height="Auto"></RowDefinition>
- </Grid.RowDefinitions>
- <Image Name="image"
- Source="{Binding img}"
- Margin="5"
- Width="100" Height="100"
- Stretch="Uniform"
- Grid.Column="0" Grid.Row="0"/>
- <StackPanel Orientation="Vertical" Grid.Row="0" Grid.Column="1" Margin="5">
- <TextBlock Text="{Binding ProductName}" Foreground="#498C51" FontSize="16" FontWeight="Bold"/>
- <TextBlock Text="{Binding ProductDescription}" HorizontalAlignment="Left" Width="265" TextWrapping="Wrap" Foreground="#498C51"/>
- <TextBlock Text="{Binding ProductManufacturer.ManufacturerName, StringFormat='Производитель: {0}'}" Foreground="#498C51"/>
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
- <TextBlock Text="Цена:" Foreground="#498C51"/>
- <TextBlock Text="{Binding ProductCost, StringFormat=' {0:C2}'}"
- Language="ru-RU"
- Visibility="{Binding VisibilityCost}"
- TextDecorations="Strikethrough"
- Foreground="#498C51"/>
- <TextBlock Text="{Binding Cost, StringFormat=' {0:C2}'}" Language="ru-RU" Foreground="#498C51"/>
- </StackPanel>
- </StackPanel>
- <Button
- Style="{StaticResource Close}"
- Grid.Column="2" Grid.Row="0"
- Uid="{Binding ProductArticleNumber}"
- Click="ProductDeleteClick"/>
- <StackPanel Grid.Row="1" Grid.ColumnSpan="3"
- Orientation="Horizontal"
- HorizontalAlignment="Right"
- Margin="0 10">
- <Button Content="-10"
- Uid="{Binding ProductArticleNumber}"
- Click="ChangeCountClick"
- Style="{StaticResource MinWith}"/>
- <Button Content="-"
- Uid="{Binding ProductArticleNumber}"
- Click="ChangeCountClick"
- Style="{StaticResource MinWith}"/>
- <TextBlock
- Text="{Binding CountProduct}"
- FontSize="16"
- Foreground="#498C51"
- Margin="10 0"/>
- <Button Content="+"
- Uid="{Binding ProductArticleNumber}"
- Click="ChangeCountClick"
- Style="{StaticResource MinWith}"/>
- <Button Content="+10"
- Uid="{Binding ProductArticleNumber}"
- Click="ChangeCountClick"
- Style="{StaticResource MinWith}"/>
- </StackPanel>
- </Grid>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- <Grid Grid.Row="3" Margin="0 5 0 0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <TextBlock
- Text="Сумма покупки: "
- VerticalAlignment="Center"
- FontWeight="Bold"
- FontSize="16" Foreground="#498C51"/>
- <StackPanel Orientation="Vertical" HorizontalAlignment="Right">
- <TextBlock Name="tbkNowCost"
- Text="новая цена"
- Language="ru-RU"
- HorizontalAlignment="Right"
- FontSize="16" Foreground="#498C51"/>
- <TextBlock Name="tbkOldCost"
- Text="старая цена"
- Language="ru-RU"
- HorizontalAlignment="Right"
- TextDecorations="Strikethrough"
- FontSize="16" Foreground="#498C51"/>
- </StackPanel>
-
- </Grid>
- <TextBlock Name="tbkDiscount"
- Text="Процент"
- VerticalAlignment="Center"
- Grid.Column="1"
- Margin="10 0"
- FontSize="16" Foreground="#498C51"/>
- <Button Name="btnNewOrder"
- Content="Оформить заказ"
- Click="btnNewOrderClick"
- Grid.Column="3"/>
- </Grid>
- </Grid>
- </Window>
|