FAView.xaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <UserControl x:Class="Virgo_DUI.Client.Models.Operate.FA.FAView"
  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. mc:Ignorable="d"
  7. d:DesignHeight="1024" d:DesignWidth="1280">
  8. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  9. <Grid.ColumnDefinitions>
  10. <ColumnDefinition Width="450"></ColumnDefinition>
  11. <ColumnDefinition Width="450"></ColumnDefinition>
  12. <ColumnDefinition Width="450"></ColumnDefinition>
  13. </Grid.ColumnDefinitions>
  14. <TabControl Height="400">
  15. <TabItem Header="Host Communication">
  16. <Grid Margin="5">
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="30" />
  19. <RowDefinition Height="Auto" />
  20. </Grid.RowDefinitions>
  21. <Grid.ColumnDefinitions>
  22. <ColumnDefinition Width="180"/>
  23. <ColumnDefinition />
  24. </Grid.ColumnDefinitions>
  25. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  26. <TextBlock Text="Communication State" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  27. </Border>
  28. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Column="1" Padding="5,1">
  29. <TextBlock Text="{Binding HostCommunicationStatus}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  30. </Border>
  31. <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,10">
  32. <Button Content="Enable" Width="90" Height="30" VerticalAlignment="Center" Command="{Binding InvokeCommand}" IsEnabled="{Binding IsEnableEnableButton}" CommandParameter="FACommand,FAEnable" />
  33. <Button Content="Disable" Width="90" Height="30" Margin="10,0,0,0" VerticalAlignment="Center" Command="{Binding InvokeCommand}" IsEnabled="{Binding IsEnableDisableButton}" CommandParameter="FACommand,FADisable" />
  34. </StackPanel>
  35. </Grid>
  36. </TabItem>
  37. </TabControl>
  38. <TabControl Height="400" Grid.Column="1" Margin="10,0">
  39. <TabItem Header="Host Control">
  40. <Grid Margin="5">
  41. <Grid.RowDefinitions>
  42. <RowDefinition Height="30" />
  43. <RowDefinition Height="Auto" />
  44. </Grid.RowDefinitions>
  45. <Grid.ColumnDefinitions>
  46. <ColumnDefinition Width="180"/>
  47. <ColumnDefinition />
  48. </Grid.ColumnDefinitions>
  49. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  50. <TextBlock Text="Control State" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  51. </Border>
  52. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Column="1" Padding="5,1">
  53. <TextBlock Text="{Binding HostControlStatus}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  54. </Border>
  55. <UniformGrid Columns="2" Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,10">
  56. <Button Content="Online" Width="90" Height="30" Margin="0,0,10,5" Command="{Binding InvokeCommand}" CommandParameter="FACommand,FAOnline" IsEnabled="{Binding IsEnableOnlineButton}"/>
  57. <Button Content="Offline" Width="90" Height="30" Margin="0,0,10,5" Command="{Binding InvokeCommand}" CommandParameter="FACommand,FAOffline" IsEnabled="{Binding IsEnableOfflineButton}" />
  58. <Button Content="Local" Width="90" Height="30" Margin="0,0,10,5" Command="{Binding InvokeCommand}" CommandParameter="FACommand,FALocal" IsEnabled="{Binding IsEnableLocalButton}" />
  59. <Button Content="Remote" Width="90" Height="30" Margin="0,0,10,5" Command="{Binding InvokeCommand}" CommandParameter="FACommand,FARemote" IsEnabled="{Binding IsEnableRemoteButton}" />
  60. </UniformGrid>
  61. </Grid>
  62. </TabItem>
  63. </TabControl>
  64. <TabControl Height="400" Grid.Column="2">
  65. <TabItem Header="Spooling">
  66. <Grid Margin="5">
  67. <Grid.RowDefinitions>
  68. <RowDefinition Height="30" />
  69. <RowDefinition Height="30" />
  70. <RowDefinition Height="30" />
  71. <RowDefinition Height="30" />
  72. <RowDefinition Height="30" />
  73. <RowDefinition Height="Auto" />
  74. </Grid.RowDefinitions>
  75. <Grid.ColumnDefinitions>
  76. <ColumnDefinition Width="180" />
  77. <ColumnDefinition />
  78. </Grid.ColumnDefinitions>
  79. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  80. <TextBlock Text="Spooling State" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  81. </Border>
  82. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Column="1" Padding="5,1">
  83. <TextBlock Text="{Binding SpoolingState}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  84. </Border>
  85. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Padding="5,1">
  86. <TextBlock Text="Actual" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  87. </Border>
  88. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column="1" Padding="5,1">
  89. <TextBlock Text="{Binding SpoolingActual}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  90. </Border>
  91. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Padding="5,1">
  92. <TextBlock Text="Total" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  93. </Border>
  94. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column="1" Padding="5,1">
  95. <TextBlock Text="{Binding SpoolingTotal}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  96. </Border>
  97. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Padding="5,1">
  98. <TextBlock Text="Full Time" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  99. </Border>
  100. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column="1" Padding="5,1">
  101. <TextBlock Text="{Binding SpoolingFullTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  102. </Border>
  103. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Padding="5,1">
  104. <TextBlock Text="Start Time" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  105. </Border>
  106. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column="1" Padding="5,1">
  107. <TextBlock Text="{Binding SpoolingStartTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  108. </Border>
  109. <StackPanel Orientation="Horizontal" Grid.Row="5" Margin="0,10" Grid.ColumnSpan="2" HorizontalAlignment="Center">
  110. <Button Content="Enable" Width="90" Height="30" Command="{Binding InvokeCommand}" IsEnabled="{Binding IsEnableSpoolingEnableButton}" CommandParameter="FACommand,FAEnableSpooling" />
  111. <Button Content="Disable" Width="90" Height="30" Margin="10,0,0,0" Command="{Binding InvokeCommand}" IsEnabled="{Binding IsEnableSpoolingDisableButton}" CommandParameter="FACommand,FADisableSpooling" />
  112. </StackPanel>
  113. </Grid>
  114. </TabItem>
  115. </TabControl>
  116. </Grid>
  117. </UserControl>