1
0
mirror of https://github.com/SirLecram/HospitalServerManager synced 2024-11-29 09:40:27 +01:00

Cleaning the code

The code was cleaned from unnecessary coments,
Background color was changed
This commit is contained in:
Marcel Grześ 2019-01-12 11:25:51 +01:00
parent f234ec1f26
commit 81960a6660
77 changed files with 54 additions and 1091 deletions

Binary file not shown.

View File

@ -23,7 +23,7 @@ namespace HospitalServerManager.Model.Basic
}
[JsonConstructor]
protected Patient(string pesel, string name, string surname, DateTime birthDate, string patientState,
string patientSex) : base(pesel, "PESEL", new List<string>())
string patientSex, string patientEmail) : base(pesel, "PESEL", new List<string>())
{
if (pesel.Length < 11 || pesel.Length > 11)
throw new FormatException("PESEL musi mieć 11 cyfr");
@ -33,6 +33,7 @@ namespace HospitalServerManager.Model.Basic
BirthDate = birthDate;
PatientState = patientState.GetEnumFromDescription<PatientState>();
PatientSex = patientSex.GetEnumFromDescription<Sex>();
EmailAdress = new MailAddress(patientEmail);
}
public Patient(string pesel, string name, string surname, DateTime birthDate, PatientState patientState,
Sex patientSex) : base(pesel, "PESEL", new List<string>())

View File

@ -12,16 +12,12 @@ namespace HospitalServerManager.Model.Controllers
class SmtpMailSender
{
private MailAddress userEmail;
SmtpClient emailClient = new SmtpClient("smtp-mail.outlook.com", 587);
SmtpClient emailClient = new SmtpClient("poczta.o2.pl", 587);
public SmtpMailSender()
{
// TODO: Więcej interfejsów !
emailClient.Credentials = new NetworkCredential("margrz29@st.amu.edu.pl", "M@rce!7364818M");
userEmail = new MailAddress("margrz29@st.amu.edu.pl");
/*emailClient.Credentials = new NetworkCredential("konstancja01@wp.pl", "mikapako12");
userEmail = new MailAddress("konstancja01@wp.pl");*/
/*emailClient.Credentials = new NetworkCredential("emailforapplication@o2.pl", "emailforapp");
userEmail = new MailAddress("emailforapplication@o2.pl");*/
emailClient.Credentials = new NetworkCredential("emailforapplication@o2.pl", "emailforapp");
userEmail = new MailAddress("emailforapplication@o2.pl");
emailClient.UseDefaultCredentials = false;
}
public SmtpMailSender(string userName, string password)
@ -33,19 +29,17 @@ namespace HospitalServerManager.Model.Controllers
public async Task SendEmailAsync(string sendTo, string textBody, string subject)
{
// TODO: Dodać walidację !
MailMessage mailMessage = new MailMessage("margrz29@st.amu.edu.pl", "margrz29@st.amu.edu.pl"/*userEmail, new MailAddress(sendTo)*/);
MailMessage mailMessage = new MailMessage(userEmail, new MailAddress(sendTo));
mailMessage.Body = textBody;
mailMessage.Subject = subject;
emailClient.DeliveryMethod = SmtpDeliveryMethod.Network;
//emailClient.DeliveryMethod = SmtpDeliveryMethod.Network;
//await emailClient.SendMailAsync(mailMessage);
await SendEmailAsync(mailMessage);
}
public async Task SendEmailAsync(MailMessage completeMailMessage)
{
// TODO: Dodać walidację !
emailClient.SendCompleted += EmailClient_SendCompleted;
emailClient.Send(completeMailMessage);
await emailClient.SendMailAsync(completeMailMessage);
}
private void EmailClient_SendCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)

View File

@ -15,7 +15,7 @@
<userControls:ColumnListView DataContext="{StaticResource RosterViewModel}" Name="lv"/>
</Grid> -->
<Grid Background="DimGray">
<Grid Background="BlanchedAlmond">
<Grid.RowDefinitions>
<RowDefinition Height="0.3*"/>
<RowDefinition Height="0.5*"/>

View File

@ -12,7 +12,7 @@
<viewmodel:RosterViewModel x:Name="RosterViewModel"/>
</Page.Resources>
<Grid Background="DimGray">
<Grid Background="BlanchedAlmond">
<Grid.RowDefinitions>
<RowDefinition Height="0.3*"/>
<RowDefinition Height="0.5*"/>

View File

