|
|
|
@ -121,71 +121,130 @@
|
|
|
|
|
<Setter Property="Background" Value="#0288d1" />
|
|
|
|
|
</Style>
|
|
|
|
|
</UserControl.Resources>
|
|
|
|
|
|
|
|
|
|
<Border x:Name="HeightHelperPanel" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="5">
|
|
|
|
|
|
|
|
|
|
<Border >
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.Resources>
|
|
|
|
|
<Style TargetType="TextBlock">
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
|
|
|
<Setter Property="FontSize" Value="16"/>
|
|
|
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei"/>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style TargetType="Border">
|
|
|
|
|
<Setter Property="BorderBrush" Value="#0288d1"/>
|
|
|
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
|
|
|
</Style>
|
|
|
|
|
</Grid.Resources>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition />
|
|
|
|
|
<ColumnDefinition />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid Grid.Column="0">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="1*"/>
|
|
|
|
|
<RowDefinition Height="12*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Border>
|
|
|
|
|
<TextBlock Text="白班计划" Foreground="White" FontSize="20" />
|
|
|
|
|
</Border>
|
|
|
|
|
<DataGrid Grid.Row="1" ItemsSource="{Binding ListItems}" ColumnHeaderHeight="35" Height="{Binding Path=ActualHeight, ElementName=ScanPanel}"
|
|
|
|
|
RowHeight="50" AutoGenerateColumns="False" RowHeaderWidth="0"
|
|
|
|
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True"
|
|
|
|
|
>
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Local}" Header="序号" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Storeamount}" Header="物料编号" Width="3*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding MaterialCode}" Header="物料名称" Width="3*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Boxtype}" Header="计划数" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Boxtype}" Header="操作" Width="3*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid Grid.Column="1" Margin="5 0 0 0">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="1*"/>
|
|
|
|
|
<RowDefinition Height="12*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Border>
|
|
|
|
|
<TextBlock Text="夜班计划" Foreground="White" FontSize="20" />
|
|
|
|
|
</Border>
|
|
|
|
|
<DataGrid Grid.Row="1" ItemsSource="{Binding ListItems}" ColumnHeaderHeight="35" Height="{Binding Path=ActualHeight, ElementName=ScanPanel}"
|
|
|
|
|
RowHeight="50" AutoGenerateColumns="False" RowHeaderWidth="0"
|
|
|
|
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True"
|
|
|
|
|
>
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Local}" Header="序号" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Storeamount}" Header="物料编号" Width="3*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding MaterialCode}" Header="物料名称" Width="3*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Boxtype}" Header="计划数" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Boxtype}" Header="操作" Width="3*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Border BorderBrush="#0288d1" BorderThickness="1" Margin="5">
|
|
|
|
|
<Border.Effect>
|
|
|
|
|
<DropShadowEffect Color="#1254AB" ShadowDepth="0" BlurRadius="5" Opacity="0.5" Direction="0"></DropShadowEffect>
|
|
|
|
|
</Border.Effect>
|
|
|
|
|
|
|
|
|
|
<ItemsControl Grid.Column="0" ItemsSource="{Binding Shapes}" VerticalAlignment="Center" HorizontalAlignment="Center" >
|
|
|
|
|
<ItemsControl.ItemsPanel>
|
|
|
|
|
<!--布局-->
|
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
|
<WrapPanel Orientation="Vertical" VerticalAlignment="Top" ></WrapPanel>
|
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
|
</ItemsControl.ItemsPanel>
|
|
|
|
|
<!--控件模板-->
|
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Control x:Name="ctrl" Width="600" Height="200" VerticalAlignment="Top"></Control>
|
|
|
|
|
<DataTemplate.Triggers>
|
|
|
|
|
<!--根据不同类型选择不同模板-->
|
|
|
|
|
<DataTrigger Binding="{Binding Status}" Value ="1">
|
|
|
|
|
<!--矩形-->
|
|
|
|
|
<Setter Property="Template" TargetName="ctrl">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate >
|
|
|
|
|
<Border Margin="5,5" Background="#0288d1" BorderBrush="White" BorderThickness="2" >
|
|
|
|
|
<Grid Margin="3,3">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="3*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Border Grid.Row="0">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="6*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1">
|
|
|
|
|
<TextBlock Text="货道" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
|
|
|
|
|
<TextBlock Text="箱体发泡名称" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<!--<Border Grid.Column="1" BorderBrush="White" BorderThickness="1">
|
|
|
|
|
<TextBlock x:Name="spaceCodeText" Text="{Binding MaterialCode}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>-->
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="1">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="6*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
|
<!--<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
|
|
|
|
|
</Grid.RowDefinitions>-->
|
|
|
|
|
<!--<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="1.5*"/>
|
|
|
|
|
<ColumnDefinition Width="6*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>-->
|
|
|
|
|
<Border Grid.Column="0" BorderBrush="White" BorderThickness="1" >
|
|
|
|
|
<TextBlock x:Name="spaceCodeText" Text="{Binding MaterialCode}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Grid Grid.Column="1" >
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="3*"/>
|
|
|
|
|
<ColumnDefinition Width="4*"/>
|
|
|
|
|
<ColumnDefinition Width="2*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Border Grid.Column="0" Grid.Row="0" BorderBrush="White" BorderThickness="1" >
|
|
|
|
|
<TextBlock x:Name="spaceCodeText1" Text="{Binding MaterialCode}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Column="1" Grid.Row="0" BorderBrush="White" BorderThickness="1" >
|
|
|
|
|
<TextBlock x:Name="spaceCodeText2" Text="{Binding MaterialCode}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Column="2" Grid.Row="0" BorderBrush="White" BorderThickness="1" >
|
|
|
|
|
<TextBlock Text="清除" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Column="0" Grid.Row="1" BorderBrush="White" BorderThickness="1" >
|
|
|
|
|
<TextBlock x:Name="spaceCodeText5" Text="{Binding MaterialCode}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Column="1" Grid.Row="1" BorderBrush="White" BorderThickness="1" >
|
|
|
|
|
<TextBlock x:Name="spaceCodeText6" Text="{Binding MaterialCode}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Column="2" Grid.Row="1" BorderBrush="White" BorderThickness="1" >
|
|
|
|
|
<TextBlock Text="清除" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Column="0" Grid.Row="2" BorderBrush="White" BorderThickness="1" >
|
|
|
|
|
<TextBlock x:Name="spaceCodeText7" Text="{Binding MaterialCode}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Column="1" Grid.Row="2" BorderBrush="White" BorderThickness="1" >
|
|
|
|
|
<TextBlock x:Name="spaceCodeText8" Text="{Binding MaterialCode}" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Column="2" Grid.Row="2" BorderBrush="White" BorderThickness="1" >
|
|
|
|
|
<TextBlock Text="清除" FontSize="18" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</DataTemplate.Triggers>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
|
</ItemsControl>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</UserControl>
|
|
|
|
|