123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- <UserControl
- x:Class="FurnaceUI.Views.Editors.AlarmErrorCallRecipeView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:cal="http://www.caliburn.org"
- xmlns:controls="http://OpenSEMI.Ctrlib.com/presentation"
- xmlns:converter="clr-namespace:FurnaceUI.Converter"
- xmlns:converters="clr-namespace:Aitex.Core.UI.Converters;assembly=MECF.Framework.UI.Core"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
- xmlns:local="clr-namespace:FurnaceUI.Views.Parameter"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- Width="1260"
- Height="850"
- FontFamily="Segoe"
- mc:Ignorable="d">
- <UserControl.Resources>
- <Style BasedOn="{StaticResource NormalRadioButton}" TargetType="RadioButton">
- <Setter Property="FontSize" Value="16" />
- </Style>
- <Style x:Key="myHeaderStyle" TargetType="{x:Type GridViewColumnHeader}">
- <Setter Property="Visibility" Value="Collapsed" />
- </Style>
- </UserControl.Resources>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="350" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="80" />
- </Grid.RowDefinitions>
- <Canvas>
- <ListView
- Name="DIListView"
- Grid.Column="2"
- Canvas.Left="38"
- Canvas.Top="76"
- MaxHeight="730"
- VerticalAlignment="Top"
- AlternationCount="2"
- IsEnabled="{Binding IsPermission}"
- ItemsSource="{Binding Steps}">
- <ListView.ItemContainerStyle>
- <Style TargetType="ListViewItem">
- <Setter Property="Height" Value="50" />
- </Style>
- </ListView.ItemContainerStyle>
- <ListView.View>
- <GridView>
- <GridViewColumn
- Width="50"
- DisplayMemberBinding="{Binding StepNo}"
- Header="Index" />
- <GridViewColumn Width="40" Header="">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <RadioButton GroupName="table" IsChecked="{Binding IsChecked}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Click">
- <cal:ActionMessage MethodName="AlarmTableSelected">
- <cal:Parameter Value="{Binding}" />
- </cal:ActionMessage>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </RadioButton>
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Width="200" Header="Table Name">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <Label
- Width="198"
- Height="48"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center"
- Content="{Binding Name}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="MouseDown">
- <cal:ActionMessage MethodName="SelectTable">
- <cal:Parameter Value="{Binding}" />
- </cal:ActionMessage>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Label>
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- </GridView>
- </ListView.View>
- </ListView>
- </Canvas>
- <Grid Grid.Column="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="60" />
- <RowDefinition Height="80" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid Grid.Row="1" Margin="10,20,90,0">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="30" />
- <RowDefinition Height="30" />
- <RowDefinition Height="30" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Border
- Grid.Row="1"
- Background="{DynamicResource Table_BG_Title}"
- BorderBrush="{DynamicResource Table_BD}"
- BorderThickness="1,1,1,1">
- <TextBlock
- Padding="5,0,0,0"
- VerticalAlignment="Center"
- FontFamily="Arial"
- FontSize="16"
- Foreground="{DynamicResource FG_Black}"
- Text="Table Name"
- TextWrapping="Wrap" />
- </Border>
- <Border
- Grid.Row="1"
- Grid.Column="1"
- Background="{DynamicResource Table_BG_Content}"
- BorderBrush="{DynamicResource Table_BD}"
- BorderThickness="0,0,0,0">
- <TextBox
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center"
- IsEnabled="False"
- Text="{Binding SelectItemName, UpdateSourceTrigger=PropertyChanged}" />
- </Border>
- <Border
- Grid.Row="2"
- Background="{DynamicResource Table_BG_Title}"
- BorderBrush="{DynamicResource Table_BD}"
- BorderThickness="1,1,1,1"
- Visibility="{Binding IsAlarmVisibility, UpdateSourceTrigger=PropertyChanged}">
- <TextBlock
- Padding="5,0,0,0"
- VerticalAlignment="Center"
- FontFamily="Arial"
- FontSize="16"
- Foreground="{DynamicResource FG_Black}"
- Text="End Status"
- TextWrapping="Wrap" />
- </Border>
- <Border
- Grid.Row="2"
- Grid.Column="1"
- Background="{DynamicResource Table_BG_Content}"
- BorderBrush="{DynamicResource Table_BD}"
- BorderThickness="0,0,0,0"
- Visibility="{Binding IsAlarmVisibility, UpdateSourceTrigger=PropertyChanged}">
- <TextBox
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center"
- IsEnabled="{Binding IsEnabledControl}"
- Text="{Binding SelectItemEndStatus, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnSourceUpdated=True}" />
- </Border>
- </Grid>
- <ListView
- Name="ChannelListView"
- Grid.Row="2"
- Canvas.Left="38"
- Canvas.Top="76"
- Width="410"
- MaxHeight="730"
- Margin="10,10,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- AlternationCount="2"
- ItemsSource="{Binding SelectItemTable, UpdateSourceTrigger=PropertyChanged}">
- <ListView.ItemContainerStyle>
- <Style TargetType="ListViewItem">
- <Setter Property="Height" Value="50" />
- </Style>
- </ListView.ItemContainerStyle>
- <ListView.View>
- <GridView>
- <GridViewColumn Width="200" Header="No.">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal">
- <Label
- Width="180"
- HorizontalContentAlignment="Center"
- Content="{Binding StepNo}" />
- </StackPanel>
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Width="200" Header="ID:Step Name">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal">
- <Label Width="180" Content="{Binding Name}" />
- </StackPanel>
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- </GridView>
- </ListView.View>
- </ListView>
- </Grid>
- <StackPanel
- Grid.Row="1"
- Grid.ColumnSpan="2"
- Height="50"
- Margin="0,0,10,10"
- HorizontalAlignment="Right"
- Orientation="Horizontal">
- <Button
- Width="95"
- Margin="2"
- Content="Save"
- Style="{StaticResource CommandButton}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Click">
- <cal:ActionMessage MethodName="OKCommand" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Button>
- <Button
- Width="95"
- Margin="2"
- Content="Cancel"
- Style="{StaticResource CommandButton}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Click">
- <cal:ActionMessage MethodName="CloseCommand" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Button>
- </StackPanel>
- </Grid>
- </UserControl>
|