@ -15,7 +15,7 @@
<userControls:ColumnListView DataContext="{StaticResource RosterViewModel}" Name="lv"/>
</Grid> -->
<Grid Background="DimGray">
<Grid Background="BlanchedAlmond">
<Grid.RowDefinitions>
<RowDefinition Height="0.3*"/>
<RowDefinition Height="0.5*"/>

View File

@ -16,7 +16,7 @@
<userControls:ColumnListView DataContext="{StaticResource RosterViewModel}" Name="lv"/>
</Grid> -->
<Grid Background="DimGray">
<Grid Background="BlanchedAlmond">
<Grid.RowDefinitions>
<RowDefinition Height="0.3*"/>
<RowDefinition Height="0.5*"/>

View File

@ -13,7 +13,7 @@
<viewmodel:RosterViewModel x:Name="RosterViewModel"/>
</Page.Resources>
<Grid Background="DimGray">
<Grid Background="BlanchedAlmond">
<Grid.RowDefinitions>
<RowDefinition Height="0.3*"/>
<RowDefinition Height="0.5*"/>

View File

@ -15,7 +15,7 @@
<userControls:ColumnListView DataContext="{StaticResource RosterViewModel}" Name="lv"/>
</Grid> -->
<Grid Background="DimGray">
<Grid Background="BlanchedAlmond">
<Grid.RowDefinitions>
<RowDefinition Height="0.3*"/>
<RowDefinition Height="0.5*"/>

View File

@ -11,6 +11,8 @@ namespace HospitalServerManager.ViewModel.Controllers
{
class DatabaseReader
{
// KLASA ZNALAZŁA SIĘ TUTAJ TYLKO DLA POMOCY PRZY TESTOWANIU POCZĄTKOWEJ WERSJI APLIKACJI, NIE PODŁĄCZONEJ JESZCZE DO SIECI.
// Postanowiłem, że ją zostawię na przyszłość
private List<ISqlTableModel> _ModelsList { get; set; }
public IReadOnlyList<ISqlTableModel> LastReadedModels { get => _ModelsList; }

View File

@ -1,12 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.ViewModel.Controllers
{
class MailService
{
}
}

View File

@ -48,7 +48,7 @@ namespace HospitalServerManager.ViewModel
public MailAddress GetEmailAdress()
{
return new MailAddress("paker_7@o2.pl");
return model.EmailAdress;
}
}
}

View File

@ -1,12 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Text;
using System.Threading.Tasks;
using HospitalServerManager.InterfacesAndEnums;
using HospitalServerManager.Model;
using HospitalServerManager.Model.Basic;
using HospitalServerManager.Model.Controllers;
using Windows.UI.Popups;
namespace HospitalServerManager.ViewModel
{
@ -98,9 +100,16 @@ namespace HospitalServerManager.ViewModel
RefreshRecords();
}
public async void SendEmailAsync(IHasEmailAdress sendToModel)
{
try
{
await mailSender.SendEmailAsync(sendToModel.GetEmailAdress().Address, "WIADOMOSC TESTOWA", "TEMAT TEST");
}
catch (SmtpException e)
{
await new MessageDialog("Błąd połączenia z serwerem poczty | " + e.Message).ShowAsync();
}
}
}
}

Binary file not shown.

Binary file not shown.

View File

