Basic function development

All database models has been added;
All basic ViewModels has been added;
This commit is contained in:
Marcel Grześ 2018-12-22 15:52:17 +01:00
parent 9ab75e9b3b
commit 52f1c1e71f
435 changed files with 4174 additions and 1090 deletions

Binary file not shown.

View File

@ -100,6 +100,7 @@
<Compile Include="InterfacesAndEnums\Interfaces.cs" />
<Compile Include="Model\Basic\Admission.cs" />
<Compile Include="Model\RangeObservableCollection.cs" />
<Compile Include="ViewModel\AdmissionViewModel.cs" />
<Compile Include="ViewModel\Controllers\DatabaseReader.cs" />
<Compile Include="Model\Basic\Diagnosis.cs" />
<Compile Include="Model\Basic\Doctor.cs" />
@ -109,14 +110,24 @@
<Compile Include="Model\Basic\SqlTable.cs" />
<Compile Include="Model\Basic\Surgery.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ViewModel\DiagnosisViewModel.cs" />
<Compile Include="ViewModel\DoctorViewModel.cs" />
<Compile Include="ViewModel\PatientViewModel.cs" />
<Compile Include="ViewModel\RoomViewModel.cs" />
<Compile Include="ViewModel\RosterViewModel.cs" />
<Compile Include="ViewModel\SurgeryViewModel.cs" />
<Compile Include="View\DoctorsPage.xaml.cs">
<DependentUpon>DoctorsPage.xaml</DependentUpon>
</Compile>
<Compile Include="View\MainFrameView.xaml.cs">
<DependentUpon>MainFrameView.xaml</DependentUpon>
</Compile>
<Compile Include="View\PatientsPage.xaml.cs">
<DependentUpon>PatientsPage.xaml</DependentUpon>
</Compile>
<Compile Include="View\RoomsPage.xaml.cs">
<DependentUpon>RoomsPage.xaml</DependentUpon>
</Compile>
<Compile Include="View\UserControls\ColumnListView.xaml.cs">
<DependentUpon>ColumnListView.xaml</DependentUpon>
</Compile>
@ -142,6 +153,10 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="View\DoctorsPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="View\MainFrameView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
@ -150,6 +165,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="View\RoomsPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="View\UserControls\ColumnListView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
@ -157,10 +176,9 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.1.7</Version>
<Version>6.1.9</Version>
</PackageReference>
</ItemGroup>
<ItemGroup />
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
<DeviceId>30F105C9-681E-420b-A277-7C086EAD8A4E</DeviceId>
<UseEmulator>true</UseEmulator>
</PropertyGroup>
</Project>

43
HospitalServerManager.sln Normal file
View File

@ -0,0 +1,43 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.168
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HospitalServerManager", "HospitalServerManager.csproj", "{26C1F966-632C-4EFE-B214-70E9F0917D10}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Debug|ARM.ActiveCfg = Debug|ARM
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Debug|ARM.Build.0 = Debug|ARM
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Debug|ARM.Deploy.0 = Debug|ARM
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Debug|x64.ActiveCfg = Debug|x64
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Debug|x64.Build.0 = Debug|x64
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Debug|x64.Deploy.0 = Debug|x64
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Debug|x86.ActiveCfg = Debug|x86
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Debug|x86.Build.0 = Debug|x86
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Debug|x86.Deploy.0 = Debug|x86
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Release|ARM.ActiveCfg = Release|ARM
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Release|ARM.Build.0 = Release|ARM
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Release|ARM.Deploy.0 = Release|ARM
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Release|x64.ActiveCfg = Release|x64
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Release|x64.Build.0 = Release|x64
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Release|x64.Deploy.0 = Release|x64
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Release|x86.ActiveCfg = Release|x86
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Release|x86.Build.0 = Release|x86
{26C1F966-632C-4EFE-B214-70E9F0917D10}.Release|x86.Deploy.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0633FECF-757D-423E-973E-178F39545ED1}
EndGlobalSection
EndGlobal

View File

