|
|
|
<UserControl x:Class="SlnMesnac.WPF.Page.RecipeManagePage"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:local="clr-namespace:SlnMesnac.WPF.Page"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
d:DesignHeight="1080" d:DesignWidth="1920" Background="Transparent">
|
|
|
|
|
|
|
|
|
|
|
|
<Grid >
|
|
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="2*"/>
|
|
|
|
<RowDefinition Height="4*"/>
|
|
|
|
<RowDefinition Height="3.5*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border Grid.Row="2" BorderThickness="1" BorderBrush="Green">
|
|
|
|
<Grid >
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="0.8*"/>
|
|
|
|
<RowDefinition Height="6*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid Grid.Row="0">
|
|
|
|
<TextBlock Text="配方管理" FontSize="30" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="1">
|
|
|
|
<DataGrid Grid.Row="0" ItemsSource="{Binding RecipeDataGrid}" Background="Transparent" BorderThickness="1,0,1,1" BorderBrush="Green"
|
|
|
|
FontSize="22" ColumnHeaderHeight="55"
|
|
|
|
RowHeight="60" AutoGenerateColumns="False" RowHeaderWidth="0"
|
|
|
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden" CanUserAddRows="False" HorizontalAlignment="Center"
|
|
|
|
Foreground="#FFFFFF" >
|
|
|
|
<DataGrid.RowStyle>
|
|
|
|
<Style TargetType="DataGridRow">
|
|
|
|
<Setter Property="BorderBrush" Value="#FFDDDDDD"/>
|
|
|
|
<Setter Property="BorderThickness" Value="0,0.5,0,0.5"/>
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
<Setter Property="Margin" Value="0,0,0,0"/>
|
|
|
|
</Style>
|
|
|
|
</DataGrid.RowStyle>
|
|
|
|
<!--resourceStyle 399行修改选中字体颜色-->
|
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTextColumn Binding="{Binding RecipeKey}" Header="配方编号" Width="*" IsReadOnly="True"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding RecipeName}" Header="配方名称" Width="2*" IsReadOnly="True"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding UnpackSpiral1}" Header="拆包机螺旋1频率" Width="1.5*" IsReadOnly="True"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding UnpackSpiral2}" Header="拆包机螺旋2频率" Width="1.5*" IsReadOnly="True"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding DryerSpiral}" Header="烘干机螺旋频率" Width="1.5*" IsReadOnly="True"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding Spiral1}" Header="螺旋机螺旋1频率" Width="1.5*" IsReadOnly="True"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding Spiral2}" Header="螺旋机螺旋2频率" Width="1.5*" IsReadOnly="True"/>
|
|
|
|
<DataGridTemplateColumn Header="操作" Width="2*">
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<Button Content="修改" Style="{StaticResource BUTTON_AGREE}" CommandParameter="{Binding RecipeKey}" Background="#007DFA" Foreground="White" Margin="10,0,0,0" Height="45" BorderBrush="DeepSkyBlue" BorderThickness="0" Width="85" Command="{Binding DataContext.UpdateRecipeCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid }}"/>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</DataTemplate>
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
</Grid>
|
|
|
|
<!--<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
</Grid.ColumnDefinitions>-->
|
|
|
|
|
|
|
|
<!--<Button Grid.Row="0" Grid.Column="0" Style="{StaticResource BUTTON_AGREE}" Content="低速模版修改" FontSize="25" Background="Green" Width="180" Height="50" Margin="0,0,0,0" />
|
|
|
|
<Button Grid.Row="0" Grid.Column="1" Style="{StaticResource BUTTON_AGREE}" Content="中速模版修改" FontSize="25" Background="Green" Width="180" Height="50" Margin="0,0,0,0" />
|
|
|
|
<Button Grid.Row="0" Grid.Column="2" Style="{StaticResource BUTTON_AGREE}" Content="高速模版修改" FontSize="25" Background="Green" Width="180" Height="50" Margin="0,0,0,0" />-->
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
</UserControl>
|