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

Initial commit

This commit is contained in:
Marcel 2018-11-18 18:49:40 +01:00
commit 5f3a04a93d
546 changed files with 39838 additions and 0 deletions

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto

7
App.xaml Normal file
View File

@ -0,0 +1,7 @@
<Application
x:Class="HospitalServerManager.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:HospitalServerManager">
</Application>

100
App.xaml.cs Normal file
View File

@ -0,0 +1,100 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
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;
namespace HospitalServerManager
{
/// <summary>
/// Zapewnia zachowanie specyficzne dla aplikacji, aby uzupełnić domyślną klasę aplikacji.
/// </summary>
sealed partial class App : Application
{
/// <summary>
/// Inicjuje pojedynczy obiekt aplikacji. Jest to pierwszy wiersz napisanego kodu
/// wykonywanego i jest logicznym odpowiednikiem metod main() lub WinMain().
/// </summary>
public App()
{
this.InitializeComponent();
this.Suspending += OnSuspending;
}
/// <summary>
/// Wywoływane, gdy aplikacja jest uruchamiana normalnie przez użytkownika końcowego. Inne punkty wejścia
/// będą używane, kiedy aplikacja zostanie uruchomiona w celu otworzenia określonego pliku.
/// </summary>
/// <param name="e">Szczegóły dotyczące żądania uruchomienia i procesu.</param>
protected override void OnLaunched(LaunchActivatedEventArgs e)
{
Frame rootFrame = Window.Current.Content as Frame;
// Nie powtarzaj inicjowania aplikacji, gdy w oknie znajduje się już zawartość,
// upewnij się tylko, że okno jest aktywne
if (rootFrame == null)
{
// Utwórz ramkę, która będzie pełnić funkcję kontekstu nawigacji, i przejdź do pierwszej strony
rootFrame = new Frame();
rootFrame.NavigationFailed += OnNavigationFailed;
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
{
//TODO: Załaduj stan z wstrzymanej wcześniej aplikacji
}
// Umieść ramkę w bieżącym oknie
Window.Current.Content = rootFrame;
}
if (e.PrelaunchActivated == false)
{
if (rootFrame.Content == null)
{
// Kiedy stos nawigacji nie jest przywrócony, przejdź do pierwszej strony,
// konfigurując nową stronę przez przekazanie wymaganych informacji jako
// parametr
rootFrame.Navigate(typeof(View.MainFrameView), e.Arguments);
}
// Upewnij się, ze bieżące okno jest aktywne
Window.Current.Activate();
}
}
/// <summary>
/// Wywoływane, gdy nawigacja do konkretnej strony nie powiedzie się
/// </summary>
/// <param name="sender">Ramka, do której nawigacja nie powiodła się</param>
/// <param name="e">Szczegóły dotyczące niepowodzenia nawigacji</param>
void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
{
throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
}
/// <summary>
/// Wywoływane, gdy wykonanie aplikacji jest wstrzymywane. Stan aplikacji jest zapisywany
/// bez wiedzy o tym, czy aplikacja zostanie zakończona, czy wznowiona z niezmienioną zawartością
/// pamięci.
/// </summary>
/// <param name="sender">Źródło żądania wstrzymania.</param>
/// <param name="e">Szczegóły żądania wstrzymania.</param>
private void OnSuspending(object sender, SuspendingEventArgs e)
{
var deferral = e.SuspendingOperation.GetDeferral();
//TODO: Zapisz stan aplikacji i zatrzymaj wszelkie aktywności w tle
deferral.Complete();
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
Assets/StoreLogo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -0,0 +1,175 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProjectGuid>{26C1F966-632C-4EFE-B214-70E9F0917D10}</ProjectGuid>
<OutputType>AppContainerExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>HospitalServerManager</RootNamespace>
<AssemblyName>HospitalServerManager</AssemblyName>
<DefaultLanguage>pl-PL</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.17134.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.17134.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WindowsXamlEnableOverview>true</WindowsXamlEnableOverview>
<PackageCertificateKeyFile>HospitalServerManager_TemporaryKey.pfx</PackageCertificateKeyFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\ARM\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
<OutputPath>bin\ARM\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<PropertyGroup>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
</PropertyGroup>
<ItemGroup>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
</Compile>
<Compile Include="InterfacesAndEnums\Enums.cs" />
<Compile Include="InterfacesAndEnums\Extensions.cs" />
<Compile Include="InterfacesAndEnums\Interfaces.cs" />
<Compile Include="Model\Basic\Admission.cs" />
<Compile Include="Model\RangeObservableCollection.cs" />
<Compile Include="ViewModel\Controllers\DatabaseReader.cs" />
<Compile Include="Model\Basic\Diagnosis.cs" />
<Compile Include="Model\Basic\Doctor.cs" />
<Compile Include="Model\ModelRoster.cs" />
<Compile Include="Model\Basic\Patient.cs" />
<Compile Include="Model\Basic\Room.cs" />
<Compile Include="Model\Basic\SqlTable.cs" />
<Compile Include="Model\Basic\Surgery.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ViewModel\PatientViewModel.cs" />
<Compile Include="ViewModel\RosterViewModel.cs" />
<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\UserControls\ColumnListView.xaml.cs">
<DependentUpon>ColumnListView.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
<None Include="HospitalServerManager_TemporaryKey.pfx" />
</ItemGroup>
<ItemGroup>
<Content Include="Properties\Default.rd.xml" />
<Content Include="Assets\LockScreenLogo.scale-200.png" />
<Content Include="Assets\SplashScreen.scale-200.png" />
<Content Include="Assets\Square150x150Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="Assets\StoreLogo.png" />
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="View\MainFrameView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="View\PatientsPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="View\UserControls\ColumnListView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.1.7</Version>
</PackageReference>
</ItemGroup>
<ItemGroup />
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

Binary file not shown.

View File

@ -0,0 +1,76 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.InterfacesAndEnums
{
public enum AcademicDegrees
{
[Description("lek. rez.")]
LekRez,
[Description("lek. med.")]
LekMed,
[Description("lek. spec.")]
LekSpec,
[Description("dr")]
Dr,
[Description("dr hab.")]
DrHab,
[Description("prof.")]
Prof,
}
public enum MedicalSpecializations
{
[Description("Chirurgia ogólna")]
GeneralSurgery,
[Description("Chirurgia klatki piersiowej")]
ThoracicSurgery,
[Description("Chirurgia sercowo - naczyniowa")]
CardiovascuralSurgery,
[Description("Chirurgia układu nerwowego")]
NewvousSurgery,
[Description("Urologia")]
Urology,
[Description("Chirurgia szczękowo - twarzowa")]
MaxillofacialSurgery,
[Description("Chirurgia urazowa")]
AccidentSurgery,
}
public enum JobPositions
{
[Description("Lekarz ogólny")]
GeneralPracticioner,
[Description("Lekarz prowadzący")]
AttendingPhysician,
[Description("Zastępca kierownika")]
ViceManager,
[Description("Kierownik")]
Manager,
[Description("Ordynator")]
Director,
}
public enum PatientState
{
[Description("KRYTYCZNY")]
Critical,
[Description("STABILNY")]
Stable,
[Description("ZAGROŻONY")]
Endangered,
[Description("NULL")]
None,
}
public enum Sex
{
[Description("K")]
K,
[Description("M")]
M,
}
}

View File

@ -0,0 +1,49 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.InterfacesAndEnums
{
public static class Extensions
{
public static string GetEnumDescription(this Enum e)
{
// DescriptionAttribute.GetCustomAttributes(e.GetType().GetMember(()))
var enumMember = e.GetType().GetMember(e.ToString()).FirstOrDefault();
DescriptionAttribute descriptionAttribute =
enumMember == null
? default(DescriptionAttribute)
: enumMember.GetCustomAttribute(typeof(DescriptionAttribute)) as DescriptionAttribute;
return descriptionAttribute.Description;
}
public static T GetEnumFromDescription<T>(this string description)
{
// Found in: https://stackoverflow.com/questions/4367723/get-enum-from-description-attribute
var type = typeof(T);
if (!type.IsEnum)
throw new InvalidOperationException();
foreach (var field in type.GetFields())
{
DescriptionAttribute attribute = Attribute.GetCustomAttribute(field,
typeof(DescriptionAttribute)) as DescriptionAttribute;
if (attribute != null)
{
if (attribute.Description == description)
return (T)field.GetValue(null);
}
else
{
if (field.Name == description)
return (T)field.GetValue(null);
}
}
throw new ArgumentException("Not found.", "description");
}
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.InterfacesAndEnums
{
public interface ISqlTableModelable : IPrimaryKeyGetable
{
List<string> GetColumnNames();
}
public interface IPrimaryKeyGetable
{
string GetPrimaryKey();
string GetPrimaryKeyName();
}
}

12
Model/Basic/Admission.cs Normal file
View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.Model.Basic
{
class Admission
{
}
}

12
Model/Basic/Diagnosis.cs Normal file
View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.Model.Basic
{
class Diagnosis
{
}
}

54
Model/Basic/Doctor.cs Normal file
View File

@ -0,0 +1,54 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HospitalServerManager.InterfacesAndEnums;
namespace HospitalServerManager.Model.Basic
{
class Doctor : SqlTable
{
//public int DoctorId { get; protected set; }
public string Name { get; protected 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(); }
protected Doctor() : base()
{
}
public Doctor(int primaryKey, string name, string surname, AcademicDegrees academicDegree,
MedicalSpecializations medicalSpecialization, DateTime dateOfEmployment, JobPositions jobPosition)
: base(primaryKey.ToString(), "Id_Lekarza", new List<string> { })
{
Name = name;
Surname = surname;
_AcademicDegree = academicDegree;
_MedicalSpecialization = medicalSpecialization;
DateOfEmployment = dateOfEmployment;
_JobPosition = jobPosition;
}
/// <summary>
/// List have to be in right order (doctor id, name, surname, academic degree, medical specialization,
/// date of employment, jobposition).
/// </summary>
/// <param name="listOfValues"></param>
public Doctor(List<string> listOfValues) : base(listOfValues[0], "Id_Lekarza", new List<string> { })
{
Name = listOfValues[1];
Surname = listOfValues[2];
_AcademicDegree = listOfValues[3].GetEnumFromDescription<AcademicDegrees>();
_MedicalSpecialization = listOfValues[4].GetEnumFromDescription<MedicalSpecializations>();
DateOfEmployment = DateTime.Parse(listOfValues[5]);
_JobPosition = listOfValues[6].GetEnumFromDescription<JobPositions>();
}
}
}

66
Model/Basic/Patient.cs Normal file
View File

@ -0,0 +1,66 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HospitalServerManager.InterfacesAndEnums;
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(); }
protected Patient() : base()
{
}
public Patient(string primaryKey, string surname, string name, DateTime birthDate, PatientState patientState,
Sex patientSex) : base(primaryKey, "PESEL", new List<string>())
{
if (primaryKey.Length < 11 || primaryKey.Length > 11)
throw new FormatException("PESEL musi mieć 11 cyfr");
PrimaryKey = primaryKey;
Surname = surname;
Name = name;
BirthDate = birthDate;
_PatientState = patientState;
_PatientSex = patientSex;
}
/// <summary>
/// List have to be in right order (pesel, surname, name, birth date, patient state, patient sex).
/// </summary>
/// <param name="listOfValues"></param>
public Patient(List<string> listOfValues) : base(listOfValues[0], "PESEL", new List<string>())
{
// TODO: Dodać zabezpieczenia dla pozostałych wartosci
// TODO: VALIDATOR! Lista kolumn nazw;
if (listOfValues[0].Length < 11 || listOfValues[0].Length > 11)
throw new FormatException("PESEL musi mieć 11 cyfr");
PrimaryKey = listOfValues[0];
Surname = listOfValues[1];
Name = listOfValues[2];
BirthDate = DateTime.Parse(listOfValues[3]);
_PatientState = listOfValues[4].GetEnumFromDescription<PatientState>();
_PatientSex = (Sex)Enum.Parse(typeof(Sex), listOfValues[5]);
}
}
}

12
Model/Basic/Room.cs Normal file
View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.Model.Basic
{
class Room
{
}
}

44
Model/Basic/SqlTable.cs Normal file
View File

@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HospitalServerManager.InterfacesAndEnums;
namespace HospitalServerManager.Model.Basic
{
internal abstract class SqlTable : ISqlTableModelable
{
// TODO: Dodac table do klas modelu
public string PrimaryKey { get; protected set; }
protected string PrimaryKeyName { get; set; }
protected List<string> ColumnNames { get; set; }
protected SqlTable()
{
PrimaryKey = "BRAK";
PrimaryKeyName = "BRAK";
ColumnNames = new List<string>();
}
public SqlTable(string primaryKey, string primaryKeyName, List<string> columnNames)
{
PrimaryKey = primaryKey;
PrimaryKeyName = primaryKeyName;
ColumnNames = columnNames;
}
public string GetPrimaryKey()
{
return PrimaryKey;
}
public string GetPrimaryKeyName()
{
return PrimaryKeyName;
}
public List<string> GetColumnNames()
{
return ColumnNames;
}
}
}

12
Model/Basic/Surgery.cs Normal file
View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.Model.Basic
{
class Surgery
{
}
}

35
Model/ModelRoster.cs Normal file
View File

@ -0,0 +1,35 @@
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.Model
{
class ModelRoster
{
private List<ISqlTableModelable> _modelsList = new List<ISqlTableModelable>();
public IEnumerable<ISqlTableModelable> ModelsEnumerable { get => _modelsList; }
//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();
_modelsList.AddRange(modelsList);
}
}
}

View File

@ -0,0 +1,70 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.Model
{
class RangeObservableCollection<T> : ObservableCollection<T>
{
/// <summary>
/// Adds the elements of the specified collection to the end of the ObservableCollection(Of T).
/// </summary>
public void AddRange(IEnumerable<T> collection)
{
if (collection == null) throw new ArgumentNullException("collection");
foreach (var i in collection) Items.Add(i);
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
}
/// <summary>
/// Removes the first occurence of each item in the specified collection from ObservableCollection(Of T).
/// </summary>
public void RemoveRange(IEnumerable<T> collection)
{
if (collection == null) throw new ArgumentNullException("collection");
foreach (var i in collection) Items.Remove(i);
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
}
/// <summary>
/// Clears the current collection and replaces it with the specified item.
/// </summary>
public void Replace(T item)
{
ReplaceRange(new T[] { item });
}
/// <summary>
/// Clears the current collection and replaces it with the specified collection.
/// </summary>
public void ReplaceRange(IEnumerable<T> collection)
{
if (collection == null) throw new ArgumentNullException("collection");
Items.Clear();
foreach (var i in collection) Items.Add(i);
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
}
/// <summary>
/// Initializes a new instance of the System.Collections.ObjectModel.ObservableCollection(Of T) class.
/// </summary>
public RangeObservableCollection()
: base() { }
/// <summary>
/// Initializes a new instance of the System.Collections.ObjectModel.ObservableCollection(Of T) class that contains elements copied from the specified collection.
/// </summary>
/// <param name="collection">collection: The collection from which the elements are copied.</param>
/// <exception cref="System.ArgumentNullException">The collection parameter cannot be null.</exception>
public RangeObservableCollection(IEnumerable<T> collection)
: base(collection) { }
}
}

29
Package.appxmanifest Normal file
View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
<Identity Name="a13b5573-74eb-437e-864d-d1069d681f5b" Publisher="CN=MarcelPC" Version="1.0.0.0" />
<mp:PhoneIdentity PhoneProductId="a13b5573-74eb-437e-864d-d1069d681f5b" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Properties>
<DisplayName>HospitalServerManager</DisplayName>
<PublisherDisplayName>MarcelPC</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
</Dependencies>
<Resources>
<Resource Language="x-generate" />
</Resources>
<Applications>
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="HospitalServerManager.App">
<uap:VisualElements DisplayName="HospitalServerManager" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="HospitalServerManager" BackgroundColor="transparent">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png">
</uap:DefaultTile>
<uap:SplashScreen Image="Assets\SplashScreen.png" />
</uap:VisualElements>
</Application>
</Applications>
<Capabilities>
<Capability Name="internetClient" />
<uap:Capability Name="enterpriseAuthentication" />
</Capabilities>
</Package>

View File

@ -0,0 +1,29 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("HospitalServerManager")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("HospitalServerManager")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: ComVisible(false)]