@ -73,4 +73,46 @@ namespace HospitalServerManager.InterfacesAndEnums
[Description("M")]
M,
}
public enum SurgeryField
{
[Description("Ogólna")]
General,
[Description("Klatki piersiowej")]
Throatic,
[Description("Sercowo - naczyniowa")]
Cardioviscular,
[Description("Układu nerwowego")]
NervousSystem,
[Description("Urologia")]
Urology,
[Description("Szczękowo - twarzowa")]
Maxillofacial,
[Description("Urazowa")]
Accidential,
[Description("Inne")]
Other,
}
public enum SurgeryKind
{
[Description("Szycie")]
Stitching,
[Description("Resekcja")]
Resection,
[Description("Amputacja")]
Amputation,
[Description("Drenaż")]
Drainge,
[Description("Nastawianie złamań")]
Bonesetting,
[Description("Ingerencja wewnątrz klatki piersiowej")]
Throastic,
[Description("Operacja serca")]
Heart,
[Description("Operacja układu nerwowego")]
Nervous,
[Description("Przeszczep")]
Graft,
[Description("Inne")]
Other,
}
}

View File

@ -6,7 +6,29 @@ using System.Threading.Tasks;
namespace HospitalServerManager.Model.Basic
{
class Admission
class Admission : SqlTable
{
public DateTime AdmissionDate { get; protected set; }
public DateTime LeavingDate { get; protected set; }
public string PatientPESEL { get; protected set; }
public string DiagnosisSymbol { get; protected set; }
public int MainDoctor { get; protected set; }
public int? OperationID { get; protected set; }
public int RoomNumber { get; protected set; }
public bool IsPlanned { get; protected set; }
protected Admission() : base() { }
public Admission(List<string> listOfValues)
: base(listOfValues[0], "Id_przyjecia", new List<string>())
{
AdmissionDate = DateTime.Parse(listOfValues[1]);
LeavingDate = DateTime.Parse(listOfValues[2]);
PatientPESEL = listOfValues[3];
DiagnosisSymbol = listOfValues[4];
MainDoctor = int.Parse(listOfValues[5]);
OperationID = int.Parse(listOfValues[6]);
RoomNumber = int.Parse(listOfValues[7]);
IsPlanned = bool.Parse(listOfValues[8]);
}
}
}

View File

@ -1,4 +1,5 @@
using System;
using HospitalServerManager.InterfacesAndEnums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@ -6,7 +7,19 @@ using System.Threading.Tasks;
namespace HospitalServerManager.Model.Basic
{
class Diagnosis
class Diagnosis : SqlTable
{
public string Name { get; protected set; }
public SurgeryField FieldOfSurgery { get; protected set; }
public string Description { get; protected set; }
protected Diagnosis() : base() {}
public Diagnosis(List<string> listOfValues)
: base(listOfValues[0], "Symbol_ICD", new List<string>())
{
Name = listOfValues[1];
FieldOfSurgery = listOfValues[2].GetEnumFromDescription<SurgeryField>();
Description = listOfValues[3];
}
}
}

View File