@ -30,13 +30,13 @@
<AppXManifest Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\Core\AppxManifest.xml">
<PackagePath>AppxManifest.xml</PackagePath>
<ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
<Modified>2019-01-11T21:26:47.854</Modified>
<Modified>2019-01-12T10:19:48.459</Modified>
</AppXManifest>
</ItemGroup>
<ItemGroup>
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\HospitalServerManager.exe">
<PackagePath>entrypoint\HospitalServerManager.exe</PackagePath>
<Modified>2019-01-11T21:26:47.533</Modified>
<Modified>2019-01-12T10:19:48.092</Modified>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Marcel\.nuget\packages\newtonsoft.json\12.0.1\lib\netstandard2.0\Newtonsoft.Json.dll">
<PackagePath>Newtonsoft.Json.dll</PackagePath>
@ -742,47 +742,47 @@
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\App.xbf">
<PackagePath>App.xbf</PackagePath>
<Modified>2019-01-11T21:26:47.293</Modified>
<Modified>2019-01-12T10:19:47.843</Modified>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\AdmissionsPage.xbf">
<PackagePath>View\AdmissionsPage.xbf</PackagePath>
<Modified>2019-01-11T21:26:47.293</Modified>
<Modified>2019-01-12T10:19:47.843</Modified>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\DiagnosesPage.xbf">
<PackagePath>View\DiagnosesPage.xbf</PackagePath>
<Modified>2019-01-11T21:26:47.293</Modified>
<Modified>2019-01-12T10:19:47.843</Modified>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\DoctorsPage.xbf">
<PackagePath>View\DoctorsPage.xbf</PackagePath>
<Modified>2019-01-11T21:26:47.293</Modified>
<Modified>2019-01-12T10:19:47.843</Modified>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\EditRecordDialog.xbf">
<PackagePath>View\EditRecordDialog.xbf</PackagePath>
<Modified>2019-01-11T21:26:47.293</Modified>
<Modified>2019-01-12T10:19:47.844</Modified>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\MainFrameView.xbf">
<PackagePath>View\MainFrameView.xbf</PackagePath>
<Modified>2019-01-11T21:26:47.294</Modified>
<Modified>2019-01-12T10:19:47.844</Modified>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\NewAdmissionPage.xbf">
<PackagePath>View\NewAdmissionPage.xbf</PackagePath>
<Modified>2019-01-11T21:26:47.294</Modified>
<Modified>2019-01-12T10:19:47.844</Modified>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\NewRecordDialog.xbf">
<PackagePath>View\NewRecordDialog.xbf</PackagePath>
<Modified>2019-01-11T21:26:47.294</Modified>
<Modified>2019-01-12T10:19:47.844</Modified>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\PatientsPage.xbf">
<PackagePath>View\PatientsPage.xbf</PackagePath>
<Modified>2019-01-11T21:26:47.294</Modified>
<Modified>2019-01-12T10:19:47.844</Modified>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\RoomsPage.xbf">
<PackagePath>View\RoomsPage.xbf</PackagePath>
<Modified>2019-01-11T21:26:47.294</Modified>
<Modified>2019-01-12T10:19:47.845</Modified>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\SurgeriesPage.xbf">
<PackagePath>View\SurgeriesPage.xbf</PackagePath>
<Modified>2019-01-11T21:26:47.295</Modified>
<Modified>2019-01-12T10:19:47.845</Modified>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Program Files %28x86%29\Windows Kits\10\UnionMetadata\10.0.17134.0\Windows.winmd">
<PackagePath>WinMetadata\Windows.winmd</PackagePath>
@ -794,7 +794,7 @@
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\Core\HospitalServerManager.exe">
<PackagePath>HospitalServerManager.exe</PackagePath>
<Modified>2019-01-11T21:26:47.850</Modified>
<Modified>2019-01-12T10:19:48.453</Modified>
</AppxPackagedFile>
</ItemGroup>
<ItemGroup>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
047462d3464f4c463d63a2cd80aec82b38733e4c
cc2ca0724f1eed9264fe3e20329d567b0623f618

View File

@ -1,4 +1,4 @@
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\AdmissionsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "4D2B04A0ACD4E8803760518066DE8FB2"
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\AdmissionsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "7EFC6391EB41EE5E3BFDBC7647881297"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.

View File

@ -1,4 +1,4 @@
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\AdmissionsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "4D2B04A0ACD4E8803760518066DE8FB2"
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\AdmissionsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "7EFC6391EB41EE5E3BFDBC7647881297"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.

View File

