ProcessHistoryTwoView.xaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. <UserControl
  2. x:Class="MECF.Framework.UI.Client.CenterViews.DataLogs.ProcessHistory.ProcessHistoryTwoView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:cal="clr-namespace:Caliburn.Micro"
  6. xmlns:converter="clr-namespace:MECF.Framework.UI.Client.Converter"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
  9. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  10. xmlns:waferhistory="clr-namespace:MECF.Framework.UI.Client.CenterViews.DataLogs.WaferHistory"
  11. d:DesignHeight="800"
  12. d:DesignWidth="1260"
  13. mc:Ignorable="d">
  14. <UserControl.Resources>
  15. <Style BasedOn="{StaticResource ExModifyScrollBar}" TargetType="ScrollBar"/>
  16. <converter:FileNameConverter x:Key="FileNameConverter"/>
  17. </UserControl.Resources>
  18. <Grid x:Name="root">
  19. <Grid.Resources>
  20. <waferhistory:HideMinTimeConverters x:Key="HideMinTimeConvert"/>
  21. <DataTemplate x:Key="BatchID">
  22. <TextBlock
  23. Width="210"
  24. Height="30"
  25. Padding="0,5,0,0"
  26. HorizontalAlignment="Left"
  27. VerticalAlignment="Center"
  28. Text="{Binding BatchID}"/>
  29. </DataTemplate>
  30. <DataTemplate x:Key="JobName">
  31. <Border
  32. Margin="-8,0,-5,0"
  33. BorderBrush="{DynamicResource Table_BD}"
  34. BorderThickness="1,0,1,0">
  35. <TextBlock
  36. Width="210"
  37. Height="30"
  38. Padding="5,5,0,0"
  39. HorizontalAlignment="Left"
  40. VerticalAlignment="Center"
  41. Text="{Binding JobName}"/>
  42. </Border>
  43. </DataTemplate>
  44. <DataTemplate x:Key="RecipeName">
  45. <TextBlock
  46. Width="280"
  47. Height="30"
  48. Padding="0,5,0,0"
  49. HorizontalAlignment="Left"
  50. VerticalAlignment="Center"
  51. Text="{Binding RecipeName}"/>
  52. </DataTemplate>
  53. <DataTemplate x:Key="Form">
  54. <Border
  55. Margin="-8,0,-5,0"
  56. BorderBrush="{DynamicResource Table_BD}"
  57. BorderThickness="1,0,1,0">
  58. <TextBlock
  59. Width="100"
  60. Height="30"
  61. Padding="5,5,0,0"
  62. HorizontalAlignment="Left"
  63. VerticalAlignment="Center"
  64. Text="{Binding Form}"/>
  65. </Border>
  66. </DataTemplate>
  67. <DataTemplate x:Key="StartTime">
  68. <TextBlock
  69. Width="150"
  70. Height="30"
  71. Padding="0,5,0,0"
  72. HorizontalAlignment="Left"
  73. VerticalAlignment="Center"
  74. Text="{Binding StartTime, Converter={StaticResource HideMinTimeConvert}}"/>
  75. </DataTemplate>
  76. <DataTemplate x:Key="EndTime">
  77. <Border
  78. Margin="-8,0,-5,0"
  79. BorderBrush="{DynamicResource Table_BD}"
  80. BorderThickness="1,0,1,0">
  81. <TextBlock
  82. Width="150"
  83. Height="30"
  84. Padding="5,5,0,0"
  85. HorizontalAlignment="Left"
  86. VerticalAlignment="Center"
  87. Text="{Binding EndTime, Converter={StaticResource HideMinTimeConvert}}"/>
  88. </Border>
  89. </DataTemplate>
  90. <DataTemplate x:Key="WaferCount">
  91. <Border
  92. Margin="-8,0,-5,0"
  93. BorderBrush="{DynamicResource Table_BD}"
  94. BorderThickness="0,0,1,0">
  95. <TextBlock
  96. Width="70"
  97. Height="30"
  98. Padding="5,5,0,0"
  99. HorizontalAlignment="Left"
  100. VerticalAlignment="Center"
  101. Text="{Binding WaferCount}"/>
  102. </Border>
  103. </DataTemplate>
  104. </Grid.Resources>
  105. <Grid.RowDefinitions>
  106. <RowDefinition Height="50"/>
  107. <RowDefinition Height="*"/>
  108. <RowDefinition Height="50"/>
  109. </Grid.RowDefinitions>
  110. <Grid.ColumnDefinitions>
  111. <ColumnDefinition Width="250"/>
  112. <ColumnDefinition Width="150"/>
  113. <ColumnDefinition Width="150"/>
  114. <ColumnDefinition Width="150"/>
  115. <ColumnDefinition Width="150"/>
  116. <ColumnDefinition Width="150"/>
  117. <ColumnDefinition Width="*"/>
  118. </Grid.ColumnDefinitions>
  119. <Grid
  120. Grid.Row="0"
  121. Grid.Column="0"
  122. Grid.ColumnSpan="7">
  123. <Grid.ColumnDefinitions>
  124. <ColumnDefinition Width="250"/>
  125. <ColumnDefinition Width="250"/>
  126. <ColumnDefinition Width="350"/>
  127. <ColumnDefinition Width="250"/>
  128. </Grid.ColumnDefinitions>
  129. <StackPanel
  130. Grid.Row="0"
  131. Grid.Column="0"
  132. Margin="2,4,2,2"
  133. Orientation="Horizontal">
  134. <TextBlock VerticalAlignment="Center" Text="Start Time:"/>
  135. <Button
  136. x:Name="wfTimeFrom"
  137. Width="160"
  138. Height="30"
  139. Margin="2,0,0,0"
  140. ContentStringFormat="yyyy-MM-dd HH:mm:ss">
  141. <i:Interaction.Triggers>
  142. <i:EventTrigger EventName="Click">
  143. <cal:ActionMessage MethodName="SelectDate">
  144. <cal:Parameter Value="Start"/>
  145. </cal:ActionMessage>
  146. </i:EventTrigger>
  147. </i:Interaction.Triggers>
  148. </Button>
  149. </StackPanel>
  150. <StackPanel
  151. Grid.Row="0"
  152. Grid.Column="1"
  153. Margin="2,4,2,2"
  154. Orientation="Horizontal">
  155. <TextBlock VerticalAlignment="Center" Text="End Time:"/>
  156. <Button
  157. x:Name="wfTimeTo"
  158. Width="160"
  159. Height="30"
  160. Margin="2,0,0,0"
  161. ContentStringFormat="yyyy-MM-dd HH:mm:ss">
  162. <i:Interaction.Triggers>
  163. <i:EventTrigger EventName="Click">
  164. <cal:ActionMessage MethodName="SelectDate">
  165. <cal:Parameter Value="End"/>
  166. </cal:ActionMessage>
  167. </i:EventTrigger>
  168. </i:Interaction.Triggers>
  169. </Button>
  170. </StackPanel>
  171. <StackPanel
  172. Grid.Row="0"
  173. Grid.Column="2"
  174. Margin="2,4,2,2"
  175. Orientation="Horizontal">
  176. <TextBlock VerticalAlignment="Center" Text="Batch Id:"/>
  177. <TextBox
  178. Width="280"
  179. Height="30"
  180. Margin="5,0,0,0"
  181. FontFamily="Arial"
  182. FontSize="14"
  183. Text="{Binding KeyWord, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"/>
  184. </StackPanel>
  185. <StackPanel
  186. Grid.Row="0"
  187. Grid.RowSpan="4"
  188. Grid.Column="3"
  189. Orientation="Horizontal">
  190. <Button
  191. Width="140"
  192. Height="40"
  193. Margin="2,2,4,2"
  194. Command="{Binding QueryCommand}"
  195. Content="Query"/>
  196. </StackPanel>
  197. </Grid>
  198. <Border
  199. Grid.Row="1"
  200. Grid.Column="0"
  201. Grid.ColumnSpan="7"
  202. Height="700"
  203. VerticalAlignment="Center">
  204. <DataGrid
  205. x:Name="ProcessHistoryList"
  206. Margin="10,10,10,0"
  207. AutoGenerateColumns="False"
  208. CanUserAddRows="False"
  209. CanUserDeleteRows="False"
  210. CanUserReorderColumns="False"
  211. CanUserResizeColumns="True"
  212. CanUserSortColumns="False"
  213. FontSize="14"
  214. IsReadOnly="True"
  215. ItemsSource="{Binding ProcessHistoryLots}"
  216. RowHeight="28"
  217. SelectedIndex="{Binding ProcessHistoryLotSelectIndex}">
  218. <DataGrid.Columns>
  219. <DataGridTemplateColumn CanUserResize="False" Header="Selected">
  220. <DataGridTemplateColumn.CellTemplate>
  221. <DataTemplate>
  222. <RadioButton
  223. GroupName="CheckedID"
  224. IsChecked="{Binding IsChecked, UpdateSourceTrigger=PropertyChanged}"
  225. Style="{StaticResource NormalRadioButton}"/>
  226. </DataTemplate>
  227. </DataGridTemplateColumn.CellTemplate>
  228. </DataGridTemplateColumn>
  229. <DataGridTextColumn
  230. Width="200"
  231. Binding="{Binding BatchID}"
  232. CanUserResize="False"
  233. Header="Batch Id"
  234. IsReadOnly="True"/>
  235. <DataGridTextColumn
  236. Width="200"
  237. Binding="{Binding JobName}"
  238. CanUserResize="True"
  239. Header="Job Name"
  240. IsReadOnly="True"/>
  241. <DataGridTextColumn
  242. Width="*"
  243. Binding="{Binding RecipeName, Converter={StaticResource FileNameConverter}}"
  244. CanUserResize="True"
  245. Header="Recipe Name"
  246. IsReadOnly="True"/>
  247. <DataGridTextColumn
  248. Width="95"
  249. Binding="{Binding Form}"
  250. CanUserResize="False"
  251. Header="Form"
  252. IsReadOnly="True"/>
  253. <DataGridTextColumn
  254. Width="150"
  255. Binding="{Binding StartTime}"
  256. CanUserResize="False"
  257. Header="Start Time"
  258. IsReadOnly="True"/>
  259. <DataGridTextColumn
  260. Width="150"
  261. Binding="{Binding EndTime}"
  262. CanUserResize="False"
  263. Header="End Time"
  264. IsReadOnly="True"/>
  265. <DataGridTextColumn
  266. Width="65"
  267. Binding="{Binding WaferCount}"
  268. CanUserResize="False"
  269. Header="Wafer"
  270. IsReadOnly="True"/>
  271. </DataGrid.Columns>
  272. <!--<ListView.View>
  273. <GridView>
  274. <GridViewColumn Header="Batch Id" CellTemplate="{StaticResource ResourceKey=BatchID}" Width="210"/>
  275. <GridViewColumn Header="Job Name" CellTemplate="{StaticResource ResourceKey=JobName}" Width="210"/>
  276. <GridViewColumn Header="Recipe Name" CellTemplate="{StaticResource ResourceKey=RecipeName}" Width="280"/>
  277. <GridViewColumn Header="Form" CellTemplate="{StaticResource ResourceKey=Form}" Width="95"/>
  278. <GridViewColumn Header="Start Time" CellTemplate="{StaticResource ResourceKey=StartTime}" Width="150"/>
  279. <GridViewColumn Header="End Time" CellTemplate="{StaticResource ResourceKey=EndTime}" Width="150"/>
  280. <GridViewColumn Header="Wafer" CellTemplate="{StaticResource ResourceKey=WaferCount}" Width="65"/>
  281. </GridView>
  282. </ListView.View>-->
  283. <i:Interaction.Triggers>
  284. <i:EventTrigger EventName="SelectionChanged">
  285. <cal:ActionMessage MethodName="SelectChangedHandle">
  286. <cal:Parameter Value="{Binding SelectedItem, ElementName=ProcessHistoryList}"/>
  287. </cal:ActionMessage>
  288. </i:EventTrigger>
  289. </i:Interaction.Triggers>
  290. </DataGrid>
  291. </Border>
  292. <StackPanel
  293. Grid.Row="2"
  294. Grid.Column="1"
  295. Grid.ColumnSpan="8"
  296. Orientation="Horizontal" HorizontalAlignment="Right">
  297. <Button
  298. Width="140"
  299. Height="40"
  300. Command="{Binding BatchDetailCommand}"
  301. Content="Batch Detail"/>
  302. <Button
  303. Width="140"
  304. Height="40"
  305. Command="{Binding ProcessDetailCommand}"
  306. Content="Process Detail"/>
  307. <Button
  308. Width="140"
  309. Height="40"
  310. Command="{Binding ProcessExportCommand}"
  311. Content="Process Export"/>
  312. <Button
  313. Width="140"
  314. Height="40"
  315. Command="{Binding ExportProcessTableCommand}"
  316. Content="Process Table"/>
  317. <!--<Button
  318. Width="140"
  319. Height="40"
  320. Command="{Binding ProcessJobInfoCommand}"
  321. Content="Process Job"/>-->
  322. </StackPanel>
  323. <!--<StackPanel Grid.Row="2" Grid.Column="5" Grid.RowSpan="4" Orientation="Horizontal">
  324. <Button Content="Display Graph" Width="140" Height="40" Margin="4,2,4,2" Command="{Binding DisplayGraphCommand}"/>
  325. </StackPanel>-->
  326. </Grid>
  327. </UserControl>