@ -9,18 +9,12 @@ namespace HospitalServerManager.Model.Basic
{
class Doctor : SqlTable
{
//public int DoctorId { get; protected set; }
public string Name { get; protected set; }
public AcademicDegrees _AcademicDegree { get; set; }
public MedicalSpecializations _MedicalSpecialization { get; set; }
public string Surname { get; protected set; }
private AcademicDegrees _AcademicDegree { get; set; }
public string AcademicDegree { get => _AcademicDegree.GetEnumDescription(); }
private MedicalSpecializations _MedicalSpecialization { get; set; }
public string MedicalSpecialization { get => _MedicalSpecialization.GetEnumDescription(); }
public DateTime DateOfEmployment { get; protected set; }
private JobPositions _JobPosition { get; set; }
public string JobPosition { get => _JobPosition.GetEnumDescription(); }
public JobPositions _JobPosition { get; set; }
protected Doctor() : base()
{

View File

@ -9,26 +9,11 @@ namespace HospitalServerManager.Model.Basic
{
internal class Patient : SqlTable
{
/*public override string PrimaryKeyNameToSql { get; protected set; }
public override string GetPrimaryKey => PeselNumber;*/
public string Surname { get; protected set; }
public string Name { get; protected set; }
public DateTime BirthDate { get; protected set; }
public PatientState _PatientState { get; protected set; }
/*public string PatientState
{
get
{
if (_PatientState.GetEnumDescription() == "NULL")
return string.Empty;
else
return _PatientState.GetEnumDescription();
}
}*/
public Sex _PatientSex { get; protected set; }
// public string PatientSex { get => _PatientSex.GetEnumDescription(); }
public PatientState PatientState { get; protected set; }
public Sex PatientSex { get; protected set; }
protected Patient() : base()
{
@ -42,8 +27,8 @@ namespace HospitalServerManager.Model.Basic
Surname = surname;
Name = name;
BirthDate = birthDate;
_PatientState = patientState;
_PatientSex = patientSex;
PatientState = patientState;
PatientSex = patientSex;
}
/// <summary>
/// List have to be in right order (pesel, surname, name, birth date, patient state, patient sex).
@ -59,8 +44,8 @@ namespace HospitalServerManager.Model.Basic
Surname = listOfValues[1];
Name = listOfValues[2];
BirthDate = DateTime.Parse(listOfValues[3]);
_PatientState = listOfValues[4].GetEnumFromDescription<PatientState>();
_PatientSex = (Sex)Enum.Parse(typeof(Sex), listOfValues[5]);
PatientState = listOfValues[4].GetEnumFromDescription<PatientState>();
PatientSex = (Sex)Enum.Parse(typeof(Sex), listOfValues[5]);
}
}
}

View File

@ -6,7 +6,18 @@ using System.Threading.Tasks;
namespace HospitalServerManager.Model.Basic
{
class Room
class Room : SqlTable
{
public int PlacesNumber { get; protected set; }
public bool IsSpecialCare { get; protected set; }
protected Room() : base() { }
public Room(List<string> listOfValues)
: base(listOfValues[0], "Nr_sali", new List<string>())
{
if (int.TryParse(listOfValues[1], out int placesNumber))
PlacesNumber = placesNumber;
IsSpecialCare = bool.Parse(listOfValues[2]);
}
}
}

View File

@ -1,4 +1,5 @@
using System;
using HospitalServerManager.InterfacesAndEnums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@ -6,7 +7,23 @@ using System.Threading.Tasks;
namespace HospitalServerManager.Model.Basic
{
class Surgery
{
}
class Surgery : SqlTable
{
public string SurgeryName { get; protected set; }
public TimeSpan AverageTime { get; protected set; }
public SurgeryKind KindOfSurgery { get; protected set; }
public decimal Cost { get; protected set; }
public int Refoundation { get; protected set; }
protected Surgery() : base() { }
public Surgery(List<string> listOfValues)
: base(listOfValues[0], "Id_operacji", new List<string>())
{
SurgeryName = listOfValues[1];
AverageTime = TimeSpan.Parse(listOfValues[2]);
KindOfSurgery = listOfValues[3].GetEnumFromDescription<SurgeryKind>();
Cost = decimal.Parse(listOfValues[4]);
Refoundation = int.Parse(listOfValues[5]) > 100 ? 100 : int.Parse(listOfValues[5]);
}
}
}

View File

@ -15,17 +15,9 @@ namespace HospitalServerManager.Model
//private Controllers.DatabaseReader DatabaseReader = new Controllers.DatabaseReader();
public ModelRoster()
{
/* Read();
_modelsList.Clear();
_modelsList.AddRange(DatabaseReader.LastReadedModels);*/
}
public async void Read()
{
/* await DatabaseReader.ReadDataFromDatabase(@"Data Source=MARCEL\SQLEXPRESS;Initial Catalog = DB_s439397; Integrated Security = true;",
"SELECT * FROM Pacjenci", typeof(Patient));*/
}
public void AddRange(IEnumerable<ISqlTableModelable> modelsList)
{
_modelsList.Clear();

174
View/DoctorsPage.xaml Normal file
View File

@ -0,0 +1,174 @@
<Page
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: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 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 Content="Nowy rekord" Margin="30, 0, 30, 0" Grid.Row="1" Click="NewRecordButton_Click" Width="150"/>
<Button Content="Usuń zaznaczone" Margin="30, 0, 30, 0" Grid.Row="1" Grid.Column="1" Click="DeleteButton_Click" Width="150"/>
<Button Content="Edytuj rekord" Margin="30, 0, 30, 0" Grid.Row="1" Click="EditButton_Click" 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 Name="searchBox" Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="1" HorizontalAlignment="Stretch"
VerticalAlignment="Center" Margin="10"/>
<ComboBox 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 Content="Przeszukaj bazę" HorizontalAlignment="Stretch" Margin="10" Click="SearchButton_Click"/>
<Button Content="Resetuj" HorizontalAlignment="Stretch" Margin="10" Click="ResetButton_Click"/>
</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 Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" VerticalAlignment="Center"
Margin="10" Name="sortComboBox" SelectionChanged="SortComboBox_SelectionChanged" />
<StackPanel Grid.Row="2" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center">
<RadioButton Content="Rosnąco" Margin="15, 0, 15, 0" IsChecked="True" Tag="0" Name="radioBtn1" Click="RadionBtn_Click"/>
<RadioButton Content="Malejąco" Margin="15, 0, 15, 0" Tag="1" Name="radionBtn2" Click="RadionBtn_Click"/>
</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/>
<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 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 x:DataType="viewmodel:PatientViewModel">
<Grid Name="valueStoreGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Name="ItemId"
Text="{x:Bind PrimaryKey}"
Grid.Column="0" />
<TextBlock Name="ItemName"
Text="{x:Bind Surname}"
Grid.Column="1"/>
<TextBlock Text="{x:Bind Name}"
Grid.Column="2"/>
<TextBlock Text="{x:Bind BirthDate}"
Grid.Column="3"/>
<TextBlock Text="{x:Bind PatientState}"
Grid.Column="4"/>
<TextBlock Text="{x:Bind PatientSex}"
Grid.Column="5"/>
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>
</ListView.ItemContainerStyle>
</ListView>
</Grid>
</Grid>
</Page>

80
View/DoctorsPage.xaml.cs Normal file
View File

@ -0,0 +1,80 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
//Szablon elementu Pusta strona jest udokumentowany na stronie https://go.microsoft.com/fwlink/?LinkId=234238
namespace HospitalServerManager.View
{
/// <summary>
/// Pusta strona, która może być używana samodzielnie lub do której można nawigować wewnątrz ramki.
/// </summary>
public sealed partial class DoctorsPage : Page
{
public DoctorsPage()
{
this.InitializeComponent();
}
#region Events
private void SortComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
}
private void RadionBtn_Click(object sender, RoutedEventArgs e)
{
}
private void SearchButton_Click(object sender, RoutedEventArgs e)
{
}
private void ResetButton_Click(object sender, RoutedEventArgs e)
{
}
private void DeleteButton_Click(object sender, RoutedEventArgs e)
{
}
private void EditButton_Click(object sender, RoutedEventArgs e)
{
}
private void NewRecordButton_Click(object sender, RoutedEventArgs e)
{
}
#endregion
protected override void OnNavigatedTo(NavigationEventArgs e)
{
//databaseReader = e.Parameter as HospitalServerManager.ViewModel.Controllers.DatabaseReader;
//_IsDataLoaded = false;
// DatabaseController.OnPropertyChanged("IsDataLoaded");
}
private async void Page_Loaded(object sender, RoutedEventArgs e)
{
databaseView.ItemsSource = RosterViewModel.ModelsCollection;
}
}
}

View File

@ -22,13 +22,14 @@ namespace HospitalServerManager.View
/// </summary>
public sealed partial class MainFrameView : Page
{
public MainFrameView()
{
this.InitializeComponent();
}
private void AppBarButton_Click(object sender, RoutedEventArgs e)
{
mainFrame.Navigate(typeof(PatientsPage));
mainFrame.Navigate(typeof(PatientsPage), new HospitalServerManager.ViewModel.Controllers.DatabaseReader());
//Frame.Navigate(typeof(PatientsPage));
}
}

View File

@ -8,11 +8,169 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Loaded="Page_Loaded">
<Page.Resources>
<viewmodel:RosterViewModel x:Name="RosterViewModel"/>
</Page.Resources>
<Grid DataContext="{StaticResource ResourceKey=RosterViewModel}">
<!-- <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 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 Content="Nowy rekord" Margin="30, 0, 30, 0" Grid.Row="1" Click="NewRecordButton_Click" Width="150"/>
<Button Content="Usuń zaznaczone" Margin="30, 0, 30, 0" Grid.Row="1" Grid.Column="1" Click="DeleteButton_Click" Width="150"/>
<Button Content="Edytuj rekord" Margin="30, 0, 30, 0" Grid.Row="1" Click="EditButton_Click" 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 Name="searchBox" Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="1" HorizontalAlignment="Stretch"
VerticalAlignment="Center" Margin="10"/>
<ComboBox 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 Content="Przeszukaj bazę" HorizontalAlignment="Stretch" Margin="10" Click="SearchButton_Click"/>
<Button Content="Resetuj" HorizontalAlignment="Stretch" Margin="10" Click="ResetButton_Click"/>
</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 Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" VerticalAlignment="Center"
Margin="10" Name="sortComboBox" SelectionChanged="SortComboBox_SelectionChanged" />
<StackPanel Grid.Row="2" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center">
<RadioButton Content="Rosnąco" Margin="15, 0, 15, 0" IsChecked="True" Tag="0" Name="radioBtn1" Click="RadionBtn_Click"/>
<RadioButton Content="Malejąco" Margin="15, 0, 15, 0" Tag="1" Name="radionBtn2" Click="RadionBtn_Click"/>
</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/>
<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 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 x:DataType="viewmodel:PatientViewModel">
<Grid Name="valueStoreGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Name="ItemId"
Text="{x:Bind PrimaryKey}"
Grid.Column="0" />
<TextBlock Name="ItemName"
Text="{x:Bind Surname}"
Grid.Column="1"/>
<TextBlock Text="{x:Bind Name}"
Grid.Column="2"/>
<TextBlock Text="{x:Bind BirthDate}"
Grid.Column="3"/>
<TextBlock Text="{x:Bind PatientState}"
Grid.Column="4"/>
<TextBlock Text="{x:Bind PatientSex}"
Grid.Column="5"/>
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>
</ListView.ItemContainerStyle>
</ListView>
</Grid>
</Grid>
</Page>

View File

@ -12,6 +12,8 @@ using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using HospitalServerManager.InterfacesAndEnums;
using System.Collections.ObjectModel;
//Szablon elementu Pusta strona jest udokumentowany na stronie https://go.microsoft.com/fwlink/?LinkId=234238
@ -22,10 +24,63 @@ namespace HospitalServerManager.View
/// </summary>
public sealed partial class PatientsPage : Page
{
//public ObservableCollection<ISqlTableModelable> ModelCollection { get => RosterViewModel.ModelsCollection; }
private ViewModel.Controllers.DatabaseReader databaseReader;
public PatientsPage()
{
this.InitializeComponent();
}
#region Events
private void SortComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
}
private void RadionBtn_Click(object sender, RoutedEventArgs e)
{
}
private void SearchButton_Click(object sender, RoutedEventArgs e)
{
}
private void ResetButton_Click(object sender, RoutedEventArgs e)
{
}
private void DeleteButton_Click(object sender, RoutedEventArgs e)
{
}
private void EditButton_Click(object sender, RoutedEventArgs e)
{
}
private void NewRecordButton_Click(object sender, RoutedEventArgs e)
{
}
#endregion
protected override void OnNavigatedTo(NavigationEventArgs e)
{
databaseReader = e.Parameter as HospitalServerManager.ViewModel.Controllers.DatabaseReader;
//_IsDataLoaded = false;
// DatabaseController.OnPropertyChanged("IsDataLoaded");
}
private async void Page_Loaded(object sender, RoutedEventArgs e)
{
databaseView.ItemsSource = RosterViewModel.ModelsCollection;
}
}
}

