|
@@ -9,7 +9,7 @@
|
|
|
xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=MECF.Framework.UI.Core"
|
|
|
xmlns:local="clr-namespace:FurnaceUI.Views.Maintenances"
|
|
|
mc:Ignorable="d"
|
|
|
- d:DesignHeight="600" d:DesignWidth="640" x:Name="self">
|
|
|
+ d:DesignHeight="600" d:DesignWidth="1024" x:Name="self">
|
|
|
<UserControl.Resources>
|
|
|
<DataTemplate x:Key="IndexTemplate">
|
|
|
<Label Content="{Binding Index}" Width="30" Height="36" VerticalAlignment="Center" HorizontalAlignment="Left"></Label>
|
|
@@ -23,10 +23,419 @@
|
|
|
<deviceControl:AITSensor LightOnValue="{Binding Value}" GreenColor="True" Width="100" Height="36" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
</deviceControl:AITSensor>
|
|
|
</DataTemplate>
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
</UserControl.Resources>
|
|
|
- <Grid Margin="10,0,10,0">
|
|
|
- <Grid.RowDefinitions>
|
|
|
+ <Grid >
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition></ColumnDefinition>
|
|
|
+ <ColumnDefinition ></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Border Visibility="{Binding LP1BorderVisibility,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}" Padding="4">
|
|
|
+ <Grid>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="auto"></RowDefinition>
|
|
|
+ <RowDefinition ></RowDefinition>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <TextBlock Text="LoadPort1" Height="30" FontSize="18" Style="{StaticResource TextBlock_GridTitle}"></TextBlock>
|
|
|
+ <Border Grid.Row="1">
|
|
|
+ <Image Source="pack://application:,,,/MECF.Framework.Common;component/Resources/LoadPort.png" />
|
|
|
+ </Border>
|
|
|
+ <Border Height="110" Grid.Row="2" Background="#eaeaea">
|
|
|
+ <StackPanel>
|
|
|
+ <TextBlock Text="Carrier" Style="{StaticResource TextBlock_Title}" FontSize="20" ></TextBlock>
|
|
|
+ <Grid Margin="20,10,0,0">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="76"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="150"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <TextBlock Grid.Row="0" Grid.Column="0" Text="Type" FontSize="16"></TextBlock>
|
|
|
+ <Label Style="{StaticResource LableToTextBox}" Content="{Binding LP1CarrierInfo.CarrierType}" Grid.Row="1" Grid.Column="0" Height="40">
|
|
|
+
|
|
|
+ </Label>
|
|
|
+ <TextBlock Margin="10,0,10,0" Grid.Row="0" Grid.Column="1" Text="No." FontSize="16"></TextBlock>
|
|
|
+ <Label Style="{StaticResource LableToTextBox}" Content="{Binding LP1CarrierInfo.InternalModuleName}" Margin="10,0,10,0" Grid.Row="1" Grid.Column="1" Height="40"></Label>
|
|
|
+ <TextBlock Grid.Row="0" Grid.Column="2" Text="ID" FontSize="16"></TextBlock>
|
|
|
+ <Border BorderBrush="Black" BorderThickness="1" Grid.Row="2" Grid.Column="2" >
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Label BorderThickness="0" Style="{StaticResource LableToTextBox}" Width="130" Content="{Binding LP1CarrierInfo.CarrierId,UpdateSourceTrigger=PropertyChanged}" Height="40"></Label>
|
|
|
+ <Button Content="Read ID" Width="85" Height="40" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="ReadCarrierId">
|
|
|
+ <cal:Parameter Value="LP1"/>
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+ </StackPanel>
|
|
|
+ </Border>
|
|
|
+ <Border Height="200" Grid.Row="3" Margin="0,2,0,0" Background="#eaeaea">
|
|
|
+ <StackPanel>
|
|
|
+ <TextBlock Text="LoadPort" Style="{StaticResource TextBlock_Title}" FontSize="20" ></TextBlock>
|
|
|
+ <Grid Margin="20,10,0,0">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition></ColumnDefinition>
|
|
|
+ <ColumnDefinition ></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <TextBlock Grid.Row="0" Grid.Column="0" Text="Status" FontSize="16"></TextBlock>
|
|
|
+ <Border BorderBrush="Black" BorderThickness="1" Grid.Row="1" Grid.Column="0">
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Label BorderThickness="0" Style="{StaticResource LableToTextBox}" Width="130" Content="{Binding LP1State,UpdateSourceTrigger=PropertyChanged}" Height="40"></Label>
|
|
|
+ <Button Content="Init" Width="85" Height="40" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="Home">
|
|
|
+ <cal:Parameter Value="LP1"/>
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ </Border>
|
|
|
+
|
|
|
+ <TextBlock Margin="10,0,10,0" Grid.Row="0" Grid.Column="1" Text="Clamp" FontSize="16"></TextBlock>
|
|
|
+
|
|
|
+ <Border BorderBrush="Black" BorderThickness="1" Margin="10,0,10,0" Grid.Row="1" Grid.Column="1" >
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Label BorderThickness="0" Style="{StaticResource LableToTextBox}" Width="130" Content="{Binding LP1DeviceStatus,UpdateSourceTrigger=PropertyChanged}" Height="40"></Label>
|
|
|
+ <Button Content="Clamp" Width="85" Height="40" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="SetClamp">
|
|
|
+ <cal:Parameter Value="LP1"/>
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ <Button.Style>
|
|
|
+ <Style BasedOn="{StaticResource BaseButton}" TargetType="{x:Type Button}">
|
|
|
+
|
|
|
+ <Setter Property="Visibility" Value="Visible"/>
|
|
|
+ <Style.Triggers>
|
|
|
+ <DataTrigger Binding="{Binding LP1DeviceStatus, UpdateSourceTrigger=PropertyChanged}" Value="Clamp">
|
|
|
+ <Setter Property="Visibility" Value="Collapsed"/>
|
|
|
+ </DataTrigger>
|
|
|
+ <DataTrigger Binding="{Binding LP1DeviceStatus, UpdateSourceTrigger=PropertyChanged}" Value="Release">
|
|
|
+ <Setter Property="Visibility" Value="Visible"/>
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </Button.Style>
|
|
|
+ </Button>
|
|
|
+ <Button Content="Release" Width="85" Height="40" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="SetRelease">
|
|
|
+ <cal:Parameter Value="LP1"/>
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ <Button.Style>
|
|
|
+ <Style BasedOn="{StaticResource BaseButton}" TargetType="{x:Type Button}">
|
|
|
+
|
|
|
+ <Setter Property="Visibility" Value="Collapsed"/>
|
|
|
+ <Style.Triggers>
|
|
|
+ <DataTrigger Binding="{Binding LP1DeviceStatus, UpdateSourceTrigger=PropertyChanged}" Value="Clamp">
|
|
|
+ <Setter Property="Visibility" Value="Visible"/>
|
|
|
+ </DataTrigger>
|
|
|
+ <DataTrigger Binding="{Binding LP1DeviceStatus, UpdateSourceTrigger=PropertyChanged}" Value="Release">
|
|
|
+ <Setter Property="Visibility" Value="Collapsed"/>
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </Button.Style>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ </Border>
|
|
|
+
|
|
|
+
|
|
|
+ <TextBlock Grid.Row="2" Grid.Column="0" Text="AccessMode" FontSize="16"></TextBlock>
|
|
|
+
|
|
|
+ <Border BorderBrush="Black" BorderThickness="1" Grid.Row="3" Grid.Column="0" >
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Label BorderThickness="0" Style="{StaticResource LableToTextBox}" Width="130" Content="{Binding LP1AccessMode,UpdateSourceTrigger=PropertyChanged}" Height="40"></Label>
|
|
|
+ <Button Content="Manual" Width="85" Height="40" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="DoLoadPortCmd">
|
|
|
+ <cal:Parameter Value="LP1"/>
|
|
|
+ <cal:Parameter Value="SetManual"/>
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ <Button.Style>
|
|
|
+ <Style BasedOn="{StaticResource BaseButton}" TargetType="{x:Type Button}">
|
|
|
+
|
|
|
+ <Setter Property="Visibility" Value="Visible"/>
|
|
|
+ <Style.Triggers>
|
|
|
+ <DataTrigger Binding="{Binding LP1AccessMode, UpdateSourceTrigger=PropertyChanged}" Value="Manual">
|
|
|
+ <Setter Property="Visibility" Value="Collapsed"/>
|
|
|
+ </DataTrigger>
|
|
|
+ <DataTrigger Binding="{Binding LP1AccessMode, UpdateSourceTrigger=PropertyChanged}" Value="Auto">
|
|
|
+ <Setter Property="Visibility" Value="Visible"/>
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </Button.Style>
|
|
|
+ </Button>
|
|
|
+ <Button Content="Auto" Width="85" Height="40" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="DoLoadPortCmd">
|
|
|
+ <cal:Parameter Value="LP1"/>
|
|
|
+ <cal:Parameter Value="SetAMHS"/>
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ <Button.Style>
|
|
|
+ <Style BasedOn="{StaticResource BaseButton}" TargetType="{x:Type Button}">
|
|
|
+ <Setter Property="Visibility" Value="Collapsed"/>
|
|
|
+ <Style.Triggers>
|
|
|
+ <DataTrigger Binding="{Binding LP1AccessMode, UpdateSourceTrigger=PropertyChanged}" Value="Auto">
|
|
|
+ <Setter Property="Visibility" Value="Collapsed"/>
|
|
|
+ </DataTrigger>
|
|
|
+ <DataTrigger Binding="{Binding LP1AccessMode, UpdateSourceTrigger=PropertyChanged}" Value="Manual">
|
|
|
+ <Setter Property="Visibility" Value="Visible"/>
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </Button.Style>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ </Border>
|
|
|
+
|
|
|
+ <TextBlock Margin="10,0,10,0" Grid.Row="2" Grid.Column="1" Text="Reservation" FontSize="16"></TextBlock>
|
|
|
+ <Label Style="{StaticResource LableToTextBox}" Margin="10,0,10,0" Grid.Row="3" Grid.Column="1" Height="40"></Label>
|
|
|
+
|
|
|
+
|
|
|
+ </Grid>
|
|
|
+ </StackPanel>
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+ <Border Visibility="{Binding LP2BorderVisibility,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}" Grid.Column="1" Padding="4" BorderThickness="1,0,0,0" BorderBrush="#ccc">
|
|
|
+ <Grid>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="auto"></RowDefinition>
|
|
|
+ <RowDefinition ></RowDefinition>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <TextBlock Text="LoadPort2" Height="30" FontSize="18" Style="{StaticResource TextBlock_GridTitle}"></TextBlock>
|
|
|
+ <Border Grid.Row="1">
|
|
|
+ <Image Source="pack://application:,,,/MECF.Framework.Common;component/Resources/LoadPort.png" />
|
|
|
+ </Border>
|
|
|
+ <Border Height="110" Grid.Row="2" Background="#eaeaea">
|
|
|
+ <StackPanel>
|
|
|
+ <TextBlock Text="Carrier" Style="{StaticResource TextBlock_Title}" FontSize="20" ></TextBlock>
|
|
|
+ <Grid Margin="20,10,0,0">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="76"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="150"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <TextBlock Grid.Row="0" Grid.Column="0" Text="Type" FontSize="16"></TextBlock>
|
|
|
+ <Label Style="{StaticResource LableToTextBox}" Content="{Binding LP2CarrierInfo.CarrierType}" Grid.Row="1" Grid.Column="0" Height="40"></Label>
|
|
|
+ <TextBlock Margin="10,0,10,0" Grid.Row="0" Grid.Column="1" Text="No." FontSize="16"></TextBlock>
|
|
|
+ <Label Style="{StaticResource LableToTextBox}" Content="{Binding LP2CarrierInfo.InternalModuleName}" Margin="10,0,10,0" Grid.Row="1" Grid.Column="1" Height="40"></Label>
|
|
|
+ <TextBlock Grid.Row="0" Grid.Column="2" Text="ID" FontSize="16"></TextBlock>
|
|
|
+ <Border BorderBrush="Black" BorderThickness="1" Grid.Row="2" Grid.Column="2" >
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Label BorderThickness="0" Style="{StaticResource LableToTextBox}" Width="130" Content="{Binding LP2CarrierInfo.CarrierId,UpdateSourceTrigger=PropertyChanged}" Height="40"></Label>
|
|
|
+ <Button Content="Read ID" Width="85" Height="40" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="ReadCarrierId">
|
|
|
+ <cal:Parameter Value="LP2"/>
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+ </StackPanel>
|
|
|
+ </Border>
|
|
|
+ <Border Height="200" Grid.Row="3" Margin="0,2,0,0" Background="#eaeaea">
|
|
|
+ <StackPanel>
|
|
|
+ <TextBlock Text="LoadPort" Style="{StaticResource TextBlock_Title}" FontSize="20" ></TextBlock>
|
|
|
+ <Grid Margin="20,10,0,0">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition></ColumnDefinition>
|
|
|
+ <ColumnDefinition ></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <TextBlock Grid.Row="0" Grid.Column="0" Text="Status" FontSize="16"></TextBlock>
|
|
|
+ <Border BorderBrush="Black" BorderThickness="1" Grid.Row="1" Grid.Column="0">
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Label BorderThickness="0" Style="{StaticResource LableToTextBox}" Width="130" Content="{Binding LP2State,UpdateSourceTrigger=PropertyChanged}" Height="40"></Label>
|
|
|
+ <Button Content="Init" Width="85" Height="40" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="Home">
|
|
|
+ <cal:Parameter Value="LP2"/>
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ </Border>
|
|
|
+
|
|
|
+ <TextBlock Margin="10,0,10,0" Grid.Row="0" Grid.Column="1" Text="Clamp" FontSize="16"></TextBlock>
|
|
|
+
|
|
|
+ <Border BorderBrush="Black" BorderThickness="1" Margin="10,0,10,0" Grid.Row="1" Grid.Column="1" >
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Label BorderThickness="0" Style="{StaticResource LableToTextBox}" Width="130" Content="{Binding LP2DeviceStatus,UpdateSourceTrigger=PropertyChanged}" Height="40"></Label>
|
|
|
+ <Button Content="Clamp" Width="85" Height="40" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="SetClamp">
|
|
|
+ <cal:Parameter Value="LP2"/>
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ <Button.Style>
|
|
|
+ <Style BasedOn="{StaticResource BaseButton}" TargetType="{x:Type Button}">
|
|
|
+
|
|
|
+ <Setter Property="Visibility" Value="Visible"/>
|
|
|
+ <Style.Triggers>
|
|
|
+ <DataTrigger Binding="{Binding LP2DeviceStatus, UpdateSourceTrigger=PropertyChanged}" Value="Clamp">
|
|
|
+ <Setter Property="Visibility" Value="Collapsed"/>
|
|
|
+ </DataTrigger>
|
|
|
+ <DataTrigger Binding="{Binding LP2DeviceStatus, UpdateSourceTrigger=PropertyChanged}" Value="Release">
|
|
|
+ <Setter Property="Visibility" Value="Visible"/>
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </Button.Style>
|
|
|
+ </Button>
|
|
|
+ <Button Content="Release" Width="85" Height="40" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="SetRelease">
|
|
|
+ <cal:Parameter Value="LP2"/>
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ <Button.Style>
|
|
|
+ <Style BasedOn="{StaticResource BaseButton}" TargetType="{x:Type Button}">
|
|
|
+
|
|
|
+ <Setter Property="Visibility" Value="Collapsed"/>
|
|
|
+ <Style.Triggers>
|
|
|
+ <DataTrigger Binding="{Binding LP2DeviceStatus, UpdateSourceTrigger=PropertyChanged}" Value="Clamp">
|
|
|
+ <Setter Property="Visibility" Value="Visible"/>
|
|
|
+ </DataTrigger>
|
|
|
+ <DataTrigger Binding="{Binding LP2DeviceStatus, UpdateSourceTrigger=PropertyChanged}" Value="Release">
|
|
|
+ <Setter Property="Visibility" Value="Collapsed"/>
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </Button.Style>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ </Border>
|
|
|
+
|
|
|
+
|
|
|
+ <TextBlock Grid.Row="2" Grid.Column="0" Text="AccessMode" FontSize="16"></TextBlock>
|
|
|
+
|
|
|
+ <Border BorderBrush="Black" BorderThickness="1" Grid.Row="3" Grid.Column="0" >
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Label BorderThickness="0" Style="{StaticResource LableToTextBox}" Width="130" Content="{Binding LP2AccessMode,UpdateSourceTrigger=PropertyChanged}" Height="40"></Label>
|
|
|
+ <Button Content="Manual" Width="85" Height="40" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="DoLoadPortCmd">
|
|
|
+ <cal:Parameter Value="LP2"/>
|
|
|
+ <cal:Parameter Value="SetManual"/>
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ <Button.Style>
|
|
|
+ <Style BasedOn="{StaticResource BaseButton}" TargetType="{x:Type Button}">
|
|
|
+
|
|
|
+ <Setter Property="Visibility" Value="Visible"/>
|
|
|
+ <Style.Triggers>
|
|
|
+ <DataTrigger Binding="{Binding LP2AccessMode, UpdateSourceTrigger=PropertyChanged}" Value="Manual">
|
|
|
+ <Setter Property="Visibility" Value="Collapsed"/>
|
|
|
+ </DataTrigger>
|
|
|
+ <DataTrigger Binding="{Binding LP2AccessMode, UpdateSourceTrigger=PropertyChanged}" Value="Auto">
|
|
|
+ <Setter Property="Visibility" Value="Visible"/>
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </Button.Style>
|
|
|
+ </Button>
|
|
|
+ <Button Content="Auto" Width="85" Height="40" Margin="0" FontSize="13" IsEnabled="{Binding IsEnableManualOperation}" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="DoLoadPortCmd">
|
|
|
+ <cal:Parameter Value="LP2"/>
|
|
|
+ <cal:Parameter Value="SetAMHS"/>
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ <Button.Style>
|
|
|
+ <Style BasedOn="{StaticResource BaseButton}" TargetType="{x:Type Button}">
|
|
|
+ <Setter Property="Visibility" Value="Collapsed"/>
|
|
|
+ <Style.Triggers>
|
|
|
+ <DataTrigger Binding="{Binding LP2AccessMode, UpdateSourceTrigger=PropertyChanged}" Value="Auto">
|
|
|
+ <Setter Property="Visibility" Value="Collapsed"/>
|
|
|
+ </DataTrigger>
|
|
|
+ <DataTrigger Binding="{Binding LP2AccessMode, UpdateSourceTrigger=PropertyChanged}" Value="Manual">
|
|
|
+ <Setter Property="Visibility" Value="Visible"/>
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </Button.Style>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ </Border>
|
|
|
+
|
|
|
+ <TextBlock Margin="10,0,10,0" Grid.Row="2" Grid.Column="1" Text="Reservation" FontSize="16"></TextBlock>
|
|
|
+ <Label Style="{StaticResource LableToTextBox}" Margin="10,0,10,0" Grid.Row="3" Grid.Column="1" Height="40"></Label>
|
|
|
+
|
|
|
+
|
|
|
+ </Grid>
|
|
|
+ </StackPanel>
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+
|
|
|
+
|
|
|
+ <!--<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
<RowDefinition Height="Auto"/>
|
|
@@ -223,6 +632,6 @@
|
|
|
</i:Interaction.Triggers>
|
|
|
</Button>
|
|
|
</Border>
|
|
|
- </DockPanel>
|
|
|
+ </DockPanel>-->
|
|
|
</Grid>
|
|
|
</UserControl>
|