LoadPortView.xaml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <UserControl x:Class="Aitex.Sorter.UI.Views.Maintenance.LoadPortView"
  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:equipment="clr-namespace:MECF.Framework.Common.Equipment;assembly=MECF.Framework.Common"
  11. xmlns:common="clr-namespace:Aitex.Sorter.Common;assembly=Aitex.Sorter.Common"
  12. mc:Ignorable="d"
  13. d:DesignHeight="800" d:DesignWidth="1820">
  14. <UserControl.Resources>
  15. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  16. <Setter Property="VerticalAlignment" Value="Center" />
  17. <Setter Property="HorizontalAlignment" Value="Center" />
  18. </Style>
  19. </UserControl.Resources>
  20. <Grid>
  21. <uc:HeaderPanel Grid.Column="0" HorizontalAlignment="left" VerticalAlignment="Top" Width="800" Header="LoadPort 1" Margin="10,10,0,0">
  22. <uc:LPStatus x:Name="lp1"
  23. Present="{Binding LPAIndicatiorPresence, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
  24. Placed="{Binding LPAIndicatiorPlacement, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
  25. ClampStatus="{Binding LPAClampState}"
  26. FoupDoorStatus="{Binding LPADoorState}"
  27. Status="{Binding LPAStatus}"
  28. CassetteState="{Binding LPACassetteState}"
  29. LoadPortLoaded="{Binding LPAIndicatiorLoad, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
  30. LoadPortUnloaded="{Binding LPAIndicatiorUnload, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
  31. IsAlarm="{Binding LPAIndicatorAlarm, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
  32. Station="{Binding Source={x:Static equipment:ModuleName.LP1}}"
  33. RoutManagerState="{Binding RoutManagerState}"
  34. IsAutoMode="{Binding IndicatiorAccessAuto}"
  35. IsManualMode="{Binding IndicatiorAccessManual}" />
  36. </uc:HeaderPanel>
  37. <uc:HeaderPanel Grid.Column="0" HorizontalAlignment="left" VerticalAlignment="Top" Width="800" Header="LoadPort 2" Margin="10,404,0,0">
  38. <uc:LPStatus x:Name="lp2"
  39. Present="{Binding LPBIndicatiorPresence, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
  40. Placed="{Binding LPBIndicatiorPlacement, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
  41. ClampStatus="{Binding LPBClampState}"
  42. FoupDoorStatus="{Binding LPBDoorState}"
  43. Status="{Binding LPBStatus}"
  44. CassetteState="{Binding LPBCassetteState}"
  45. LoadPortLoaded="{Binding LPBIndicatiorLoad, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
  46. LoadPortUnloaded="{Binding LPBIndicatiorUnload, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
  47. IsAlarm="{Binding LPBIndicatorAlarm, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
  48. Station="{Binding Source={x:Static equipment:ModuleName.LP2}}"
  49. RoutManagerState="{Binding RoutManagerState}"
  50. IsAutoMode="{Binding IsAutoMode}"
  51. >
  52. </uc:LPStatus>
  53. </uc:HeaderPanel>
  54. <Grid>
  55. <Grid.RowDefinitions>
  56. <RowDefinition Height="725" />
  57. <RowDefinition Height="*" />
  58. </Grid.RowDefinitions>
  59. <uc:HeaderPanel Grid.Column="0" Width="450" Height="200" HorizontalAlignment="Center" VerticalAlignment="Top" Header="RFID Reader 1" Margin="967,10,513,0">
  60. <Grid ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
  61. <Grid.ColumnDefinitions>
  62. <ColumnDefinition Width="250" />
  63. <ColumnDefinition Width="*"/>
  64. </Grid.ColumnDefinitions>
  65. <Grid.RowDefinitions>
  66. <RowDefinition Height="*" />
  67. <RowDefinition Height="*" />
  68. <RowDefinition Height="*" />
  69. </Grid.RowDefinitions>
  70. <Label Grid.Row="0" Grid.Column="0" Content="Status" Margin="18,6,17,6" />
  71. <Label Content="{Binding RFIDReader1Status}" Grid.Row="0" Grid.Column="1" />
  72. <TextBox Text="{Binding FoupAID}" Grid.Row="1" Grid.Column="0" Margin="8,8,8,2" IsReadOnly="True" />
  73. <Button Grid.Row="1" Grid.Column="1" Content="Read" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static common:DeviceOperationName.ReadRFID}" ctrlCommon:CommandHelper.Target="{x:Static common:DeviceName.RFIDReaderA}" Margin="25,5,24,0" />
  74. <TextBox x:Name="txtFoupAID" Margin="8,8,8,2" Grid.Row="2" Grid.Column="0" />
  75. <Button Content="Write" Grid.Row="2" Grid.Column="1" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static common:DeviceOperationName.WriteRFID}" ctrlCommon:CommandHelper.Target="{x:Static common:DeviceName.RFIDReaderA}" ctrlCommon:CommandHelper.Parameter1="{Binding Text, ElementName=txtFoupAID}" Margin="25,5,24,0" />
  76. </Grid>
  77. </uc:HeaderPanel>
  78. <uc:HeaderPanel Grid.Column="0" Width="450" Height="200" HorizontalAlignment="Center" VerticalAlignment="Top" Header="RFID Reader 2" Margin="967,404,513,0">
  79. <Grid ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
  80. <Grid.ColumnDefinitions>
  81. <ColumnDefinition Width="250" />
  82. <ColumnDefinition Width="*"/>
  83. </Grid.ColumnDefinitions>
  84. <Grid.RowDefinitions>
  85. <RowDefinition Height="*" />
  86. <RowDefinition Height="*" />
  87. <RowDefinition Height="*" />
  88. </Grid.RowDefinitions>
  89. <Label Grid.Row="0" Grid.Column="0" Content="Status" Margin="18,6,17,6" />
  90. <Label Content="{Binding RFIDReader2Status}" Grid.Row="0" Grid.Column="1" />
  91. <TextBox Text="{Binding FoupBID}" Grid.Row="1" Grid.Column="0" Margin="8,8,8,2" IsReadOnly="True" />
  92. <Button Grid.Row="1" Grid.Column="1" Content="Read" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static common:DeviceOperationName.ReadRFID}" ctrlCommon:CommandHelper.Target="{x:Static common:DeviceName.RFIDReaderB}" Margin="25,5,24,0" />
  93. <TextBox x:Name="txtFoupBID" Margin="8,8,8,2" Grid.Row="2" Grid.Column="0" />
  94. <Button Content="Write" Grid.Row="2" Grid.Column="1" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static common:DeviceOperationName.WriteRFID}" ctrlCommon:CommandHelper.Target="{x:Static common:DeviceName.RFIDReaderB}" ctrlCommon:CommandHelper.Parameter1="{Binding Text, ElementName=txtFoupBID}" Margin="25,5,24,0" />
  95. </Grid>
  96. </uc:HeaderPanel>
  97. </Grid>
  98. </Grid>
  99. </UserControl>