add - 添加成品下线质检页面
parent
cc327e020a
commit
d650ee8870
@ -0,0 +1,174 @@
|
||||
<UserControl x:Class="Aucma.Core.ProductOffLine.Views.QualityPageView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:local="clr-namespace:Aucma.Core.ProductOffLine.Views"
|
||||
xmlns:cvt="clr-namespace:Aucma.Core.ProductOffLine.ConvertTo"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
|
||||
<UserControl.Resources>
|
||||
<cvt:MultiBindingConverter x:Key="QueryConvert"></cvt:MultiBindingConverter>
|
||||
|
||||
<!--列头标题栏样式-->
|
||||
<Style TargetType="DataGridColumnHeader">
|
||||
<!--<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||||
<Setter Property="VerticalContentAlignment" Value="Center"/>-->
|
||||
<!--<Setter Property="Background" Value="#dddddd"/>
|
||||
<Setter Property="Foreground" Value="Black"/>-->
|
||||
<!--<Setter Property="BorderThickness" Value="1" />-->
|
||||
<Setter Property="BorderBrush" Value="#dddddd" />
|
||||
<Setter Property="Height" Value="30"/>
|
||||
<Setter Property="FontSize" Value="14"/>
|
||||
</Style>
|
||||
|
||||
</UserControl.Resources>
|
||||
<Border Grid.Row="1" Grid.Column="1" BorderBrush="#0288d1" BorderThickness="2" CornerRadius="5" Background="Transparent" Margin="5">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="0.8*"/>
|
||||
<RowDefinition Height="9*"/>
|
||||
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="0" BorderBrush="#0288d1" BorderThickness="0,0,0,1" CornerRadius="0" Background="Transparent" Margin="1,1,5,5" >
|
||||
<TextBlock Text="质检页面" FontSize="20" FontWeight="Bold" Foreground="#0288d1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
||||
</Border>
|
||||
<Button x:Name="btn1" Content="入库记录" HorizontalAlignment="Left" Margin="37,13,0,0" Grid.Row="1" VerticalAlignment="Top" RenderTransformOrigin="0.204,0.551" Background="#FF1752E1"/>
|
||||
<Button x:Name="btn2" Content="入库统计" HorizontalAlignment="Left" Margin="135,13,0,0" Grid.Row="1" VerticalAlignment="Top" RenderTransformOrigin="0.204,0.551" Background="#FF384E83" />
|
||||
<Border x:Name="border1" Grid.Row="1" Visibility="Visible" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="1,50,5,5">
|
||||
<Grid Margin="10,5">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="8*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<WrapPanel Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center">
|
||||
<TextBlock Text="开始时间" Margin="10 0" Foreground="Gray" FontSize="15" VerticalAlignment="Center"/>
|
||||
<DatePicker
|
||||
x:Name="BeginTime"
|
||||
Width="200" Margin="10 0" Text="2023-10-09"
|
||||
materialDesign:CalendarAssist.IsHeaderVisible="False"
|
||||
materialDesign:HintAssist.Hint="开始日期">
|
||||
<DatePicker.SelectedDate>
|
||||
<Binding
|
||||
Path="FutureValidatingDate"
|
||||
UpdateSourceTrigger="PropertyChanged">
|
||||
<Binding.ValidationRules>
|
||||
</Binding.ValidationRules>
|
||||
</Binding>
|
||||
</DatePicker.SelectedDate>
|
||||
</DatePicker>
|
||||
|
||||
<TextBlock Text="结束时间" Margin="10 0" Foreground="Gray" FontSize="15" VerticalAlignment="Center"/>
|
||||
<DatePicker
|
||||
x:Name="EndTime" Margin="10 0" Text="2023-10-09"
|
||||
Width="200"
|
||||
materialDesign:CalendarAssist.IsHeaderVisible="False"
|
||||
materialDesign:HintAssist.Hint="结束日期">
|
||||
<DatePicker.SelectedDate>
|
||||
<Binding
|
||||
Path="FutureValidatingDate"
|
||||
UpdateSourceTrigger="PropertyChanged">
|
||||
<Binding.ValidationRules>
|
||||
</Binding.ValidationRules>
|
||||
</Binding>
|
||||
</DatePicker.SelectedDate>
|
||||
</DatePicker>
|
||||
<Button Margin="10 0"
|
||||
Content="查询" Command="{Binding ExecQueryCommand}"
|
||||
IsEnabled="{Binding DataContext.ControlsEnabled, RelativeSource={RelativeSource FindAncestor, AncestorType=Window}}"
|
||||
Style="{StaticResource MaterialDesignRaisedSecondaryDarkButton}"
|
||||
ToolTip="Resource name: MaterialDesignRaisedSecondaryDarkButton">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource QueryConvert}">
|
||||
<Binding ElementName="BeginTime" Path="Text"/>
|
||||
<Binding ElementName="EndTime" Path="Text"/>
|
||||
</MultiBinding>
|
||||
</Button.CommandParameter>
|
||||
</Button>
|
||||
</WrapPanel>
|
||||
<UniformGrid Grid.Row="1">
|
||||
<DataGrid Grid.Row="0" ItemsSource="{Binding MaterialDataGrid}" Background="#00000000"
|
||||
ColumnHeaderHeight="35"
|
||||
RowHeight="50" AutoGenerateColumns="False" RowHeaderWidth="0"
|
||||
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
||||
ScrollViewer.VerticalScrollBarVisibility="Auto" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True"
|
||||
Foreground="Gray" >
|
||||
<!-- 表头剧中-->
|
||||
<DataGrid.ColumnHeaderStyle>
|
||||
<Style TargetType="DataGridColumnHeader">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center">
|
||||
</Setter>
|
||||
</Style>
|
||||
</DataGrid.ColumnHeaderStyle>
|
||||
<DataGrid.CellStyle>
|
||||
|
||||
<Style TargetType="DataGridCell">
|
||||
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||||
</Style>
|
||||
</DataGrid.CellStyle>
|
||||
<!--表头剧中-->
|
||||
<!--<DataGrid.ColumnHeaderStyle>
|
||||
<Style TargetType="DataGridColumnHeader">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center">
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
</Setter>
|
||||
</Style>
|
||||
</DataGrid.ColumnHeaderStyle>-->
|
||||
<!--修改选中字体颜色-->
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Binding="{Binding No}" Header="序号" />
|
||||
<DataGridTextColumn Binding="{Binding ProductPlanCode}" Header="订单号" Width="1*" />
|
||||
<DataGridTextColumn Binding="{Binding MaterialCode}" Header="物料条码" Width="3*" />
|
||||
<DataGridTextColumn Binding="{Binding MaterialName}" Header="物料型号" Width="3*" />
|
||||
<DataGridTextColumn Binding="{Binding PlanAmount}" Header="物料编码" Width="3*" />
|
||||
<DataGridTextColumn Binding="{Binding CompleteAmount}" Header="扫描时间" Width="2*" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
</Border>
|
||||
<Border x:Name="border2" Grid.Row="1" Visibility="Collapsed" BorderBrush="#0288d1" Background="Transparent" BorderThickness="1" CornerRadius="5" Margin="6,50,0,5">
|
||||
<Grid Margin="10,5">
|
||||
<!--<Grid.RowDefinitions>
|
||||
<RowDefinition Height="8*"/>
|
||||
</Grid.RowDefinitions>-->
|
||||
|
||||
<UniformGrid Grid.Row="1">
|
||||
<DataGrid Grid.Row="0" ItemsSource="{Binding MaterialDataGrid}" Background="#00000000"
|
||||
ColumnHeaderHeight="35"
|
||||
RowHeight="50" AutoGenerateColumns="False" RowHeaderWidth="0"
|
||||
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
||||
ScrollViewer.VerticalScrollBarVisibility="Auto" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True"
|
||||
Foreground="Gray" >
|
||||
<!-- 表头剧中-->
|
||||
<DataGrid.ColumnHeaderStyle>
|
||||
<Style TargetType="DataGridColumnHeader">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center">
|
||||
</Setter>
|
||||
</Style>
|
||||
</DataGrid.ColumnHeaderStyle>
|
||||
<DataGrid.CellStyle>
|
||||
|
||||
<Style TargetType="DataGridCell">
|
||||
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||||
</Style>
|
||||
</DataGrid.CellStyle>
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Binding="{Binding No}" Header="序号" />
|
||||
<DataGridTextColumn Binding="{Binding ProductPlanCode}" Header="库" Width="1*" />
|
||||
<DataGridTextColumn Binding="{Binding MaterialCode}" Header="物料条码" Width="3*" />
|
||||
<DataGridTextColumn Binding="{Binding MaterialName}" Header="物料型号" Width="3*" />
|
||||
<DataGridTextColumn Binding="{Binding PlanAmount}" Header="数量" Width="*" />
|
||||
<DataGridTextColumn Binding="{Binding CompleteAmount}" Header="入库时间" Width="2*" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
</Border>
|
||||
</UserControl>
|
Loading…
Reference in New Issue