eDosStationFull/eDosStation/MainWindow.xaml
2026-08-18 12:15:26 +02:00

132 lines
7.9 KiB
XML

<Window x:Class="eDosStation.MainWindow"
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"
mc:Ignorable="d"
Title="eDose Station" Height="814.417" Width="1316.258"
FontFamily="Segoe UI"
FontSize="36"
WindowStartupLocation="CenterScreen" WindowState="Maximized" WindowStyle="None"
Loaded="Window_Loaded" GotFocus="Window_GotFocus" LostFocus="Window_LostFocus"
>
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resources/checklist.xaml" />
</ResourceDictionary.MergedDictionaries>
<telerik:RadSvgImageSource x:Key="iExit" Source="Images/exit.svg" />
</ResourceDictionary>
</Window.Resources>
<DockPanel>
<Menu DockPanel.Dock="Top">
<Menu.ItemsPanel>
<ItemsPanelTemplate>
<DockPanel HorizontalAlignment="Stretch"/>
</ItemsPanelTemplate>
</Menu.ItemsPanel>
<MenuItem Header="E_xit" Name="mExit" Click="mExit_Click" HorizontalAlignment="Right" />
<MenuItem Header="Settings" Click="MenuItem_Click" />
<MenuItem Header="Advanced" >
<MenuItem Header="Sync From Central Db" Name="mReverseSync" Click="mReverseSync_Click" />
<Separator />
<MenuItem Header="Enc" Name="mEnc" Click="MEnc_Click" IsEnabled="False" />
</MenuItem>
<MenuItem Header="About" Name="mAbout" Click="mAbout_Click" HorizontalAlignment="Right" />
</Menu>
<StatusBar DockPanel.Dock="Bottom" HorizontalAlignment="Center" HorizontalContentAlignment="Center" >
<StatusBarItem Name="TruDose" Content="COMxx" Margin="10,0,50,0" />
<StatusBarItem Name="BadgeReader" Content="COMxx" Margin="0,0,100,0"/>
<StatusBarItem Name="Status" Content="Offline" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" Style="{StaticResource xstatusOnLine}" />
<telerik:RadSvgImage Grid.Row="1" Grid.Column="0" UriSource="pack://application:,,,/eDosStation;component/Images/lswtech300-95.svg"
Width="150"
Height="60"
HorizontalAlignment="Right" Margin="50,0,0,0" />
</StatusBar>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="*"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<DockPanel Grid.Row="1">
<Grid DockPanel.Dock="Top">
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Image x:Name="logo" Source="/Images/logoh60.png" Height="60" HorizontalAlignment="Left" Margin="1,0,0,10" />
<TextBlock Grid.Column="1" FontSize="30" Text="HPH eDos" TextAlignment="Center" Foreground="{StaticResource sckbP}" FontWeight="Bold" VerticalAlignment="Center" Background="{DynamicResource sckbLB}" Height="{Binding ElementName=logo, Path=ActualHeight}" />
<TextBlock Grid.Column="2" FontSize="30" Name="tbTime" Text="2021-04-02 08:00" TextAlignment="Right" VerticalAlignment="Center" Foreground="{StaticResource sckbP}" HorizontalAlignment="Right" Padding="20,0" Background="{DynamicResource sckbLB}" Height="{Binding ElementName=logo, Path=ActualHeight}"/>
</Grid>
<StackPanel DockPanel.Dock="Left" Width="100" />
<StackPanel DockPanel.Dock="right" Width="100" />
<TextBlock DockPanel.Dock="Bottom" Name="tVersion" Text="eDosStation 2021-2026 v" FontSize="12" HorizontalAlignment="Center" />
<Grid Name="MenuGrid" >
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="*" />
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="3*"/>
</Grid.ColumnDefinitions>
<Border Name="ibComment" Grid.Row="0" Grid.ColumnSpan="2" Background="Bisque" Visibility="Collapsed">
<TextBlock Name="itComment" HorizontalAlignment="Stretch" TextWrapping="Wrap" FontSize="15" Margin="10,10,10,10" Foreground="{StaticResource sckbP}" />
</Border>
<telerik:RadButton Grid.Row="1" Grid.RowSpan="3" Grid.Column="0" x:Name="bInfo" Margin="20,20,20,20" Style="{StaticResource bigButton}" Height="200" Click="bInfo_Click" >
<telerik:RadButton.Content>
<StackPanel Orientation="Vertical">
<StackPanel Orientation="Horizontal">
<telerik:RadSvgImage ImageSource="{StaticResource checklist_xaml}" Width="100" />
<TextBlock Text="Info" />
</StackPanel>
<TextBlock Text="Or scan your badge" FontSize="20" />
</StackPanel>
</telerik:RadButton.Content>
</telerik:RadButton>
<telerik:RadButton Grid.Row="1" Grid.Column="1" Name="bEntry" Click="BEntry_Click" Margin="20,20,20,20" Style="{StaticResource bigButton}" >
<telerik:RadButton.Content>
<StackPanel Orientation="Horizontal">
<telerik:RadSvgImage ImageSource="{StaticResource entry_xaml}" Width="100" />
<TextBlock Text="Start visit" />
</StackPanel>
</telerik:RadButton.Content>
</telerik:RadButton>
<telerik:RadButton Grid.Row="2" Grid.Column="1" Name="bExit" Click="BExit_Click" Margin="20,20,20,20" Style="{StaticResource bigButton}" >
<telerik:RadButton.Content>
<StackPanel Orientation="Horizontal">
<telerik:RadSvgImage ImageSource="{StaticResource exit_xaml}" Width="100" />
<TextBlock Text="End visit" />
</StackPanel>
</telerik:RadButton.Content>
</telerik:RadButton>
<telerik:RadButton Grid.Row="3" Grid.Column="1" Name="bShowDose" Click="bShowDose_Click" Margin="20,20,20,20" Style="{StaticResource bigButton}" >
<telerik:RadButton.Content>
<StackPanel Orientation="Horizontal">
<telerik:RadSvgImage ImageSource="{StaticResource info_square_xaml}" Width="100" />
<TextBlock Text="EPD Info &amp; Dose" />
</StackPanel>
</telerik:RadButton.Content>
</telerik:RadButton>
</Grid>
</DockPanel>
</Grid>
</DockPanel>
</Window>