Sic.Framework-Nanjing-Baishi/MECF.Framework.UI.Client/CenterViews/DataLogs/ProcessHistory/ProcessHistoryInfMessageBox...

96 lines
3.7 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<UserControl
x:Class="MECF.Framework.UI.Client.CenterViews.DataLogs.ProcessHistory.ProcessHistoryInfMessageBoxView"
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:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:local="clr-namespace:MECF.Framework.UI.Client.CenterViews.DataLogs.ProcessHistory"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:micro="clr-namespace:Caliburn.Micro"
d:DesignHeight="650"
d:DesignWidth="800"
mc:Ignorable="d">
<Grid Margin="5">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="50" />
</Grid.RowDefinitions>
<DataGrid
HorizontalAlignment="Left"
AlternationCount="2"
AutoGenerateColumns="False"
CanUserAddRows="False"
FontSize="14"
IsReadOnly="True"
ItemsSource="{Binding RecipeProcessHistoryDataList}"
SelectedItem="{Binding RecipeProcessHistoryData}">
<DataGrid.CellStyle>
<Style TargetType="DataGridCell">
<Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Content.Text}" />
</Style>
</DataGrid.CellStyle>
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseDoubleClick">
<micro:ActionMessage MethodName="DoubleClickItem" />
</i:EventTrigger>
</i:Interaction.Triggers>
<DataGrid.Columns>
<DataGridTextColumn
Width="160"
Binding="{Binding BeginTime}"
Header="Start Time" />
<DataGridTextColumn
Width="80"
Binding="{Binding EndTime}"
Header="End Time" />
<DataGridTextColumn
Width="80"
Binding="{Binding Status}"
Header="Status" />
<DataGridTextColumn
Width="Auto"
Binding="{Binding Name}"
Header="Recipe Name" />
</DataGrid.Columns>
</DataGrid>
<StackPanel
Grid.Row="1"
Margin="0,10,0,0"
HorizontalAlignment="Center"
Orientation="Horizontal">
<Button
Width="90"
Height="30"
Content="OK">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<micro:ActionMessage MethodName="OK" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
<Button
Width="90"
Height="30"
Margin="10,0,0,0"
Content="Cancel">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<micro:ActionMessage MethodName="Cancel" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
<ComboBox
Width="80"
Height="30"
Margin="20,0"
ItemsSource="{Binding StepModelList}"
SelectedItem="{Binding StepModel,UpdateSourceTrigger=PropertyChanged}"
ToolTip="选择需要显示的StepAll表示显示全部*表示筛选出Step名称中含有*" />
</StackPanel>
</Grid>
</UserControl>