|
|
|
@ -11,6 +11,7 @@
|
|
|
|
|
d:DesignWidth="1000" >
|
|
|
|
|
<UserControl.Resources>
|
|
|
|
|
<local1:DeviceCodeConverter x:Key="DeviceCodeConverter" />
|
|
|
|
|
<local1:CarStatusConverter x:Key="CarStatusConverter" />
|
|
|
|
|
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
|
|
@ -42,7 +43,7 @@
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
|
|
|
<Setter Property="Height" Value="40"/>
|
|
|
|
|
<Setter Property="FontSize" Value="18"/>
|
|
|
|
|
<Setter Property="FontSize" Value="25"/>
|
|
|
|
|
<Setter Property="Background" Value="#4285DE"/>
|
|
|
|
|
<Setter Property="Foreground" Value="White"/>
|
|
|
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei"/>
|
|
|
|
@ -54,7 +55,7 @@
|
|
|
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
|
|
|
<Setter Property="Height" Value="40"/>
|
|
|
|
|
<Setter Property="FontSize" Value="18"/>
|
|
|
|
|
<Setter Property="FontSize" Value="20"/>
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type DataGridCell}">
|
|
|
|
@ -88,21 +89,20 @@
|
|
|
|
|
</WrapPanel>
|
|
|
|
|
<StackPanel>
|
|
|
|
|
<DataGrid Grid.Row="0" ItemsSource="{Binding DoorFoamMachineDataGrid_Left}" Background="#00000000"
|
|
|
|
|
ColumnHeaderHeight="30" Height="{Binding Path=ActualHeight, ElementName=ScanPanel}"
|
|
|
|
|
RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0" FontSize="20"
|
|
|
|
|
ColumnHeaderHeight="35" Height="{Binding Path=ActualHeight, ElementName=ScanPanel}"
|
|
|
|
|
RowHeight="50" AutoGenerateColumns="False" RowHeaderWidth="0" FontSize="25"
|
|
|
|
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True"
|
|
|
|
|
Foreground="White">
|
|
|
|
|
<!--修改选中字体颜色-->
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding StationTrolleyNumber,Converter={StaticResource DeviceCodeConverter}}" Header="台车号" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding GunNumber,Converter={StaticResource DeviceCodeConverter}}" Header="枪号" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding MoldStatus}" Header="模具状态" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding MoldType_A}" Header="A门类型" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding MoldType_A}" Header="B门类型" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding MoldStatus,Converter={StaticResource CarStatusConverter}}" Header="模具状态" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding MoldType}" Header="台车类型" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding MoldProdutionA}" Header="A门产量" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding MoldProdutionB}" Header="B门产量" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Takt}" Header="节拍" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<!--<DataGridTextColumn Binding="{Binding ProductTakt}" Header="台车节拍" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Takt}" Header="整圈节拍" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />-->
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
</StackPanel>
|
|
|
|
@ -115,21 +115,20 @@
|
|
|
|
|
</WrapPanel>-->
|
|
|
|
|
<StackPanel >
|
|
|
|
|
<DataGrid Grid.Row="0" ItemsSource="{Binding DoorFoamMachineDataGrid_Right}" Background="#00000000"
|
|
|
|
|
ColumnHeaderHeight="30" Height="{Binding Path=ActualHeight, ElementName=ScanPanel}"
|
|
|
|
|
RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0" FontSize="20"
|
|
|
|
|
ColumnHeaderHeight="35" Height="{Binding Path=ActualHeight, ElementName=ScanPanel}"
|
|
|
|
|
RowHeight="50" AutoGenerateColumns="False" RowHeaderWidth="0" FontSize="25"
|
|
|
|
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True"
|
|
|
|
|
Foreground="White">
|
|
|
|
|
<!--修改选中字体颜色-->
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding StationTrolleyNumber,Converter={StaticResource DeviceCodeConverter}}" Header="台车号" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding GunNumber,Converter={StaticResource DeviceCodeConverter}}" Header="枪号" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding MoldStatus}" Header="模具状态" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding MoldType_A}" Header="A门类型" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding MoldType_A}" Header="B门类型" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding MoldStatus,Converter={StaticResource CarStatusConverter}}" Header="模具状态" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding MoldType}" Header="台车类型" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding MoldProdutionA}" Header="A门产量" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding MoldProdutionB}" Header="B门产量" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Takt}" Header="节拍" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<!--<DataGridTextColumn Binding="{Binding ProductTakt}" Header="台车节拍" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Takt}" Header="整圈节拍" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />-->
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
</StackPanel>
|
|
|
|
|