14
View/RoomsPage.xaml Normal file
View File

@ -0,0 +1,14 @@
<Page
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:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid>
</Grid>
</Page>

30
View/RoomsPage.xaml.cs Normal file
View File

@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
//Szablon elementu Pusta strona jest udokumentowany na stronie https://go.microsoft.com/fwlink/?LinkId=234238
namespace HospitalServerManager.View
{
/// <summary>
/// Pusta strona, która może być używana samodzielnie lub do której można nawigować wewnątrz ramki.
/// </summary>
public sealed partial class RoomsPage : Page
{
public RoomsPage()
{
this.InitializeComponent();
}
}
}

View File

@ -0,0 +1,28 @@
using HospitalServerManager.Model.Basic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.ViewModel
{
class AdmissionViewModel
{
private Admission model;
public string PrimaryKey { get => model.PrimaryKey; }
public DateTime AdmissionDate { get => model.AdmissionDate; }
public DateTime LeavingDate { get => model.LeavingDate; }
public string PatientPESEL { get => model.PatientPESEL; }
public string DiagnosisSymbol { get => model.DiagnosisSymbol; }
public int MainDoctor { get => model.MainDoctor; }
public int? OperationID { get => model.OperationID; }
public int RoomNumber { get => model.RoomNumber; }
public bool IsPlanned { get => model.IsPlanned; }
public AdmissionViewModel(Admission model)
{
this.model = model;
}
}
}

