You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
7.5 KiB
XML
98 lines
7.5 KiB
XML
<Window x:Class="Admin.Core.Wpf.Views.SupplementPrintPageView"
|
|
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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
xmlns:local="clr-namespace:Admin.Core.Wpf.Views"
|
|
mc:Ignorable="d"
|
|
Background="#F4F4F4"
|
|
Title="条码补打" d:DesignHeight="800"
|
|
d:DesignWidth="800">
|
|
|
|
<Window.Resources>
|
|
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
</Style>
|
|
<Style x:Key="ColumnHeaderStyle" TargetType="DataGridColumnHeader">
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
|
|
</Style>
|
|
</Window.Resources>
|
|
<Grid >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1.8*"/>
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<UniformGrid Grid.Column="0" Margin="3" >
|
|
<Border BorderBrush="#0288d1" BorderThickness="1" Padding="5" CornerRadius="5">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<WrapPanel Grid.Row="0" Margin="5 5 0 0">
|
|
<Label Content="查询条件" Width="60" VerticalAlignment="Center" />
|
|
<TextBox x:Name="queryParam" Text="" Style="{x:Null}" Width="200" HorizontalAlignment="Left" VerticalContentAlignment="Center" />
|
|
<Button Content="查询" Margin="9,0,4,0" Width="100" Command="{Binding QueryBarCodeCommand}" CommandParameter="{Binding ElementName=queryParam,Path=Text}"/>
|
|
</WrapPanel>
|
|
<UniformGrid Grid.Row="1" Margin="5 5 0 0" x:Name="HeightPanel">
|
|
<DataGrid x:Name="dgvMH" Height="{Binding Path=ActualHeight, ElementName=HeightPanel}"
|
|
HorizontalAlignment="Center" VerticalAlignment="Top" AlternationCount="2"
|
|
ItemsSource="{Binding Datalist}" ColumnWidth="*" AutoGenerateColumns="False" IsReadOnly="True" CanUserAddRows="False" SelectionMode="Single"
|
|
SelectedItem="{Binding SelectedCells, Mode=OneWayToSource}">
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn MinWidth="100" Binding="{Binding ProductCode}" Header="产品编号" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
<DataGridTextColumn MinWidth="100" Binding="{Binding MaterialCode}" Header="物料编号" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
<DataGridTextColumn MinWidth="200" Binding="{Binding MaterialName}" Header="物料名称" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
<DataGridTextColumn MinWidth="300" Binding="{Binding BarCode}" Header="物料条码" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
<DataGridTextColumn MinWidth="100" Binding="{Binding SuppleMetNum}" Header="补打个数" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
<DataGridTextColumn MinWidth="200" Binding="{Binding PrintTime ,StringFormat=\{0:yyyy-MM-dd HH:mm\}}" Header="打印时间" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
</UniformGrid>
|
|
</Grid>
|
|
</Border>
|
|
</UniformGrid>
|
|
<UniformGrid Grid.Column="1" Margin="10 5 3 3">
|
|
<Border BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="auto"/>
|
|
</Grid.RowDefinitions>
|
|
<WrapPanel Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 15">
|
|
<TextBlock Text="产品编码" FontSize="15" Foreground="Gray" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
<TextBox x:Name="ProductNo" Text="{Binding SelectedItem.ProductCode, ElementName=dgvMH}" IsReadOnly="True" Margin="15 0 0 0 " FontSize="15" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Width="300"
|
|
materialDesign:HintAssist.Hint="产品编码" />
|
|
</WrapPanel>
|
|
<WrapPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 15">
|
|
<TextBlock Text="物料编码" FontSize="15" Foreground="Gray" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
<TextBox x:Name="MaterialCode" Text="{Binding SelectedItem.MaterialCode, ElementName=dgvMH}" IsReadOnly="True" Margin="15 0 0 0 " FontSize="15" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Width="300"
|
|
materialDesign:HintAssist.Hint="物料编码" />
|
|
</WrapPanel>
|
|
<WrapPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 15">
|
|
<TextBlock Text="物料名称" FontSize="15" Foreground="Gray" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
<TextBox x:Name="MaterialName" Text="{Binding SelectedItem.MaterialName, ElementName=dgvMH}" IsReadOnly="True" Margin="15 0 0 0 " FontSize="15" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Width="300"
|
|
materialDesign:HintAssist.Hint="物料名称" />
|
|
</WrapPanel>
|
|
<WrapPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 15">
|
|
<TextBlock Text="打印条码" FontSize="15" Foreground="Gray" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
<TextBox x:Name="BarCode" Text="{Binding SelectedItem.BarCode, ElementName=dgvMH}" IsReadOnly="True" Margin="15 0 0 0 " FontSize="15" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Width="300"
|
|
materialDesign:HintAssist.Hint="打印条码" />
|
|
</WrapPanel>
|
|
|
|
<WrapPanel Grid.Row="4" HorizontalAlignment="Center">
|
|
<Button
|
|
materialDesign:RippleAssist.IsDisabled="True"
|
|
Content="打印" Margin="0 0" Command="{Binding PrintCommand}" CommandParameter="{Binding ElementName=BarCode,Path=Text}"/>
|
|
</WrapPanel>
|
|
</Grid>
|
|
</Border>
|
|
</UniformGrid>
|
|
</Grid>
|
|
</Window>
|