|
|
|
@ -8,9 +8,14 @@
|
|
|
|
|
xmlns:local1="clr-namespace:SlnMesnac.WPF.Converter.ProdMgmt"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
d:DesignHeight="1080" d:DesignWidth="1920" Background="Transparent">
|
|
|
|
|
<Control.Resources>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Control.Resources>
|
|
|
|
|
<local1:PlanStatusConverter x:Key="PlanStatusConverter" />
|
|
|
|
|
<local1:PlanAmountConverter x:Key="PlanAmountConverter" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Control.Resources>
|
|
|
|
|
<Grid Margin="5,5">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
@ -240,8 +245,8 @@
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<Button Content="开始" CommandParameter="{Binding PlanCode}" IsEnabled="{Binding StartEnable}" Background="#007DFA" Foreground="White" Margin="10,0,0,0" Height="25" BorderBrush="DeepSkyBlue" BorderThickness="0" Width="45" Command="{Binding DataContext.StartProdPlanCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid }}"/>
|
|
|
|
|
<Button Content="暂停" CommandParameter="{Binding PlanCode}" IsEnabled="{Binding StopEnable}" Background="#007DFA" Foreground="White" Margin="10,0,0,0" Height="25" BorderBrush="DeepSkyBlue" BorderThickness="0" Width="45" Command="{Binding DataContext.StopProdPlanCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid }}" />
|
|
|
|
|
<Button Content="开始" CommandParameter="{Binding PlanCode}" IsEnabled="{Binding StartEnable}" Background="LimeGreen" Foreground="Gray" Margin="10,0,0,0" Height="25" BorderBrush="DeepSkyBlue" BorderThickness="0" Width="45" Command="{Binding DataContext.StartProdPlanCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid }}"/>
|
|
|
|
|
<Button Content="暂停" CommandParameter="{Binding PlanCode}" IsEnabled="{Binding StopEnable}" Background="Red" Foreground="Gray" Margin="10,0,0,0" Height="25" BorderBrush="DeepSkyBlue" BorderThickness="0" Width="45" Command="{Binding DataContext.StopProdPlanCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid }}" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|