View File

@ -0,0 +1,24 @@
using HospitalServerManager.Model.Basic;
using HospitalServerManager.InterfacesAndEnums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.ViewModel
{
class DiagnosisViewModel
{
private Diagnosis model;
public string PrimaryKey { get => model.PrimaryKey; }
public string Name { get => model.Name; }
public string FieldOfSurgery { get => model.FieldOfSurgery.GetEnumDescription(); }
public string Description { get => model.Description; }
public DiagnosisViewModel(Diagnosis model)
{
this.model = model;
}
}
}

View File

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HospitalServerManager.InterfacesAndEnums;
using HospitalServerManager.Model.Basic;
namespace HospitalServerManager.ViewModel
{
class DoctorViewModel
{
private Doctor model;
public string PrimaryKey { get => model.PrimaryKey; }
public string Name { get => model.Name; }
public string AdacemicDegree { get => model._AcademicDegree.GetEnumDescription(); }
public string MedicalSpecialization { get => model._MedicalSpecialization.GetEnumDescription(); }
public string Surname { get => model.Surname; }
public DateTime EmploymentDate { get => model.DateOfEmployment; }
public string JobPosition { get => model._JobPosition.GetEnumDescription(); }
public DoctorViewModel(Doctor model)
{
this.model = model;
}
}
}

