123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225 |
- <UserControl x:Class="Aitex.Sorter.UI.Views.FAViewII"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:common="clr-namespace:Aitex.Sorter.UI.Controls.Common"
- xmlns:Common="clr-namespace:Aitex.Sorter.Common;assembly=Aitex.Sorter.Common"
- xmlns:controls="clr-namespace:Aitex.Sorter.UI.Controls"
- mc:Ignorable="d"
- d:DesignHeight="700" d:DesignWidth="1600" >
- <WrapPanel Orientation="Horizontal" VerticalAlignment="Top" Margin="20,10,0,0">
- <controls:HeaderPanel Width="600" Height="360" Header="HSMS Configuration" Margin="5" >
- <StackPanel Orientation="Vertical">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200" />
- <ColumnDefinition Width="165" />
- <ColumnDefinition Width="165" />
- <ColumnDefinition Width="60" />
- </Grid.ColumnDefinitions>
- <Rectangle Grid.Row="0" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
- <TextBlock Grid.Row="0" Grid.Column="0" FontSize="15" Text="Connection Mode" Foreground="White" />
- <Rectangle Grid.Row="0" Grid.Column="1" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
- <TextBlock Grid.Row="0" Grid.Column="1" TextAlignment="Center" FontSize="13" Width="88" Height="25" Margin="3" Padding="0,0,0,0" Text="{Binding Path=ConfigFeedback.FA_HsmsConnectionMode}" />
- <Rectangle Grid.Row="0" Grid.Column="2" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
- <ComboBox Grid.Row="0" Grid.Column="2" IsEditable="False" Text="{Binding Path=ConfigSetPoint.FA_HsmsConnectionMode }" >
- <ComboBoxItem>Passive</ComboBoxItem>
- <ComboBoxItem>Active</ComboBoxItem>
- </ComboBox>
- <Button Content="{DynamicResource GlobalLableButtonSet}" Grid.Row="0" Grid.Column="3"
- Command="{Binding SetConfigExCommand}"
- common:CommandHelper.CommandName="FA.HsmsConnectionMode"
- common:CommandHelper.Parameter1="{Binding ConfigSetPoint.FA_HsmsConnectionMode}"
- FontSize="16" Width="80" Height="26" Margin="0" VerticalAlignment="Center"/>
- </Grid>
- <controls:AITScStringRow ScName="Local IP Address"
- ScId="FA.HsmsLocalIP" ScFeedback="{Binding ConfigFeedback.FA_HsmsLocalIP}"
- ScSetPoint="{Binding ConfigSetPoint.FA_HsmsLocalIP}"
- Command="{Binding SetConfigCommand}"
- NameWidth="200" FeedbackWidth="165"
- SetPointWidth="165" CommandWidth="60" />
- <controls:AITScDoubleRow ScName="Local Port Number"
- ScId="FA.HsmsLocalPort" ScFeedback="{Binding ConfigFeedback.FA_HsmsLocalPort}"
- ScSetPoint="{Binding ConfigSetPoint.FA_HsmsLocalPort}"
- Command="{Binding SetConfigCommand}"
- NameWidth="200" FeedbackWidth="165"
- SetPointWidth="165" CommandWidth="60" />
- <controls:AITScStringRow ScName="Remote IP Address"
- ScId="FA.HsmsRemoteIP" ScFeedback="{Binding ConfigFeedback.FA_HsmsRemoteIP}"
- ScSetPoint="{Binding ConfigSetPoint.FA_HsmsRemoteIP}"
- Command="{Binding SetConfigCommand}"
- NameWidth="200" FeedbackWidth="165"
- SetPointWidth="165" CommandWidth="60" />
- <controls:AITScDoubleRow ScName="Remote Port Number"
- ScId="FA.HsmsRemotePort" ScFeedback="{Binding ConfigFeedback.FA_HsmsRemotePort}"
- ScSetPoint="{Binding ConfigSetPoint.FA_HsmsRemotePort}"
- Command="{Binding SetConfigCommand}"
- NameWidth="200" FeedbackWidth="165"
- SetPointWidth="165" CommandWidth="60" />
- <controls:AITScDoubleRow ScName="T3 Timeout(s)"
- ScId="FA.HsmsT3timeout" ScFeedback="{Binding ConfigFeedback.FA_HsmsT3timeout}"
- ScSetPoint="{Binding ConfigSetPoint.FA_HsmsT3timeout}"
- Command="{Binding SetConfigCommand}"
- NameWidth="200" FeedbackWidth="165"
- SetPointWidth="165" CommandWidth="60" />
- <controls:AITScDoubleRow ScName="T5 Timeout(s)"
- ScId="FA.HsmsT5timeout" ScFeedback="{Binding ConfigFeedback.FA_HsmsT5timeout}"
- ScSetPoint="{Binding ConfigSetPoint.FA_HsmsT5timeout}"
- Command="{Binding SetConfigCommand}"
- NameWidth="200" FeedbackWidth="165"
- SetPointWidth="165" CommandWidth="60" />
- <controls:AITScDoubleRow ScName="T6 Timeout(s)"
- ScId="FA.HsmsT6timeout" ScFeedback="{Binding ConfigFeedback.FA_HsmsT6timeout}"
- ScSetPoint="{Binding ConfigSetPoint.FA_HsmsT6timeout}"
- Command="{Binding SetConfigCommand}"
- NameWidth="200" FeedbackWidth="165"
- SetPointWidth="165" CommandWidth="60" />
- <controls:AITScDoubleRow ScName="T7 Timeout(s)"
- ScId="SetT7" ScFeedback="{Binding ConfigFeedback.FA_HsmsT7timeout}"
- ScSetPoint="{Binding ConfigSetPoint.FA_HsmsT7timeout}"
- Command="{Binding SetConfigCommand}"
- NameWidth="200" FeedbackWidth="165"
- SetPointWidth="165" CommandWidth="60" />
- <controls:AITScDoubleRow ScName="T8 Timeout(s)"
- ScId="FA.HsmsT8timeout" ScFeedback="{Binding ConfigFeedback.FA_HsmsT8timeout}"
- ScSetPoint="{Binding ConfigSetPoint.FA_HsmsT8timeout}"
- Command="{Binding SetConfigCommand}"
- common:CommandHelper.CommandName="SetT8"
- NameWidth="200" FeedbackWidth="165"
- SetPointWidth="165" CommandWidth="60" />
- </StackPanel>
- </controls:HeaderPanel>
- <controls:HeaderPanel Width="600" Height="360" Header="FA Configuration" Margin="5" >
- <StackPanel Orientation="Vertical">
-
- <controls:AITScDoubleRow ScName="Device ID"
- ScId="FA.DeviceID" ScFeedback="{Binding ConfigFeedback.FA_DeviceID}"
- ScSetPoint="{Binding ConfigSetPoint.FA_DeviceID}"
- Command="{Binding SetConfigCommand}"
- NameWidth="310" FeedbackWidth="110"
- SetPointWidth="110" CommandWidth="60" />
-
- <!--<controls:AITScBoolRow ScName="Enable Spooling"
- ScId="Fa.FaEnableSpooling" ScFeedback="{Binding ConfigFeedback.Fa_FaEnableSpooling}"
- ScSetPoint="{Binding ConfigSetPoint.Fa_FaEnableSpooling}"
- Command="{Binding SetConfigCommand}" NameWidth="310" FeedbackWidth="110"
- SetPointWidth="110" CommandWidth="60" />-->
- <!--<Button Content="Reset FA connection" Width="200" Command="{Binding InitializeCommand}" />-->
- </StackPanel>
- </controls:HeaderPanel>
- <!--<controls:HeaderPanel Header="Reset Fa" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5" Height="360" Width="350" >
-
- </controls:HeaderPanel>-->
- <controls:HeaderPanel Header="Spooling Status" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5" Height="360" Width="350" >
- <Grid common:GridHelper.Column0="{StaticResource Table_BG_Title}" common:GridHelper.Column1="Transparent">
- <Grid.RowDefinitions>
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="60" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="130" />
- <ColumnDefinition Width="220" />
- </Grid.ColumnDefinitions>
- <TextBlock Grid.Row="0" Grid.Column="0" Text="State" FontSize="18" />
- <Label Grid.Row="0" Grid.Column="1" Content="{Binding SpoolingState}" />
- <TextBlock Grid.Row="1" Grid.Column="0" Text="Actual" FontSize="18" />
- <Label Grid.Row="1" Grid.Column="1" Content="{Binding SpoolingActual}" />
- <TextBlock Grid.Row="2" Grid.Column="0" Text="Total" FontSize="18" />
- <Label Grid.Row="2" Grid.Column="1" Content="{Binding SpoolingTotal}" />
- <TextBlock Grid.Row="3" Grid.Column="0" Text="Full Time" FontSize="18" />
- <Label Grid.Row="3" Grid.Column="1" Content="{Binding SpoolingFullTime}" />
- <TextBlock Grid.Row="4" Grid.Column="0" Text="Start Time" FontSize="18" />
- <Label Grid.Row="4" Grid.Column="1" Content="{Binding SpoolingStartTime}" />
- <StackPanel Orientation="Horizontal" Grid.Row="5" Grid.ColumnSpan="2" HorizontalAlignment="Center">
- <Button Content="Enable" Command="{Binding InvokeCommand}" IsEnabled="{Binding IsEnableSpoolingEnableButton}" CommandParameter="FACommand,FAEnableSpooling" />
- <Button Content="Disable" Command="{Binding InvokeCommand}" IsEnabled="{Binding IsEnableSpoolingDisableButton}" CommandParameter="FACommand,FADisableSpooling" />
- </StackPanel>
- </Grid>
- </controls:HeaderPanel>
- <controls:HeaderPanel Header="Host Communication State" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5" Height="200" Width="350" >
- <Grid common:GridHelper.Column0="{StaticResource Table_BG_Title}" common:GridHelper.Column1="Transparent">
- <Grid.RowDefinitions>
- <RowDefinition Height="40" />
- <RowDefinition Height="60" />
-
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="130" />
- <ColumnDefinition Width="220" />
- </Grid.ColumnDefinitions>
- <TextBlock Text="Status" FontSize="18" />
- <Label Grid.Column="1" Content="{Binding HostCommunicationStatus}" />
-
- <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Center">
- <Button Content="Enable" Command="{Binding InvokeCommand}" IsEnabled="{Binding IsEnableEnableButton}" CommandParameter="FACommand,FAEnable" />
- <Button Content="Disable" Command="{Binding InvokeCommand}" IsEnabled="{Binding IsEnableDisableButton}" CommandParameter="FACommand,FADisable" />
- </StackPanel>
- </Grid>
- </controls:HeaderPanel>
- <controls:HeaderPanel Header="Host Control State" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5" Height="200" Width="350" >
- <Grid common:GridHelper.Column0="{StaticResource Table_BG_Title}" common:GridHelper.Column1="Transparent">
- <Grid.RowDefinitions>
- <RowDefinition Height="40" />
- <RowDefinition Height="60" />
- <RowDefinition Height="60" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="130" />
- <ColumnDefinition Width="220" />
- </Grid.ColumnDefinitions>
- <TextBlock Text="Status" FontSize="18" />
- <Label Grid.Column="1" Content="{Binding HostControlStatus}" />
- <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Center">
- <Button Content="Online" Command="{Binding InvokeCommand}" CommandParameter="FACommand,FAOnline" IsEnabled="{Binding IsEnableOnlineButton}"/>
- <Button Content="Offline" Command="{Binding InvokeCommand}" CommandParameter="FACommand,FAOffline" IsEnabled="{Binding IsEnableOfflineButton}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Grid.Row="2" Grid.ColumnSpan="2" HorizontalAlignment="Center">
- <Button Content="Local" Command="{Binding InvokeCommand}" CommandParameter="FACommand,FALocal" IsEnabled="{Binding IsEnableLocalButton}" />
- <Button Content="Remote" Command="{Binding InvokeCommand}" CommandParameter="FACommand,FARemote" IsEnabled="{Binding IsEnableRemoteButton}" />
- </StackPanel>
- </Grid>
- </controls:HeaderPanel>
- </WrapPanel>
- </UserControl>
|