31
Properties/Default.rd.xml Normal file
View File

@ -0,0 +1,31 @@
<!--
Ten plik zawiera dyrektywy środowiska uruchomieniowego używane przez środowisko .NET Native. Domyślne wartości w tym miejscu są odpowiednie dla większości
deweloperów. Możesz jednak zmodyfikować te parametry, aby zmodyfikować zachowanie optymalizatora .NET Native
.
Dyrektywy środowiska uruchomieniowego są udokumentowane pod adresem https://go.microsoft.com/fwlink/?LinkID=391919
Aby umożliwić pełne odbicie klasy App1.MyClass i jej wszystkich składowych publicznych/prywatnych, użyj opcji
<Type Name="App1.MyClass" Dynamic="Required All"/>
Aby włączyć dynamiczne tworzenie konkretnego wystąpienia klasy AppClass<T> w elemencie System.Int32, użyj opcji
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
Użycie dyrektywy przestrzeni nazw w celu zastosowania zasad odbicia do wszystkich typów w danej przestrzeni nazw
<Namespace Name="DataClasses.ViewModels" Serialize="All" />
-->
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
<Application>
<!--
Element zestawu z parametrem Name="*Application*" ma zastosowanie do wszystkich zestawów w
pakiecie aplikacji. Gwiazdki nie są symbolami wieloznacznymi.
-->
<Assembly Name="*Application*" Dynamic="Required All" />
<!-- Dodaj tutaj konkretne dyrektywy środowiska uruchomieniowego aplikacji. -->
</Application>
</Directives>