View File

@ -1,4 +1,6 @@
using System;
using HospitalServerManager.InterfacesAndEnums;
using HospitalServerManager.Model.Basic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@ -6,18 +8,34 @@ using System.Threading.Tasks;
namespace HospitalServerManager.ViewModel
{
class PatientViewModel
class PatientViewModel : ISqlTableModelable
{
public string PrimaryKey { get; private set; }
public string Name { get; private set; }
public string Surname { get; private set; }
public DateTime BirthDate { get; private set; }
public string PatientState { get; private set; }
public string PatientSex { get; private set; }
private Patient model;
public string PrimaryKey { get => model.PrimaryKey; }
public string Name { get => model.Name; }
public string Surname { get => model.Surname; }
public DateTime BirthDate { get => model.BirthDate; }
public string PatientState { get => model.PatientState.GetEnumDescription(); }
public string PatientSex { get => model.PatientSex.GetEnumDescription(); }
public PatientViewModel(Model.Basic.Patient patient)
public PatientViewModel(Patient patient)
{
model = patient;
}
public List<string> GetColumnNames()
{
throw new NotImplementedException();
}
public string GetPrimaryKey()
{
throw new NotImplementedException();
}
public string GetPrimaryKeyName()
{
throw new NotImplementedException();
}
}
}

View File

@ -0,0 +1,22 @@
using HospitalServerManager.Model.Basic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.ViewModel
{
class RoomViewModel
{
private Room model;
public string PrimaryKey { get => model.PrimaryKey; }
public int PlacesNumber { get => model.PlacesNumber; }
public bool IsSpecialCare { get => model.IsSpecialCare; }
public RoomViewModel(Room model)
{
this.model = model;
}
}
}

View File

@ -24,9 +24,12 @@ namespace HospitalServerManager.ViewModel
}
public async void Read()
{
await DbReader.ReadDataFromDatabase(@"Data Source=MARCEL\SQLEXPRESS;Initial Catalog = DB_s439397; Integrated Security = true;",
await DbReader.ReadDataFromDatabase(@"Data Source=MARCELPC;Initial Catalog = DB_s439397; Integrated Security = true;",
"SELECT * FROM Pacjenci", typeof(Model.Basic.Patient));
_Roster.AddRange(DbReader.LastReadedModels);
// TO TYLKO DLA TESTOW, DO USUNIECIA I NIE KOPIOWAC MECHANIKI !!
List<ISqlTableModelable> lista = new List<ISqlTableModelable>();
DbReader.LastReadedModels.ToList().ForEach(model => lista.Add(new PatientViewModel(model as HospitalServerManager.Model.Basic.Patient)));
_Roster.AddRange(lista);
ModelsCollection.AddRange(ModelsList);
}
}

View File

@ -0,0 +1,26 @@
using HospitalServerManager.Model.Basic;
using HospitalServerManager.InterfacesAndEnums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.ViewModel
{
class SurgeryViewModel
{
private Surgery model;
public string PrimaryKey { get => model.PrimaryKey; }
public string SurgeryName { get => model.SurgeryName; }
public TimeSpan AverageTime { get => model.AverageTime; }
public string KindOfSurgery { get => model.KindOfSurgery.GetEnumDescription(); }
public decimal Cost { get => model.Cost; }
public int Refoundation { get => model.Refoundation; }
public SurgeryViewModel(Surgery model)
{
this.model = model;
}
}
}

Binary file not shown.

Binary file not shown.

View File