@ -1,189 +0,0 @@
<Page
x:Class="HospitalServerManager.View.AdmissionsPage"
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 DataContext="{StaticResource ResourceKey=RosterViewModel}">
<userControls:ColumnListView DataContext="{StaticResource RosterViewModel}" Name="lv"/>
</Grid> -->
<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="Przyjęcia" 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='23' Content="Nowy rekord" Margin="30, 0, 30, 0" Grid.Row="1" Width="150" Name="btnNewRecord"/>
<Button x:ConnectionId='24' Content="Usuń zaznaczone" Margin="30, 0, 30, 0" Grid.Row="1" Grid.Column="1" Width="150"/>
<Button x:ConnectionId='25' 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='19' Name="searchBox" Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="1" HorizontalAlignment="Stretch"
VerticalAlignment="Center" Margin="10"/>
<ComboBox x:ConnectionId='20' 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='21' Content="Przeszukaj bazę" HorizontalAlignment="Stretch" Margin="10" />
<Button x:ConnectionId='22' 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='16' 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='17' Content="Rosnąco" Margin="15, 0, 15, 0" IsChecked="True" Tag="0" Name="radioBtn1" />
<RadioButton x:ConnectionId='18' Content="Malejąco" Margin="15, 0, 15, 0" Tag="1" Name="radionBtn2" />
</StackPanel>
</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/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Text="ID przyjęcia" Margin="8,0" Foreground="DarkRed" Grid.Column="0" HorizontalAlignment="Center"/>
<TextBlock Text="Data przyjęcia" Foreground="DarkRed" Grid.Column="1" HorizontalAlignment="Center"/>
<TextBlock Text="Data zwolnienia" Foreground="DarkRed" Grid.Column="2" HorizontalAlignment="Center"/>
<TextBlock Text="Pesel pacjenta" Foreground="DarkRed" Grid.Column="3" HorizontalAlignment="Center"/>
<TextBlock Text="Symbol diagnozy" Foreground="DarkRed" Grid.Column="4" HorizontalAlignment="Center"/>
<TextBlock Text="ID lekarza" Foreground="DarkRed" Grid.Column="5" HorizontalAlignment="Center"/>
<TextBlock Text="ID operacji" Foreground="DarkRed" Grid.Column="6" HorizontalAlignment="Center"/>
<TextBlock Text="Nr pokoju" Foreground="DarkRed" Grid.Column="7" HorizontalAlignment="Center"/>
<TextBlock Text="Planowane?" Foreground="DarkRed" Grid.Column="8" HorizontalAlignment="Center"/>
</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/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock x:ConnectionId='6' Name="ItemId" HorizontalAlignment="Center"
Grid.Column="0" />
<TextBlock x:ConnectionId='7' Name="ItemName" HorizontalAlignment="Center"
Grid.Column="1"/>
<TextBlock x:ConnectionId='8' HorizontalAlignment="Center"
Grid.Column="2"/>
<TextBlock x:ConnectionId='9' HorizontalAlignment="Center"
Grid.Column="3"/>
<TextBlock x:ConnectionId='10' HorizontalAlignment="Center"
Grid.Column="4"/>
<TextBlock x:ConnectionId='11' HorizontalAlignment="Center"
Grid.Column="5"/>
<TextBlock x:ConnectionId='12' HorizontalAlignment="Center"
Grid.Column="6"/>
<TextBlock x:ConnectionId='13' HorizontalAlignment="Center"
Grid.Column="7"/>
<TextBlock x:ConnectionId='14' HorizontalAlignment="Center"
Grid.Column="8"/>
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>
</ListView.ItemContainerStyle>
</ListView>
</Grid>
</Grid>
</Page>

View File

@ -1,4 +1,4 @@
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DiagnosesPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "AABEDB5A200FD3FC5A7E33D09296B24C"
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DiagnosesPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "7592709C432FB935BAE817950431E37E"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.

View File

@ -1,4 +1,4 @@
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DiagnosesPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "AABEDB5A200FD3FC5A7E33D09296B24C"
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DiagnosesPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "7592709C432FB935BAE817950431E37E"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.

View File

@ -1,160 +0,0 @@
<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="Diagnozy" 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>
</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 Width="0.8*" />
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Text="ID diagnozy" Margin="8,0" Foreground="DarkRed" Grid.Column="0" HorizontalAlignment="Center"/>
<TextBlock Text="Nazwa diagnozy" Foreground="DarkRed" Grid.Column="1" HorizontalAlignment="Center"/>
<TextBlock Text="Dziedzina chirurgii" Foreground="DarkRed" Grid.Column="2" HorizontalAlignment="Center"/>
<TextBlock Text="Opis" Foreground="DarkRed" Grid.Column="3" HorizontalAlignment="Center"/>
</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 Width="0.8*"/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock x:ConnectionId='6' Name="ItemId"
HorizontalAlignment="Center"
Grid.Column="0"/>
<TextBlock x:ConnectionId='7' Name="ItemName" HorizontalAlignment="Center"
Grid.Column="1" />
<TextBlock x:ConnectionId='8' HorizontalAlignment="Center"
Grid.Column="2" />
<TextBlock x:ConnectionId='9' HorizontalAlignment="Center"
Grid.Column="3"/>
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>
</ListView.ItemContainerStyle>
</ListView>
</Grid>
</Grid>
</Page>

Binary file not shown.

View File

@ -1,4 +1,4 @@
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DoctorsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "971DADAA13475823239220CC8C40CAE3"
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DoctorsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "A8FEAD9916947BA29990371874F07C99"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.

View File

