LoadPortBaseView.xaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <UserControl x:Class="Aitex.Sorter.UI.Views.Maintenance.LoadPortBaseView"
  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:local="clr-namespace:Aitex.Sorter.UI.Views.Maintenance"
  7. xmlns:uc="clr-namespace:Aitex.Sorter.UI.Controls"
  8. xmlns:Common="clr-namespace:Aitex.Sorter.Common;assembly=MECF.Framework.Common"
  9. xmlns:ctrlCommon="clr-namespace:Aitex.Sorter.UI.Controls.Common"
  10. xmlns:common="clr-namespace:Aitex.Sorter.Common;assembly=Aitex.Sorter.Common"
  11. mc:Ignorable="d"
  12. d:DesignHeight="800" d:DesignWidth="1820">
  13. <UserControl.Resources>
  14. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  15. <Setter Property="VerticalAlignment" Value="Center" />
  16. <Setter Property="HorizontalAlignment" Value="Center" />
  17. </Style>
  18. </UserControl.Resources>
  19. <Grid x:Name="root">
  20. <ScrollViewer HorizontalScrollBarVisibility="Hidden">
  21. <ItemsControl ItemsSource="{Binding LoadPortStates}">
  22. <ItemsControl.ItemsPanel>
  23. <ItemsPanelTemplate>
  24. <StackPanel Orientation="Vertical" />
  25. </ItemsPanelTemplate>
  26. </ItemsControl.ItemsPanel>
  27. <ItemsControl.ItemTemplate>
  28. <DataTemplate>
  29. <Grid Margin="10,10,0,0">
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="auto" />
  32. <ColumnDefinition Width="20" />
  33. <ColumnDefinition Width="auto" />
  34. </Grid.ColumnDefinitions>
  35. <uc:HeaderPanel Grid.Column="0" HorizontalAlignment="left" VerticalAlignment="Top" Width="800" Header="{Binding Name}">
  36. <uc:LPStatus
  37. Present="{Binding IndicatiorPresence, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
  38. Placed="{Binding IndicatiorPlacement, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
  39. ClampStatus="{Binding FoupClampState}"
  40. FoupDoorStatus="{Binding FoupDoorState}"
  41. Status="{Binding LoadportState}"
  42. CassetteState="{Binding CassetteState}"
  43. LoadPortLoaded="{Binding IndicatiorLoad, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
  44. LoadPortUnloaded="{Binding IndicatiorUnload, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
  45. IsAlarm="{Binding IndicatiorAlarm, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
  46. Station="{Binding LoadPortName}"
  47. RoutManagerState="{Binding DataContext.RoutManagerState ,ElementName=root}"
  48. IsAutoMode="{Binding IndicatiorAccessAuto, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
  49. IsManualMode="{Binding IndicatiorAccessManual, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
  50. >
  51. </uc:LPStatus>
  52. </uc:HeaderPanel>
  53. <uc:HeaderPanel Grid.Column="2" Width="450" Height="200" HorizontalAlignment="Center" VerticalAlignment="Top" Header="RFID Reader">
  54. <Grid ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
  55. <Grid.ColumnDefinitions>
  56. <ColumnDefinition Width="250" />
  57. <ColumnDefinition Width="*"/>
  58. </Grid.ColumnDefinitions>
  59. <Grid.RowDefinitions>
  60. <RowDefinition Height="*" />
  61. <RowDefinition Height="*" />
  62. <RowDefinition Height="*" />
  63. </Grid.RowDefinitions>
  64. <Label Grid.Row="0" Grid.Column="0" Content="Status" Margin="18,6,17,6" />
  65. <Label Content="{Binding RIDReaderState}" Grid.Row="0" Grid.Column="1" />
  66. <TextBox Text="{Binding FoupID}" Grid.Row="1" Grid.Column="0" Margin="8,8,8,2" IsReadOnly="True" />
  67. <Button Grid.Row="1" Grid.Column="1" Content="Read" Command="{Binding DataContext.Command,ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static common:DeviceOperationName.ReadRFID}" ctrlCommon:CommandHelper.Target="{Binding RFReaderName}" Margin="25,5,24,0" />
  68. <TextBox Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Tag}" Margin="8,8,8,2" Grid.Row="2" Grid.Column="0" />
  69. <Button Content="Write" Grid.Row="2" Grid.Column="1" Command="{Binding DataContext.Command,ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static common:DeviceOperationName.WriteRFID}" ctrlCommon:CommandHelper.Target="{Binding RFReaderName}" ctrlCommon:CommandHelper.Parameter1="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Tag}" Margin="25,5,24,0" />
  70. </Grid>
  71. </uc:HeaderPanel>
  72. </Grid>
  73. </DataTemplate>
  74. </ItemsControl.ItemTemplate>
  75. </ItemsControl>
  76. </ScrollViewer>
  77. </Grid>
  78. </UserControl>