|
|
|
<UserControl x:Class="Aucma.Core.SheetMetal.Views.StatisticsPageView"
|
|
|
|
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.SheetMetal.Views"
|
|
|
|
xmlns:cvt="clr-namespace:Aucma.Core.SheetMetal.ConvertTo"
|
|
|
|
mc:Ignorable="d" Background="#1152AC"
|
|
|
|
d:DesignHeight="800"
|
|
|
|
d:DesignWidth="1500">
|
|
|
|
|
|
|
|
<UserControl.Resources>
|
|
|
|
<cvt:MultiBindingConverter x:Key="QueryConvert"></cvt:MultiBindingConverter>
|
|
|
|
|
|
|
|
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
<Setter Property="FontSize" Value="18"/>
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="DataGrid">
|
|
|
|
<!--网格线颜色-->
|
|
|
|
<Setter Property="CanUserResizeColumns" Value="false"/>
|
|
|
|
<Setter Property="Background" Value="#1152AC" />
|
|
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
|
|
<Setter Property="Foreground" Value="White"/>
|
|
|
|
<Setter Property="HorizontalGridLinesBrush">
|
|
|
|
<Setter.Value>
|
|
|
|
<SolidColorBrush Color="#4285DE"/>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<Setter Property="VerticalGridLinesBrush">
|
|
|
|
<Setter.Value>
|
|
|
|
<SolidColorBrush Color="#1152AC"/>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<!--列头标题栏样式-->
|
|
|
|
<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="HorizontalContentAlignment" Value="Center" />
|
|
|
|
<Setter Property="BorderBrush" Value="#dddddd" />
|
|
|
|
<Setter Property="Height" Value="40"/>
|
|
|
|
<Setter Property="FontSize" Value="18"/>
|
|
|
|
<Setter Property="Background" Value="#4285DE"/>
|
|
|
|
<Setter Property="Foreground" Value="White"/>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<!--单元格样式-->
|
|
|
|
<Style TargetType="DataGridCell">
|
|
|
|
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
|
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
|
|
<Setter Property="Height" Value="40"/>
|
|
|
|
<Setter Property="FontSize" Value="12"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type DataGridCell}">
|
|
|
|
<Grid Background="{TemplateBinding Background}" >
|
|
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="IsSelected" Value="True">
|
|
|
|
<Setter Property="Background" Value="#4285DE"/>
|
|
|
|
<Setter Property="Foreground" Value="#dddddd"/>
|
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
|
|
|
|
</Style>
|
|
|
|
</UserControl.Resources>
|
|
|
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="1" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="5 15 5 5">
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="300*"/>
|
|
|
|
<ColumnDefinition Width="1159*"/>
|
|
|
|
<ColumnDefinition Width="29*"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="0.5*"/>
|
|
|
|
<RowDefinition Height="9*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border Grid.Row="0" BorderBrush="#0288d1" BorderThickness="0,0,0,1" CornerRadius="0" Background="#1157b9" Margin="1,1,5,5" Grid.ColumnSpan="3" >
|
|
|
|
<TextBlock Text="生产明细" FontSize="25" FontWeight="Bold" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
</Border>
|
|
|
|
<Border Grid.Row="1" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="1,1,5,5" Grid.ColumnSpan="3">
|
|
|
|
<Grid Margin="10,5">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="0.6*"/>
|
|
|
|
<RowDefinition Height="8*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<WrapPanel Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center">
|
|
|
|
<TextBlock Text="搜索条件" Margin="10 0" Foreground="White" FontSize="18" VerticalAlignment="Center"/>
|
|
|
|
<TextBox VerticalContentAlignment="Center"
|
|
|
|
x:Name="queryParam" FontSize="16" Style="{x:Null}" Background="#1152AC"
|
|
|
|
Width="200" Margin="10 0" BorderBrush="White" Foreground="White">
|
|
|
|
|
|
|
|
</TextBox>
|
|
|
|
<Button Margin="10 0"
|
|
|
|
Content="查询" Command="{Binding ExecQueryCommand}" FontSize="18"
|
|
|
|
Style="{StaticResource MaterialDesignRaisedSecondaryDarkButton}" CommandParameter="{Binding Text, ElementName=queryParam}" />
|
|
|
|
|
|
|
|
</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="Hidden" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True"
|
|
|
|
Foreground="White" >
|
|
|
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTextColumn Binding="{Binding No}" Header="序号" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductPlanCode}" Header="MES工单编号" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductPlanCode}" Header="SAP计划编号" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding MaterialName}" Header="物料名称" Width="3*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding PlanAmount}" Header="计划数量" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding SidePanelComplete}" Header="前板数量" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding BackPanelComplete}" Header="后板数量" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding Status}" Header="状态" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
|
|
|
|
</UniformGrid>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</UserControl>
|