|
@@ -18,7 +18,7 @@
|
|
|
mc:Ignorable="d">
|
|
|
<UserControl.Resources>
|
|
|
<local:DisplayNameConvert x:Key="DisplayNameConvert" />
|
|
|
- <DataTemplate x:Key="LoadPort1Template">
|
|
|
+ <!--<DataTemplate x:Key="LoadPort1Template">
|
|
|
<Grid Margin="10">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition />
|
|
@@ -246,7 +246,7 @@
|
|
|
</ItemsControl>
|
|
|
</GroupBox>
|
|
|
</Grid>
|
|
|
- </DataTemplate>
|
|
|
+ </DataTemplate>-->
|
|
|
<DataTemplate x:Key="Fims1Template">
|
|
|
<Grid Margin="10">
|
|
|
<Grid.ColumnDefinitions>
|
|
@@ -848,6 +848,122 @@
|
|
|
</Grid>
|
|
|
</Grid>
|
|
|
</DataTemplate>
|
|
|
+
|
|
|
+ <DataTemplate x:Key="LoadPortTemplate">
|
|
|
+ <Grid Margin="10">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition />
|
|
|
+ <ColumnDefinition Width="0.7*" />
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <GroupBox VerticalAlignment="Top">
|
|
|
+ <GroupBox.Header>
|
|
|
+ <TextBlock Foreground="Black" Text="IN" />
|
|
|
+ </GroupBox.Header>
|
|
|
+ <ItemsControl Foreground="Black" ItemsSource="{Binding DataContext.INViewSource, RelativeSource={RelativeSource AncestorType=UserControl}}">
|
|
|
+ <ItemsControl.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <Grid Height="40">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ <ColumnDefinition Width="45" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Border
|
|
|
+ Grid.Column="0"
|
|
|
+ Padding="5,1"
|
|
|
+ BorderBrush="{DynamicResource DataGrid_Cell_BD}"
|
|
|
+ BorderThickness="1,1,1,1">
|
|
|
+ <TextBlock
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="{Binding Path=DisplayName}"
|
|
|
+ ToolTip="{Binding Path=DisplayName}" />
|
|
|
+ </Border>
|
|
|
+ <Border
|
|
|
+ Grid.Column="1"
|
|
|
+ Padding="5,1"
|
|
|
+ BorderBrush="{DynamicResource DataGrid_Cell_BD}"
|
|
|
+ BorderThickness="0,1,1,1">
|
|
|
+ <controls1:SwitchButton
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ ON="{Binding Value}"
|
|
|
+ Style="{StaticResource Lamp-Button}" />
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+ </DataTemplate>
|
|
|
+ </ItemsControl.ItemTemplate>
|
|
|
+ </ItemsControl>
|
|
|
+ </GroupBox>
|
|
|
+ <Viewbox Grid.Column="1" Stretch="Uniform">
|
|
|
+ <Grid>
|
|
|
+ <Image Width="81" Source="/FurnaceUI;component/Resources/Images/Controls3/bt1.png" />
|
|
|
+ <TextBlock
|
|
|
+ Margin="28,18,0,0"
|
|
|
+ FontFamily="Arial"
|
|
|
+ FontSize="13"
|
|
|
+ Foreground="Black"
|
|
|
+ Text="{Binding DataContext.DisplayID,RelativeSource={RelativeSource AncestorType=UserControl}}" />
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ </Viewbox>
|
|
|
+ <GroupBox Grid.Column="2" VerticalAlignment="Top">
|
|
|
+ <GroupBox.Header>
|
|
|
+ <TextBlock Foreground="Black" Text="OUT" />
|
|
|
+ </GroupBox.Header>
|
|
|
+ <ItemsControl Foreground="Black" ItemsSource="{Binding DataContext.OutViewSource, RelativeSource={RelativeSource AncestorType=UserControl}}">
|
|
|
+ <ItemsControl.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <Grid Height="40">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ <ColumnDefinition Width="45" />
|
|
|
+ <ColumnDefinition Width="45" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Border
|
|
|
+ Padding="5,1"
|
|
|
+ BorderBrush="{DynamicResource DataGrid_Cell_BD}"
|
|
|
+ BorderThickness="1,1,1,1">
|
|
|
+ <TextBlock
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="{Binding Path=DisplayName}"
|
|
|
+ ToolTip="{Binding Path=DisplayName}" />
|
|
|
+ </Border>
|
|
|
+ <Border
|
|
|
+ Grid.Column="1"
|
|
|
+ Padding="5,1"
|
|
|
+ BorderBrush="{DynamicResource DataGrid_Cell_BD}"
|
|
|
+ BorderThickness="0,1,1,1">
|
|
|
+ <controls1:SwitchButton
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ ON="{Binding Value}"
|
|
|
+ Style="{StaticResource Lamp-Button}" />
|
|
|
+ </Border>
|
|
|
+ <Border
|
|
|
+ Grid.Column="2"
|
|
|
+ Padding="5,1"
|
|
|
+ BorderBrush="{DynamicResource DataGrid_Cell_BD}"
|
|
|
+ BorderThickness="0,1,1,1">
|
|
|
+ <controls1:SwitchButton
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ ON="{Binding Value}"
|
|
|
+ Style="{StaticResource OperationButton}">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="SetDO">
|
|
|
+ <cal:Parameter Value="{Binding}" />
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </controls1:SwitchButton>
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+ </DataTemplate>
|
|
|
+ </ItemsControl.ItemTemplate>
|
|
|
+ </ItemsControl>
|
|
|
+ </GroupBox>
|
|
|
+ </Grid>
|
|
|
+ </DataTemplate>
|
|
|
</UserControl.Resources>
|
|
|
<Border Background="{StaticResource Color_BG_Dialog_Inner}">
|
|
|
<ContentControl Grid.Column="1" Content="{Binding DisplayName}" IsEnabled="{Binding IsPermission}">
|
|
@@ -857,9 +973,8 @@
|
|
|
BufferTemplate="{StaticResource BufferTemplate}"
|
|
|
CarrierLoaderTemplate="{StaticResource CarrierLoaderTemplate}"
|
|
|
Fims1Template="{StaticResource Fims1Template}"
|
|
|
- Fims2Template="{StaticResource Fims2Template}"
|
|
|
- LoadPort1Template="{StaticResource LoadPort1Template}"
|
|
|
- LoadPort2Template="{StaticResource LoadPort2Template}"
|
|
|
+ Fims2Template="{StaticResource Fims2Template}"
|
|
|
+ LoadPortTemplate="{StaticResource LoadPortTemplate}"
|
|
|
WaferRobotTemplate="{StaticResource WaferRobotTemplate}" />
|
|
|
</ContentControl.ContentTemplateSelector>
|
|
|
</ContentControl>
|