27
View/MainFrameView.xaml Normal file
View File

@ -0,0 +1,27 @@
<Page
x:Class="HospitalServerManager.View.MainFrameView"
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.RowDefinitions>
<RowDefinition Height="70"/>
<RowDefinition/>
</Grid.RowDefinitions>
<CommandBar FlowDirection="LeftToRight" VerticalAlignment="Top" Style="{StaticResource CommandBarRevealStyle}"
Name="navigationBar" Grid.Row="0">
<AppBarButton Icon="Street" Label="Sale" Tag="6" Click="AppBarButton_Click"/>
<AppBarButton Icon="Cut" Label="Operacje" Tag="5" Click="AppBarButton_Click" />
<AppBarButton Icon="Paste" Label="Diagnozy" Tag="4" Click="AppBarButton_Click" />
<AppBarButton Icon="WebCam" Label="Pracownicy" Tag="DoctorsPage" Click="AppBarButton_Click"/>
<AppBarButton Icon="People" Label="Pacjenci" Tag="PatientsPage" Click="AppBarButton_Click" />
<AppBarButton Icon="AddFriend" Label="Przyjęcia" Tag="AdmissionsPage" Click="AppBarButton_Click"/>
</CommandBar>
<Frame Name="mainFrame" Grid.Row="1" Margin="5"/>
</Grid>
</Page>

