210 lines
16 KiB
XML
210 lines
16 KiB
XML
<base:BaseView x:Class="TTSImport.HardwareScanView"
|
|
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"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="768" d:DesignWidth="1366"
|
|
xmlns:base="clr-namespace:DTS.Common.Base;assembly=DTS.Common"
|
|
xmlns:strings="clr-namespace:TTSImport"
|
|
xmlns:converters="clr-namespace:DTS.Common.Converters;assembly=DTS.Common"
|
|
xmlns:controls="clr-namespace:DTS.Common.Controls;assembly=DTS.Common">
|
|
<base:BaseView.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/DTS.Common;component/Themes/brushes.xaml"/>
|
|
<ResourceDictionary Source="pack://application:,,,/DTS.Common;component/Controls/combobox.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
<Style TargetType="ListView">
|
|
<Setter Property="ItemContainerStyle" Value="{StaticResource TTS_ListViewItemStyle}"/>
|
|
</Style>
|
|
<Style TargetType="TextBox" BasedOn="{StaticResource TTS_TextBoxStyle}"/>
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TTS_TextBlockStyle}"/>
|
|
<Style TargetType="CheckBox" BasedOn="{StaticResource PageContentCheckBoxStyle}" />
|
|
<Style TargetType="ComboBox" BasedOn="{StaticResource TTS_ComboBoxStyle}"/>
|
|
<Style TargetType="Button" BasedOn="{StaticResource TTS_ButtonStyle}"/>
|
|
<Style TargetType="GridViewColumnHeader" BasedOn="{StaticResource Gray_GridViewColumnHeaderStyle}"/>
|
|
<converters:NonZeroToColorConverter x:Key="NonZeroToColor" />
|
|
</ResourceDictionary>
|
|
</base:BaseView.Resources>
|
|
<Grid Background="{DynamicResource Brush_ApplicationContentBackground}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<controls:CommonStatusRibbon Content="{Binding StatusAndProgressBarView}" Grid.Row="0" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"/>
|
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
|
|
<Grid Background="{DynamicResource Brush_ApplicationContentBackground}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="20"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<GroupBox Header="{strings:TranslateExtension DAS_Summary}" Grid.Row="1" Grid.Column="0"
|
|
AutomationProperties.AutomationId="DASSummaryGroupBox" HorizontalAlignment="Left">
|
|
<WrapPanel Orientation="Vertical">
|
|
<ListView ItemsSource="{Binding HardwareRecords}">
|
|
<ListView.View>
|
|
<GridView>
|
|
<GridViewColumn Header="{strings:TranslateExtension ECM}" Width="50">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding ECM,FallbackValue='100'}" Width="40" AutomationProperties.AutomationId="ECM" TextAlignment="Center"/>
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Header="{strings:TranslateExtension SPS}" Width="50">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding SPS,FallbackValue='100'}" Width="40" AutomationProperties.AutomationId="SPS" TextAlignment="Center"/>
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Header="{strings:TranslateExtension SPT}" Width="50">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding SPT,FallbackValue='100'}" Width="40" AutomationProperties.AutomationId="SPT" TextAlignment="Center"/>
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Header="{strings:TranslateExtension SPD}" Width="50">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding SPD,FallbackValue='100'}" Width="43" AutomationProperties.AutomationId="SPD" TextAlignment="Center"/>
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Header="{strings:TranslateExtension G5}" Width="50">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding G5,FallbackValue='100'}" Width="43" AutomationProperties.AutomationId="G5" TextAlignment="Center"/>
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Header="{strings:TranslateExtension Rack}" Width="50">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Rack,FallbackValue='100'}" Width="43" AutomationProperties.AutomationId="Rack" TextAlignment="Center"/>
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Header="{strings:TranslateExtension Analog}" Width="50">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Analog,FallbackValue='100'}" Width="43" AutomationProperties.AutomationId="Analog" TextAlignment="Center"/>
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Header="{strings:TranslateExtension Squib}" Width="50">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Squib,FallbackValue='100'}" Width="43" AutomationProperties.AutomationId="Squib" TextAlignment="Center"/>
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Header="{strings:TranslateExtension DIn}" Width="50">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding DIn,FallbackValue='100'}" Width="43" AutomationProperties.AutomationId="DIn" TextAlignment="Center"/>
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Header="{strings:TranslateExtension DOut}" Width="50">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding DOut,FallbackValue='100'}" Width="43" AutomationProperties.AutomationId="Dout" TextAlignment="Center"/>
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Header="{strings:TranslateExtension Total}" Width="50">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Total,FallbackValue='100'}" Width="43" AutomationProperties.AutomationId="Total" TextAlignment="Center"/>
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
</GridView>
|
|
</ListView.View>
|
|
</ListView>
|
|
<ListView ItemsSource="{Binding DasSummaryList}">
|
|
<ListView.View>
|
|
<GridView>
|
|
<GridViewColumn Header="{strings:TranslateExtension DASSerial}" Width="200">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding SerialNumberFamily,FallbackValue='DAS Serial'}" Width="190" AutomationProperties.AutomationId="SerialNumber" />
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Header="{strings:TranslateExtension EIDFound}" Width="100">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate> <TextBlock Text="{Binding EIDFound,FallbackValue='EID Found'}" Width="100" AutomationProperties.AutomationId="EIDFound" />
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Header="{strings:TranslateExtension InputVoltageStatusColumn}" Width="150">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding InputVoltageStatus,FallbackValue='Input Voltage'}" Width="150" Background="{Binding InputVoltageColor}" AutomationProperties.AutomationId="InputVoltageStatus" />
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Header="{strings:TranslateExtension BatteryVoltageStatusColumn}" Width="150">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding BatteryVoltageStatus,FallbackValue='Battery Voltage'}" Width="150" Background="{Binding BatteryVoltageColor}" AutomationProperties.AutomationId="BatteryVoltageStatus" />
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
</GridView>
|
|
</ListView.View>
|
|
</ListView>
|
|
</WrapPanel>
|
|
</GroupBox>
|
|
|
|
<GroupBox Header="{strings:TranslateExtension Channel_Summary}" Grid.Row="1" Grid.Column="2"
|
|
AutomationProperties.AutomationId="ChannelSummaryGroupBox" HorizontalAlignment="Left" VerticalAlignment="Top">
|
|
<ListView ItemsSource="{Binding ChannelSummaryList}" >
|
|
<ListView.View>
|
|
<GridView>
|
|
<GridViewColumn Header="{strings:TranslateExtension ChannelType}" Width="100">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding ChannelType,FallbackValue='Channel Type'}" Width="100" AutomationProperties.AutomationId="ChannelType" />
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Header="{strings:TranslateExtension Requested}" Width="100">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Requested,FallbackValue='Requested'}" Width="100" AutomationProperties.AutomationId="Requested" />
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Header="{strings:TranslateExtension Assigned}" Width="100">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Assigned,FallbackValue='Assigned'}" Width="100" AutomationProperties.AutomationId="Assigned" />
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Header="{strings:TranslateExtension Unassigned}" Width="100">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Unassigned,FallbackValue='Unassigned'}" Width="100" Background="{Binding Unassigned, Converter={StaticResource NonZeroToColor}}" AutomationProperties.AutomationId="Unassigned" />
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
</GridView>
|
|
</ListView.View>
|
|
</ListView>
|
|
</GroupBox>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</base:BaseView>
|