|
|
@ -4,12 +4,63 @@ |
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
|
|
xmlns:local="clr-namespace:DyeingComputer.View" |
|
|
|
xmlns:lang="clr-namespace:DyeingComputer.Properties" |
|
|
|
mc:Ignorable="d" |
|
|
|
d:DesignHeight="450" d:DesignWidth="800"> |
|
|
|
<Grid> |
|
|
|
<Grid> |
|
|
|
<Grid HorizontalAlignment="Left" Height="236" Margin="190,81,0,0" VerticalAlignment="Top" Width="406"/> |
|
|
|
<DataGrid HorizontalAlignment="Left" Height="153" Margin="78,91,0,0" VerticalAlignment="Top" Width="418" d:ItemsSource="{d:SampleData ItemCount=5}"/> |
|
|
|
d:DesignHeight="630" d:DesignWidth="1280" VerticalAlignment="Top"> |
|
|
|
|
|
|
|
<Grid VerticalAlignment="Top"> |
|
|
|
<Grid VerticalAlignment="Top"> |
|
|
|
<Rectangle Margin="0,0,0,0" Fill="#FFCCCCCC" VerticalAlignment="Top" Height="40"/> |
|
|
|
<Button Content="{x:Static lang:Resources._lock}" x:Name="WorkOrderView_lock" FontSize="20" HorizontalAlignment="Left" Height="40" Margin="0,0,0,0" VerticalAlignment="Top" Width="200" Background="White"/> |
|
|
|
<Button Content="{x:Static lang:Resources.New}" x:Name="WorkOrderView_new" FontSize="20" HorizontalAlignment="Left" Height="40" Margin="200,0,0,0" VerticalAlignment="Top" Width="200" Background="White"/> |
|
|
|
<Button Content="{x:Static lang:Resources.Delete}" x:Name="WorkOrderView_del" FontSize="20" HorizontalAlignment="Left" Height="40" Margin="400,0,0,0" VerticalAlignment="Top" Width="200" Background="White"/> |
|
|
|
<Button Content="{x:Static lang:Resources.Redye}" x:Name="WorkOrderView_redy" FontSize="20" HorizontalAlignment="Left" Height="40" Margin="600,0,0,0" VerticalAlignment="Top" Width="200" Background="White"/> |
|
|
|
|
|
|
|
<DataGrid x:Name="Grid" AlternationCount="2" IsReadOnly="True" |
|
|
|
Margin="0,40,0,0" Height="400" d:ItemsSource="{d:SampleData ItemCount=99}" AutoGenerateColumns="False" MinColumnWidth="30" |
|
|
|
HorizontalGridLinesBrush="#FFC9C9C9" VerticalGridLinesBrush="#FFC9C9C9" GridLinesVisibility="All" BorderBrush="#CCCCCC" |
|
|
|
BorderThickness="1,1,1,1" ColumnHeaderHeight="40" HorizontalContentAlignment="Right" Grid.ColumnSpan="2" |
|
|
|
CanUserReorderColumns="False" CanUserSortColumns="False" CanUserResizeRows="False" |
|
|
|
CanUserAddRows="False" CanUserDeleteRows="False" HeadersVisibility ="Column" |
|
|
|
Background="White" SelectionMode="Single" FontSize="15" VerticalAlignment="Top" > |
|
|
|
<DataGrid.RowStyle > |
|
|
|
<Style TargetType="{x:Type DataGridRow}"> |
|
|
|
<Style.Triggers> |
|
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="0"> |
|
|
|
<Setter Property="Background" Value="#FFFFFFFF" /> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="1"> |
|
|
|
<Setter Property="Background" Value="#FFF0F0F0" /> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="IsMouseOver" Value="False"> |
|
|
|
</Trigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</DataGrid.RowStyle> |
|
|
|
<DataGrid.CellStyle> |
|
|
|
<Style TargetType="DataGridCell"> |
|
|
|
<Setter Property="BorderThickness" Value="0"/> |
|
|
|
<Setter Property="MinWidth" Value="20"/> |
|
|
|
<Style.Triggers> |
|
|
|
<Trigger Property="IsSelected" Value="True"> |
|
|
|
<Setter Property="Background" Value="#FFC0C0C0"/> |
|
|
|
<Setter Property="BorderBrush" Value="#FFC0C0C0"/> |
|
|
|
<Setter Property="Foreground" Value="#000000"/> |
|
|
|
</Trigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</DataGrid.CellStyle> |
|
|
|
|
|
|
|
<DataGrid.Columns> |
|
|
|
<!--列信息绑定--> |
|
|
|
<DataGridTextColumn Header="{x:Static lang:Resources.WorkOrderNumder}" Width="200" Binding="{Binding WorkOrder}" IsReadOnly="True"/> |
|
|
|
<DataGridTextColumn Header="{x:Static lang:Resources.ProcessName}" Width="200" Binding="{Binding ProcessName}" IsReadOnly="True"/> |
|
|
|
<DataGridTextColumn Header="{x:Static lang:Resources.StartTime}" Width="200" Binding="{Binding StartTime}" IsReadOnly="True"/> |
|
|
|
<DataGridTextColumn Header="{x:Static lang:Resources.Time}" Width="100" Binding="{Binding Time}" IsReadOnly="True"/> |
|
|
|
<DataGridTextColumn Header="{x:Static lang:Resources.EndTime}" MinWidth="200" Binding="{Binding EndTime}" IsReadOnly="True"/> |
|
|
|
<DataGridTextColumn Header="{x:Static lang:Resources.Remark}" MinWidth="500" Binding="{Binding Remark}" IsReadOnly="True"/> |
|
|
|
</DataGrid.Columns> |
|
|
|
</DataGrid> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
</Grid> |
|
|
|