123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <UserControl x:Class="Aitex.Sorter.UI.Views.Maintenance.LoadPortBaseView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:Aitex.Sorter.UI.Views.Maintenance"
- xmlns:uc="clr-namespace:Aitex.Sorter.UI.Controls"
- xmlns:Common="clr-namespace:Aitex.Sorter.Common;assembly=MECF.Framework.Common"
- xmlns:ctrlCommon="clr-namespace:Aitex.Sorter.UI.Controls.Common"
- xmlns:common="clr-namespace:Aitex.Sorter.Common;assembly=Aitex.Sorter.Common"
- mc:Ignorable="d"
- d:DesignHeight="800" d:DesignWidth="1820">
- <UserControl.Resources>
- <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- </Style>
- </UserControl.Resources>
- <Grid x:Name="root">
- <ScrollViewer HorizontalScrollBarVisibility="Hidden">
- <ItemsControl ItemsSource="{Binding LoadPortStates}">
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel Orientation="Vertical" />
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Grid Margin="10,10,0,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto" />
- <ColumnDefinition Width="20" />
- <ColumnDefinition Width="auto" />
- </Grid.ColumnDefinitions>
- <uc:HeaderPanel Grid.Column="0" HorizontalAlignment="left" VerticalAlignment="Top" Width="800" Header="{Binding Name}">
- <uc:LPStatus
- Present="{Binding IndicatiorPresence, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
- Placed="{Binding IndicatiorPlacement, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
- ClampStatus="{Binding FoupClampState}"
- FoupDoorStatus="{Binding FoupDoorState}"
- Status="{Binding LoadportState}"
- CassetteState="{Binding CassetteState}"
- LoadPortLoaded="{Binding IndicatiorLoad, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
- LoadPortUnloaded="{Binding IndicatiorUnload, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
- IsAlarm="{Binding IndicatiorAlarm, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
- Station="{Binding LoadPortName}"
- RoutManagerState="{Binding DataContext.RoutManagerState ,ElementName=root}"
- IsAutoMode="{Binding IndicatiorAccessAuto, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
- IsManualMode="{Binding IndicatiorAccessManual, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:IndicatorState.ON}}"
- >
- </uc:LPStatus>
- </uc:HeaderPanel>
- <uc:HeaderPanel Grid.Column="2" Width="450" Height="200" HorizontalAlignment="Center" VerticalAlignment="Top" Header="RFID Reader">
- <Grid ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="250" />
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Label Grid.Row="0" Grid.Column="0" Content="Status" Margin="18,6,17,6" />
- <Label Content="{Binding RIDReaderState}" Grid.Row="0" Grid.Column="1" />
- <TextBox Text="{Binding FoupID}" Grid.Row="1" Grid.Column="0" Margin="8,8,8,2" IsReadOnly="True" />
- <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" />
- <TextBox Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Tag}" Margin="8,8,8,2" Grid.Row="2" Grid.Column="0" />
- <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" />
- </Grid>
- </uc:HeaderPanel>
- </Grid>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </ScrollViewer>
- </Grid>
- </UserControl>
|