@ -1,4 +1,4 @@
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DoctorsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "971DADAA13475823239220CC8C40CAE3"
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DoctorsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "A8FEAD9916947BA29990371874F07C99"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.

View File

@ -1,178 +0,0 @@
<Page x:ConnectionId='1'
x:Class="HospitalServerManager.View.DoctorsPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:HospitalServerManager.View"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:viewmodel="using:HospitalServerManager.ViewModel"
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 DataContext="{StaticResource ResourceKey=RosterViewModel}">
<userControls:ColumnListView DataContext="{StaticResource RosterViewModel}" Name="lv"/>
</Grid> -->
<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='21' Content="Nowy rekord" Margin="30, 0, 30, 0" Grid.Row="1" Width="150"/>
<Button x:ConnectionId='22' Content="Usuń zaznaczone" Margin="30, 0, 30, 0" Grid.Row="1" Grid.Column="1" Width="150"/>
<Button x:ConnectionId='23' 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='17' Name="searchBox" Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="1" HorizontalAlignment="Stretch"
VerticalAlignment="Center" Margin="10"/>
<ComboBox x:ConnectionId='18' 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='19' Content="Przeszukaj bazę" HorizontalAlignment="Stretch" Margin="10" />
<Button x:ConnectionId='20' 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='14' 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='15' Content="Rosnąco" Margin="15, 0, 15, 0" IsChecked="True" Tag="0" Name="radioBtn1" />
<RadioButton x:ConnectionId='16' Content="Malejąco" Margin="15, 0, 15, 0" Tag="1" Name="radionBtn2" />
</StackPanel>
</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 Width="0.15*"/>
<ColumnDefinition Width="0.8*"/>
<ColumnDefinition Width="0.8*"/>
<ColumnDefinition Width="0.7*"/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Text="Id" Margin="8,0" Foreground="DarkRed" Grid.Column="0" HorizontalAlignment="Center"/>
<TextBlock Text="Imię" Foreground="DarkRed" Grid.Column="1" HorizontalAlignment="Center"/>
<TextBlock Text="Nazwisko" Foreground="DarkRed" Grid.Column="2" HorizontalAlignment="Center"/>
<TextBlock Text="Stopień naukowy" Foreground="DarkRed" Grid.Column="3" HorizontalAlignment="Center"/>
<TextBlock Text="Specjalizacja" Foreground="DarkRed" Grid.Column="4" HorizontalAlignment="Center"/>
<TextBlock Text="Data zatrudnienia" Foreground="DarkRed" Grid.Column="5" HorizontalAlignment="Center"/>
<TextBlock Text="Stanowisko" Foreground="DarkRed" Grid.Column="6" HorizontalAlignment="Center"/>
</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 Width="0.15*"/>
<ColumnDefinition Width="0.8*"/>
<ColumnDefinition Width="0.8*"/>
<ColumnDefinition Width="0.7*"/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock x:ConnectionId='6' Name="ItemId" HorizontalAlignment="Center"
Grid.Column="0" FontSize="12"/>
<TextBlock x:ConnectionId='7' Name="ItemName" HorizontalAlignment="Center"
Grid.Column="1" FontSize="12"/>
<TextBlock x:ConnectionId='8' HorizontalAlignment="Center"
Grid.Column="2" FontSize="12"/>
<TextBlock x:ConnectionId='9' HorizontalAlignment="Center"
Grid.Column="3" FontSize="12"/>
<TextBlock x:ConnectionId='10' HorizontalAlignment="Center"
Grid.Column="4" FontSize="12"/>
<TextBlock x:ConnectionId='11' HorizontalAlignment="Center"
Grid.Column="5" FontSize="12"/>
<TextBlock x:ConnectionId='12' HorizontalAlignment="Center"
Grid.Column="6" FontSize="12"/>
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>
</ListView.ItemContainerStyle>
</ListView>
</Grid>
</Grid>
</Page>

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\PatientsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "ABF717A0E9935312ED0EDE0BD23FA3DD"
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\PatientsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "32F7DBD9BA0CD3AB4435FEE0259751BA"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.

View File

@ -1,4 +1,4 @@
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\PatientsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "ABF717A0E9935312ED0EDE0BD23FA3DD"
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\PatientsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "32F7DBD9BA0CD3AB4435FEE0259751BA"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.

View File

