LeakCheckView.xaml 17 KB

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