You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
4.4 KiB
XML
87 lines
4.4 KiB
XML
<Window x:Class="XGLFinishPro.Views.FlowInfoWin"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:XGLFinishPro.Views"
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
mc:Ignorable="d"
|
|
Title="FlowInfoWin" Height="450" Width="800" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen" WindowStyle="None">
|
|
<Window.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<hc:ThemeResources />
|
|
<hc:Theme />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
<Style x:Key="CustomCellStyle" TargetType="DataGridCell">
|
|
<Setter Property="Foreground" Value="Black" />
|
|
<Setter Property="TextBlock.TextAlignment" Value="Center" />
|
|
<Setter Property="TextBlock.FontSize" Value="22" />
|
|
</Style>
|
|
</ResourceDictionary>
|
|
</Window.Resources>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Label
|
|
Grid.Row="0"
|
|
Width="175"
|
|
Height="37"
|
|
Margin="25,20,0,25"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center">
|
|
<TextBlock
|
|
FontSize="22"
|
|
FontWeight="Bold"
|
|
Text="工艺路线" />
|
|
</Label>
|
|
|
|
<Button
|
|
Grid.Row="0"
|
|
Width="90"
|
|
Height="44"
|
|
Margin="0,20,25,25"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Background="#2B7EE6"
|
|
Click="Back_Click" Content="关闭" FontSize="20"
|
|
Foreground="White"> </Button>
|
|
|
|
<DataGrid x:Name="dgFlow"
|
|
Grid.Row="1"
|
|
AutoGenerateColumns="False"
|
|
CanUserAddRows="False"
|
|
IsReadOnly='True'
|
|
FontSize="16" CellStyle="{StaticResource CustomCellStyle}"
|
|
LoadingRow="dgFlow_LoadingRow" HeadersVisibility="Column">
|
|
<DataGrid.ColumnHeaderStyle>
|
|
<Style TargetType="DataGridColumnHeader">
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
<Setter Property="Height" Value="48" />
|
|
<Setter Property="FontSize" Value="18" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="Background" Value="#2B7EE6" />
|
|
</Style>
|
|
</DataGrid.ColumnHeaderStyle>
|
|
<DataGrid.Columns>
|
|
<DataGridTemplateColumn Header=" 序号" Width="80" MinWidth="10" IsReadOnly="True">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type DataGridRow}}, Path=Header}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,0,0,0"></TextBlock>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
<DataGridTextColumn Width="2*" Header="工序编码" Binding="{Binding process_code}"/>
|
|
<DataGridTextColumn Width="2*" Header="工序名称" Binding="{Binding process_name}"/>
|
|
<DataGridTextColumn Width="2*" Header="下一工序编码" Binding="{Binding next_process_code}"/>
|
|
<DataGridTextColumn Width="2*" Header="下一工序名称" Binding="{Binding next_process_name}"/>
|
|
<DataGridTextColumn Width="2*" Header="物料编码" Binding="{Binding product_code}"/>
|
|
<DataGridTextColumn Width="2*" Header="物料名称" Binding="{Binding product_name}"/>
|
|
<DataGridTextColumn Width="2*" Header="工单" Binding="{Binding workorder_code}"/>
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
</Grid>
|
|
</Window>
|