@ -17,7 +17,7 @@
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17134.0" MaxVersionTested="10.0.17134.0" />
<PackageDependency Name="Microsoft.NET.CoreRuntime.2.1" MinVersion="2.1.26124.5" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" />
<PackageDependency Name="Microsoft.VCLibs.140.00.Debug" MinVersion="14.0.26726.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" />
<PackageDependency Name="Microsoft.VCLibs.140.00.Debug" MinVersion="14.0.27023.1" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" />
</Dependencies>
<Resources>
<Resource Language="PL-PL" />
@ -39,11 +39,11 @@
<build:Item Name="VisualStudio" Version="15.0" />
<build:Item Name="VisualStudioEdition" Value="Microsoft Visual Studio Community 2017" />
<build:Item Name="OperatingSystem" Version="10.0.17134.1 (WinBuild.160101.0800)" />
<build:Item Name="Microsoft.Build.AppxPackage.dll" Version="15.0.28010.2016" />
<build:Item Name="Microsoft.Build.AppxPackage.dll" Version="15.0.28307.104" />
<build:Item Name="ProjectGUID" Value="{26C1F966-632C-4EFE-B214-70E9F0917D10}" />
<build:Item Name="OptimizingToolset" Value="None" />
<build:Item Name="TargetRuntime" Value="Managed" />
<build:Item Name="Microsoft.Windows.UI.Xaml.Build.Tasks.dll" Version="15.0.28010.2016" />
<build:Item Name="Microsoft.Windows.UI.Xaml.Build.Tasks.dll" Version="15.0.28307.102" />
<build:Item Name="UseDotNetNativeSharedAssemblyFrameworkPackage" Value="true" />
<build:Item Name="MakePri.exe" Version="10.0.17134.12 (WinBuild.160101.0800)" />
</build:Metadata>

View File