View File

@ -0,0 +1,35 @@
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 MainFrameView : Page
{
public MainFrameView()
{
this.InitializeComponent();
}
private void AppBarButton_Click(object sender, RoutedEventArgs e)
{
mainFrame.Navigate(typeof(PatientsPage));
//Frame.Navigate(typeof(PatientsPage));
}
}
}

18
View/PatientsPage.xaml Normal file
View File

@ -0,0 +1,18 @@
<Page
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:Name="RosterViewModel"/>
</Page.Resources>
<Grid DataContext="{StaticResource ResourceKey=RosterViewModel}">
<userControls:ColumnListView DataContext="{StaticResource RosterViewModel}" Name="lv"/>
</Grid>
</Page>

31
View/PatientsPage.xaml.cs Normal file
View File

@ -0,0 +1,31 @@
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 PatientsPage : Page
{
public PatientsPage()
{
this.InitializeComponent();
}
}
}

View File

@ -0,0 +1,89 @@
<UserControl
x:Class="HospitalServerManager.View.UserControls.ColumnListView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:HospitalServerManager.View.UserControls"
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"
d:DesignHeight="300"
d:DesignWidth="400">
<UserControl.Resources>
<DataTemplate x:Key="HeaderPatientListViewStyle">
<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>
<DataTemplate x:Key="ItemPatientStyle" x:DataType="viewModel:PatientViewModel">
<Grid >
<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>
</UserControl.Resources>
<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" HeaderTemplate="{StaticResource HeaderPatientListViewStyle}">
</ListView>
<ListView Grid.Row="3" Grid.ColumnSpan="4" Margin="20, 5, 20, 5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
BorderBrush="AliceBlue" BorderThickness="2" ItemsSource="{Binding ModelsCollection}" ItemTemplate="{StaticResource ItemPatientStyle}"
ScrollViewer.VerticalScrollBarVisibility="Auto"
ScrollViewer.IsVerticalRailEnabled="True"
ScrollViewer.VerticalScrollMode="Enabled"
ScrollViewer.HorizontalScrollMode="Enabled"
ScrollViewer.HorizontalScrollBarVisibility="Auto"
ScrollViewer.IsHorizontalRailEnabled="True">
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>
</ListView.ItemContainerStyle>
</ListView>
</Grid>
</UserControl>

