LeakCheckView.xaml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <UserControl x:Class="EfemDualUI.Views.PMs.LeakCheckView"
  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:i="http://schemas.microsoft.com/expression/2010/interactivity"
  7. xmlns:cal="http://www.caliburn.org"
  8. xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
  9. xmlns:local="clr-namespace:EfemDualUI.Views.PMs"
  10. mc:Ignorable="d" d:DesignHeight ="770" d:DesignWidth="1920">
  11. <Grid>
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="*"/>
  14. <ColumnDefinition Width="380"/>
  15. <ColumnDefinition Width="5"/>
  16. <ColumnDefinition Width="1200"/>
  17. <ColumnDefinition Width="*"/>
  18. </Grid.ColumnDefinitions>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="50"/>
  21. <RowDefinition Height="*"/>
  22. </Grid.RowDefinitions>
  23. <Grid Grid.Column="1" Grid.Row="1">
  24. <Grid.ColumnDefinitions>
  25. <ColumnDefinition Width="140"/>
  26. <ColumnDefinition Width="230"/>
  27. </Grid.ColumnDefinitions>
  28. <Grid.RowDefinitions>
  29. <RowDefinition Height="0"/>
  30. <RowDefinition Height="24"/>
  31. <RowDefinition Height="24"/>
  32. <RowDefinition Height="24"/>
  33. <RowDefinition Height="24"/>
  34. <RowDefinition Height="24"/>
  35. <RowDefinition Height="24"/>
  36. <RowDefinition Height="24"/>
  37. <RowDefinition Height="24"/>
  38. <RowDefinition Height="24"/>
  39. <RowDefinition Height="24"/>
  40. <RowDefinition Height="24"/>
  41. <RowDefinition Height="24"/>
  42. <RowDefinition Height="24"/>
  43. <RowDefinition Height="24"/>
  44. </Grid.RowDefinitions>
  45. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.ColumnSpan="2" Padding="5,1">
  46. <TextBlock Text="检漏设置" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  47. </Border>
  48. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Padding="5,1">
  49. <TextBlock Text="抽气时间 (s)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  50. </Border>
  51. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column="1" Padding="5,1">
  52. <ctrl:TextBoxEx Text="{Binding Path=LeakCheckPumpDownTimeSetPoint}" MinValue="0" MaxValue="3000" TextSaved="{Binding LeakCheckPumpDownTimeSetPointSaved, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" EditBoxMode="UnSignDecimal" VerticalAlignment="Center"/>
  53. </Border>
  54. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Padding="5,1">
  55. <TextBlock Text="检漏时间 (s)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  56. </Border>
  57. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column="1" Padding="5,1">
  58. <ctrl:TextBoxEx Text="{Binding Path=LeakCheckTimeSetPoint}" MinValue="0" MaxValue="3000" TextSaved="{Binding LeakCheckTimeSetPointSaved, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" EditBoxMode="UnSignInteger" VerticalAlignment="Center"/>
  59. </Border>
  60. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Padding="5,1">
  61. <TextBlock Text="漏率上限 (mt/min)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  62. </Border>
  63. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column="1" Padding="5,1">
  64. <ctrl:TextBoxEx Text="{Binding Path=LeakRateUpperLimitSetPoint}" MinValue="0" MaxValue="756000" TextSaved="{Binding LeakRateUpperLimitSetPointSaved, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" EditBoxMode="UnSignDecimal" VerticalAlignment="Center"/>
  65. </Border>
  66. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="5" Padding="5,1">
  67. <TextBlock Text="检漏模式" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  68. </Border>
  69. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column="1" Padding="5,1">
  70. <ComboBox Text="{Binding Path=LeakCheckModeSetPoint}" IsEnabled="{Binding Path=IsLeakCheckEnabled}" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" FontSize="13" >
  71. <ComboBoxItem>ChamberOnly</ComboBoxItem>
  72. <ComboBoxItem>ChamberAndGasLine</ComboBoxItem>
  73. <ComboBoxItem>ChamberAndGasLineAndFAC</ComboBoxItem>
  74. </ComboBox>
  75. </Border>
  76. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="6" Padding="5,1">
  77. <TextBlock Text="MfcGas1" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  78. </Border>
  79. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="6" Grid.Column="1" Padding="5,1">
  80. <CheckBox Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding IsEnableGasLine}" IsChecked="{Binding EnableGasLine1}" />
  81. </Border>
  82. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="7" Padding="5,1">
  83. <TextBlock Text="MfcGas2" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  84. </Border>
  85. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="7" Grid.Column="1" Padding="5,1">
  86. <CheckBox Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding IsEnableGasLine}" IsChecked="{Binding EnableGasLine2}" />
  87. </Border>
  88. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="8" Padding="5,1">
  89. <TextBlock Text="MfcGas3" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  90. </Border>
  91. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="8" Grid.Column="1" Padding="5,1">
  92. <CheckBox Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding IsEnableGasLine}" IsChecked="{Binding EnableGasLine3}" />
  93. </Border>
  94. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="9" Padding="5,1">
  95. <TextBlock Text="MfcGas4" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  96. </Border>
  97. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="9" Grid.Column="1" Padding="5,1">
  98. <CheckBox Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding IsEnableGasLine}" IsChecked="{Binding EnableGasLine4}" />
  99. </Border>
  100. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="10" Padding="5,1">
  101. <TextBlock Text="MfcGas5" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  102. </Border>
  103. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="10" Grid.Column="1" Padding="5,1">
  104. <CheckBox Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding IsEnableGasLine}" IsChecked="{Binding EnableGasLine5}" />
  105. </Border>
  106. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="11" Padding="5,1">
  107. <TextBlock Text="MfcGas6" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  108. </Border>
  109. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="11" Grid.Column="1" Padding="5,1">
  110. <CheckBox Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding IsEnableGasLine}" IsChecked="{Binding EnableGasLine6}" />
  111. </Border>
  112. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="12" Padding="5,1">
  113. <TextBlock Text="状态" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  114. </Border>
  115. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="12" Grid.Column="1" Padding="5,1">
  116. <TextBlock Text="{Binding Path=Status}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  117. </Border>
  118. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="13" Padding="5,1">
  119. <TextBlock Text="检漏时间" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  120. </Border>
  121. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="13" Grid.Column="1" Padding="5,1">
  122. <TextBlock Text="{Binding Path=LeakCheckElapseTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  123. </Border>
  124. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="14" Padding="5,1">
  125. <TextBlock Text="当前压力" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  126. </Border>
  127. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Row="14" Grid.Column="1" Padding="5,1">
  128. <TextBlock Text="{Binding Path=Pressure}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  129. </Border>
  130. </Grid>
  131. <Grid Grid.Column="3" Grid.Row="0" Grid.RowSpan="2">
  132. <Grid.RowDefinitions>
  133. <RowDefinition Height="50" />
  134. <RowDefinition Height="*" />
  135. </Grid.RowDefinitions>
  136. <StackPanel Grid.Row="0" Margin="0,5,0,10" Orientation="Horizontal" HorizontalAlignment="Center">
  137. <Button Width="80" Height="25" Margin="10,0" Content="检漏" IsEnabled="{Binding IsLeakCheckEnabled}" >
  138. <i:Interaction.Triggers>
  139. <i:EventTrigger EventName="Click">
  140. <cal:ActionMessage MethodName="LeakCheck"/>
  141. </i:EventTrigger>
  142. </i:Interaction.Triggers>
  143. </Button>
  144. <Button Width="80" Height="25" Margin="10,0" Content="中止" IsEnabled="{Binding IsAbortButtonEnabled}">
  145. <i:Interaction.Triggers>
  146. <i:EventTrigger EventName="Click">
  147. <cal:ActionMessage MethodName="AbortLeakCheck"/>
  148. </i:EventTrigger>
  149. </i:Interaction.Triggers>
  150. </Button>
  151. <Button Width="80" Height="25" Margin="10,0" Content="删除" IsEnabled="{Binding IsLeakCheckEnabled}">
  152. <i:Interaction.Triggers>
  153. <i:EventTrigger EventName="Click">
  154. <cal:ActionMessage MethodName="DeleteLeakCheck"/>
  155. </i:EventTrigger>
  156. </i:Interaction.Triggers>
  157. </Button>
  158. </StackPanel>
  159. <DataGrid Grid.Row="1" Padding="12,0" AutoGenerateColumns="False" BorderThickness="0.1" FontSize="12" MinRowHeight="20" VerticalAlignment="Stretch"
  160. CanUserAddRows="False" CanUserDeleteRows="False" CanUserReorderColumns="False" CanUserResizeColumns="True" CanUserResizeRows="False" CanUserSortColumns="False"
  161. SelectionMode="Single" SelectionUnit="FullRow" Background="#05000000" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"
  162. ItemsSource="{Binding LeakCheckResultList}" SelectedItem="{Binding CurrentLeakCheckResultItem}" FontFamily="Arial,SimSun" Margin="0,0,8,45">
  163. <DataGrid.Columns>
  164. <DataGridTextColumn Width="160" Binding="{Binding Date, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  165. <DataGridTextColumn.HeaderTemplate >
  166. <DataTemplate>
  167. <TextBlock Text="{DynamicResource GlobalLableLeakCheckDate}" />
  168. </DataTemplate>
  169. </DataGridTextColumn.HeaderTemplate>
  170. </DataGridTextColumn>
  171. <DataGridTextColumn Width="160" Binding="{Binding StartPressure}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  172. <DataGridTextColumn.HeaderTemplate >
  173. <DataTemplate>
  174. <TextBlock Text="{DynamicResource GlobalLableStartPressure}" />
  175. </DataTemplate>
  176. </DataGridTextColumn.HeaderTemplate>
  177. </DataGridTextColumn>
  178. <DataGridTextColumn Width="160" Binding="{Binding StopPressure}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  179. <DataGridTextColumn.HeaderTemplate >
  180. <DataTemplate>
  181. <TextBlock Text="{DynamicResource GlobalLableStopPressure}" />
  182. </DataTemplate>
  183. </DataGridTextColumn.HeaderTemplate>
  184. </DataGridTextColumn>
  185. <DataGridTextColumn Width="200" Binding="{Binding LeakCheckTime}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  186. <DataGridTextColumn.HeaderTemplate >
  187. <DataTemplate>
  188. <TextBlock Text="{DynamicResource GlobalLableLeakCheckTime}" />
  189. </DataTemplate>
  190. </DataGridTextColumn.HeaderTemplate>
  191. </DataGridTextColumn>
  192. <DataGridTextColumn Width="160" Binding="{Binding LeakRate, StringFormat={}{0:F5}}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  193. <DataGridTextColumn.HeaderTemplate >
  194. <DataTemplate>
  195. <TextBlock Text="{DynamicResource GlobalLableLeakRate}" />
  196. </DataTemplate>
  197. </DataGridTextColumn.HeaderTemplate>
  198. </DataGridTextColumn>
  199. <DataGridTextColumn Width="200" Binding="{Binding LeakCheckMode}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  200. <DataGridTextColumn.HeaderTemplate >
  201. <DataTemplate>
  202. <TextBlock Text="{DynamicResource GlobalLableCheckMode}" />
  203. </DataTemplate>
  204. </DataGridTextColumn.HeaderTemplate>
  205. </DataGridTextColumn>
  206. <DataGridTextColumn Width="*" Binding="{Binding LeakCheckStatus}" CanUserSort="False" CanUserReorder="False" IsReadOnly="True" >
  207. <DataGridTextColumn.HeaderTemplate >
  208. <DataTemplate>
  209. <TextBlock Text="{DynamicResource GlobalLableLeakCheckStatus}" />
  210. </DataTemplate>
  211. </DataGridTextColumn.HeaderTemplate>
  212. </DataGridTextColumn>
  213. </DataGrid.Columns>
  214. </DataGrid>
  215. </Grid>
  216. </Grid>
  217. </UserControl>