@ -1,176 +0,0 @@
<Page x:ConnectionId='1'
x:Class="HospitalServerManager.View.PatientsPage"
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:userControls="using:HospitalServerManager.View.UserControls"
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 DataContext="{StaticResource ResourceKey=RosterViewModel}">
<userControls:ColumnListView DataContext="{StaticResource RosterViewModel}" Name="lv"/>
</Grid> -->
<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="Pacjenci" 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='21' Content="Nowy rekord" Margin="30, 0, 30, 0" Grid.Row="1" Width="150"/>
<Button x:ConnectionId='22' Content="Usuń zaznaczone" Margin="30, 0, 30, 0" Grid.Row="1" Grid.Column="1" Width="150"/>
<Button x:ConnectionId='23' 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='17' Name="searchBox" Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="1" HorizontalAlignment="Stretch"
VerticalAlignment="Center" Margin="10"/>
<ComboBox x:ConnectionId='18' 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='19' Content="Przeszukaj bazę" HorizontalAlignment="Stretch" Margin="10" />
<Button x:ConnectionId='20' 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='13' 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='15' Content="Rosnąco" Margin="15, 0, 15, 0" IsChecked="True" Tag="0" Name="radioBtn1" />
<RadioButton x:ConnectionId='16' Content="Malejąco" Margin="15, 0, 15, 0" Tag="1" Name="radionBtn2" />
</StackPanel>
<Button x:ConnectionId='14' Name="sendEmailToSelected" Content="WYSLIJ MAILA" Grid.Row="2" Grid.Column="2" />
</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/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Text="PESEL" Margin="8,0" Foreground="DarkRed" Grid.Column="0"/>
<TextBlock Text="Imię" Foreground="DarkRed" Grid.Column="1"/>
<TextBlock Text="Nazwisko" Foreground="DarkRed" Grid.Column="2"/>
<TextBlock Text="Data urodzenia" Foreground="DarkRed" Grid.Column="3"/>
<TextBlock Text="Stan" Foreground="DarkRed" Grid.Column="4"/>
<TextBlock Text="Płec" Foreground="DarkRed" Grid.Column="5"/>
</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/>
<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"/>
<TextBlock x:ConnectionId='10'
Grid.Column="4"/>
<TextBlock x:ConnectionId='11'
Grid.Column="5"/>
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>
</ListView.ItemContainerStyle>
</ListView>
</Grid>
</Grid>
</Page>

Binary file not shown.

View File

@ -1,4 +1,4 @@
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\RoomsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "D3EDC4667A3DEF37F922C3F41AC55142"
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\RoomsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "97C40912E4C26778CF20BAD99D1F9169"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.

View File

@ -1,4 +1,4 @@
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\RoomsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "D3EDC4667A3DEF37F922C3F41AC55142"
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\RoomsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "97C40912E4C26778CF20BAD99D1F9169"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.

View File

@ -1,155 +0,0 @@
<Page x:ConnectionId='1'
x:Class="HospitalServerManager.View.RoomsPage"
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="Sale" 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='17' Content="Nowy rekord" Margin="30, 0, 30, 0" Grid.Row="1" Width="150"/>
<Button x:ConnectionId='18' Content="Usuń zaznaczone" Margin="30, 0, 30, 0" Grid.Row="1" Grid.Column="1" Width="150"/>
<Button x:ConnectionId='19' 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='13' Name="searchBox" Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="1" HorizontalAlignment="Stretch"
VerticalAlignment="Center" Margin="10"/>
<ComboBox x:ConnectionId='14' 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='15' Content="Przeszukaj bazę" HorizontalAlignment="Stretch" Margin="10" />
<Button x:ConnectionId='16' 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='10' 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='11' Content="Rosnąco" Margin="15, 0, 15, 0" IsChecked="True" Tag="0" Name="radioBtn1" />
<RadioButton x:ConnectionId='12' Content="Malejąco" Margin="15, 0, 15, 0" Tag="1" Name="radionBtn2" />
</StackPanel>
</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/>
</Grid.ColumnDefinitions>
<TextBlock Text="Numer sali" Margin="8,0" Foreground="DarkRed" Grid.Column="0" HorizontalAlignment="Center"/>
<TextBlock Text="Ilość łóżek" Foreground="DarkRed" Grid.Column="1" HorizontalAlignment="Center"/>
<TextBlock Text="Intensywna opieka?" Foreground="DarkRed" Grid.Column="2" HorizontalAlignment="Center"/>
</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/>
</Grid.ColumnDefinitions>
<TextBlock x:ConnectionId='6' Name="ItemId"
FontSize="18"
Grid.Column="0" HorizontalAlignment="Center"/>
<TextBlock x:ConnectionId='7' FontSize="18"
Grid.Column="1" HorizontalAlignment="Center"/>
<TextBlock x:ConnectionId='8' FontSize="18"
Grid.Column="2" HorizontalAlignment="Center"/>
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>
</ListView.ItemContainerStyle>
</ListView>
</Grid>
</Grid>
</Page>