View File

@ -0,0 +1,27 @@
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 Kontrolka użytkownika jest udokumentowany na stronie https://go.microsoft.com/fwlink/?LinkId=234236
namespace HospitalServerManager.View.UserControls
{
public sealed partial class ColumnListView : UserControl
{
public ColumnListView()
{
this.InitializeComponent();
}
}
}

View File

@ -0,0 +1,81 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HospitalServerManager.InterfacesAndEnums;
namespace HospitalServerManager.ViewModel.Controllers
{
class DatabaseReader
{
private List<ISqlTableModelable> _ModelsList { get; set; }
public IReadOnlyList<ISqlTableModelable> LastReadedModels { get => _ModelsList; }
public DatabaseReader()
{
_ModelsList = new List<ISqlTableModelable>();
}
/// <summary>
/// Reads the data from the database and write models in LastReadedModels. The model have to implements ISqlTableModelable.
/// </summary>
/// <param name="connectionString">Connection string</param>
/// <param name="sqlCommand">Command to execute</param>
/// <param name="typeOfModel">Type of model</param>
/// <returns>True if reading ends in right way</returns>
public async Task<bool> ReadDataFromDatabase(string connectionString, string sqlCommand, Type typeOfModel)
{
// TODO: Validate if interface is implemented;
using (SqlConnection connection = new SqlConnection(connectionString))
{
try
{
await connection.OpenAsync();
}
catch (Exception e)
{
throw new Exception("Nie ma możliwości połączyć się z DB.");
}
if (connection.State == ConnectionState.Open)
{
using (SqlCommand cmd = connection.CreateCommand())
{
cmd.CommandText = sqlCommand;
// TODO: Dodac validator sprawdzajacy komende?
using (SqlDataReader reader = await cmd.ExecuteReaderAsync())
{
int fieldCount = reader.FieldCount;
_ModelsList.Clear();
//List<ISqlTableModelable> sqlTablesModels = new List<ISqlTableModelable>();
while (await reader.ReadAsync())
{
List<string> valueList = new List<string>();
for (int i = 0; i < fieldCount; i++)
{
if (String.IsNullOrEmpty(reader[i].ToString()))
valueList.Add("NULL");
else
valueList.Add(reader[i].ToString());
}
var model = Activator.CreateInstance(typeOfModel, valueList);
_ModelsList.Add(model as ISqlTableModelable);
}
return true;
}
}
}
return false;
}
}
}
}

