SelectDataView.xaml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. <UserControl x:Class="MECF.Framework.UI.Client.CenterViews.DataLogs.ProcessHistory.SelectDataView"
  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:wfi ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
  8. xmlns:wf ="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
  9. xmlns:toolkit="http://schemas.xceed.com/wpf/xaml/toolkit"
  10. xmlns:controls="clr-namespace:OpenSEMI.Ctrlib.Controls"
  11. xmlns:micro="clr-namespace:Caliburn.Micro"
  12. mc:Ignorable="d"
  13. d:DesignHeight="600" d:DesignWidth="1600">
  14. <Grid Width="1600" Height="600">
  15. <Border BorderBrush="Gray" BorderThickness="1" Background="White" Padding="10">
  16. <Border.Effect>
  17. <DropShadowEffect BlurRadius="5" Color="#3F000000" ShadowDepth="5"/>
  18. </Border.Effect>
  19. <Grid>
  20. <Grid.ColumnDefinitions>
  21. <ColumnDefinition Width="1300" ></ColumnDefinition>
  22. <ColumnDefinition ></ColumnDefinition>
  23. </Grid.ColumnDefinitions>
  24. <Grid.RowDefinitions>
  25. <RowDefinition Height="Auto"/>
  26. <RowDefinition Height="*"/>
  27. <RowDefinition Height="Auto"/>
  28. <RowDefinition Height="100"/>
  29. <RowDefinition Height="Auto"/>
  30. </Grid.RowDefinitions>
  31. <Grid x:Name="SelectRecipe" Grid.Row="0" Grid.Column="0" Width="1300" >
  32. <Grid.RowDefinitions>
  33. <RowDefinition Height="40"/>
  34. <RowDefinition Height="40"/>
  35. </Grid.RowDefinitions>
  36. <Grid.ColumnDefinitions>
  37. <ColumnDefinition Width="70"/>
  38. <ColumnDefinition Width="*"/>
  39. <ColumnDefinition Width="70"/>
  40. <ColumnDefinition Width="*"/>
  41. <ColumnDefinition Width="70"/>
  42. <ColumnDefinition Width="*"/>
  43. <ColumnDefinition Width="70"/>
  44. <ColumnDefinition Width="*"/>
  45. <ColumnDefinition Width="100"/>
  46. </Grid.ColumnDefinitions>
  47. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" Height="40" Width="70">
  48. <TextBlock Text="Start" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBlock>
  49. </Border>
  50. <Border Grid.Column="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  51. <wfi:WindowsFormsHost Margin="5,0,0,0" FontSize="14" FontFamily="Arial" Width="170" Height="22" VerticalAlignment="Center">
  52. <wf:DateTimePicker x:Name="wfTimeFrom" Value="2011-8-1" CustomFormat="yyyy/MM/dd HH:mm:ss" Format="Custom"></wf:DateTimePicker>
  53. </wfi:WindowsFormsHost>
  54. <!--<toolkit:DateTimePicker Format="Custom" FontSize="14"
  55. FormatString="yyyy/MM/dd HH:mm:ss"
  56. TimeFormat="Custom"
  57. TimeFormatString="HH:mm:ss"
  58. AutoCloseCalendar="True"
  59. Grid.Row="0" VerticalAlignment="Top"
  60. Value="{Binding Path=StartDateTime, Mode=TwoWay}" Height="30" Width="190" />-->
  61. </Border>
  62. <Border Grid.Column="2" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  63. <TextBlock Text="End" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBlock>
  64. </Border>
  65. <Border Grid.Column="3" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  66. <wfi:WindowsFormsHost Margin="5,0,0,0" FontSize="14" FontFamily="Arial" Width="170" Height="22" VerticalAlignment="Center">
  67. <wf:DateTimePicker x:Name="wfTimeTo" Value="2013-8-1" CustomFormat="yyyy/MM/dd HH:mm:ss" Format="Custom"></wf:DateTimePicker>
  68. </wfi:WindowsFormsHost>
  69. <!--<toolkit:DateTimePicker Format="Custom" FontSize="14"
  70. FormatString="yyyy/MM/dd HH:mm:ss"
  71. TimeFormat="Custom"
  72. TimeFormatString="HH:mm:ss"
  73. AutoCloseCalendar="True"
  74. Grid.Row="0" VerticalAlignment="Top"
  75. Value="{Binding Path=EndDateTime, Mode=TwoWay}" Height="30" Width="190" />-->
  76. </Border>
  77. <Border Grid.Row="1" Grid.Column="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  78. <TextBlock Text="Recipe" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,10"></TextBlock>
  79. </Border>
  80. <Border Grid.Row="1" Grid.Column="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  81. <TextBox Text="{Binding RecipeName}" Width="Auto"></TextBox>
  82. </Border>
  83. <Border Grid.Row="1" Grid.Column="2" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  84. <TextBlock Text="Chamber" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBlock>
  85. </Border>
  86. <Border Grid.Row="1" Grid.Column="3" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  87. <toolkit:CheckComboBox x:Name="tbLoadPort" ItemsSource="{Binding SourcePM}" Width="150" FontFamily="Arial" FontSize="14" Height="30" Margin="5,0,0,0"
  88. HorizontalAlignment="Center"
  89. VerticalAlignment="Center"
  90. SelectedValue="{Binding SelectedValuePM}" >
  91. </toolkit:CheckComboBox>
  92. </Border>
  93. <!--*********************************************************************-->
  94. <Border Grid.Row="1" Grid.Column="4" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  95. <TextBlock Text="LotID" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBlock>
  96. </Border>
  97. <Border Grid.Row="1" Grid.Column="5" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  98. <TextBox Text="{Binding LotID}" Width="Auto"></TextBox>
  99. </Border>
  100. <!-- <Border Grid.Row="1" Grid.Column="5" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  101. <toolkit:CheckComboBox x:Name="tbLoadPort2" ItemsSource="{Binding SourcePM}" Width="150" FontFamily="Arial" FontSize="14" Height="30" Margin="5,0,0,0"
  102. HorizontalAlignment="Center"
  103. VerticalAlignment="Center"
  104. SelectedValue="{Binding SelectedValueSLot}" >
  105. </toolkit:CheckComboBox>
  106. </Border>-->
  107. <Border Grid.Row="1" Grid.Column="6" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  108. <TextBlock Text="SLotID" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBlock>
  109. </Border>
  110. <Border Grid.Row="1" Grid.Column="7" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  111. <toolkit:CheckComboBox x:Name="tbLoadPort3" ItemsSource="{Binding SourceSLot}" Width="150" FontFamily="Arial" FontSize="14" Height="30" Margin="5,0,0,0"
  112. HorizontalAlignment="Center"
  113. VerticalAlignment="Center"
  114. SelectedValue="{Binding SelectedValueSLot}" >
  115. </toolkit:CheckComboBox>
  116. </Border>
  117. <!--*********************************************************************-->
  118. <Button Margin="5,0,0,0" Grid.Row="1" Grid.Column="8" Content="Search" Width="80" Height="30">
  119. <i:Interaction.Triggers>
  120. <i:EventTrigger EventName="Click">
  121. <micro:ActionMessage MethodName="SearchRecipe">
  122. </micro:ActionMessage>
  123. </i:EventTrigger>
  124. </i:Interaction.Triggers>
  125. </Button>
  126. </Grid>
  127. <DataGrid Grid.Row="1" ItemsSource="{Binding Recipes}" CanUserAddRows="False"
  128. CanUserResizeRows="False" CanUserResizeColumns="True" FontFamily="Arial" Margin="0,5,0,0" AutoGenerateColumns="False">
  129. <DataGrid.Columns>
  130. <DataGridTemplateColumn Width="30">
  131. <DataGridTemplateColumn.HeaderTemplate >
  132. <DataTemplate>
  133. <CheckBox>
  134. <i:Interaction.Triggers>
  135. <i:EventTrigger EventName="Click">
  136. <micro:ActionMessage MethodName="CheckAllRecipe">
  137. </micro:ActionMessage>
  138. </i:EventTrigger>
  139. </i:Interaction.Triggers>
  140. </CheckBox>
  141. </DataTemplate>
  142. </DataGridTemplateColumn.HeaderTemplate>
  143. <DataGridTemplateColumn.CellTemplate>
  144. <DataTemplate>
  145. <CheckBox IsChecked="{Binding Selected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
  146. <i:Interaction.Triggers>
  147. <i:EventTrigger EventName="Click">
  148. <micro:ActionMessage MethodName="CheckRecipe">
  149. <micro:Parameter Value="{Binding }"/>
  150. </micro:ActionMessage>
  151. </i:EventTrigger>
  152. </i:Interaction.Triggers>
  153. </CheckBox>
  154. </DataTemplate>
  155. </DataGridTemplateColumn.CellTemplate>
  156. </DataGridTemplateColumn>
  157. <DataGridTemplateColumn Header="Recipe" Width="200">
  158. <DataGridTemplateColumn.CellTemplate>
  159. <DataTemplate>
  160. <TextBlock Text="{Binding Recipe}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" />
  161. </DataTemplate>
  162. </DataGridTemplateColumn.CellTemplate>
  163. </DataGridTemplateColumn>
  164. <!-- ************************************************************************************************** -->
  165. <DataGridTemplateColumn Header="LotID" Width="120">
  166. <DataGridTemplateColumn.CellTemplate>
  167. <DataTemplate>
  168. <TextBlock Text="{Binding LotID}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" />
  169. </DataTemplate>
  170. </DataGridTemplateColumn.CellTemplate>
  171. </DataGridTemplateColumn>
  172. <DataGridTemplateColumn Header="SlotID" Width="60">
  173. <DataGridTemplateColumn.CellTemplate>
  174. <DataTemplate>
  175. <TextBlock Text="{Binding SlotID}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" />
  176. </DataTemplate>
  177. </DataGridTemplateColumn.CellTemplate>
  178. </DataGridTemplateColumn>
  179. <DataGridTemplateColumn Header="CJName" Width="120">
  180. <DataGridTemplateColumn.CellTemplate>
  181. <DataTemplate>
  182. <TextBlock Text="{Binding CjName}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" />
  183. </DataTemplate>
  184. </DataGridTemplateColumn.CellTemplate>
  185. </DataGridTemplateColumn>
  186. <DataGridTemplateColumn Header="PJName" Width="150">
  187. <DataGridTemplateColumn.CellTemplate>
  188. <DataTemplate>
  189. <TextBlock Text="{Binding PjName}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" />
  190. </DataTemplate>
  191. </DataGridTemplateColumn.CellTemplate>
  192. </DataGridTemplateColumn>
  193. <!-- ************************************************************************************************** -->
  194. <DataGridTemplateColumn Header="Chamber" Width="100">
  195. <DataGridTemplateColumn.CellTemplate>
  196. <DataTemplate>
  197. <TextBlock Text="{Binding Chamber}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" />
  198. </DataTemplate>
  199. </DataGridTemplateColumn.CellTemplate>
  200. </DataGridTemplateColumn>
  201. <DataGridTemplateColumn Header="Start" Width="200">
  202. <DataGridTemplateColumn.CellTemplate>
  203. <DataTemplate>
  204. <TextBlock Text="{Binding StartTime}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" />
  205. </DataTemplate>
  206. </DataGridTemplateColumn.CellTemplate>
  207. </DataGridTemplateColumn>
  208. <DataGridTemplateColumn Header="End" Width="200">
  209. <DataGridTemplateColumn.CellTemplate>
  210. <DataTemplate>
  211. <TextBlock Text="{Binding EndTime}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" />
  212. </DataTemplate>
  213. </DataGridTemplateColumn.CellTemplate>
  214. </DataGridTemplateColumn>
  215. <DataGridTemplateColumn Header="Status" Width="100">
  216. <DataGridTemplateColumn.CellTemplate>
  217. <DataTemplate>
  218. <TextBlock Text="{Binding Status}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" />
  219. </DataTemplate>
  220. </DataGridTemplateColumn.CellTemplate>
  221. </DataGridTemplateColumn>
  222. </DataGrid.Columns>
  223. </DataGrid>
  224. <TextBlock Grid.Row="2" Text="Selected Recipe" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" Margin="0,5"></TextBlock>
  225. <Border Grid.Row="3" BorderBrush="Gray" BorderThickness="1" Background="{DynamicResource Tab_BG}" Padding="10,5">
  226. <ListBox Grid.Row="3" ItemsSource="{Binding SelectedRecipes}">
  227. <ListBox.ItemTemplate>
  228. <DataTemplate>
  229. <TextBlock Text="{Binding Recipe}" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}"></TextBlock>
  230. </DataTemplate>
  231. </ListBox.ItemTemplate>
  232. </ListBox>
  233. </Border>
  234. <!--<StackPanel Orientation="Horizontal" Margin="10,0,0,0" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right">
  235. <Button Content="Preset" Width="80" Height="30">
  236. <i:Interaction.Triggers>
  237. <i:EventTrigger EventName="Click">
  238. <cal:ActionMessage MethodName="Preset">
  239. </cal:ActionMessage>
  240. </i:EventTrigger>
  241. </i:Interaction.Triggers>
  242. </Button>
  243. <Button Content="UnSelect" Width="80" Height="30" Margin="5,0,0,0">
  244. <i:Interaction.Triggers>
  245. <i:EventTrigger EventName="Click">
  246. <cal:ActionMessage MethodName="UnSelect">
  247. </cal:ActionMessage>
  248. </i:EventTrigger>
  249. </i:Interaction.Triggers>
  250. </Button>
  251. </StackPanel>-->
  252. <Border Grid.Row="1" Grid.Column="1" Margin="10,5,0,0" BorderBrush="Gray" BorderThickness="1" Background="{DynamicResource Tab_BG}" Padding="5">
  253. <TreeView x:Name="ParameterTreeView" ItemsSource="{Binding ParameterNodes}">
  254. <i:Interaction.Triggers>
  255. <i:EventTrigger EventName="TreeView.SelectedItemChanged">
  256. <micro:ActionMessage MethodName="OnTreeSelectedChanged">
  257. <micro:Parameter Value="{Binding ElementName=ParameterTreeView,Path=SelectedItem}"></micro:Parameter>
  258. </micro:ActionMessage>
  259. </i:EventTrigger>
  260. </i:Interaction.Triggers>
  261. <TreeView.ItemTemplate>
  262. <HierarchicalDataTemplate ItemsSource="{Binding ChildNodes}">
  263. <StackPanel Orientation="Horizontal">
  264. <CheckBox IsChecked="{Binding Selected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" >
  265. <i:Interaction.Triggers>
  266. <i:EventTrigger EventName="Click">
  267. <micro:ActionMessage MethodName="ParameterCheck">
  268. <micro:Parameter Value="{Binding }"/>
  269. </micro:ActionMessage>
  270. </i:EventTrigger>
  271. </i:Interaction.Triggers>
  272. </CheckBox>
  273. <TextBlock Text="{Binding Name}" />
  274. </StackPanel>
  275. </HierarchicalDataTemplate>
  276. </TreeView.ItemTemplate>
  277. </TreeView>
  278. </Border>
  279. <TextBlock Grid.Row="2" Grid.Column="1" Margin="10,5,0,5" Text="Selected Parameter" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}"></TextBlock>
  280. <Border Grid.Row="3" Grid.Column="1" Margin="10,0,0,0" BorderBrush="Gray" BorderThickness="1" Background="{DynamicResource Tab_BG}" Padding="5" Height="100">
  281. <ListBox ItemsSource="{Binding SelectedParameters}" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}">
  282. </ListBox>
  283. </Border>
  284. <StackPanel Grid.Row="4" Grid.ColumnSpan="2" Margin="0,10,0,0" Orientation="Horizontal" HorizontalAlignment="Center">
  285. <Button Content="OK" Width="100" Height="30">
  286. <i:Interaction.Triggers>
  287. <i:EventTrigger EventName="Click">
  288. <micro:ActionMessage MethodName="OK">
  289. </micro:ActionMessage>
  290. </i:EventTrigger>
  291. </i:Interaction.Triggers>
  292. </Button>
  293. <Button Content="Cancel" Width="100" Height="30" Margin="5,0,0,0">
  294. <i:Interaction.Triggers>
  295. <i:EventTrigger EventName="Click">
  296. <micro:ActionMessage MethodName="Cancel">
  297. </micro:ActionMessage>
  298. </i:EventTrigger>
  299. </i:Interaction.Triggers>
  300. </Button>
  301. <Button Content="Export" Width="100" Height="30" Margin="5,0,0,0">
  302. <i:Interaction.Triggers>
  303. <i:EventTrigger EventName="Click">
  304. <micro:ActionMessage MethodName="Export">
  305. </micro:ActionMessage>
  306. </i:EventTrigger>
  307. </i:Interaction.Triggers>
  308. </Button>
  309. </StackPanel>
  310. </Grid>
  311. </Border>
  312. </Grid>
  313. </UserControl>