FAViewII.xaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <UserControl x:Class="Aitex.Sorter.UI.Views.FAViewII"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:common="clr-namespace:Aitex.Sorter.UI.Controls.Common"
  7. xmlns:Common="clr-namespace:Aitex.Sorter.Common;assembly=Aitex.Sorter.Common"
  8. xmlns:controls="clr-namespace:Aitex.Sorter.UI.Controls"
  9. mc:Ignorable="d"
  10. d:DesignHeight="700" d:DesignWidth="1600" >
  11. <WrapPanel Orientation="Horizontal" VerticalAlignment="Top" Margin="20,10,0,0">
  12. <controls:HeaderPanel Width="600" Height="360" Header="HSMS Configuration" Margin="5" >
  13. <StackPanel Orientation="Vertical">
  14. <Grid>
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="200" />
  17. <ColumnDefinition Width="165" />
  18. <ColumnDefinition Width="165" />
  19. <ColumnDefinition Width="60" />
  20. </Grid.ColumnDefinitions>
  21. <Rectangle Grid.Row="0" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  22. <TextBlock Grid.Row="0" Grid.Column="0" FontSize="15" Text="Connection Mode" Foreground="White" />
  23. <Rectangle Grid.Row="0" Grid.Column="1" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  24. <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}" />
  25. <Rectangle Grid.Row="0" Grid.Column="2" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  26. <ComboBox Grid.Row="0" Grid.Column="2" IsEditable="False" Text="{Binding Path=ConfigSetPoint.FA_HsmsConnectionMode }" >
  27. <ComboBoxItem>Passive</ComboBoxItem>
  28. <ComboBoxItem>Active</ComboBoxItem>
  29. </ComboBox>
  30. <Button Content="{DynamicResource GlobalLableButtonSet}" Grid.Row="0" Grid.Column="3"
  31. Command="{Binding SetConfigExCommand}"
  32. common:CommandHelper.CommandName="FA.HsmsConnectionMode"
  33. common:CommandHelper.Parameter1="{Binding ConfigSetPoint.FA_HsmsConnectionMode}"
  34. FontSize="16" Width="80" Height="26" Margin="0" VerticalAlignment="Center"/>
  35. </Grid>
  36. <controls:AITScStringRow ScName="Local IP Address"
  37. ScId="FA.HsmsLocalIP" ScFeedback="{Binding ConfigFeedback.FA_HsmsLocalIP}"
  38. ScSetPoint="{Binding ConfigSetPoint.FA_HsmsLocalIP}"
  39. Command="{Binding SetConfigCommand}"
  40. NameWidth="200" FeedbackWidth="165"
  41. SetPointWidth="165" CommandWidth="60" />
  42. <controls:AITScDoubleRow ScName="Local Port Number"
  43. ScId="FA.HsmsLocalPort" ScFeedback="{Binding ConfigFeedback.FA_HsmsLocalPort}"
  44. ScSetPoint="{Binding ConfigSetPoint.FA_HsmsLocalPort}"
  45. Command="{Binding SetConfigCommand}"
  46. NameWidth="200" FeedbackWidth="165"
  47. SetPointWidth="165" CommandWidth="60" />
  48. <controls:AITScStringRow ScName="Remote IP Address"
  49. ScId="FA.HsmsRemoteIP" ScFeedback="{Binding ConfigFeedback.FA_HsmsRemoteIP}"
  50. ScSetPoint="{Binding ConfigSetPoint.FA_HsmsRemoteIP}"
  51. Command="{Binding SetConfigCommand}"
  52. NameWidth="200" FeedbackWidth="165"
  53. SetPointWidth="165" CommandWidth="60" />
  54. <controls:AITScDoubleRow ScName="Remote Port Number"
  55. ScId="FA.HsmsRemotePort" ScFeedback="{Binding ConfigFeedback.FA_HsmsRemotePort}"
  56. ScSetPoint="{Binding ConfigSetPoint.FA_HsmsRemotePort}"
  57. Command="{Binding SetConfigCommand}"
  58. NameWidth="200" FeedbackWidth="165"
  59. SetPointWidth="165" CommandWidth="60" />
  60. <controls:AITScDoubleRow ScName="T3 Timeout(s)"
  61. ScId="FA.HsmsT3timeout" ScFeedback="{Binding ConfigFeedback.FA_HsmsT3timeout}"
  62. ScSetPoint="{Binding ConfigSetPoint.FA_HsmsT3timeout}"
  63. Command="{Binding SetConfigCommand}"
  64. NameWidth="200" FeedbackWidth="165"
  65. SetPointWidth="165" CommandWidth="60" />
  66. <controls:AITScDoubleRow ScName="T5 Timeout(s)"
  67. ScId="FA.HsmsT5timeout" ScFeedback="{Binding ConfigFeedback.FA_HsmsT5timeout}"
  68. ScSetPoint="{Binding ConfigSetPoint.FA_HsmsT5timeout}"
  69. Command="{Binding SetConfigCommand}"
  70. NameWidth="200" FeedbackWidth="165"
  71. SetPointWidth="165" CommandWidth="60" />
  72. <controls:AITScDoubleRow ScName="T6 Timeout(s)"
  73. ScId="FA.HsmsT6timeout" ScFeedback="{Binding ConfigFeedback.FA_HsmsT6timeout}"
  74. ScSetPoint="{Binding ConfigSetPoint.FA_HsmsT6timeout}"
  75. Command="{Binding SetConfigCommand}"
  76. NameWidth="200" FeedbackWidth="165"
  77. SetPointWidth="165" CommandWidth="60" />
  78. <controls:AITScDoubleRow ScName="T7 Timeout(s)"
  79. ScId="SetT7" ScFeedback="{Binding ConfigFeedback.FA_HsmsT7timeout}"
  80. ScSetPoint="{Binding ConfigSetPoint.FA_HsmsT7timeout}"
  81. Command="{Binding SetConfigCommand}"
  82. NameWidth="200" FeedbackWidth="165"
  83. SetPointWidth="165" CommandWidth="60" />
  84. <controls:AITScDoubleRow ScName="T8 Timeout(s)"
  85. ScId="FA.HsmsT8timeout" ScFeedback="{Binding ConfigFeedback.FA_HsmsT8timeout}"
  86. ScSetPoint="{Binding ConfigSetPoint.FA_HsmsT8timeout}"
  87. Command="{Binding SetConfigCommand}"
  88. common:CommandHelper.CommandName="SetT8"
  89. NameWidth="200" FeedbackWidth="165"
  90. SetPointWidth="165" CommandWidth="60" />
  91. </StackPanel>
  92. </controls:HeaderPanel>
  93. <controls:HeaderPanel Width="600" Height="360" Header="FA Configuration" Margin="5" >
  94. <StackPanel Orientation="Vertical">
  95. <controls:AITScDoubleRow ScName="Device ID"
  96. ScId="FA.DeviceID" ScFeedback="{Binding ConfigFeedback.FA_DeviceID}"
  97. ScSetPoint="{Binding ConfigSetPoint.FA_DeviceID}"
  98. Command="{Binding SetConfigCommand}"
  99. NameWidth="310" FeedbackWidth="110"
  100. SetPointWidth="110" CommandWidth="60" />
  101. <!--<controls:AITScBoolRow ScName="Enable Spooling"
  102. ScId="Fa.FaEnableSpooling" ScFeedback="{Binding ConfigFeedback.Fa_FaEnableSpooling}"
  103. ScSetPoint="{Binding ConfigSetPoint.Fa_FaEnableSpooling}"
  104. Command="{Binding SetConfigCommand}" NameWidth="310" FeedbackWidth="110"
  105. SetPointWidth="110" CommandWidth="60" />-->
  106. <!--<Button Content="Reset FA connection" Width="200" Command="{Binding InitializeCommand}" />-->
  107. </StackPanel>
  108. </controls:HeaderPanel>
  109. <!--<controls:HeaderPanel Header="Reset Fa" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5" Height="360" Width="350" >
  110. </controls:HeaderPanel>-->
  111. <controls:HeaderPanel Header="Spooling Status" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5" Height="360" Width="350" >
  112. <Grid common:GridHelper.Column0="{StaticResource Table_BG_Title}" common:GridHelper.Column1="Transparent">
  113. <Grid.RowDefinitions>
  114. <RowDefinition Height="40" />
  115. <RowDefinition Height="40" />
  116. <RowDefinition Height="40" />
  117. <RowDefinition Height="40" />
  118. <RowDefinition Height="40" />
  119. <RowDefinition Height="60" />
  120. </Grid.RowDefinitions>
  121. <Grid.ColumnDefinitions>
  122. <ColumnDefinition Width="130" />
  123. <ColumnDefinition Width="220" />
  124. </Grid.ColumnDefinitions>
  125. <TextBlock Grid.Row="0" Grid.Column="0" Text="State" FontSize="18" />
  126. <Label Grid.Row="0" Grid.Column="1" Content="{Binding SpoolingState}" />
  127. <TextBlock Grid.Row="1" Grid.Column="0" Text="Actual" FontSize="18" />
  128. <Label Grid.Row="1" Grid.Column="1" Content="{Binding SpoolingActual}" />
  129. <TextBlock Grid.Row="2" Grid.Column="0" Text="Total" FontSize="18" />
  130. <Label Grid.Row="2" Grid.Column="1" Content="{Binding SpoolingTotal}" />
  131. <TextBlock Grid.Row="3" Grid.Column="0" Text="Full Time" FontSize="18" />
  132. <Label Grid.Row="3" Grid.Column="1" Content="{Binding SpoolingFullTime}" />
  133. <TextBlock Grid.Row="4" Grid.Column="0" Text="Start Time" FontSize="18" />
  134. <Label Grid.Row="4" Grid.Column="1" Content="{Binding SpoolingStartTime}" />
  135. <StackPanel Orientation="Horizontal" Grid.Row="5" Grid.ColumnSpan="2" HorizontalAlignment="Center">
  136. <Button Content="Enable" Command="{Binding InvokeCommand}" IsEnabled="{Binding IsEnableSpoolingEnableButton}" CommandParameter="FACommand,FAEnableSpooling" />
  137. <Button Content="Disable" Command="{Binding InvokeCommand}" IsEnabled="{Binding IsEnableSpoolingDisableButton}" CommandParameter="FACommand,FADisableSpooling" />
  138. </StackPanel>
  139. </Grid>
  140. </controls:HeaderPanel>
  141. <controls:HeaderPanel Header="Host Communication State" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5" Height="200" Width="350" >
  142. <Grid common:GridHelper.Column0="{StaticResource Table_BG_Title}" common:GridHelper.Column1="Transparent">
  143. <Grid.RowDefinitions>
  144. <RowDefinition Height="40" />
  145. <RowDefinition Height="60" />
  146. </Grid.RowDefinitions>
  147. <Grid.ColumnDefinitions>
  148. <ColumnDefinition Width="130" />
  149. <ColumnDefinition Width="220" />
  150. </Grid.ColumnDefinitions>
  151. <TextBlock Text="Status" FontSize="18" />
  152. <Label Grid.Column="1" Content="{Binding HostCommunicationStatus}" />
  153. <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Center">
  154. <Button Content="Enable" Command="{Binding InvokeCommand}" IsEnabled="{Binding IsEnableEnableButton}" CommandParameter="FACommand,FAEnable" />
  155. <Button Content="Disable" Command="{Binding InvokeCommand}" IsEnabled="{Binding IsEnableDisableButton}" CommandParameter="FACommand,FADisable" />
  156. </StackPanel>
  157. </Grid>
  158. </controls:HeaderPanel>
  159. <controls:HeaderPanel Header="Host Control State" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5" Height="200" Width="350" >
  160. <Grid common:GridHelper.Column0="{StaticResource Table_BG_Title}" common:GridHelper.Column1="Transparent">
  161. <Grid.RowDefinitions>
  162. <RowDefinition Height="40" />
  163. <RowDefinition Height="60" />
  164. <RowDefinition Height="60" />
  165. </Grid.RowDefinitions>
  166. <Grid.ColumnDefinitions>
  167. <ColumnDefinition Width="130" />
  168. <ColumnDefinition Width="220" />
  169. </Grid.ColumnDefinitions>
  170. <TextBlock Text="Status" FontSize="18" />
  171. <Label Grid.Column="1" Content="{Binding HostControlStatus}" />
  172. <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Center">
  173. <Button Content="Online" Command="{Binding InvokeCommand}" CommandParameter="FACommand,FAOnline" IsEnabled="{Binding IsEnableOnlineButton}"/>
  174. <Button Content="Offline" Command="{Binding InvokeCommand}" CommandParameter="FACommand,FAOffline" IsEnabled="{Binding IsEnableOfflineButton}" />
  175. </StackPanel>
  176. <StackPanel Orientation="Horizontal" Grid.Row="2" Grid.ColumnSpan="2" HorizontalAlignment="Center">
  177. <Button Content="Local" Command="{Binding InvokeCommand}" CommandParameter="FACommand,FALocal" IsEnabled="{Binding IsEnableLocalButton}" />
  178. <Button Content="Remote" Command="{Binding InvokeCommand}" CommandParameter="FACommand,FARemote" IsEnabled="{Binding IsEnableRemoteButton}" />
  179. </StackPanel>
  180. </Grid>
  181. </controls:HeaderPanel>
  182. </WrapPanel>
  183. </UserControl>