View File

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.ViewModel
{
class PatientViewModel
{
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; }
public PatientViewModel(Model.Basic.Patient patient)
{
}
}
}

View File

@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HospitalServerManager.InterfacesAndEnums;
using HospitalServerManager.Model;
namespace HospitalServerManager.ViewModel
{
class RosterViewModel
{
private ModelRoster _Roster { get; set; }
private Controllers.DatabaseReader DbReader { get; set; }
private List<ISqlTableModelable> ModelsList => _Roster.ModelsEnumerable.ToList();
public RangeObservableCollection<ISqlTableModelable> ModelsCollection = new RangeObservableCollection<ISqlTableModelable>();
public RosterViewModel()
{
DbReader = new Controllers.DatabaseReader();
_Roster = new ModelRoster();
Read();
}
public async void Read()
{
await DbReader.ReadDataFromDatabase(@"Data Source=MARCEL\SQLEXPRESS;Initial Catalog = DB_s439397; Integrated Security = true;",
"SELECT * FROM Pacjenci", typeof(Model.Basic.Patient));
_Roster.AddRange(DbReader.LastReadedModels);
ModelsCollection.AddRange(ModelsList);
}
}
}

BIN
bin/x86/Debug/App.xbf Normal file

Binary file not shown.

BIN
bin/x86/Debug/AppX/App.xbf Normal file

