CassetteDetailView.xaml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <UserControl x:Class="MECF.Framework.UI.Client.CenterViews.DataLogs.ProcessHistory.CassetteDetailView"
  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:waferhistory="clr-namespace:MECF.Framework.UI.Client.CenterViews.DataLogs.WaferHistory"
  7. xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
  8. xmlns:cal="clr-namespace:Caliburn.Micro"
  9. mc:Ignorable="d"
  10. Height="450" Width="700" FontFamily="Segoe" >
  11. <Grid>
  12. <Grid.Resources>
  13. <waferhistory:HideMinTimeConverters x:Key="HideMinTimeConvert"/>
  14. <DataTemplate x:Key="CassetteName">
  15. <TextBlock Text="{Binding ModuleName}" Width="160" Height="30" VerticalAlignment="Center" HorizontalAlignment="Left" Padding="0,5,0,0"/>
  16. </DataTemplate>
  17. <DataTemplate x:Key="ArriveTime">
  18. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,0" Margin="-8,0,-5,0">
  19. <TextBlock Text="{Binding ArriveTime,Converter={StaticResource HideMinTimeConvert}}" Width="200" Height="30" VerticalAlignment="Center" HorizontalAlignment="Left" Padding="5,5,0,0"/>
  20. </Border>
  21. </DataTemplate>
  22. <DataTemplate x:Key="LotID">
  23. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,0" Margin="-8,0,-5,0">
  24. <TextBlock Text="{Binding LotId}" Width="160" Height="30" VerticalAlignment="Center" HorizontalAlignment="Left" Padding="5,5,0,0"/>
  25. </Border>
  26. </DataTemplate>
  27. <DataTemplate x:Key="Status">
  28. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Margin="-8,0,-5,0">
  29. <TextBlock Text="{Binding Status}" Width="120" Height="30" VerticalAlignment="Center" HorizontalAlignment="Left" Padding="5,5,0,0"/>
  30. </Border>
  31. </DataTemplate>
  32. </Grid.Resources>
  33. <Grid.RowDefinitions>
  34. <RowDefinition Height="*"/>
  35. <RowDefinition Height="60"/>
  36. </Grid.RowDefinitions>
  37. <Border Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" Grid.ColumnSpan="2" Width="690" Margin="5,5">
  38. <ListView ItemsSource="{Binding CassetteDetailItems}" Margin="3,0">
  39. <ListView.View>
  40. <GridView>
  41. <GridViewColumn Header="Module Name" CellTemplate="{StaticResource ResourceKey=CassetteName}" Width="160"/>
  42. <GridViewColumn Header="Arrive Time" CellTemplate="{StaticResource ResourceKey=ArriveTime}" Width="200"/>
  43. <GridViewColumn Header="LotID" CellTemplate="{StaticResource ResourceKey=LotID}" Width="160"/>
  44. <GridViewColumn Header="Status" CellTemplate="{StaticResource ResourceKey=Status}" Width="120"/>
  45. </GridView>
  46. </ListView.View>
  47. </ListView>
  48. </Border>
  49. <DockPanel Grid.Row="1" IsEnabled="{Binding IsEnable}">
  50. <Canvas>
  51. <Button Width="129" Height="45" Content="Close" Canvas.Left="560" Canvas.Top="5" Style="{StaticResource CommandButton}">
  52. <i:Interaction.Triggers>
  53. <i:EventTrigger EventName="Click">
  54. <cal:ActionMessage MethodName="CloseCmd">
  55. </cal:ActionMessage>
  56. </i:EventTrigger>
  57. </i:Interaction.Triggers>
  58. </Button>
  59. </Canvas>
  60. </DockPanel>
  61. </Grid>
  62. </UserControl>