Binary file not shown.

View File

@ -1,4 +1,4 @@
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\SurgeriesPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "B8D5630C92B67284A402D7B2E3A5A82C"
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\SurgeriesPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "9AB634701659076BC7B98487EF873906"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.

View File

@ -1,4 +1,4 @@
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\SurgeriesPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "B8D5630C92B67284A402D7B2E3A5A82C"
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\SurgeriesPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "9AB634701659076BC7B98487EF873906"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.

View File

@ -1,173 +0,0 @@
<Page x:ConnectionId='1'
x:Class="HospitalServerManager.View.SurgeriesPage"
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 DataContext="{StaticResource ResourceKey=RosterViewModel}">
<userControls:ColumnListView DataContext="{StaticResource RosterViewModel}" Name="lv"/>
</Grid> -->
<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="Operacje" 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='20' Content="Nowy rekord" Margin="30, 0, 30, 0" Grid.Row="1" Width="150"/>
<Button x:ConnectionId='21' Content="Usuń zaznaczone" Margin="30, 0, 30, 0" Grid.Row="1" Grid.Column="1" Width="150"/>
<Button x:ConnectionId='22' 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='16' Name="searchBox" Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="1" HorizontalAlignment="Stretch"
VerticalAlignment="Center" Margin="10"/>
<ComboBox x:ConnectionId='17' 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='18' Content="Przeszukaj bazę" HorizontalAlignment="Stretch" Margin="10" />
<Button x:ConnectionId='19' 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='13' 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='14' Content="Rosnąco" Margin="15, 0, 15, 0" IsChecked="True" Tag="0" Name="radioBtn1" />
<RadioButton x:ConnectionId='15' Content="Malejąco" Margin="15, 0, 15, 0" Tag="1" Name="radionBtn2" />
</StackPanel>
</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 Width="0.15*"/>
<ColumnDefinition Width="1.3*"/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Text="Id" Margin="8,0" Foreground="DarkRed" Grid.Column="0" HorizontalAlignment="Center"/>
<TextBlock Text="Nazwa" Foreground="DarkRed" Grid.Column="1" HorizontalAlignment="Center"/>
<TextBlock Text="Średni czas" Foreground="DarkRed" Grid.Column="2" HorizontalAlignment="Center"/>
<TextBlock Text="Dziedzina" Foreground="DarkRed" Grid.Column="3" HorizontalAlignment="Center"/>
<TextBlock Text="Koszt" Foreground="DarkRed" Grid.Column="4" HorizontalAlignment="Center"/>
<TextBlock Text="Refundacja (%)" Foreground="DarkRed" Grid.Column="5" HorizontalAlignment="Center"/>
</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 Width="0.15*"/>
<ColumnDefinition Width="1.3*"/>
<ColumnDefinition />
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock x:ConnectionId='6' Name="ItemId"
HorizontalAlignment="Center"
Grid.Column="0" FontSize="12"/>
<TextBlock x:ConnectionId='7' Name="ItemName"
HorizontalAlignment="Center"
Grid.Column="1" FontSize="12"/>
<TextBlock x:ConnectionId='8' HorizontalAlignment="Center"
Grid.Column="2" FontSize="12"/>
<TextBlock x:ConnectionId='9' HorizontalAlignment="Center"
Grid.Column="3" FontSize="12"/>
<TextBlock x:ConnectionId='10' HorizontalAlignment="Center"
Grid.Column="4" FontSize="12"/>
<TextBlock x:ConnectionId='11' HorizontalAlignment="Center"
Grid.Column="5" FontSize="12"/>
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>
</ListView.ItemContainerStyle>
</ListView>
</Grid>
</Grid>
</Page>

Binary file not shown.

View File