Binary file not shown.

View File

@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp build" xmlns:build="http://schemas.microsoft.com/developer/appx/2015/build">
<!--
PLIK MANIFESTU TEGO PROJEKTU JEST GENEROWANY PRZEZ PROCES KOMPILACJI.
Zmiany w pliku zostaną utracone podczas ponownego tworzenia pliku. W celu poprawy błędów należy edytować plik źródłowy .appxmanifest.
Po więcej informacji o plikach manifestu pakietów, zobacz http://go.microsoft.com/fwlink/?LinkID=241727
-->
<Identity Name="a13b5573-74eb-437e-864d-d1069d681f5b" Publisher="CN=MarcelPC" Version="1.0.0.0" ProcessorArchitecture="x86" />
<mp:PhoneIdentity PhoneProductId="a13b5573-74eb-437e-864d-d1069d681f5b" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Properties>
<DisplayName>HospitalServerManager</DisplayName>
<PublisherDisplayName>MarcelPC</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<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" />
</Dependencies>
<Resources>
<Resource Language="PL-PL" />
</Resources>
<Applications>
<Application Id="App" Executable="HospitalServerManager.exe" EntryPoint="HospitalServerManager.App">
<uap:VisualElements DisplayName="HospitalServerManager" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="HospitalServerManager" BackgroundColor="transparent">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"></uap:DefaultTile>
<uap:SplashScreen Image="Assets\SplashScreen.png" />
</uap:VisualElements>
</Application>
</Applications>
<Capabilities>
<Capability Name="internetClient" />
<uap:Capability Name="enterpriseAuthentication" />
</Capabilities>
<build:Metadata>
<build:Item Name="TargetFrameworkMoniker" Value=".NETCore,Version=v5.0" />
<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="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="UseDotNetNativeSharedAssemblyFrameworkPackage" Value="true" />
<build:Item Name="MakePri.exe" Version="10.0.17134.12 (WinBuild.160101.0800)" />
</build:Metadata>
</Package>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

View File

