mirror of
https://github.com/SirLecram/HospitalServerManager
synced 2025-01-09 13:37:33 +01:00
0806b25c79
- EditRecordDialog has been added and edited; Others pages (View) has been added and completed; - All ViewModel and Models was completed; - WebService, ApiComandProvider has full funcionality, - New interface has been created; - Application is working now :) it's time to refractoring and testing
163 lines
8.9 KiB
XML
163 lines
8.9 KiB
XML
<Page x:ConnectionId='1'
|
|
x:Class="HospitalServerManager.View.DiagnosesPage"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="using:HospitalServerManager.View"
|
|
xmlns:viewmodel="using:HospitalServerManager.ViewModel"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d"
|
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" >
|
|
<Page.Resources>
|
|
<viewmodel:RosterViewModel x:ConnectionId='2' x:Name="RosterViewModel"/>
|
|
</Page.Resources>
|
|
|
|
<Grid Background="DimGray">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.3*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1.75*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock x:ConnectionId='3' Text="Lekarze" HorizontalAlignment="Left" Margin="15, 5, 0, 0" FontSize="20"
|
|
VerticalAlignment="Top" Name="pageTitle" Grid.ColumnSpan="2"/>
|
|
<StackPanel Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center">
|
|
<Button x:ConnectionId='18' Content="Nowy rekord" Margin="30, 0, 30, 0" Grid.Row="1" Width="150"/>
|
|
<Button x:ConnectionId='19' Content="Usuń zaznaczone" Margin="30, 0, 30, 0" Grid.Row="1" Grid.Column="1" Width="150"/>
|
|
<Button x:ConnectionId='20' Content="Edytuj rekord" Margin="30, 0, 30, 0" Grid.Row="1" Width="150"/>
|
|
</StackPanel>
|
|
|
|
<!-- </StackPanel> -->
|
|
|
|
<Grid Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="2" Grid.RowSpan="2" Margin="2">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.3*"/>
|
|
<RowDefinition/>
|
|
<RowDefinition Height="1.5*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="0.8*"/>
|
|
<ColumnDefinition Width="1.5*"/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border BorderBrush="LightBlue" BorderThickness="2" CornerRadius="10" Grid.ColumnSpan="3" Grid.RowSpan="3"/>
|
|
<TextBlock Text="Szukaj" Margin="5, 0, 0, 0" />
|
|
<TextBlock Text="Szukaj wyrażenia:" Grid.Row="1" HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center" Margin="10"/>
|
|
<TextBlock Text="Szukaj w:" Grid.Row="2" HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center" Margin="10"/>
|
|
<TextBox x:ConnectionId='14' Name="searchBox" Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="1" HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center" Margin="10"/>
|
|
<ComboBox x:ConnectionId='15' Grid.Row="2" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="10"
|
|
Name="lookInComboBox" />
|
|
<StackPanel Grid.Row="2" Grid.Column="2" VerticalAlignment="Center" Margin="10">
|
|
<Button x:ConnectionId='16' Content="Przeszukaj bazę" HorizontalAlignment="Stretch" Margin="10" />
|
|
<Button x:ConnectionId='17' Content="Resetuj" HorizontalAlignment="Stretch" Margin="10" />
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="2" Grid.ColumnSpan="2" Margin="2">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.3*"/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="0.5*"/>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border BorderBrush="LightBlue" BorderThickness="2" CornerRadius="10" Grid.RowSpan="3" Grid.ColumnSpan="3"/>
|
|
|
|
<TextBlock Text="Sortowanie i filtry" Margin="5, 0, 0, 0" />
|
|
<TextBlock Text="Sortuj według:" Grid.Row="1" HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center" Margin="10"/>
|
|
<ComboBox x:ConnectionId='11' Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" VerticalAlignment="Center"
|
|
Margin="10" Name="sortComboBox" />
|
|
<StackPanel Grid.Row="2" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center">
|
|
<RadioButton x:ConnectionId='12' Content="Rosnąco" Margin="15, 0, 15, 0" IsChecked="True" Tag="0" Name="radioBtn1" />
|
|
<RadioButton x:ConnectionId='13' Content="Malejąco" Margin="15, 0, 15, 0" Tag="1" Name="radionBtn2" />
|
|
</StackPanel>
|
|
<Button Content="Zaawansowane filtry" Grid.Row="2" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
|
Margin="15, 0, 15, 0"/>
|
|
|
|
</Grid>
|
|
<Grid Grid.Row="3" Grid.ColumnSpan="4" Margin="20, 5, 20, 5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
|
|
BorderBrush="AliceBlue" BorderThickness="2" >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<ListView Grid.Row="0" Margin="20, 5, 20, 5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
|
|
HorizontalContentAlignment="Stretch">
|
|
<ListView.HeaderTemplate >
|
|
|
|
<DataTemplate >
|
|
<Grid >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Text="ID diagnozy" Margin="8,0" Foreground="DarkRed" Grid.Column="0"/>
|
|
<TextBlock Text="Nazwa diagnozy" Foreground="DarkRed" Grid.Column="1"/>
|
|
<TextBlock Text="Dziedzina chirurgii" Foreground="DarkRed" Grid.Column="2"/>
|
|
<TextBlock Text="Opis" Foreground="DarkRed" Grid.Column="3"/>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListView.HeaderTemplate>
|
|
</ListView>
|
|
<ListView x:ConnectionId='4' Grid.Row="3" Grid.ColumnSpan="4" Margin="20, 5, 20, 5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
|
|
BorderBrush="AliceBlue" BorderThickness="2" Name="databaseView"
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
|
ScrollViewer.IsVerticalRailEnabled="True"
|
|
ScrollViewer.VerticalScrollMode="Enabled"
|
|
ScrollViewer.HorizontalScrollMode="Enabled"
|
|
ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
|
ScrollViewer.IsHorizontalRailEnabled="True">
|
|
|
|
<ListView.ItemTemplate>
|
|
|
|
<DataTemplate >
|
|
|
|
<Grid x:ConnectionId='5' Name="valueStoreGrid">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock x:ConnectionId='6' Name="ItemId"
|
|
|
|
Grid.Column="0"/>
|
|
<TextBlock x:ConnectionId='7' Name="ItemName"
|
|
|
|
Grid.Column="1" />
|
|
<TextBlock x:ConnectionId='8'
|
|
Grid.Column="2" />
|
|
<TextBlock x:ConnectionId='9'
|
|
Grid.Column="3"/>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
<ListView.ItemContainerStyle>
|
|
<Style TargetType="ListViewItem">
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
|
</Style>
|
|
</ListView.ItemContainerStyle>
|
|
|
|
</ListView>
|
|
</Grid>
|
|
</Grid>
|
|
</Page>
|
|
|