<Page x:Class="SubCabinetSolution.Views.ReturnGoodsPage" 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" Title="ReturnGoodsPage" d:DesignHeight="450" d:DesignWidth="800" Background="White" mc:Ignorable="d"> <Page.DataContext> <Binding Path="ReturnGoodsPage" Source="{StaticResource Locator}" /> </Page.DataContext> <Page.Resources> <Style x:Key="CardBorderStyle" TargetType="Border"> <Setter Property="Padding" Value="5" /> <Setter Property="Background" Value="White" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="CornerRadius" Value="5" /> </Style> <Style x:Key="TagTextBlockStyle" TargetType="TextBlock"> <Setter Property="Width" Value="15" /> <Setter Property="Height" Value="15" /> <Setter Property="Margin" Value="5" /> <Setter Property="Foreground" Value="White" /> <Setter Property="TextAlignment" Value="Center" /> </Style> <Style x:Key="DataGridStyle" TargetType="DataGrid"> <Setter Property="BorderThickness" Value="0" /> <Setter Property="AutoGenerateColumns" Value="False" /> <Setter Property="CanUserAddRows" Value="False" /> <Setter Property="CanUserDeleteRows" Value="False" /> <Setter Property="CanUserReorderColumns" Value="False" /> <Setter Property="CanUserResizeColumns" Value="False" /> <Setter Property="CanUserResizeRows" Value="False" /> <Setter Property="GridLinesVisibility" Value="None" /> </Style> <Style x:Key="ColumnHeaderStyle" TargetType="DataGridColumnHeader"> <Setter Property="TextBlock.Foreground" Value="#7D97AE" /> <Setter Property="Background" Value="White" /> <Setter Property="HorizontalContentAlignment" Value="Center" /> <Setter Property="Height" Value="50" /> <Setter Property="FontSize" Value="16" /> <Setter Property="BorderThickness" Value="0,0,0,1" /> <Setter Property="BorderBrush" Value="#F1F1F1" /> </Style> <Style TargetType="DataGridRow"> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="TextBlock.Foreground" Value="#00D4B5" /> </Trigger> <Trigger Property="IsSelected" Value="True"> <Setter Property="Background" Value="#00D4B5" /> </Trigger> </Style.Triggers> </Style> <Style TargetType="DataGridCell"> <Setter Property="Height" Value="50" /> <Setter Property="Background" Value="White" /> <Setter Property="FontSize" Value="16" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="DataGridCell"> <Grid> <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" /> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> <Style x:Key="UserDefineButtonStyle" TargetType="Button"> <Setter Property="Width" Value="80" /> <Setter Property="Height" Value="30" /> <Setter Property="Margin" Value="0,10" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Border Name="ButtonBorder" Background="#4381DF" BorderBrush="White" BorderThickness="0" CornerRadius="5" TextBlock.Foreground="White"> <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" /> </Border> <ControlTemplate.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter TargetName="ButtonBorder" Property="Background" Value="#CC4381DF" /> </Trigger> <Trigger Property="IsPressed" Value="True"> <Setter TargetName="ButtonBorder" Property="Opacity" Value="0.6" /> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> <Style x:Key="TextBlockStyle" TargetType="TextBlock"> <Setter Property="Foreground" Value="White" /> <Setter Property="VerticalAlignment" Value="Center" /> <Setter Property="Margin" Value="5,0" /> </Style> </Page.Resources> <Grid Background="White"> <Grid.RowDefinitions> <RowDefinition Height="1.5*" /> <RowDefinition /> </Grid.RowDefinitions> <UniformGrid Margin="10" Background="White" Columns="3" Rows="2"> <Border Margin="0,0,0,5" Style="{StaticResource CardBorderStyle}"> <Border.Effect> <DropShadowEffect ShadowDepth="1" Color="#00D4B5" /> </Border.Effect> <ScrollViewer VerticalScrollBarVisibility="Auto"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="25" /> <RowDefinition /> </Grid.RowDefinitions> <Border HorizontalAlignment="Left" Background="#17A5FF" CornerRadius="20"> <TextBlock Style="{StaticResource TagTextBlockStyle}" Text="1" /> </Border> <ItemsControl Grid.Row="1" BorderThickness="0" ItemsSource="{Binding FirstDoorGoods}"> <ItemsControl.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock Margin="5" FontFamily="微软雅黑" FontSize="14" Text="{Binding Attr}" TextAlignment="Center" /> <TextBlock Margin="5" FontFamily="微软雅黑" FontSize="14" Text="{Binding GoodsName}" TextAlignment="Center" /> </StackPanel> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </Grid> </ScrollViewer> </Border> <Border Margin="10,0,10,5" Style="{StaticResource CardBorderStyle}"> <Border.Effect> <DropShadowEffect ShadowDepth="1" Color="#00D4B5" /> </Border.Effect> <ScrollViewer VerticalScrollBarVisibility="Auto"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="25" /> <RowDefinition /> </Grid.RowDefinitions> <Border HorizontalAlignment="Left" Background="#17A5FF" CornerRadius="20"> <TextBlock Style="{StaticResource TagTextBlockStyle}" Text="2" /> </Border> <ItemsControl Grid.Row="1" BorderThickness="0" ItemsSource="{Binding FirstDoorGoods}"> <ItemsControl.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock Margin="5" FontFamily="微软雅黑" FontSize="14" Text="{Binding Attr}" TextAlignment="Center" /> <TextBlock Margin="5" FontFamily="微软雅黑" FontSize="14" Text="{Binding GoodsName}" TextAlignment="Center" /> </StackPanel> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </Grid> </ScrollViewer> </Border> <Border Margin="0,0,0,5" Style="{StaticResource CardBorderStyle}"> <Border.Effect> <DropShadowEffect ShadowDepth="1" Color="#00D4B5" /> </Border.Effect> <ScrollViewer VerticalScrollBarVisibility="Auto"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="25" /> <RowDefinition /> </Grid.RowDefinitions> <Border HorizontalAlignment="Left" Background="#17A5FF" CornerRadius="20"> <TextBlock Style="{StaticResource TagTextBlockStyle}" Text="3" /> </Border> <ItemsControl Grid.Row="1" BorderThickness="0" ItemsSource="{Binding FirstDoorGoods}"> <ItemsControl.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock Margin="5" FontFamily="微软雅黑" FontSize="14" Text="{Binding Attr}" TextAlignment="Center" /> <TextBlock Margin="5" FontFamily="微软雅黑" FontSize="14" Text="{Binding GoodsName}" TextAlignment="Center" /> </StackPanel> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </Grid> </ScrollViewer> </Border> <Border Margin="0,5,0,0" Style="{StaticResource CardBorderStyle}"> <Border.Effect> <DropShadowEffect ShadowDepth="1" Color="#00D4B5" /> </Border.Effect> <ScrollViewer VerticalScrollBarVisibility="Auto"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="25" /> <RowDefinition /> </Grid.RowDefinitions> <Border HorizontalAlignment="Left" Background="#17A5FF" CornerRadius="20"> <TextBlock Style="{StaticResource TagTextBlockStyle}" Text="4" /> </Border> <ItemsControl Grid.Row="1" BorderThickness="0" ItemsSource="{Binding FirstDoorGoods}"> <ItemsControl.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock Margin="5" FontFamily="微软雅黑" FontSize="14" Text="{Binding Attr}" TextAlignment="Center" /> <TextBlock Margin="5" FontFamily="微软雅黑" FontSize="14" Text="{Binding GoodsName}" TextAlignment="Center" /> </StackPanel> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </Grid> </ScrollViewer> </Border> <Border Margin="10,5,10,0" Style="{StaticResource CardBorderStyle}"> <Border.Effect> <DropShadowEffect ShadowDepth="1" Color="#00D4B5" /> </Border.Effect> <ScrollViewer VerticalScrollBarVisibility="Auto"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="25" /> <RowDefinition /> </Grid.RowDefinitions> <Border HorizontalAlignment="Left" Background="#17A5FF" CornerRadius="20"> <TextBlock Style="{StaticResource TagTextBlockStyle}" Text="5" /> </Border> <ItemsControl Grid.Row="1" BorderThickness="0" ItemsSource="{Binding FirstDoorGoods}"> <ItemsControl.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock Margin="5" FontFamily="微软雅黑" FontSize="14" Text="{Binding Attr}" TextAlignment="Center" /> <TextBlock Margin="5" FontFamily="微软雅黑" FontSize="14" Text="{Binding GoodsName}" TextAlignment="Center" /> </StackPanel> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </Grid> </ScrollViewer> </Border> <Border Margin="0,5,0,0" Style="{StaticResource CardBorderStyle}"> <Border.Effect> <DropShadowEffect ShadowDepth="1" Color="#00D4B5" /> </Border.Effect> <ScrollViewer VerticalScrollBarVisibility="Auto"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="25" /> <RowDefinition /> </Grid.RowDefinitions> <Border HorizontalAlignment="Left" Background="#17A5FF" CornerRadius="20"> <TextBlock Style="{StaticResource TagTextBlockStyle}" Text="6" /> </Border> <ItemsControl Grid.Row="1" BorderThickness="0" ItemsSource="{Binding FirstDoorGoods}"> <ItemsControl.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock Margin="5" FontFamily="微软雅黑" FontSize="14" Text="{Binding Attr}" TextAlignment="Center" /> <TextBlock Margin="5" FontFamily="微软雅黑" FontSize="14" Text="{Binding GoodsName}" TextAlignment="Center" /> </StackPanel> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </Grid> </ScrollViewer> </Border> </UniformGrid> <Border Grid.Row="1" BorderBrush="#4381DF" BorderThickness="1,5,1,1"> <Grid> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <DataGrid Style="{StaticResource DataGridStyle}"> <DataGrid.Columns> <DataGridTextColumn Width="*" Binding="{Binding GoodsName, Mode=OneWay}" Header="名称" HeaderStyle="{StaticResource ColumnHeaderStyle}" /> <DataGridTextColumn Width="*" Binding="{Binding GoodsFormat, Mode=OneWay}" Header="规格" HeaderStyle="{StaticResource ColumnHeaderStyle}" /> <DataGridTextColumn Width="*" Binding="{Binding CabinetNum, Mode=OneWay}" Header="柜号" HeaderStyle="{StaticResource ColumnHeaderStyle}" /> <DataGridTextColumn Width="*" Binding="{Binding RFIDNum, Mode=OneWay}" Header="RFID" HeaderStyle="{StaticResource ColumnHeaderStyle}" /> <DataGridTextColumn Width="2*" Binding="{Binding Description, Mode=OneWay}" Header="描述" HeaderStyle="{StaticResource ColumnHeaderStyle}" /> </DataGrid.Columns> </DataGrid> <Grid Grid.Row="1"> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition Width="6*" /> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <Button Grid.Column="0" Style="{StaticResource UserDefineButtonStyle}"> <StackPanel Orientation="Horizontal"> <Image Width="18" Height="18" Source="/Images/重新加载.png" /> <TextBlock Style="{StaticResource TextBlockStyle}" Text="重读" /> </StackPanel> </Button> <Button Grid.Column="2" Style="{StaticResource UserDefineButtonStyle}"> <StackPanel Orientation="Horizontal"> <Image Width="18" Height="18" Source="/Images/保存.png" /> <TextBlock Style="{StaticResource TextBlockStyle}" Text="保存" /> </StackPanel> </Button> <Button Grid.Column="3" Style="{StaticResource UserDefineButtonStyle}"> <StackPanel Orientation="Horizontal"> <Image Width="18" Height="18" Source="/Images/返回.png" /> <TextBlock Style="{StaticResource TextBlockStyle}" Text="返回" /> </StackPanel> </Button> </Grid> </Grid> </Border> </Grid> </Page>