@ -0,0 +1,112 @@
<?xml version="1.0" encoding="utf-8"?>
<Roots >
<Roots.PropertyPathNames>
<RootPropertyPathName Name="ModelsCollection" />
</Roots.PropertyPathNames>
<Roots.RootTypes>
<RootType FullName="Windows.UI.Xaml.Application" />
<RootType FullName="Windows.UI.Xaml.Controls.Page">
<RootProperty Name="Background" />
<RootProperty Name="Content" />
<RootProperty Name="Resources" />
</RootType>
<RootType FullName="Microsoft.Xaml.DirectUI.ProxyTypes.ThemeResourceExtension" />
<RootType FullName="Windows.UI.Xaml.Controls.Grid">
<RootProperty Name="RowDefinitions" />
<RootProperty Name="Children" />
<RootProperty Name="DataContext" />
<RootProperty Name="ColumnDefinitions" />
<RootProperty Name="Margin" />
<RootProperty Name="VerticalAlignment" />
<RootProperty Name="HorizontalAlignment" />
<RootProperty Name="BorderBrush" />
<RootProperty Name="BorderThickness" />
<RootMethod Name="GetRow" />
<RootMethod Name="SetRow" />
<RootMethod Name="GetColumn" />
<RootMethod Name="SetColumn" />
<RootMethod Name="GetColumnSpan" />
<RootMethod Name="SetColumnSpan" />
</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>
<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="Margin" />
<RootProperty Name="Foreground" />
</RootType>
<RootType FullName="Microsoft.Xaml.DirectUI.ProxyTypes.BindExtension" />
<RootType FullName="Windows.UI.Xaml.Controls.ListView">
<RootProperty Name="Margin" />
<RootProperty Name="VerticalAlignment" />
<RootProperty Name="HorizontalAlignment" />
<RootProperty Name="HorizontalContentAlignment" />
<RootProperty Name="HeaderTemplate" />
<RootProperty Name="BorderBrush" />
<RootProperty Name="BorderThickness" />
<RootProperty Name="ItemsSource" />
<RootProperty Name="ItemTemplate" />
<RootProperty Name="ItemContainerStyle" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.ScrollViewer">
<RootMethod Name="GetVerticalScrollBarVisibility" />
<RootMethod Name="SetVerticalScrollBarVisibility" />
<RootMethod Name="GetIsVerticalRailEnabled" />
<RootMethod Name="SetIsVerticalRailEnabled" />
<RootMethod Name="GetVerticalScrollMode" />
<RootMethod Name="SetVerticalScrollMode" />
<RootMethod Name="GetHorizontalScrollMode" />
<RootMethod Name="SetHorizontalScrollMode" />
<RootMethod Name="GetHorizontalScrollBarVisibility" />
<RootMethod Name="SetHorizontalScrollBarVisibility" />
<RootMethod Name="GetIsHorizontalRailEnabled" />
<RootMethod Name="SetIsHorizontalRailEnabled" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Data.Binding" />
<RootType FullName="Windows.UI.Xaml.Controls.ListViewItem" />
<RootType FullName="Windows.UI.Xaml.Controls.Control">
<RootProperty Name="HorizontalContentAlignment" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Setter">
<RootProperty Name="Property" />
<RootProperty Name="Value" />
</RootType>
</Roots.RootTypes>
</Roots>

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,31 @@
<!--
Ten plik zawiera dyrektywy środowiska uruchomieniowego używane przez środowisko .NET Native. Domyślne wartości w tym miejscu są odpowiednie dla większości
deweloperów. Możesz jednak zmodyfikować te parametry, aby zmodyfikować zachowanie optymalizatora .NET Native
.
Dyrektywy środowiska uruchomieniowego są udokumentowane pod adresem https://go.microsoft.com/fwlink/?LinkID=391919
Aby umożliwić pełne odbicie klasy App1.MyClass i jej wszystkich składowych publicznych/prywatnych, użyj opcji
<Type Name="App1.MyClass" Dynamic="Required All"/>
Aby włączyć dynamiczne tworzenie konkretnego wystąpienia klasy AppClass<T> w elemencie System.Int32, użyj opcji
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
Użycie dyrektywy przestrzeni nazw w celu zastosowania zasad odbicia do wszystkich typów w danej przestrzeni nazw
<Namespace Name="DataClasses.ViewModels" Serialize="All" />
-->
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
<Application>
<!--
Element zestawu z parametrem Name="*Application*" ma zastosowanie do wszystkich zestawów w
pakiecie aplikacji. Gwiazdki nie są symbolami wieloznacznymi.
-->
<Assembly Name="*Application*" Dynamic="Required All" />
<!-- Dodaj tutaj konkretne dyrektywy środowiska uruchomieniowego aplikacji. -->
</Application>
</Directives>

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.

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.

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.

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.

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.

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