@ -1 +1 @@
<?xml version="1.0" encoding="utf-8"?><XamlCompilerSaveState><ReferenceAssemblyList /><XamlSourceFileDataList><XamlSourceFileData XamlFileName="App.xaml" ClassFullName="HospitalServerManager.App" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\App" XamlFileTimeAtLastCompileInTicks="636824958588313569" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\MainFrameView.xaml" ClassFullName="HospitalServerManager.View.MainFrameView" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\MainFrameView" XamlFileTimeAtLastCompileInTicks="636828423360835441" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\PatientsPage.xaml" ClassFullName="HospitalServerManager.View.PatientsPage" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\PatientsPage" XamlFileTimeAtLastCompileInTicks="636827544793490502" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\DoctorsPage.xaml" ClassFullName="HospitalServerManager.View.DoctorsPage" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\DoctorsPage" XamlFileTimeAtLastCompileInTicks="636828418913229953" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\RoomsPage.xaml" ClassFullName="HospitalServerManager.View.RoomsPage" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\RoomsPage" XamlFileTimeAtLastCompileInTicks="636828413539943633" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\NewRecordDialog.xaml" ClassFullName="HospitalServerManager.View.NewRecordDialog" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\NewRecordDialog" XamlFileTimeAtLastCompileInTicks="636816189280521117" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\EditRecordDialog.xaml" ClassFullName="HospitalServerManager.View.EditRecordDialog" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\EditRecordDialog" XamlFileTimeAtLastCompileInTicks="636823795499894654" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\AdmissionsPage.xaml" ClassFullName="HospitalServerManager.View.AdmissionsPage" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\AdmissionsPage" XamlFileTimeAtLastCompileInTicks="636828420129080839" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\DiagnosesPage.xaml" ClassFullName="HospitalServerManager.View.DiagnosesPage" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\DiagnosesPage" XamlFileTimeAtLastCompileInTicks="636828417165689172" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\SurgeriesPage.xaml" ClassFullName="HospitalServerManager.View.SurgeriesPage" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\SurgeriesPage" XamlFileTimeAtLastCompileInTicks="636828415709406954" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\NewAdmissionPage.xaml" ClassFullName="HospitalServerManager.View.NewAdmissionPage" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\NewAdmissionPage" XamlFileTimeAtLastCompileInTicks="636828367236597140" HasBoundEventAssignments="False" /></XamlSourceFileDataList></XamlCompilerSaveState>
<?xml version="1.0" encoding="utf-8"?><XamlCompilerSaveState><ReferenceAssemblyList /><XamlSourceFileDataList><XamlSourceFileData XamlFileName="App.xaml" ClassFullName="HospitalServerManager.App" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\App" XamlFileTimeAtLastCompileInTicks="636824958588313569" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\MainFrameView.xaml" ClassFullName="HospitalServerManager.View.MainFrameView" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\MainFrameView" XamlFileTimeAtLastCompileInTicks="636828423360835441" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\PatientsPage.xaml" ClassFullName="HospitalServerManager.View.PatientsPage" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\PatientsPage" XamlFileTimeAtLastCompileInTicks="636828887667652503" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\DoctorsPage.xaml" ClassFullName="HospitalServerManager.View.DoctorsPage" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\DoctorsPage" XamlFileTimeAtLastCompileInTicks="636828887456774108" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\RoomsPage.xaml" ClassFullName="HospitalServerManager.View.RoomsPage" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\RoomsPage" XamlFileTimeAtLastCompileInTicks="636828887737791520" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\NewRecordDialog.xaml" ClassFullName="HospitalServerManager.View.NewRecordDialog" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\NewRecordDialog" XamlFileTimeAtLastCompileInTicks="636816189280521117" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\EditRecordDialog.xaml" ClassFullName="HospitalServerManager.View.EditRecordDialog" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\EditRecordDialog" XamlFileTimeAtLastCompileInTicks="636823795499894654" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\AdmissionsPage.xaml" ClassFullName="HospitalServerManager.View.AdmissionsPage" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\AdmissionsPage" XamlFileTimeAtLastCompileInTicks="636828886330691956" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\DiagnosesPage.xaml" ClassFullName="HospitalServerManager.View.DiagnosesPage" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\DiagnosesPage" XamlFileTimeAtLastCompileInTicks="636828887328220577" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\SurgeriesPage.xaml" ClassFullName="HospitalServerManager.View.SurgeriesPage" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\SurgeriesPage" XamlFileTimeAtLastCompileInTicks="636828887800818841" HasBoundEventAssignments="False" /><XamlSourceFileData XamlFileName="View\NewAdmissionPage.xaml" ClassFullName="HospitalServerManager.View.NewAdmissionPage" GeneratedCodePathPrefix="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\NewAdmissionPage" XamlFileTimeAtLastCompileInTicks="636828367236597140" HasBoundEventAssignments="False" /></XamlSourceFileDataList></XamlCompilerSaveState>