@ -7,83 +7,66 @@
<RootType FullName="Windows.UI.Xaml.Application" />
<RootType FullName="Windows.UI.Xaml.Controls.Page">
<RootProperty Name="Background" />
<RootProperty Name="Content" />
<RootProperty Name="Resources" />
<RootProperty Name="Content" />
<RootEvent Name="Loaded" />
</RootType>
<RootType FullName="Microsoft.Xaml.DirectUI.ProxyTypes.ThemeResourceExtension" />
<RootType FullName="HospitalServerManager.ViewModel.RosterViewModel" />
<RootType FullName="Windows.UI.Xaml.Controls.Grid">
<RootProperty Name="Background" />
<RootProperty Name="RowDefinitions" />
<RootProperty Name="Children" />
<RootProperty Name="DataContext" />
<RootProperty Name="ColumnDefinitions" />
<RootProperty Name="Children" />
<RootProperty Name="Margin" />
<RootProperty Name="VerticalAlignment" />
<RootProperty Name="HorizontalAlignment" />
<RootProperty Name="BorderBrush" />
<RootProperty Name="BorderThickness" />
<RootProperty Name="Name" />
<RootMethod Name="GetColumnSpan" />
<RootMethod Name="SetColumnSpan" />
<RootMethod Name="GetRow" />
<RootMethod Name="SetRow" />
<RootMethod Name="GetColumn" />
<RootMethod Name="SetColumn" />
<RootMethod Name="GetColumnSpan" />
<RootMethod Name="SetColumnSpan" />
<RootMethod Name="GetRowSpan" />
<RootMethod Name="SetRowSpan" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.RowDefinition">
<RootProperty Name="Height" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.CommandBar">
<RootProperty Name="Name" />
<RootProperty Name="FlowDirection" />
<RootProperty Name="VerticalAlignment" />
<RootProperty Name="Style" />
<RootProperty Name="PrimaryCommands" />
<RootType FullName="Windows.UI.Xaml.Controls.ColumnDefinition">
<RootProperty Name="Width" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.Frame">
<RootProperty Name="Name" />
<RootProperty Name="Margin" />
</RootType>
<RootType FullName="Microsoft.Xaml.DirectUI.ProxyTypes.StaticResourceExtension">
<RootProperty Name="ResourceKey" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.AppBarButton">
<RootProperty Name="Icon" />
<RootProperty Name="Label" />
<RootProperty Name="Tag" />
<RootEvent Name="Click" />
</RootType>
<RootType FullName="HospitalServerManager.View.MainFrameView" />
<RootType FullName="HospitalServerManager.ViewModel.RosterViewModel" />
<RootType FullName="HospitalServerManager.View.UserControls.ColumnListView">
<RootProperty Name="Name" />
<RootProperty Name="DataContext" />
</RootType>
<RootType FullName="HospitalServerManager.View.PatientsPage" />
<RootType FullName="Windows.UI.Xaml.Controls.UserControl">
<RootProperty Name="Resources" />
<RootProperty Name="Content" />
</RootType>
<RootType FullName="Windows.UI.Xaml.DataTemplate">
<RootProperty Name="Template" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.ColumnDefinition" />
<RootType FullName="Windows.UI.Xaml.Controls.TextBlock">
<RootProperty Name="Name" />
<RootProperty Name="Text" />
<RootProperty Name="HorizontalAlignment" />
<RootProperty Name="Margin" />
<RootProperty Name="FontSize" />
<RootProperty Name="VerticalAlignment" />
<RootProperty Name="Foreground" />
</RootType>
<RootType FullName="Microsoft.Xaml.DirectUI.ProxyTypes.BindExtension" />
<RootType FullName="Windows.UI.Xaml.Controls.StackPanel">
<RootProperty Name="Orientation" />
<RootProperty Name="HorizontalAlignment" />
<RootProperty Name="Children" />
<RootProperty Name="VerticalAlignment" />
<RootProperty Name="Margin" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.ListView">
<RootProperty Name="Margin" />
<RootProperty Name="VerticalAlignment" />
<RootProperty Name="HorizontalAlignment" />
<RootProperty Name="HorizontalContentAlignment" />
<RootProperty Name="HeaderTemplate" />
<RootProperty Name="Name" />
<RootProperty Name="BorderBrush" />
<RootProperty Name="BorderThickness" />
<RootProperty Name="ItemsSource" />
<RootProperty Name="ItemTemplate" />
<RootProperty Name="ItemContainerStyle" />
<RootProperty Name="ItemsSource" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.ScrollViewer">
<RootMethod Name="GetVerticalScrollBarVisibility" />
@ -99,7 +82,10 @@
<RootMethod Name="GetIsHorizontalRailEnabled" />
<RootMethod Name="SetIsHorizontalRailEnabled" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Data.Binding" />
<RootType FullName="Windows.UI.Xaml.DataTemplate">
<RootProperty Name="Template" />
</RootType>
<RootType FullName="Microsoft.Xaml.DirectUI.ProxyTypes.BindExtension" />
<RootType FullName="Windows.UI.Xaml.Controls.ListViewItem" />
<RootType FullName="Windows.UI.Xaml.Controls.Control">
<RootProperty Name="HorizontalContentAlignment" />
@ -108,5 +94,67 @@
<RootProperty Name="Property" />
<RootProperty Name="Value" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.Border">
<RootProperty Name="BorderBrush" />
<RootProperty Name="BorderThickness" />
<RootProperty Name="CornerRadius" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.ComboBox">
<RootProperty Name="Name" />
<RootProperty Name="HorizontalAlignment" />
<RootProperty Name="VerticalAlignment" />
<RootProperty Name="Margin" />
<RootEvent Name="SelectionChanged" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.Button">
<RootProperty Name="Content" />
<RootProperty Name="VerticalAlignment" />
<RootProperty Name="HorizontalAlignment" />
<RootProperty Name="Margin" />
<RootProperty Name="Width" />
<RootEvent Name="Click" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.RadioButton">
<RootProperty Name="Name" />
<RootProperty Name="Content" />
<RootProperty Name="Margin" />
<RootProperty Name="IsChecked" />
<RootProperty Name="Tag" />
<RootEvent Name="Click" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.TextBox">
<RootProperty Name="Name" />
<RootProperty Name="HorizontalAlignment" />
<RootProperty Name="VerticalAlignment" />
<RootProperty Name="Margin" />
</RootType>
<RootType FullName="HospitalServerManager.View.DoctorsPage" />
<RootType FullName="Windows.UI.Xaml.Controls.CommandBar">
<RootProperty Name="Name" />
<RootProperty Name="FlowDirection" />
<RootProperty Name="VerticalAlignment" />
<RootProperty Name="Style" />
<RootProperty Name="PrimaryCommands" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.Frame">
<RootProperty Name="Name" />
<RootProperty Name="Margin" />
</RootType>
<RootType FullName="Microsoft.Xaml.DirectUI.ProxyTypes.StaticResourceExtension" />
<RootType FullName="Windows.UI.Xaml.Controls.AppBarButton">
<RootProperty Name="Icon" />
<RootProperty Name="Label" />
<RootProperty Name="Tag" />
<RootEvent Name="Click" />
</RootType>
<RootType FullName="HospitalServerManager.View.MainFrameView" />
<RootType FullName="HospitalServerManager.View.PatientsPage" />
<RootType FullName="HospitalServerManager.View.RoomsPage" />
<RootType FullName="Windows.UI.Xaml.Controls.UserControl">
<RootProperty Name="Resources" />
<RootProperty Name="Content" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Data.Binding" />
<RootType FullName="HospitalServerManager.View.UserControls.ColumnListView" />
</Roots.RootTypes>
</Roots>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More