|
|
@ -15,10 +15,9 @@ |
|
|
<Border BorderThickness="0,0,0,1" BorderBrush="#CCCCCC"> |
|
|
<Border BorderThickness="0,0,0,1" BorderBrush="#CCCCCC"> |
|
|
</Border> |
|
|
</Border> |
|
|
<Grid Grid.Row="1"> |
|
|
<Grid Grid.Row="1"> |
|
|
<DataGrid ItemsSource="{Binding Dyelots}" AlternationCount="2" IsReadOnly="True" HorizontalAlignment="Left" Margin="15,15,0,150" VerticalAlignment="Stretch" Width="320" d:ItemsSource="{d:SampleData ItemCount=100}" AutoGenerateColumns="False" MinColumnWidth="30" HorizontalGridLinesBrush="Black" VerticalGridLinesBrush="#FFC9C9C9" GridLinesVisibility="All" SelectionChanged="DataGrid_Directory" BorderBrush="#CCCCCC" BorderThickness="1,1,1,1" ColumnHeaderHeight="40" FontSize="15"> |
|
|
<DataGrid ItemsSource="{Binding Dyelots}" AlternationCount="2" IsReadOnly="True" HorizontalAlignment="Left" Margin="15,15,0,150" VerticalAlignment="Stretch" Width="320" d:ItemsSource="{d:SampleData ItemCount=100}" AutoGenerateColumns="False" MinColumnWidth="30" HorizontalGridLinesBrush="#FFC9C9C9" VerticalGridLinesBrush="#FFC9C9C9" GridLinesVisibility="All" SelectionChanged="DataGrid_Directory" BorderBrush="#CCCCCC" BorderThickness="1,1,1,1" ColumnHeaderHeight="40" FontSize="15"> |
|
|
<DataGrid.RowStyle> |
|
|
<DataGrid.RowStyle> |
|
|
<Style TargetType="{x:Type DataGridRow}"> |
|
|
<Style TargetType="{x:Type DataGridRow}"> |
|
|
<Setter Property="FontSize" Value="12"/> |
|
|
|
|
|
<Style.Triggers> |
|
|
<Style.Triggers> |
|
|
<Trigger Property="AlternationIndex" Value="0"> |
|
|
<Trigger Property="AlternationIndex" Value="0"> |
|
|
<Setter Property="Background" Value="#FFFFFF"/> |
|
|
<Setter Property="Background" Value="#FFFFFF"/> |
|
|
@ -26,21 +25,17 @@ |
|
|
<Trigger Property="AlternationIndex" Value="1"> |
|
|
<Trigger Property="AlternationIndex" Value="1"> |
|
|
<Setter Property="Background" Value="#F5F5F5"/> |
|
|
<Setter Property="Background" Value="#F5F5F5"/> |
|
|
</Trigger> |
|
|
</Trigger> |
|
|
<Trigger Property="IsMouseOver" Value="True"> |
|
|
<Trigger Property="IsMouseOver" Value="False"> |
|
|
<Setter Property="Background" Value="#909090"/> |
|
|
|
|
|
<Setter Property="Foreground" Value="Black"/> |
|
|
|
|
|
</Trigger> |
|
|
</Trigger> |
|
|
</Style.Triggers> |
|
|
</Style.Triggers> |
|
|
</Style> |
|
|
</Style> |
|
|
</DataGrid.RowStyle> |
|
|
</DataGrid.RowStyle> |
|
|
<DataGrid.CellStyle> |
|
|
<DataGrid.CellStyle> |
|
|
<Style TargetType="DataGridCell"> |
|
|
<Style TargetType="DataGridCell"> |
|
|
<Setter Property="BorderThickness" Value="0"/> |
|
|
|
|
|
<Setter Property="MinWidth" Value="85"/> |
|
|
|
|
|
<Style.Triggers> |
|
|
<Style.Triggers> |
|
|
<Trigger Property="IsSelected" Value="True"> |
|
|
<Trigger Property="IsSelected" Value="True"> |
|
|
<Setter Property="Background" Value="LightBlue"/> |
|
|
<Setter Property="Background" Value="#FFFF00"/> |
|
|
<Setter Property="Foreground" Value="White"/> |
|
|
<Setter Property="Foreground" Value="#000000"/> |
|
|
</Trigger> |
|
|
</Trigger> |
|
|
</Style.Triggers> |
|
|
</Style.Triggers> |
|
|
</Style> |
|
|
</Style> |
|
|
@ -51,7 +46,7 @@ |
|
|
<DataGridTextColumn Header="染机" Width="90" FontSize="15" Binding="{Binding DispenseMachine}"/> |
|
|
<DataGridTextColumn Header="染机" Width="90" FontSize="15" Binding="{Binding DispenseMachine}"/> |
|
|
</DataGrid.Columns> |
|
|
</DataGrid.Columns> |
|
|
</DataGrid> |
|
|
</DataGrid> |
|
|
<DataGrid ItemsSource="{Binding DyelotsBulkedRecipe}" AlternationCount="2" IsReadOnly="True" HorizontalAlignment="Left" Margin="350,15,15,150" VerticalAlignment="Stretch" d:ItemsSource="{d:SampleData ItemCount=200}" AutoGenerateColumns="False" MinColumnWidth="30" HorizontalGridLinesBrush="Black" VerticalGridLinesBrush="#FFC9C9C9" GridLinesVisibility="All" SelectionChanged="DataGrid_Detailed" BorderBrush="#CCCCCC" BorderThickness="1,1,1,1" ColumnHeaderHeight="40" FontSize="15"> |
|
|
<DataGrid ItemsSource="{Binding DyelotsBulkedRecipe}" AlternationCount="2" IsReadOnly="True" HorizontalAlignment="Left" Margin="350,15,15,150" VerticalAlignment="Stretch" d:ItemsSource="{d:SampleData ItemCount=200}" AutoGenerateColumns="False" MinColumnWidth="30" HorizontalGridLinesBrush="#FFC9C9C9" VerticalGridLinesBrush="#FFC9C9C9" GridLinesVisibility="All" SelectionChanged="DataGrid_Detailed" BorderBrush="#CCCCCC" BorderThickness="1,1,1,1" ColumnHeaderHeight="40" FontSize="15"> |
|
|
<DataGrid.RowStyle > |
|
|
<DataGrid.RowStyle > |
|
|
<Style TargetType="{x:Type DataGridRow}"> |
|
|
<Style TargetType="{x:Type DataGridRow}"> |
|
|
<Style.Triggers> |
|
|
<Style.Triggers> |
|
|
@ -61,13 +56,21 @@ |
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="1"> |
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="1"> |
|
|
<Setter Property="Background" Value="#FFF5F5F5" /> |
|
|
<Setter Property="Background" Value="#FFF5F5F5" /> |
|
|
</Trigger> |
|
|
</Trigger> |
|
|
<Trigger Property="IsMouseOver" Value="True"> |
|
|
<Trigger Property="IsMouseOver" Value="False"> |
|
|
<Setter Property="Background" Value="#909090"/> |
|
|
|
|
|
<Setter Property="Foreground" Value="Black"/> |
|
|
|
|
|
</Trigger> |
|
|
</Trigger> |
|
|
</Style.Triggers> |
|
|
</Style.Triggers> |
|
|
</Style> |
|
|
</Style> |
|
|
</DataGrid.RowStyle> |
|
|
</DataGrid.RowStyle> |
|
|
|
|
|
<DataGrid.CellStyle> |
|
|
|
|
|
<Style TargetType="DataGridCell"> |
|
|
|
|
|
<Setter Property="BorderThickness" Value="0"/> |
|
|
|
|
|
<Setter Property="MinWidth" Value="85"/> |
|
|
|
|
|
<Style.Triggers> |
|
|
|
|
|
<Trigger Property="IsSelected" Value="False"> |
|
|
|
|
|
</Trigger> |
|
|
|
|
|
</Style.Triggers> |
|
|
|
|
|
</Style> |
|
|
|
|
|
</DataGrid.CellStyle> |
|
|
<DataGrid.Columns> |
|
|
<DataGrid.Columns> |
|
|
<DataGridTextColumn Header="步骤" Width="60" FontSize="15" Binding="{Binding StepNumber}"/> |
|
|
<DataGridTextColumn Header="步骤" Width="60" FontSize="15" Binding="{Binding StepNumber}"/> |
|
|
<DataGridTextColumn Header="原料代码" Width="100" FontSize="15" Binding="{Binding ProductCode}"/> |
|
|
<DataGridTextColumn Header="原料代码" Width="100" FontSize="15" Binding="{Binding ProductCode}"/> |
|
|
|