260 lines
17 KiB
XML
260 lines
17 KiB
XML
<Window
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:eDosStation"
|
|
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="eDosStation.EntryBadge"
|
|
mc:Ignorable="d"
|
|
Title="EntryBadge" Height="980" Width="1820"
|
|
FontFamily="Segoe UI" FontSize="36"
|
|
Loaded="Window_Loaded"
|
|
ResizeMode="NoResize" WindowStartupLocation="CenterScreen" WindowState="Maximized" Closing="Window_Closing" >
|
|
<Window.Resources>
|
|
<local:DataSet1 x:Key="dataSet1"/>
|
|
<CollectionViewSource x:Key="getTaskListViewSource" Source="{Binding GetTaskInfo, Source={StaticResource dataSet1}}"/>
|
|
<local:Converters x:Key="BConverter"/>
|
|
<BitmapImage x:Key="iBG" UriSource="Images/EPD-MK2.png" />
|
|
<BitmapImage x:Key="iNG" UriSource="Images/EPD-N2.png" />
|
|
</Window.Resources>
|
|
<DockPanel>
|
|
<TabControl Name="tb" TabStripPlacement="Top" SelectionChanged="tb_SelectionChanged" >
|
|
<TabItem Name="tbEntry" >
|
|
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<Border Background="AliceBlue" TextBlock.FontSize="24" TextBlock.LineHeight="30px" Padding="20,20,20,20" CornerRadius="10" BorderThickness="2" BorderBrush="Blue" >
|
|
<StackPanel HorizontalAlignment="Center" >
|
|
<TextBlock TextAlignment="Center" Padding="10,10,10,10" >
|
|
<LineBreak/>
|
|
<Run Foreground="Blue" FontSize="28" FontWeight="Bold">Welcome to eDOS</Run>
|
|
<LineBreak/><LineBreak/>
|
|
<Run Background="LightGreen">Entry Process is ready</Run>
|
|
<LineBreak/><LineBreak/>
|
|
<Run>Please scan your badge on the badge reader</Run>
|
|
<LineBreak/><LineBreak/>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
</Border>
|
|
<StackPanel VerticalAlignment="Center">
|
|
<telerik:RadButton Name="LeesCancel" Content="Cancel" Click="LeesCancel_Click" Margin="20,20,0,0" Style="{DynamicResource OkCancelButton}" />
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock x:Name="CSN" />
|
|
<TextBlock x:Name="Site" />
|
|
<TextBlock x:Name="Code" />
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal" Margin="0,50,0,0" Name="pTestButtons">
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</TabItem>
|
|
<TabItem Name="tbUser" >
|
|
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
|
|
<Border Background="AliceBlue" TextBlock.FontSize="20" Padding="20,20,20,20" >
|
|
<StackPanel HorizontalAlignment="Center" >
|
|
<TextBlock Name="Username" Text="" TextAlignment="Center" Margin="0,20,0,20" HorizontalAlignment="Stretch"/>
|
|
<TextBlock Name="UserAccess" Text="Welcome to eDOS" TextAlignment="Center" MaxWidth="600" TextWrapping="Wrap" HorizontalAlignment="Stretch" />
|
|
</StackPanel>
|
|
</Border>
|
|
<Border Name="boxComment" Background="AliceBlue" TextBlock.FontSize="15" Padding="20,20,20,20" >
|
|
<StackPanel HorizontalAlignment="Center" >
|
|
<TextBlock Text="Comment" />
|
|
<TextBlock x:Name="UserComment" />
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<ProgressBar x:Name="pUserSeconds" Background="Blue" Value="5" Maximum="10" Tag="AA" >
|
|
<ProgressBar.Effect>
|
|
<DropShadowEffect/>
|
|
</ProgressBar.Effect>
|
|
</ProgressBar>
|
|
<TextBlock x:Name="tUserSeconds" Text="10" TextAlignment="Center" HorizontalAlignment="Stretch" />
|
|
<telerik:RadButton Content="OK" Name="bUserRead" Click="BUserRead_Click" Style="{DynamicResource OkCancelButton}"/>
|
|
</StackPanel>
|
|
</TabItem>
|
|
<TabItem Name="tbTask">
|
|
<Grid DataContext="{Binding Mode=OneWay, Source={StaticResource getTaskListViewSource}}" >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="80" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Row="0" Grid.ColumnSpan="2" Text="Naam" Name="Naam" HorizontalAlignment="Stretch" TextAlignment="Center" FontWeight="Bold" Background="Azure" FontSize="15" />
|
|
<Border Grid.Row="1" Grid.ColumnSpan="2" Background="AliceBlue" HorizontalAlignment="Stretch" CornerRadius="10" >
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel Orientation="Horizontal" Grid.Column="0">
|
|
<telerik:RadToggleButton Name="cbNormal" HorizontalAlignment="Left" Width="150" Content="Normal" TextBlock.FontSize="24" Click="CbNormal_Click" IsChecked="True" CornerRadius="15" />
|
|
<telerik:RadToggleButton Name="cbAlara" HorizontalAlignment="Left" Width="150" Content="Alara" TextBlock.FontSize="24" Click="CbAlara_Click" IsChecked="False" CornerRadius="15" />
|
|
</StackPanel>
|
|
<TextBlock Grid.Column="1" FontSize="36" TextAlignment="Center" Text="Choose a task" />
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Column="3">
|
|
<telerik:RadToggleButton Name="cbInst1" HorizontalAlignment="Left" Width="150" Content="Inst1" TextBlock.FontSize="24" Click="CbInst1_Click" IsChecked="True" CornerRadius="15" />
|
|
<telerik:RadToggleButton Name="cbInst2" HorizontalAlignment="Left" Width="150" Content="Inst2" TextBlock.FontSize="24" Click="CbInst2_Click" IsChecked="false" Visibility="Collapsed" CornerRadius="15" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
<StackPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Vertical" VerticalAlignment="Top" HorizontalAlignment="Stretch" >
|
|
<ScrollViewer VerticalScrollBarVisibility="Visible" Style="{Binding Mode=OneWay, Source={StaticResource CustomScrollViewer}}" MaxHeight="753">
|
|
<ListBox ItemsSource="{Binding Mode=OneWay}" SelectedValuePath="ID_Task" SelectionChanged="ListBox_SelectionChanged" ScrollViewer.CanContentScroll="False" >
|
|
<ListBox.ItemsPanel >
|
|
<ItemsPanelTemplate >
|
|
<telerik:RadUniformGrid Columns="3" IsItemsHost="True" />
|
|
</ItemsPanelTemplate>
|
|
</ListBox.ItemsPanel>
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal" TextBlock.FontSize="20" Margin="5,5,5,5" >
|
|
<TextBlock Text="{Binding TaskType_CODE}" Width="60" TextWrapping="NoWrap" FontSize="18" >
|
|
<TextBlock.Style>
|
|
<Style TargetType="TextBlock">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding EPDRad}" Value="BG">
|
|
<Setter Property="Background" Value="LightGray"></Setter>
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding EPDRad}" Value="NG">
|
|
<Setter Property="Background" Value="Black"></Setter>
|
|
<Setter Property="Foreground" Value="White"></Setter>
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</TextBlock.Style>
|
|
|
|
</TextBlock>
|
|
<TextBlock Text="{Binding Task_Name}" Width="410" FontSize="17" TextWrapping="Wrap" />
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
|
|
</ListBox>
|
|
<!--<telerik:RadMultiColumnComboBox DisplayMemberPath="Task_Name" Width="700" HorizontalAlignment="Stretch" >
|
|
<telerik:RadMultiColumnComboBox.ItemsSourceProvider>
|
|
<telerik:GridViewItemsSourceProvider ItemsSource="{Binding}" />
|
|
</telerik:RadMultiColumnComboBox.ItemsSourceProvider>
|
|
</telerik:RadMultiColumnComboBox>-->
|
|
</ScrollViewer>
|
|
|
|
</StackPanel>
|
|
<Grid Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" Margin="10,10,10,10">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="100"/>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="{Binding ID_Task,StringFormat={}Task:{0}}" />
|
|
<TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding Hp07Dose,StringFormat={}Hp07Dose: {0:0.00} µSv}" />
|
|
<TextBlock Grid.Row="0" Grid.Column="2" >
|
|
<TextBlock.Text>
|
|
<MultiBinding StringFormat="{}Hp10Dose L: {0} H: {1} µSv">
|
|
<Binding Path="Hp10Dose1" />
|
|
<Binding Path="Hp10Dose2" />
|
|
</MultiBinding>
|
|
</TextBlock.Text>
|
|
</TextBlock>
|
|
<TextBlock Grid.Row="1" Grid.Column="0" >
|
|
<TextBlock.Text>
|
|
<MultiBinding StringFormat="{}Hp07Rate Off: {0} On: {1} µSv">
|
|
<Binding Path="HP07RateOFF" />
|
|
<Binding Path="HP07RateON" />
|
|
</MultiBinding>
|
|
</TextBlock.Text>
|
|
</TextBlock>
|
|
<TextBlock Grid.Row="1" Grid.Column="1" >
|
|
<TextBlock.Text>
|
|
<MultiBinding StringFormat="{}Hp10Rate1 Off: {0} On: {1} µSv">
|
|
<Binding Path="HP10Rate1OFF" />
|
|
<Binding Path="HP10Rate1ON" />
|
|
</MultiBinding>
|
|
</TextBlock.Text>
|
|
</TextBlock>
|
|
<TextBlock Grid.Row="1" Grid.Column="2" >
|
|
<TextBlock.Text>
|
|
<MultiBinding StringFormat="{}Hp10Rate2 Off: {0} On: {1} µSv">
|
|
<Binding Path="HP10Rate2OFF" />
|
|
<Binding Path="HP10Rate2ON" />
|
|
</MultiBinding>
|
|
</TextBlock.Text>
|
|
</TextBlock>
|
|
<TextBlock Grid.Row="2" Grid.Column="0" Text="{Binding EPDRad,StringFormat={}Type: {0} }" />
|
|
<TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding FNGain_ANGainValue,StringFormat={}Gain: {0:0.00} }" />
|
|
<TextBlock Grid.Row="2" Grid.Column="2" Text="{Binding MinWorkerDosisMargin,StringFormat={}Margin: {0:0.00} }" />
|
|
</Grid>
|
|
<StackPanel Grid.Row="3" Grid.Column="0" Grid.RowSpan="1" VerticalAlignment="Center" >
|
|
<Image Height="120" VerticalAlignment="Center" >
|
|
<Image.Style>
|
|
<Style TargetType="{x:Type Image}">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding EPDRad}" Value="BG">
|
|
<Setter Property="Source" Value="{StaticResource iBG}"></Setter>
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding EPDRad}" Value="NG">
|
|
<Setter Property="Source" Value="{StaticResource iNG}"></Setter>
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Image.Style>
|
|
</Image>
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="4" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Center" >
|
|
<telerik:RadButton Name="TaskCancel" Content="Cancel" Click="TaskCancel_Click" Width="300" Style="{DynamicResource OkCancelButton}" Margin="20,0,0,0" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="4" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" >
|
|
<telerik:RadButton Name="TaskOK" Content="OK" Width="300" Click="TaskOK_Click" Style="{DynamicResource OkCancelButton}" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem Name="tbEPD" FontSize="25" >
|
|
<Grid >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="100" />
|
|
<RowDefinition Height="100" />
|
|
<RowDefinition Height="100" />
|
|
<RowDefinition Height="100" />
|
|
<RowDefinition Height="50" />
|
|
<RowDefinition Height="100" />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Grid.Row="0" FontSize="25" Name="epdWait" Text="w" HorizontalAlignment="Center" TextAlignment="Center" />
|
|
<TextBlock Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center" FontSize="25" >
|
|
<Run Text="Issuing EPD:" />
|
|
<Run Name="statusEPD" Text="" /><LineBreak/>
|
|
</TextBlock>
|
|
<Image Grid.Row="2" Source="{StaticResource iBG}"/>
|
|
<telerik:RadButton Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center" Background="LawnGreen" Padding="10,10,10,10" Content="OK" Name="bEpdDone" Visibility="Hidden" Click="bClose_Click" Style="{DynamicResource OkCancelButton}" />
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem Name="tbNotAllowed">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="300" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="100" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center" FontSize="25" >
|
|
<Run Text="No Access" />
|
|
<Run Name="tReasonNoAccess" Text="" />
|
|
<LineBreak/>
|
|
|
|
</TextBlock>
|
|
<telerik:RadButton Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="24" Background="LawnGreen" Padding="10,10,10,10" Content="OK" Name="bNoAccessDone" Click="bClose_Click" Style="{DynamicResource OkCancelButton}">
|
|
</telerik:RadButton>
|
|
</Grid>
|
|
</TabItem>
|
|
</TabControl>
|
|
</DockPanel>
|
|
</Window>
|
|
|