mirror of
https://github.com/SirLecram/HospitalServerManager
synced 2025-02-18 02:45:54 +01:00
First version of working application
- last changes and visual edit
This commit is contained in:
parent
0806b25c79
commit
f234ec1f26
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3
App.xaml
3
App.xaml
@ -2,6 +2,7 @@
|
||||
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">
|
||||
xmlns:local="using:HospitalServerManager"
|
||||
RequestedTheme="Light">
|
||||
|
||||
</Application>
|
||||
|
@ -100,6 +100,7 @@
|
||||
<Compile Include="InterfacesAndEnums\Interfaces.cs" />
|
||||
<Compile Include="Model\Basic\Admission.cs" />
|
||||
<Compile Include="Model\Controllers\ApiCommandProvider.cs" />
|
||||
<Compile Include="Model\Controllers\SmtpMailSender.cs" />
|
||||
<Compile Include="Model\Controllers\WebService.cs" />
|
||||
<Compile Include="Model\RangeObservableCollection.cs" />
|
||||
<Compile Include="ViewModel\AdmissionViewModel.cs" />
|
||||
@ -112,6 +113,7 @@
|
||||
<Compile Include="Model\Basic\SqlTable.cs" />
|
||||
<Compile Include="Model\Basic\Surgery.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ViewModel\Controllers\MailService.cs" />
|
||||
<Compile Include="ViewModel\Controllers\ViewNavigator.cs" />
|
||||
<Compile Include="ViewModel\DataProvider\NavigationPageTypeProvider.cs" />
|
||||
<Compile Include="ViewModel\DataProvider\TypeProvider.cs" />
|
||||
@ -137,6 +139,9 @@
|
||||
<Compile Include="View\MainFrameView.xaml.cs">
|
||||
<DependentUpon>MainFrameView.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\NewAdmissionPage.xaml.cs">
|
||||
<DependentUpon>NewAdmissionPage.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\NewRecordDialog.xaml.cs">
|
||||
<DependentUpon>NewRecordDialog.xaml</DependentUpon>
|
||||
</Compile>
|
||||
@ -146,8 +151,8 @@
|
||||
<Compile Include="View\RoomsPage.xaml.cs">
|
||||
<DependentUpon>RoomsPage.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\UserControls\ColumnListView.xaml.cs">
|
||||
<DependentUpon>ColumnListView.xaml</DependentUpon>
|
||||
<Compile Include="View\SurgeriesPage.xaml.cs">
|
||||
<DependentUpon>SurgeriesPage.xaml</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@ -191,6 +196,10 @@
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="View\NewAdmissionPage.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="View\NewRecordDialog.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
@ -203,7 +212,7 @@
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="View\UserControls\ColumnListView.xaml">
|
||||
<Page Include="View\SurgeriesPage.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
|
@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net.Mail;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
@ -50,4 +51,9 @@ namespace HospitalServerManager.InterfacesAndEnums
|
||||
IEnumerable<string> GetColumnNames(string tableName);
|
||||
IDictionary<int, string> GetColumnTypesNames(string tableName);
|
||||
}
|
||||
public interface IHasEmailAdress
|
||||
{
|
||||
bool IsEmailAdressInitialized();
|
||||
MailAddress GetEmailAdress();
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net.Mail;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using HospitalServerManager.InterfacesAndEnums;
|
||||
@ -15,6 +16,7 @@ namespace HospitalServerManager.Model.Basic
|
||||
public DateTime BirthDate { get; protected set; }
|
||||
public PatientState PatientState { get; protected set; }
|
||||
public Sex PatientSex { get; protected set; }
|
||||
public MailAddress EmailAdress { get; protected set; }
|
||||
|
||||
protected Patient() : base()
|
||||
{
|
||||
|
@ -1,4 +1,5 @@
|
||||
using HospitalServerManager.InterfacesAndEnums;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@ -25,5 +26,15 @@ namespace HospitalServerManager.Model.Basic
|
||||
Cost = decimal.Parse(listOfValues[4]);
|
||||
Refoundation = int.Parse(listOfValues[5]) > 100 ? 100 : int.Parse(listOfValues[5]);
|
||||
}
|
||||
[JsonConstructor]
|
||||
protected Surgery(string operationID, string name, string averageTime, string operationType, decimal cost, int refoundation)
|
||||
:base(operationID, "Id_operacji", new List<string>())
|
||||
{
|
||||
SurgeryName = name;
|
||||
AverageTime = TimeSpan.Parse(averageTime);
|
||||
KindOfSurgery = operationType.GetEnumFromDescription<SurgeryKind>();
|
||||
Cost = cost;
|
||||
Refoundation = refoundation;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
65
Model/Controllers/SmtpMailSender.cs
Normal file
65
Model/Controllers/SmtpMailSender.cs
Normal file
@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Mail;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Windows.UI.Popups;
|
||||
|
||||
namespace HospitalServerManager.Model.Controllers
|
||||
{
|
||||
class SmtpMailSender
|
||||
{
|
||||
private MailAddress userEmail;
|
||||
SmtpClient emailClient = new SmtpClient("smtp-mail.outlook.com", 587);
|
||||
public SmtpMailSender()
|
||||
{
|
||||
// TODO: Więcej interfejsów !
|
||||
emailClient.Credentials = new NetworkCredential("margrz29@st.amu.edu.pl", "M@rce!7364818M");
|
||||
userEmail = new MailAddress("margrz29@st.amu.edu.pl");
|
||||
/*emailClient.Credentials = new NetworkCredential("konstancja01@wp.pl", "mikapako12");
|
||||
userEmail = new MailAddress("konstancja01@wp.pl");*/
|
||||
/*emailClient.Credentials = new NetworkCredential("emailforapplication@o2.pl", "emailforapp");
|
||||
userEmail = new MailAddress("emailforapplication@o2.pl");*/
|
||||
emailClient.UseDefaultCredentials = false;
|
||||
}
|
||||
public SmtpMailSender(string userName, string password)
|
||||
{
|
||||
userEmail = new MailAddress(userName);
|
||||
emailClient.EnableSsl = true;
|
||||
emailClient.Credentials = new NetworkCredential(userName, password);
|
||||
}
|
||||
public async Task SendEmailAsync(string sendTo, string textBody, string subject)
|
||||
{
|
||||
// TODO: Dodać walidację !
|
||||
MailMessage mailMessage = new MailMessage("margrz29@st.amu.edu.pl", "margrz29@st.amu.edu.pl"/*userEmail, new MailAddress(sendTo)*/);
|
||||
mailMessage.Body = textBody;
|
||||
mailMessage.Subject = subject;
|
||||
emailClient.DeliveryMethod = SmtpDeliveryMethod.Network;
|
||||
//emailClient.DeliveryMethod = SmtpDeliveryMethod.Network;
|
||||
//await emailClient.SendMailAsync(mailMessage);
|
||||
await SendEmailAsync(mailMessage);
|
||||
}
|
||||
public async Task SendEmailAsync(MailMessage completeMailMessage)
|
||||
{
|
||||
// TODO: Dodać walidację !
|
||||
emailClient.SendCompleted += EmailClient_SendCompleted;
|
||||
emailClient.Send(completeMailMessage);
|
||||
}
|
||||
|
||||
private void EmailClient_SendCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
|
||||
{
|
||||
// TODO: Dodać Cancell
|
||||
var token = e.UserState;
|
||||
if (e.Error != null)
|
||||
{
|
||||
new MessageDialog("ERRORS : " + e.Error.ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
new MessageDialog("EMAIL SEND : " + token.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -108,6 +108,9 @@ namespace HospitalServerManager.Model.Controllers
|
||||
using (var response = await httpClient.SendAsync(message))
|
||||
{
|
||||
response.EnsureSuccessStatusCode();
|
||||
var str = await response.Content.ReadAsStringAsync();
|
||||
if (str == "ERROR")
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -118,6 +121,9 @@ namespace HospitalServerManager.Model.Controllers
|
||||
using (var response = await httpClient.SendAsync(message))
|
||||
{
|
||||
response.EnsureSuccessStatusCode();
|
||||
var str = await response.Content.ReadAsStringAsync();
|
||||
if(str == "ERROR")
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -128,6 +134,9 @@ namespace HospitalServerManager.Model.Controllers
|
||||
using (var response = await httpClient.SendAsync(message))
|
||||
{
|
||||
response.EnsureSuccessStatusCode();
|
||||
var str = await response.Content.ReadAsStringAsync();
|
||||
if (str == "ERROR")
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ namespace HospitalServerManager.Model
|
||||
public IDictionary<int, string> ColumnTypes { get; private set; }
|
||||
public Dictionary<string, Type> EnumTypes { get; protected set; }
|
||||
public IEnumerable<ISqlTableModel> ModelsEnumerable { get => _modelsList; }
|
||||
//private Controllers.DatabaseReader DatabaseReader = new Controllers.DatabaseReader();
|
||||
|
||||
public ModelRoster()
|
||||
{
|
||||
ActualTableName = string.Empty;
|
||||
@ -37,8 +37,30 @@ namespace HospitalServerManager.Model
|
||||
/*ColumnNames = await GetColumnNames();
|
||||
ColumnTypes = await GetColumnTypes();*/
|
||||
IEnumerable<ISqlTableModel> response = new List<ISqlTableModel>();
|
||||
if(tableName == "Pacjenci") response = await webService.GetRecordAsync<Patient>(tableName);
|
||||
else if(tableName == "Lekarze") response = await webService.GetRecordAsync<Doctor>(tableName);
|
||||
switch (tableName)
|
||||
{
|
||||
case "Przyjecia":
|
||||
response = await webService.GetRecordAsync<Admission>(tableName);
|
||||
break;
|
||||
case "Pacjenci":
|
||||
response = await webService.GetRecordAsync<Patient>(tableName);
|
||||
break;
|
||||
case "Lekarze":
|
||||
response = await webService.GetRecordAsync<Doctor>(tableName);
|
||||
break;
|
||||
case "Diagnozy":
|
||||
response = await webService.GetRecordAsync<Diagnosis>(tableName);
|
||||
break;
|
||||
case "Operacje":
|
||||
response = await webService.GetRecordAsync<Surgery>(tableName);
|
||||
break;
|
||||
case "Sale":
|
||||
response = await webService.GetRecordAsync<Room>(tableName);
|
||||
break;
|
||||
default:
|
||||
response = null;
|
||||
break;
|
||||
}
|
||||
_modelsList.AddRange(response);
|
||||
}
|
||||
public async Task<IEnumerable<string>> GetColumnNames(string tableName)
|
||||
@ -58,15 +80,17 @@ namespace HospitalServerManager.Model
|
||||
ColumnTypes = await webService.GetColumnTypesAsync(ActualTableName);
|
||||
return ColumnTypes;
|
||||
}
|
||||
public async void CreateRecord(string tableName, IEnumerable<string> valueList)
|
||||
public async Task CreateRecordAsync(string tableName, IEnumerable<string> valueList)
|
||||
{
|
||||
await webService.CreateNewRecordAsync(tableName, valueList);
|
||||
if (!await webService.CreateNewRecordAsync(tableName, valueList))
|
||||
await new MessageDialog("Wystąpił błąd, sprawdź poprawność danych").ShowAsync();
|
||||
}
|
||||
public async void UpdateRecord(string tableName, string primaryKey, string primaryKeyName, string fieldToUpdate, string valueToUpdate)
|
||||
public async Task UpdateRecordAsync(string tableName, string primaryKey, string primaryKeyName, string fieldToUpdate, string valueToUpdate)
|
||||
{
|
||||
await webService.UpdateRecordAsync(tableName, primaryKey, primaryKeyName, fieldToUpdate, valueToUpdate);
|
||||
if(!await webService.UpdateRecordAsync(tableName, primaryKey, primaryKeyName, fieldToUpdate, valueToUpdate))
|
||||
await new MessageDialog("Wystąpił błąd, sprawdź poprawność danych").ShowAsync();
|
||||
}
|
||||
public async void DeleteRecord(string tableName, SqlTable modelToDelete)
|
||||
public async Task DeleteRecordAsync(string tableName, SqlTable modelToDelete)
|
||||
{
|
||||
if(!(modelToDelete is Admission))
|
||||
{
|
||||
@ -81,15 +105,17 @@ namespace HospitalServerManager.Model
|
||||
response = await mDialog.ShowAsync();
|
||||
if (response == mDialog.Commands.First())
|
||||
{
|
||||
DeleteRecord("Przyjecia", modelToDelete.PrimaryKey, GetForeignKeyNameFromAdmissionsTable(tableName));
|
||||
DeleteRecord(tableName, modelToDelete.PrimaryKey, modelToDelete.PrimaryKeyName);
|
||||
await DeleteRecord("Przyjecia", modelToDelete.PrimaryKey, GetForeignKeyNameFromAdmissionsTable(tableName));
|
||||
await DeleteRecord(tableName, modelToDelete.PrimaryKey, modelToDelete.PrimaryKeyName);
|
||||
}
|
||||
}
|
||||
else
|
||||
await DeleteRecord(tableName, modelToDelete.PrimaryKey, modelToDelete.PrimaryKeyName);
|
||||
}
|
||||
else
|
||||
DeleteRecord(tableName, modelToDelete.PrimaryKey, modelToDelete.PrimaryKeyName);
|
||||
await DeleteRecord(tableName, modelToDelete.PrimaryKey, modelToDelete.PrimaryKeyName);
|
||||
}
|
||||
private async void DeleteRecord(string tableName, string primaryKey, string primaryKeyName)
|
||||
private async Task DeleteRecord(string tableName, string primaryKey, string primaryKeyName)
|
||||
{
|
||||
await webService.DeleteRecordAsync(tableName, primaryKey, primaryKeyName);
|
||||
}
|
||||
@ -199,6 +225,7 @@ namespace HospitalServerManager.Model
|
||||
}
|
||||
_modelsList.AddRange(response);
|
||||
}
|
||||
|
||||
public async Task Search(string tableName, string orderBy, string criterium, string searchIn, string searchValue)
|
||||
{
|
||||
_modelsList.Clear();
|
||||
|
@ -7,7 +7,7 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Loaded="Page_Loaded">
|
||||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||
<Page.Resources>
|
||||
<viewmodel:RosterViewModel x:Name="RosterViewModel"/>
|
||||
</Page.Resources>
|
||||
@ -31,7 +31,7 @@
|
||||
<TextBlock Text="Przyjęcia" HorizontalAlignment="Left" Margin="15, 5, 0, 0" FontSize="20"
|
||||
VerticalAlignment="Top" Name="pageTitle" Grid.ColumnSpan="2"/>
|
||||
<StackPanel Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center">
|
||||
<Button Content="Nowy rekord" Margin="30, 0, 30, 0" Grid.Row="1" Click="NewRecordButton_Click" Width="150"/>
|
||||
<Button Content="Nowy rekord" Margin="30, 0, 30, 0" Grid.Row="1" Width="150" Name="btnNewRecord"/>
|
||||
<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>
|
||||
@ -88,8 +88,6 @@
|
||||
<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"
|
||||
@ -116,15 +114,15 @@
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="ID przyjęcia" Margin="8,0" Foreground="DarkRed" Grid.Column="0"/>
|
||||
<TextBlock Text="Data przyjęcia" Foreground="DarkRed" Grid.Column="1"/>
|
||||
<TextBlock Text="Data zwolnienia" Foreground="DarkRed" Grid.Column="2"/>
|
||||
<TextBlock Text="Pesel pacjenta" Foreground="DarkRed" Grid.Column="3"/>
|
||||
<TextBlock Text="Symbol diagnozy" Foreground="DarkRed" Grid.Column="4"/>
|
||||
<TextBlock Text="ID lekarza" Foreground="DarkRed" Grid.Column="5"/>
|
||||
<TextBlock Text="ID operacji" Foreground="DarkRed" Grid.Column="6"/>
|
||||
<TextBlock Text="Nr pokoju" Foreground="DarkRed" Grid.Column="7"/>
|
||||
<TextBlock Text="Planowane?" Foreground="DarkRed" Grid.Column="8"/>
|
||||
<TextBlock Text="ID przyjęcia" Margin="8,0" Foreground="DarkRed" Grid.Column="0" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Data przyjęcia" Foreground="DarkRed" Grid.Column="1" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Data zwolnienia" Foreground="DarkRed" Grid.Column="2" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Pesel pacjenta" Foreground="DarkRed" Grid.Column="3" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Symbol diagnozy" Foreground="DarkRed" Grid.Column="4" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="ID lekarza" Foreground="DarkRed" Grid.Column="5" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="ID operacji" Foreground="DarkRed" Grid.Column="6" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Nr pokoju" Foreground="DarkRed" Grid.Column="7" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Planowane?" Foreground="DarkRed" Grid.Column="8" HorizontalAlignment="Center"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListView.HeaderTemplate>
|
||||
@ -154,25 +152,25 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Name="ItemId"
|
||||
<TextBlock Name="ItemId" HorizontalAlignment="Center"
|
||||
Text="{x:Bind PrimaryKey}"
|
||||
Grid.Column="0" />
|
||||
<TextBlock Name="ItemName"
|
||||
<TextBlock Name="ItemName" HorizontalAlignment="Center"
|
||||
Text="{x:Bind AdmissionDate}"
|
||||
Grid.Column="1"/>
|
||||
<TextBlock Text="{x:Bind LeavingDate}"
|
||||
<TextBlock Text="{x:Bind LeavingDate}" HorizontalAlignment="Center"
|
||||
Grid.Column="2"/>
|
||||
<TextBlock Text="{x:Bind PatientPESEL}"
|
||||
<TextBlock Text="{x:Bind PatientPESEL}" HorizontalAlignment="Center"
|
||||
Grid.Column="3"/>
|
||||
<TextBlock Text="{x:Bind DiagnosisSymbol}"
|
||||
<TextBlock Text="{x:Bind DiagnosisSymbol}" HorizontalAlignment="Center"
|
||||
Grid.Column="4"/>
|
||||
<TextBlock Text="{x:Bind MainDoctor}"
|
||||
<TextBlock Text="{x:Bind MainDoctor}" HorizontalAlignment="Center"
|
||||
Grid.Column="5"/>
|
||||
<TextBlock Text="{x:Bind OperationID}"
|
||||
<TextBlock Text="{x:Bind OperationID}" HorizontalAlignment="Center"
|
||||
Grid.Column="6"/>
|
||||
<TextBlock Text="{x:Bind RoomNumber}"
|
||||
<TextBlock Text="{x:Bind RoomNumber}" HorizontalAlignment="Center"
|
||||
Grid.Column="7"/>
|
||||
<TextBlock Text="{x:Bind IsPlanned}"
|
||||
<TextBlock Text="{x:Bind IsPlanned}" HorizontalAlignment="Center"
|
||||
Grid.Column="8"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
|
@ -2,17 +2,9 @@
|
||||
using HospitalServerManager.ViewModel;
|
||||
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
|
||||
@ -37,7 +29,7 @@ namespace HospitalServerManager.View
|
||||
if (dialogResult == ContentDialogResult.Primary && createDialog.ValuesOfNewObject.Any())
|
||||
{
|
||||
List<string> valuesList = createDialog.ValuesOfNewObject;
|
||||
RosterViewModel.CreateRecord("Przyjecia", valuesList);
|
||||
await RosterViewModel.CreateRecordAsync("Przyjecia", valuesList);
|
||||
}
|
||||
}
|
||||
private async void EditRecord()
|
||||
@ -51,7 +43,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
string result = dialog.Result;
|
||||
string fieldToEdit = dialog.FieldToUpdate;
|
||||
RosterViewModel.UpdateRecord("Przyjecia", admission, fieldToEdit, result);
|
||||
await RosterViewModel.UpdateRecordAsync("Przyjecia", admission, fieldToEdit, result);
|
||||
}
|
||||
}
|
||||
public void Sort(string orderBy, string criterium)
|
||||
@ -101,15 +93,15 @@ namespace HospitalServerManager.View
|
||||
|
||||
private async void ResetButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
await RosterViewModel.Read(typeof(AdmissionViewModel), "Przyjecia");
|
||||
await RosterViewModel.ReadAsync(typeof(AdmissionViewModel), "Przyjecia");
|
||||
}
|
||||
|
||||
private void DeleteButton_Click(object sender, RoutedEventArgs e)
|
||||
private async void DeleteButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (databaseView.SelectedItem != null)
|
||||
{
|
||||
var admission = databaseView.SelectedItem as IPrimaryKeyGetable;
|
||||
RosterViewModel.DeleteRecord("Przyjecia", admission);
|
||||
await RosterViewModel.DeleteRecordAsync("Przyjecia", admission);
|
||||
}
|
||||
}
|
||||
|
||||
@ -119,29 +111,20 @@ namespace HospitalServerManager.View
|
||||
EditRecord();
|
||||
}
|
||||
|
||||
private void NewRecordButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
NewRecord();
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected async override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
//await RosterViewModel.Read(typeof(AdmissionViewModel), "Przyjecia");
|
||||
await RosterViewModel.InitializeViewModels("Przyjecia");
|
||||
await RosterViewModel.InitializeViewModelsAsync("Przyjecia");
|
||||
databaseView.ItemsSource = RosterViewModel.ModelsCollection;
|
||||
lookInComboBox.ItemsSource = sortComboBox.ItemsSource = RosterViewModel.ColumnNames;
|
||||
lookInComboBox.SelectedIndex = sortComboBox.SelectedIndex = 0;
|
||||
}
|
||||
|
||||
private async void Page_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
;
|
||||
btnNewRecord.Click += (sender, x) => (e.Parameter as Action).Invoke();
|
||||
}
|
||||
|
||||
public void UnloadPage()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Lekarze" HorizontalAlignment="Left" Margin="15, 5, 0, 0" FontSize="20"
|
||||
<TextBlock Text="Diagnozy" HorizontalAlignment="Left" Margin="15, 5, 0, 0" FontSize="20"
|
||||
VerticalAlignment="Top" Name="pageTitle" Grid.ColumnSpan="2"/>
|
||||
<StackPanel Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center">
|
||||
<Button Content="Nowy rekord" Margin="30, 0, 30, 0" Grid.Row="1" Click="NewRecordButton_Click" Width="150"/>
|
||||
@ -85,8 +85,6 @@
|
||||
<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"
|
||||
@ -102,16 +100,16 @@
|
||||
<DataTemplate >
|
||||
<Grid >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="0.8*" />
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="ID diagnozy" Margin="8,0" Foreground="DarkRed" Grid.Column="0"/>
|
||||
<TextBlock Text="Nazwa diagnozy" Foreground="DarkRed" Grid.Column="1"/>
|
||||
<TextBlock Text="Dziedzina chirurgii" Foreground="DarkRed" Grid.Column="2"/>
|
||||
<TextBlock Text="Opis" Foreground="DarkRed" Grid.Column="3"/>
|
||||
<TextBlock Text="ID diagnozy" Margin="8,0" Foreground="DarkRed" Grid.Column="0" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Nazwa diagnozy" Foreground="DarkRed" Grid.Column="1" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Dziedzina chirurgii" Foreground="DarkRed" Grid.Column="2" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Opis" Foreground="DarkRed" Grid.Column="3" HorizontalAlignment="Center"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListView.HeaderTemplate>
|
||||
@ -131,20 +129,20 @@
|
||||
|
||||
<Grid Name="valueStoreGrid">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="0.8*"/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Name="ItemId"
|
||||
Text="{x:Bind PrimaryKey}"
|
||||
Text="{x:Bind PrimaryKey}" HorizontalAlignment="Center"
|
||||
Grid.Column="0"/>
|
||||
<TextBlock Name="ItemName"
|
||||
<TextBlock Name="ItemName" HorizontalAlignment="Center"
|
||||
Text="{x:Bind Name}"
|
||||
Grid.Column="1" />
|
||||
<TextBlock Text="{x:Bind FieldOfSurgery}"
|
||||
<TextBlock Text="{x:Bind FieldOfSurgery}" HorizontalAlignment="Center"
|
||||
Grid.Column="2" />
|
||||
<TextBlock Text="{x:Bind Description}"
|
||||
<TextBlock Text="{x:Bind Description}" HorizontalAlignment="Center"
|
||||
Grid.Column="3"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
|
@ -37,7 +37,7 @@ namespace HospitalServerManager.View
|
||||
if (dialogResult == ContentDialogResult.Primary && createDialog.ValuesOfNewObject.Any())
|
||||
{
|
||||
List<string> valuesList = createDialog.ValuesOfNewObject;
|
||||
RosterViewModel.CreateRecord("Diagnozy", valuesList);
|
||||
await RosterViewModel.CreateRecordAsync("Diagnozy", valuesList);
|
||||
}
|
||||
}
|
||||
private async void EditRecord()
|
||||
@ -51,7 +51,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
string result = dialog.Result;
|
||||
string fieldToEdit = dialog.FieldToUpdate;
|
||||
RosterViewModel.UpdateRecord("Diagnozy", diagnosis, fieldToEdit, result);
|
||||
await RosterViewModel.UpdateRecordAsync("Diagnozy", diagnosis, fieldToEdit, result);
|
||||
}
|
||||
}
|
||||
public void Sort(string orderBy, string criterium)
|
||||
@ -101,15 +101,15 @@ namespace HospitalServerManager.View
|
||||
|
||||
private async void ResetButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
await RosterViewModel.Read(typeof(DiagnosisViewModel), "Diagnozy");
|
||||
await RosterViewModel.ReadAsync(typeof(DiagnosisViewModel), "Diagnozy");
|
||||
}
|
||||
|
||||
private void DeleteButton_Click(object sender, RoutedEventArgs e)
|
||||
private async void DeleteButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (databaseView.SelectedItem != null)
|
||||
{
|
||||
var diagnosis = databaseView.SelectedItem as IPrimaryKeyGetable;
|
||||
RosterViewModel.DeleteRecord("Diagnozy", diagnosis);
|
||||
await RosterViewModel.DeleteRecordAsync("Diagnozy", diagnosis);
|
||||
}
|
||||
}
|
||||
|
||||
@ -128,7 +128,7 @@ namespace HospitalServerManager.View
|
||||
protected async override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
//await RosterViewModel.Read(typeof(DiagnosisViewModel), "Diagnozy");
|
||||
await RosterViewModel.InitializeViewModels("Diagnozy");
|
||||
await RosterViewModel.InitializeViewModelsAsync("Diagnozy");
|
||||
databaseView.ItemsSource = RosterViewModel.ModelsCollection;
|
||||
lookInComboBox.ItemsSource = sortComboBox.ItemsSource = RosterViewModel.ColumnNames;
|
||||
lookInComboBox.SelectedIndex = sortComboBox.SelectedIndex = 0;
|
||||
|
@ -88,8 +88,6 @@
|
||||
<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"
|
||||
@ -106,21 +104,21 @@
|
||||
<Grid >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="0.15*"/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition Width="0.5*"/>
|
||||
<ColumnDefinition Width="0.8*"/>
|
||||
<ColumnDefinition Width="0.8*"/>
|
||||
<ColumnDefinition Width="0.7*"/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="Id" Margin="8,0" Foreground="DarkRed" Grid.Column="0"/>
|
||||
<TextBlock Text="Imię" Foreground="DarkRed" Grid.Column="1"/>
|
||||
<TextBlock Text="Nazwisko" Foreground="DarkRed" Grid.Column="2"/>
|
||||
<TextBlock Text="Stopień naukowy" Foreground="DarkRed" Grid.Column="3"/>
|
||||
<TextBlock Text="Specjalizacja" Foreground="DarkRed" Grid.Column="4"/>
|
||||
<TextBlock Text="Data zatrudnienia" Foreground="DarkRed" Grid.Column="5"/>
|
||||
<TextBlock Text="Stanowisko" Foreground="DarkRed" Grid.Column="6"/>
|
||||
<TextBlock Text="Id" Margin="8,0" Foreground="DarkRed" Grid.Column="0" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Imię" Foreground="DarkRed" Grid.Column="1" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Nazwisko" Foreground="DarkRed" Grid.Column="2" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Stopień naukowy" Foreground="DarkRed" Grid.Column="3" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Specjalizacja" Foreground="DarkRed" Grid.Column="4" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Data zatrudnienia" Foreground="DarkRed" Grid.Column="5" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Stanowisko" Foreground="DarkRed" Grid.Column="6" HorizontalAlignment="Center"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListView.HeaderTemplate>
|
||||
@ -141,28 +139,28 @@
|
||||
<Grid Name="valueStoreGrid">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="0.15*"/>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="0.5*"/>
|
||||
<ColumnDefinition Width="0.8*"/>
|
||||
<ColumnDefinition Width="0.8*"/>
|
||||
<ColumnDefinition Width="0.7*"/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Name="ItemId"
|
||||
<TextBlock Name="ItemId" HorizontalAlignment="Center"
|
||||
Text="{x:Bind PrimaryKey}"
|
||||
Grid.Column="0" FontSize="12"/>
|
||||
<TextBlock Name="ItemName"
|
||||
<TextBlock Name="ItemName" HorizontalAlignment="Center"
|
||||
Text="{x:Bind Name}"
|
||||
Grid.Column="1" FontSize="12"/>
|
||||
<TextBlock Text="{x:Bind Surname}"
|
||||
<TextBlock Text="{x:Bind Surname}" HorizontalAlignment="Center"
|
||||
Grid.Column="2" FontSize="12"/>
|
||||
<TextBlock Text="{x:Bind AdacemicDegree}"
|
||||
<TextBlock Text="{x:Bind AdacemicDegree}" HorizontalAlignment="Center"
|
||||
Grid.Column="3" FontSize="12"/>
|
||||
<TextBlock Text="{x:Bind MedicalSpecialization}"
|
||||
<TextBlock Text="{x:Bind MedicalSpecialization}" HorizontalAlignment="Center"
|
||||
Grid.Column="4" FontSize="12"/>
|
||||
<TextBlock Text="{x:Bind EmploymentDate}"
|
||||
<TextBlock Text="{x:Bind EmploymentDate}" HorizontalAlignment="Center"
|
||||
Grid.Column="5" FontSize="12"/>
|
||||
<TextBlock Text="{x:Bind JobPosition}"
|
||||
<TextBlock Text="{x:Bind JobPosition}" HorizontalAlignment="Center"
|
||||
Grid.Column="6" FontSize="12"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
|
@ -38,7 +38,7 @@ namespace HospitalServerManager.View
|
||||
if (dialogResult == ContentDialogResult.Primary && createDialog.ValuesOfNewObject.Any())
|
||||
{
|
||||
List<string> valuesList = createDialog.ValuesOfNewObject;
|
||||
RosterViewModel.CreateRecord("Lekarze", valuesList);
|
||||
await RosterViewModel.CreateRecordAsync("Lekarze", valuesList);
|
||||
}
|
||||
}
|
||||
private async void EditRecord()
|
||||
@ -52,7 +52,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
string result = dialog.Result;
|
||||
string fieldToEdit = dialog.FieldToUpdate;
|
||||
RosterViewModel.UpdateRecord("Lekarze", doctor, fieldToEdit, result);
|
||||
await RosterViewModel.UpdateRecordAsync("Lekarze", doctor, fieldToEdit, result);
|
||||
}
|
||||
}
|
||||
public void Sort(string orderBy, string criterium)
|
||||
@ -102,15 +102,15 @@ namespace HospitalServerManager.View
|
||||
|
||||
private async void ResetButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
await RosterViewModel.Read(typeof(DoctorViewModel), "Lekarze");
|
||||
await RosterViewModel.ReadAsync(typeof(DoctorViewModel), "Lekarze");
|
||||
}
|
||||
|
||||
private void DeleteButton_Click(object sender, RoutedEventArgs e)
|
||||
private async void DeleteButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (databaseView.SelectedItem != null)
|
||||
{
|
||||
var doctor = databaseView.SelectedItem as IPrimaryKeyGetable;
|
||||
RosterViewModel.DeleteRecord("Lekarze", doctor);
|
||||
await RosterViewModel.DeleteRecordAsync("Lekarze", doctor);
|
||||
}
|
||||
}
|
||||
|
||||
@ -129,7 +129,7 @@ namespace HospitalServerManager.View
|
||||
protected async override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
//await RosterViewModel.Read(typeof(DoctorViewModel), "Lekarze");
|
||||
await RosterViewModel.InitializeViewModels("Lekarze");
|
||||
await RosterViewModel.InitializeViewModelsAsync("Lekarze");
|
||||
databaseView.ItemsSource = RosterViewModel.ModelsCollection;
|
||||
lookInComboBox.ItemsSource = sortComboBox.ItemsSource = RosterViewModel.ColumnNames;
|
||||
lookInComboBox.SelectedIndex = sortComboBox.SelectedIndex = 0;
|
||||
|
@ -14,9 +14,9 @@
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<CommandBar FlowDirection="LeftToRight" VerticalAlignment="Top" Style="{StaticResource CommandBarRevealStyle}"
|
||||
Name="navigationBar" Grid.Row="0">
|
||||
Name="navigationBar" Grid.Row="0" IsOpen="True" IsSticky="True">
|
||||
<AppBarButton Icon="Street" Label="Sale" Tag="RoomsPage" Click="AppBarButton_Click"/>
|
||||
<AppBarButton Icon="Cut" Label="Operacje" Tag="SurgerionPage" Click="AppBarButton_Click" />
|
||||
<AppBarButton Icon="Cut" Label="Operacje" Tag="SurgeriesPage" Click="AppBarButton_Click" />
|
||||
<AppBarButton Icon="Paste" Label="Diagnozy" Tag="DiagnosesPage" Click="AppBarButton_Click" />
|
||||
<AppBarButton Icon="WebCam" Label="Pracownicy" Tag="DoctorsPage" Click="AppBarButton_Click"/>
|
||||
<AppBarButton Icon="People" Label="Pacjenci" Tag="PatientsPage" Click="AppBarButton_Click" />
|
||||
|
@ -19,7 +19,8 @@ using Windows.UI.Xaml.Navigation;
|
||||
|
||||
namespace HospitalServerManager.View
|
||||
{
|
||||
/// WebService powinien byc chyba wlasciwoscia w roznych kontrolerach np. GetController/PutController itp.
|
||||
/// WebService powinien byc chyba wlasciwoscia w roznych kontrolerach np. GetController/PutController itp.; Obsługa błędów !! Np. Error z servera;
|
||||
/// Reload rekordów po edit i update; Testy w insert i update głupich wartości; Może ten email??;
|
||||
public sealed partial class MainFrameView : Page
|
||||
{
|
||||
private INavigator Navigator { get; set; }
|
||||
@ -32,10 +33,16 @@ namespace HospitalServerManager.View
|
||||
private void AppBarButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
string pageTypeName = (sender as AppBarButton).Tag.ToString();
|
||||
if(pageTypeName == "AdmissionsPage")
|
||||
{
|
||||
Navigator.SetParameter(new Action(() => Navigator.ChangeFrame(typeof(NewAdmissionPage), mainFrame)));
|
||||
}
|
||||
Type pageType = TypeProvider.GetTypeFromString(pageTypeName);
|
||||
|
||||
IPageNavigateable page = Navigator.ChangeFrame(pageType, mainFrame);
|
||||
}
|
||||
Navigator.RemoveParameters();
|
||||
navigationBar.IsOpen = navigationBar.IsSticky = true;
|
||||
}
|
||||
private void InitializeProperties()
|
||||
{
|
||||
IValidateIfInterfaceIsImplemented validator = new ViewModel.Validators.InterfaceImplementValidator();
|
||||
@ -45,11 +52,13 @@ namespace HospitalServerManager.View
|
||||
new List<Type>
|
||||
{
|
||||
typeof(PatientsPage), typeof(DoctorsPage), typeof(AdmissionsPage), typeof(DiagnosesPage),
|
||||
typeof(RoomsPage),
|
||||
typeof(RoomsPage), typeof(SurgeriesPage), typeof(NewAdmissionPage),
|
||||
});
|
||||
Navigator.SetParameter(new Action(() => Navigator.ChangeFrame(typeof(NewAdmissionPage), mainFrame)));
|
||||
Type pageType = TypeProvider.GetTypeFromString("AdmissionsPage");
|
||||
|
||||
Navigator.ChangeFrame(pageType, mainFrame);
|
||||
Navigator.RemoveParameters();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
50
View/NewAdmissionPage.xaml
Normal file
50
View/NewAdmissionPage.xaml
Normal file
@ -0,0 +1,50 @@
|
||||
<Page
|
||||
x:Class="HospitalServerManager.View.NewAdmissionPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:HospitalServerManager.View"
|
||||
xmlns:viewmodel="using:HospitalServerManager.ViewModel"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||
<Page.Resources>
|
||||
<viewmodel:RosterViewModel x:Name="RosterViewModel"/>
|
||||
</Page.Resources>
|
||||
<Grid Margin="60" Name="grid">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Name="lastAdmission" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center"
|
||||
FontSize="18"/>
|
||||
<TextBox Name="tbID" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
||||
<DatePicker Name="admissionDate" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
||||
<DatePicker Name="leavingDate" Grid.Row="3" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
||||
<ComboBox Name="patientsId" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
||||
<ComboBox Name="diagnosisSymbol" Grid.Row="5" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
||||
<ComboBox Name="mainDoctorId" Grid.Row="6" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
||||
<ComboBox Name="operationId" Grid.Row="7" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
||||
<ComboBox Name="roomNumber" Grid.Row="8" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
||||
<StackPanel Grid.Row="9" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
|
||||
<RadioButton Name="trueCheckBox" Content="TRUE" IsChecked="True"/>
|
||||
<RadioButton Name="falseCheckBox" Content="FALSE"/>
|
||||
</StackPanel>
|
||||
<Button Content="Sprawdź poprawność danych i potwierdź" Grid.Row="10" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center"
|
||||
FontSize="17" Click="Button_Click"/>
|
||||
</Grid>
|
||||
|
||||
</Page>
|
102
View/NewAdmissionPage.xaml.cs
Normal file
102
View/NewAdmissionPage.xaml.cs
Normal file
@ -0,0 +1,102 @@
|
||||
using HospitalServerManager.InterfacesAndEnums;
|
||||
using HospitalServerManager.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices.WindowsRuntime;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
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 NewAdmissionPage : Page, IPageNavigateable
|
||||
{
|
||||
private List<FrameworkElement> guiElements = new List<FrameworkElement>();
|
||||
public NewAdmissionPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
public void UnloadPage()
|
||||
{
|
||||
;
|
||||
}
|
||||
|
||||
protected async override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
await RosterViewModel.InitializeViewModelsAsync("Przyjecia");
|
||||
GenerateGUI();
|
||||
InitializeValues();
|
||||
}
|
||||
private async void InitializeValues()
|
||||
{
|
||||
await RosterViewModel.ReadAsync(typeof(AdmissionViewModel), "Przyjecia");
|
||||
lastAdmission.Text = "Ostatnie przyjęcie - " + RosterViewModel.ModelsCollection.Last().ToString();
|
||||
await RosterViewModel.GetDataWithoutSaveAsync(typeof(PatientViewModel), "Pacjenci");
|
||||
patientsId.ItemsSource = new List<IPrimaryKeyGetable>(RosterViewModel.ModelsCollection);
|
||||
patientsId.SelectedIndex = 0;
|
||||
await RosterViewModel.GetDataWithoutSaveAsync(typeof(DiagnosisViewModel), "Diagnozy");
|
||||
diagnosisSymbol.ItemsSource = new List<IPrimaryKeyGetable>(RosterViewModel.ModelsCollection);
|
||||
diagnosisSymbol.SelectedIndex = 0;
|
||||
await RosterViewModel.GetDataWithoutSaveAsync(typeof(DoctorViewModel), "Lekarze");
|
||||
mainDoctorId.ItemsSource = new List<IPrimaryKeyGetable>(RosterViewModel.ModelsCollection);
|
||||
mainDoctorId.SelectedIndex = 0;
|
||||
await RosterViewModel.GetDataWithoutSaveAsync(typeof(SurgeryViewModel), "Operacje");
|
||||
operationId.ItemsSource = new List<IPrimaryKeyGetable>(RosterViewModel.ModelsCollection);
|
||||
operationId.SelectedIndex = 0;
|
||||
await RosterViewModel.GetDataWithoutSaveAsync(typeof(RoomViewModel), "Sale");
|
||||
roomNumber.ItemsSource = new List<IPrimaryKeyGetable>(RosterViewModel.ModelsCollection);
|
||||
roomNumber.SelectedIndex = 0;
|
||||
}
|
||||
private async void GenerateGUI()
|
||||
{
|
||||
var columnList = RosterViewModel.ColumnNames.ToList();
|
||||
for(int i = 0; i<RosterViewModel.ColumnNames.Count(); i++)
|
||||
{
|
||||
var tb = new TextBlock();
|
||||
tb.Text = columnList[i];
|
||||
tb.FontSize = 18;
|
||||
grid.Children.Add(tb);
|
||||
Grid.SetRow(tb, i + 1);
|
||||
tb.HorizontalAlignment = HorizontalAlignment.Center;
|
||||
tb.VerticalAlignment = VerticalAlignment.Center;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private async void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
RosterViewModel.SetActualViewModel(typeof(AdmissionViewModel));
|
||||
if(tbID.Text != string.Empty)
|
||||
{
|
||||
var valuesList = new[] {
|
||||
tbID.Text, admissionDate.Date.ToString(), leavingDate.Date.ToString(),
|
||||
(patientsId.SelectedItem as IPrimaryKeyGetable).GetPrimaryKey(),
|
||||
(diagnosisSymbol.SelectedItem as IPrimaryKeyGetable).GetPrimaryKey(),
|
||||
(mainDoctorId.SelectedItem as IPrimaryKeyGetable).GetPrimaryKey(),
|
||||
(operationId.SelectedItem as IPrimaryKeyGetable).GetPrimaryKey(),
|
||||
(roomNumber.SelectedItem as IPrimaryKeyGetable).GetPrimaryKey(),
|
||||
(bool)trueCheckBox.IsChecked ? "true" : "false",
|
||||
};
|
||||
await RosterViewModel.CreateRecordAsync("Przyjecia", valuesList);
|
||||
await RosterViewModel.ReadAsync(typeof(AdmissionViewModel), "Przyjecia");
|
||||
lastAdmission.Text = "Ostatnie przyjęcie - " + RosterViewModel.ModelsCollection.Last().ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -89,8 +89,7 @@
|
||||
<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"/>
|
||||
<Button Name="sendEmailToSelected" Content="WYSLIJ MAILA" Grid.Row="2" Grid.Column="2" Click="SendEmailToSelected_Click" />
|
||||
|
||||
</Grid>
|
||||
<Grid Grid.Row="3" Grid.ColumnSpan="4" Margin="20, 5, 20, 5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
|
||||
|
@ -34,7 +34,7 @@ namespace HospitalServerManager.View
|
||||
if (dialogResult == ContentDialogResult.Primary && createDialog.ValuesOfNewObject.Any())
|
||||
{
|
||||
List<string> valuesList = createDialog.ValuesOfNewObject;
|
||||
RosterViewModel.CreateRecord("Pacjenci", valuesList);
|
||||
await RosterViewModel.CreateRecordAsync("Pacjenci", valuesList);
|
||||
}
|
||||
}
|
||||
private async void EditRecord()
|
||||
@ -48,7 +48,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
string result = dialog.Result;
|
||||
string fieldToEdit = dialog.FieldToUpdate;
|
||||
RosterViewModel.UpdateRecord("Pacjenci", patient, fieldToEdit, result);
|
||||
await RosterViewModel.UpdateRecordAsync("Pacjenci", patient, fieldToEdit, result);
|
||||
}
|
||||
}
|
||||
public void Sort(string orderBy, string criterium)
|
||||
@ -97,15 +97,15 @@ namespace HospitalServerManager.View
|
||||
|
||||
private async void ResetButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
await RosterViewModel.Read(typeof(PatientViewModel), "Pacjenci");
|
||||
await RosterViewModel.ReadAsync(typeof(PatientViewModel), "Pacjenci");
|
||||
}
|
||||
|
||||
private void DeleteButton_Click(object sender, RoutedEventArgs e)
|
||||
private async void DeleteButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (databaseView.SelectedItem != null)
|
||||
{
|
||||
var patient = databaseView.SelectedItem as IPrimaryKeyGetable;
|
||||
RosterViewModel.DeleteRecord("Pacjenci", patient);
|
||||
await RosterViewModel.DeleteRecordAsync("Pacjenci", patient);
|
||||
}
|
||||
}
|
||||
|
||||
@ -124,7 +124,7 @@ namespace HospitalServerManager.View
|
||||
protected async override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
//await RosterViewModel.Read(typeof(PatientViewModel), "Pacjenci");
|
||||
await RosterViewModel.InitializeViewModels("Pacjenci");
|
||||
await RosterViewModel.InitializeViewModelsAsync("Pacjenci");
|
||||
databaseView.ItemsSource = RosterViewModel.ModelsCollection;
|
||||
lookInComboBox.ItemsSource = sortComboBox.ItemsSource = RosterViewModel.ColumnNames;
|
||||
lookInComboBox.SelectedIndex = sortComboBox.SelectedIndex = 0;
|
||||
@ -141,5 +141,10 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
;
|
||||
}
|
||||
|
||||
private void SendEmailToSelected_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
RosterViewModel.SendEmailAsync(databaseView.SelectedItem as PatientViewModel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Lekarze" HorizontalAlignment="Left" Margin="15, 5, 0, 0" FontSize="20"
|
||||
<TextBlock Text="Sale" HorizontalAlignment="Left" Margin="15, 5, 0, 0" FontSize="20"
|
||||
VerticalAlignment="Top" Name="pageTitle" Grid.ColumnSpan="2"/>
|
||||
<StackPanel Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center">
|
||||
<Button Content="Nowy rekord" Margin="30, 0, 30, 0" Grid.Row="1" Click="NewRecordButton_Click" Width="150"/>
|
||||
@ -86,8 +86,6 @@
|
||||
<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"
|
||||
@ -108,9 +106,9 @@
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="Numer sali" Margin="8,0" Foreground="DarkRed" Grid.Column="0"/>
|
||||
<TextBlock Text="Ilość łóżek" Foreground="DarkRed" Grid.Column="1"/>
|
||||
<TextBlock Text="Intensywna opieka?" Foreground="DarkRed" Grid.Column="2"/>
|
||||
<TextBlock Text="Numer sali" Margin="8,0" Foreground="DarkRed" Grid.Column="0" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Ilość łóżek" Foreground="DarkRed" Grid.Column="1" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Intensywna opieka?" Foreground="DarkRed" Grid.Column="2" HorizontalAlignment="Center"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListView.HeaderTemplate>
|
||||
@ -135,12 +133,12 @@
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Name="ItemId"
|
||||
Text="{x:Bind PrimaryKey}"
|
||||
Grid.Column="0"/>
|
||||
<TextBlock Text="{x:Bind PlacesNumber}"
|
||||
Grid.Column="1" />
|
||||
<TextBlock Text="{x:Bind IsSpecialCare}"
|
||||
Grid.Column="2"/>
|
||||
Text="{x:Bind PrimaryKey}" FontSize="18"
|
||||
Grid.Column="0" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="{x:Bind PlacesNumber}" FontSize="18"
|
||||
Grid.Column="1" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="{x:Bind IsSpecialCare}" FontSize="18"
|
||||
Grid.Column="2" HorizontalAlignment="Center"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListView.ItemTemplate>
|
||||
|
@ -37,7 +37,7 @@ namespace HospitalServerManager.View
|
||||
if (dialogResult == ContentDialogResult.Primary && createDialog.ValuesOfNewObject.Any())
|
||||
{
|
||||
List<string> valuesList = createDialog.ValuesOfNewObject;
|
||||
RosterViewModel.CreateRecord("Sale", valuesList);
|
||||
RosterViewModel.CreateRecordAsync("Sale", valuesList);
|
||||
}
|
||||
}
|
||||
private async void EditRecord()
|
||||
@ -51,7 +51,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
string result = dialog.Result;
|
||||
string fieldToEdit = dialog.FieldToUpdate;
|
||||
RosterViewModel.UpdateRecord("Sale", room, fieldToEdit, result);
|
||||
await RosterViewModel.UpdateRecordAsync("Sale", room, fieldToEdit, result);
|
||||
}
|
||||
}
|
||||
public void Sort(string orderBy, string criterium)
|
||||
@ -101,15 +101,15 @@ namespace HospitalServerManager.View
|
||||
|
||||
private async void ResetButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
await RosterViewModel.Read(typeof(RoomViewModel), "Sale");
|
||||
await RosterViewModel.ReadAsync(typeof(RoomViewModel), "Sale");
|
||||
}
|
||||
|
||||
private void DeleteButton_Click(object sender, RoutedEventArgs e)
|
||||
private async void DeleteButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (databaseView.SelectedItem != null)
|
||||
{
|
||||
var room = databaseView.SelectedItem as IPrimaryKeyGetable;
|
||||
RosterViewModel.DeleteRecord("Sale", room);
|
||||
await RosterViewModel.DeleteRecordAsync("Sale", room);
|
||||
}
|
||||
}
|
||||
|
||||
@ -128,7 +128,7 @@ namespace HospitalServerManager.View
|
||||
protected async override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
//await RosterViewModel.Read(typeof(RoomViewModel), "Sale");
|
||||
await RosterViewModel.InitializeViewModels("Sale");
|
||||
await RosterViewModel.InitializeViewModelsAsync("Sale");
|
||||
databaseView.ItemsSource = RosterViewModel.ModelsCollection;
|
||||
lookInComboBox.ItemsSource = sortComboBox.ItemsSource = RosterViewModel.ColumnNames;
|
||||
lookInComboBox.SelectedIndex = sortComboBox.SelectedIndex = 0;
|
||||
|
172
View/SurgeriesPage.xaml
Normal file
172
View/SurgeriesPage.xaml
Normal file
@ -0,0 +1,172 @@
|
||||
<Page
|
||||
x:Class="HospitalServerManager.View.SurgeriesPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:HospitalServerManager.View"
|
||||
xmlns:viewmodel="using:HospitalServerManager.ViewModel"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Loaded="Page_Loaded">
|
||||
<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="Operacje" HorizontalAlignment="Left" Margin="15, 5, 0, 0" FontSize="20"
|
||||
VerticalAlignment="Top" Name="pageTitle" Grid.ColumnSpan="2"/>
|
||||
<StackPanel Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center">
|
||||
<Button 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>
|
||||
|
||||
</Grid>
|
||||
<Grid Grid.Row="3" Grid.ColumnSpan="4" Margin="20, 5, 20, 5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
|
||||
BorderBrush="AliceBlue" BorderThickness="2" >
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<ListView Grid.Row="0" Margin="20, 5, 20, 5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
|
||||
HorizontalContentAlignment="Stretch">
|
||||
<ListView.HeaderTemplate >
|
||||
|
||||
<DataTemplate >
|
||||
<Grid >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="0.15*"/>
|
||||
<ColumnDefinition Width="1.3*"/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="Id" Margin="8,0" Foreground="DarkRed" Grid.Column="0" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Nazwa" Foreground="DarkRed" Grid.Column="1" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Średni czas" Foreground="DarkRed" Grid.Column="2" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Dziedzina" Foreground="DarkRed" Grid.Column="3" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Koszt" Foreground="DarkRed" Grid.Column="4" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Refundacja (%)" Foreground="DarkRed" Grid.Column="5" HorizontalAlignment="Center"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListView.HeaderTemplate>
|
||||
</ListView>
|
||||
<ListView 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:SurgeryViewModel">
|
||||
|
||||
<Grid Name="valueStoreGrid">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="0.15*"/>
|
||||
<ColumnDefinition Width="1.3*"/>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Name="ItemId"
|
||||
Text="{x:Bind PrimaryKey}" HorizontalAlignment="Center"
|
||||
Grid.Column="0" FontSize="12"/>
|
||||
<TextBlock Name="ItemName"
|
||||
Text="{x:Bind SurgeryName}" HorizontalAlignment="Center"
|
||||
Grid.Column="1" FontSize="12"/>
|
||||
<TextBlock Text="{x:Bind AverageTime}" HorizontalAlignment="Center"
|
||||
Grid.Column="2" FontSize="12"/>
|
||||
<TextBlock Text="{x:Bind KindOfSurgery}" HorizontalAlignment="Center"
|
||||
Grid.Column="3" FontSize="12"/>
|
||||
<TextBlock Text="{x:Bind Cost}" HorizontalAlignment="Center"
|
||||
Grid.Column="4" FontSize="12"/>
|
||||
<TextBlock Text="{x:Bind Refoundation}" HorizontalAlignment="Center"
|
||||
Grid.Column="5" FontSize="12"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListView.ItemTemplate>
|
||||
<ListView.ItemContainerStyle>
|
||||
<Style TargetType="ListViewItem">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||
</Style>
|
||||
</ListView.ItemContainerStyle>
|
||||
|
||||
</ListView>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Page>
|
147
View/SurgeriesPage.xaml.cs
Normal file
147
View/SurgeriesPage.xaml.cs
Normal file
@ -0,0 +1,147 @@
|
||||
using HospitalServerManager.InterfacesAndEnums;
|
||||
using HospitalServerManager.ViewModel;
|
||||
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 SurgeriesPage : Page, IPageNavigateable
|
||||
{
|
||||
public SurgeriesPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
private async void NewRecord()
|
||||
{
|
||||
Dictionary<int, string> typesOfColumnDictionary = (Dictionary<int, string>)RosterViewModel.ColumnTypes;
|
||||
NewRecordDialog createDialog = new NewRecordDialog(RosterViewModel.ColumnNames, typesOfColumnDictionary,
|
||||
RosterViewModel.EnumTypes);
|
||||
ContentDialogResult dialogResult = await createDialog.ShowAsync();
|
||||
if (dialogResult == ContentDialogResult.Primary && createDialog.ValuesOfNewObject.Any())
|
||||
{
|
||||
List<string> valuesList = createDialog.ValuesOfNewObject;
|
||||
await RosterViewModel.CreateRecordAsync("Operacje", valuesList);
|
||||
}
|
||||
}
|
||||
private async void EditRecord()
|
||||
{
|
||||
SurgeryViewModel surgery = databaseView.SelectedItem as SurgeryViewModel;
|
||||
string textToTitle = "Edytowany rekord: " + surgery.PrimaryKey + " " + surgery.SurgeryName;
|
||||
EditRecordDialog dialog = new EditRecordDialog(RosterViewModel.ColumnNames, RosterViewModel.ColumnTypes, textToTitle,
|
||||
RosterViewModel.EnumTypes);
|
||||
ContentDialogResult dialogResult = await dialog.ShowAsync();
|
||||
if (dialogResult == ContentDialogResult.Primary && !string.IsNullOrEmpty(dialog.Result))
|
||||
{
|
||||
string result = dialog.Result;
|
||||
string fieldToEdit = dialog.FieldToUpdate;
|
||||
await RosterViewModel.UpdateRecordAsync("Operacje", surgery, fieldToEdit, result);
|
||||
}
|
||||
}
|
||||
public void Sort(string orderBy, string criterium)
|
||||
{
|
||||
RosterViewModel.Sort(typeof(SurgeryViewModel), "Operacje", orderBy, criterium);
|
||||
}
|
||||
public void Search(string orderBy, string criterium, string searchIn, string searchValue)
|
||||
{
|
||||
RosterViewModel.Search(typeof(SurgeryViewModel), "Operacje", orderBy, criterium, searchIn, searchValue);
|
||||
}
|
||||
|
||||
#region Events
|
||||
|
||||
private void SortComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
string criterium;
|
||||
if ((bool)radioBtn1.IsChecked)
|
||||
criterium = "asc";
|
||||
else
|
||||
criterium = "desc";
|
||||
Sort(sortComboBox.SelectedItem.ToString(), criterium);
|
||||
}
|
||||
|
||||
private void RadionBtn_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
string criterium;
|
||||
if ((bool)radioBtn1.IsChecked)
|
||||
criterium = "asc";
|
||||
else
|
||||
criterium = "desc";
|
||||
Sort(sortComboBox.SelectedItem.ToString(), criterium);
|
||||
}
|
||||
|
||||
private void SearchButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (searchBox.Text == string.Empty)
|
||||
return;
|
||||
string criterium;
|
||||
if ((bool)radioBtn1.IsChecked)
|
||||
criterium = "asc";
|
||||
else
|
||||
criterium = "desc";
|
||||
string searchIn = lookInComboBox.SelectedItem.ToString();
|
||||
string searchedExpression = searchBox.Text;
|
||||
Search(sortComboBox.SelectedItem.ToString(), criterium, searchIn, searchedExpression);
|
||||
}
|
||||
|
||||
private async void ResetButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
await RosterViewModel.ReadAsync(typeof(SurgeryViewModel), "Operacje");
|
||||
}
|
||||
|
||||
private async void DeleteButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (databaseView.SelectedItem != null)
|
||||
{
|
||||
var surgery = databaseView.SelectedItem as IPrimaryKeyGetable;
|
||||
await RosterViewModel.DeleteRecordAsync("Operacje", surgery);
|
||||
}
|
||||
}
|
||||
|
||||
private void EditButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (databaseView.SelectedItem != null)
|
||||
EditRecord();
|
||||
}
|
||||
|
||||
private void NewRecordButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
NewRecord();
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected async override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
//await RosterViewModel.Read(typeof(SurgeryViewModel), "Operacje");
|
||||
await RosterViewModel.InitializeViewModelsAsync("Operacje");
|
||||
databaseView.ItemsSource = RosterViewModel.ModelsCollection;
|
||||
lookInComboBox.ItemsSource = sortComboBox.ItemsSource = RosterViewModel.ColumnNames;
|
||||
lookInComboBox.SelectedIndex = sortComboBox.SelectedIndex = 0;
|
||||
}
|
||||
|
||||
private async void Page_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
;
|
||||
}
|
||||
|
||||
public void UnloadPage()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,89 +0,0 @@
|
||||
<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>
|
@ -1,27 +0,0 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
@ -12,8 +12,8 @@ namespace HospitalServerManager.ViewModel
|
||||
{
|
||||
private Admission model;
|
||||
public string PrimaryKey { get => model.PrimaryKey; }
|
||||
public DateTime AdmissionDate { get => model.AdmissionDate; }
|
||||
public DateTime? LeavingDate { get => model.LeavingDate; }
|
||||
public string AdmissionDate { get => model.AdmissionDate.ToShortDateString(); }
|
||||
public string LeavingDate { get => model.LeavingDate.HasValue ? ((DateTime)model.LeavingDate).ToShortDateString() : string.Empty; }
|
||||
public string PatientPESEL { get => model.PatientPESEL; }
|
||||
public string DiagnosisSymbol { get => model.DiagnosisSymbol; }
|
||||
public int MainDoctor { get => model.MainDoctor; }
|
||||
@ -35,5 +35,9 @@ namespace HospitalServerManager.ViewModel
|
||||
{
|
||||
return model.PrimaryKeyName;
|
||||
}
|
||||
public override string ToString()
|
||||
{
|
||||
return "Nr " + PrimaryKey + " | " + AdmissionDate + " | Pacjent: " + PatientPESEL + " Lekarz: " + MainDoctor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
12
ViewModel/Controllers/MailService.cs
Normal file
12
ViewModel/Controllers/MailService.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HospitalServerManager.ViewModel.Controllers
|
||||
{
|
||||
class MailService
|
||||
{
|
||||
}
|
||||
}
|
@ -30,5 +30,9 @@ namespace HospitalServerManager.ViewModel
|
||||
{
|
||||
return model.PrimaryKeyName;
|
||||
}
|
||||
public override string ToString()
|
||||
{
|
||||
return PrimaryKey + " " + Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ namespace HospitalServerManager.ViewModel
|
||||
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 EmploymentDate { get => model.DateOfEmployment.ToShortDateString(); }
|
||||
public string JobPosition { get => model._JobPosition.GetEnumDescription(); }
|
||||
|
||||
public DoctorViewModel(Doctor model)
|
||||
@ -33,5 +33,9 @@ namespace HospitalServerManager.ViewModel
|
||||
{
|
||||
return model.PrimaryKeyName;
|
||||
}
|
||||
public override string ToString()
|
||||
{
|
||||
return PrimaryKey + " " + Name + " " + Surname;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3,21 +3,23 @@ using HospitalServerManager.Model.Basic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net.Mail;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HospitalServerManager.ViewModel
|
||||
{
|
||||
//Zmienic interfejs na taki dla viewmodeli
|
||||
class PatientViewModel : IPrimaryKeyGetable
|
||||
class PatientViewModel : IPrimaryKeyGetable, IHasEmailAdress
|
||||
{
|
||||
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 BirthDate { get => model.BirthDate.ToShortDateString(); }
|
||||
public string PatientState { get => model.PatientState.GetEnumDescription(); }
|
||||
public string PatientSex { get => model.PatientSex.GetEnumDescription(); }
|
||||
public string EmailAdress { get => model.EmailAdress.Address; }
|
||||
|
||||
public PatientViewModel(Patient patient)
|
||||
{
|
||||
@ -33,5 +35,20 @@ namespace HospitalServerManager.ViewModel
|
||||
{
|
||||
return model.PrimaryKeyName;
|
||||
}
|
||||
}
|
||||
public override string ToString()
|
||||
{
|
||||
return PrimaryKey + " " + Name + " " + Surname;
|
||||
}
|
||||
|
||||
public bool IsEmailAdressInitialized()
|
||||
{
|
||||
var resp = model.EmailAdress.Address != string.Empty ? true : false;
|
||||
return true; // TODO: Po testach zmienc
|
||||
}
|
||||
|
||||
public MailAddress GetEmailAdress()
|
||||
{
|
||||
return new MailAddress("paker_7@o2.pl");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -29,5 +29,9 @@ namespace HospitalServerManager.ViewModel
|
||||
{
|
||||
return model.PrimaryKeyName;
|
||||
}
|
||||
public override string ToString()
|
||||
{
|
||||
return "Sala nr" + PrimaryKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -14,67 +14,92 @@ namespace HospitalServerManager.ViewModel
|
||||
{
|
||||
private ModelRoster _Roster { get; set; }
|
||||
private Controllers.DatabaseReader DbReader { get; set; }
|
||||
private Type ActualViewModelType { get; set; }
|
||||
private List<ISqlTableModel> ModelsList => _Roster.ModelsEnumerable.ToList();
|
||||
public RangeObservableCollection<IPrimaryKeyGetable> ModelsCollection = new RangeObservableCollection<IPrimaryKeyGetable>();
|
||||
public IEnumerable<string> ColumnNames { get => _Roster.ColumnNames; }
|
||||
public IDictionary<int, string> ColumnTypes { get => _Roster.ColumnTypes; }
|
||||
public Dictionary<string, Type> EnumTypes { get => _Roster.EnumTypes; }
|
||||
private SmtpMailSender mailSender = new SmtpMailSender();
|
||||
private Func<Task> lastReadMethod ;
|
||||
|
||||
public RosterViewModel()
|
||||
{
|
||||
DbReader = new Controllers.DatabaseReader();
|
||||
_Roster = new ModelRoster();
|
||||
//Read(typeof(PatientViewModel));
|
||||
}
|
||||
public async Task Read(Type viewModel, string tableName)
|
||||
{
|
||||
public void SetActualViewModel(Type viewModel)
|
||||
{
|
||||
ActualViewModelType = viewModel;
|
||||
}
|
||||
private void RefreshRecords()
|
||||
{
|
||||
ModelsCollection.Clear();
|
||||
List<IPrimaryKeyGetable> lista = new List<IPrimaryKeyGetable>();
|
||||
await _Roster.ReadModels(tableName);
|
||||
ModelsList.ToList().ForEach(model => lista.Add((IPrimaryKeyGetable)Activator.CreateInstance(viewModel, model)));
|
||||
List<IPrimaryKeyGetable> lista = new List<IPrimaryKeyGetable>();
|
||||
ModelsList.ToList().ForEach(model => lista.Add((IPrimaryKeyGetable)Activator.CreateInstance(ActualViewModelType, model)));
|
||||
ModelsCollection.AddRange(lista);
|
||||
return;
|
||||
}
|
||||
public async Task ReadAsync(Type viewModel, string tableName)
|
||||
{
|
||||
/*ModelsCollection.Clear();
|
||||
ActualViewModelType = viewModel;*/
|
||||
lastReadMethod = async () => await _Roster.ReadModels(tableName);
|
||||
await GetDataWithoutSaveAsync(viewModel, tableName);
|
||||
//RefreshRecords();
|
||||
}
|
||||
public async Task InitializeViewModels(string tableName)
|
||||
public async Task GetDataWithoutSaveAsync(Type viewModel, string tableName)
|
||||
{
|
||||
ModelsCollection.Clear();
|
||||
ActualViewModelType = viewModel;
|
||||
await _Roster.ReadModels(tableName);
|
||||
RefreshRecords();
|
||||
}
|
||||
public async Task InitializeViewModelsAsync(string tableName)
|
||||
{
|
||||
await _Roster.GetColumnNames(tableName);
|
||||
await _Roster.GetColumnTypes(tableName);
|
||||
}
|
||||
private async Task GetColumnNames(string tableName)
|
||||
private async Task GetColumnNamesAsync(string tableName)
|
||||
{
|
||||
await _Roster.GetColumnNames(tableName);
|
||||
}
|
||||
public void CreateRecord(string tableName, IEnumerable<string> valuesList)
|
||||
public async Task CreateRecordAsync(string tableName, IEnumerable<string> valuesList)
|
||||
{
|
||||
_Roster.CreateRecord(tableName, valuesList);
|
||||
await _Roster.CreateRecordAsync(tableName, valuesList);
|
||||
await lastReadMethod();
|
||||
RefreshRecords();
|
||||
}
|
||||
public void UpdateRecord(string tableName, IPrimaryKeyGetable viewModel, string fieldToUpdate, string valueToUpdate)
|
||||
public async Task UpdateRecordAsync(string tableName, IPrimaryKeyGetable viewModel, string fieldToUpdate, string valueToUpdate)
|
||||
{
|
||||
_Roster.UpdateRecord(tableName, viewModel.GetPrimaryKey(), viewModel.GetPrimaryKeyName() , fieldToUpdate, valueToUpdate);
|
||||
await _Roster.UpdateRecordAsync(tableName, viewModel.GetPrimaryKey(), viewModel.GetPrimaryKeyName() , fieldToUpdate, valueToUpdate);
|
||||
await lastReadMethod();
|
||||
RefreshRecords();
|
||||
}
|
||||
public void DeleteRecord(string tableName, IPrimaryKeyGetable viewModel)
|
||||
public async Task DeleteRecordAsync(string tableName, IPrimaryKeyGetable viewModel)
|
||||
{
|
||||
var actualModelType = ModelsList[0].GetType();
|
||||
var sqlModelToDelete = ModelsList.Where(x => (x as SqlTable).PrimaryKey == viewModel.GetPrimaryKey()).First();
|
||||
_Roster.DeleteRecord(tableName, sqlModelToDelete as SqlTable);
|
||||
await _Roster.DeleteRecordAsync(tableName, sqlModelToDelete as SqlTable);
|
||||
await lastReadMethod();
|
||||
RefreshRecords();
|
||||
}
|
||||
public async void Sort(Type viewModel, string tableName, string orderBy, string criterium)
|
||||
{
|
||||
ModelsCollection.Clear();
|
||||
List<IPrimaryKeyGetable> lista = new List<IPrimaryKeyGetable>();
|
||||
await _Roster.Sort(tableName, orderBy, criterium);
|
||||
ModelsList.ToList().ForEach(model => lista.Add((IPrimaryKeyGetable)Activator.CreateInstance(viewModel, model)));
|
||||
ModelsCollection.AddRange(lista);
|
||||
return;
|
||||
ActualViewModelType = viewModel;
|
||||
await (lastReadMethod = async () => await _Roster.Sort(tableName, orderBy, criterium)).Invoke();
|
||||
RefreshRecords();
|
||||
}
|
||||
public async void Search(Type viewModel, string tableName, string orderBy, string criterium, string searchIn, string searchValue)
|
||||
{
|
||||
ModelsCollection.Clear();
|
||||
List<IPrimaryKeyGetable> lista = new List<IPrimaryKeyGetable>();
|
||||
ActualViewModelType = viewModel;
|
||||
await _Roster.Search(tableName, orderBy, criterium, searchIn, searchValue);
|
||||
ModelsList.ToList().ForEach(model => lista.Add((IPrimaryKeyGetable)Activator.CreateInstance(viewModel, model)));
|
||||
ModelsCollection.AddRange(lista);
|
||||
return;
|
||||
RefreshRecords();
|
||||
}
|
||||
public async void SendEmailAsync(IHasEmailAdress sendToModel)
|
||||
{
|
||||
await mailSender.SendEmailAsync(sendToModel.GetEmailAdress().Address, "WIADOMOSC TESTOWA", "TEMAT TEST");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -32,5 +32,9 @@ namespace HospitalServerManager.ViewModel
|
||||
{
|
||||
return model.PrimaryKeyName;
|
||||
}
|
||||
public override string ToString()
|
||||
{
|
||||
return PrimaryKey + " " + SurgeryName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,10 +1,9 @@
|
||||
<?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.Application">
|
||||
<RootProperty Name="RequestedTheme" />
|
||||
</RootType>
|
||||
<RootType FullName="Windows.UI.Xaml.Controls.Page">
|
||||
<RootProperty Name="Background" />
|
||||
<RootProperty Name="Resources" />
|
||||
@ -66,7 +65,6 @@
|
||||
<RootProperty Name="BorderThickness" />
|
||||
<RootProperty Name="ItemTemplate" />
|
||||
<RootProperty Name="ItemContainerStyle" />
|
||||
<RootProperty Name="ItemsSource" />
|
||||
</RootType>
|
||||
<RootType FullName="Windows.UI.Xaml.Controls.ScrollViewer">
|
||||
<RootMethod Name="GetVerticalScrollBarVisibility" />
|
||||
@ -106,14 +104,6 @@
|
||||
<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" />
|
||||
@ -128,6 +118,16 @@
|
||||
<RootProperty Name="VerticalAlignment" />
|
||||
<RootProperty Name="Margin" />
|
||||
</RootType>
|
||||
<RootType FullName="Windows.UI.Xaml.Controls.Button">
|
||||
<RootProperty Name="Content" />
|
||||
<RootProperty Name="HorizontalAlignment" />
|
||||
<RootProperty Name="Margin" />
|
||||
<RootProperty Name="Name" />
|
||||
<RootProperty Name="Width" />
|
||||
<RootProperty Name="VerticalAlignment" />
|
||||
<RootProperty Name="FontSize" />
|
||||
<RootEvent Name="Click" />
|
||||
</RootType>
|
||||
<RootType FullName="HospitalServerManager.View.AdmissionsPage" />
|
||||
<RootType FullName="HospitalServerManager.View.DiagnosesPage" />
|
||||
<RootType FullName="HospitalServerManager.View.DoctorsPage" />
|
||||
@ -147,6 +147,8 @@
|
||||
<RootProperty Name="FlowDirection" />
|
||||
<RootProperty Name="VerticalAlignment" />
|
||||
<RootProperty Name="Style" />
|
||||
<RootProperty Name="IsOpen" />
|
||||
<RootProperty Name="IsSticky" />
|
||||
<RootProperty Name="PrimaryCommands" />
|
||||
</RootType>
|
||||
<RootType FullName="Windows.UI.Xaml.Controls.Frame">
|
||||
@ -161,14 +163,15 @@
|
||||
<RootEvent Name="Click" />
|
||||
</RootType>
|
||||
<RootType FullName="HospitalServerManager.View.MainFrameView" />
|
||||
<RootType FullName="Windows.UI.Xaml.Controls.DatePicker">
|
||||
<RootProperty Name="Name" />
|
||||
<RootProperty Name="HorizontalAlignment" />
|
||||
<RootProperty Name="VerticalAlignment" />
|
||||
</RootType>
|
||||
<RootType FullName="HospitalServerManager.View.NewAdmissionPage" />
|
||||
<RootType FullName="HospitalServerManager.View.NewRecordDialog" />
|
||||
<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" />
|
||||
<RootType FullName="HospitalServerManager.View.SurgeriesPage" />
|
||||
</Roots.RootTypes>
|
||||
</Roots>
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
bin/x86/Debug/AppX/View/NewAdmissionPage.xbf
Normal file
BIN
bin/x86/Debug/AppX/View/NewAdmissionPage.xbf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
bin/x86/Debug/AppX/View/SurgeriesPage.xbf
Normal file
BIN
bin/x86/Debug/AppX/View/SurgeriesPage.xbf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -30,13 +30,13 @@
|
||||
<AppXManifest Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\Core\AppxManifest.xml">
|
||||
<PackagePath>AppxManifest.xml</PackagePath>
|
||||
<ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
|
||||
<Modified>2019-01-06T18:01:50.131</Modified>
|
||||
<Modified>2019-01-11T21:26:47.854</Modified>
|
||||
</AppXManifest>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\HospitalServerManager.exe">
|
||||
<PackagePath>entrypoint\HospitalServerManager.exe</PackagePath>
|
||||
<Modified>2019-01-06T18:01:49.804</Modified>
|
||||
<Modified>2019-01-11T21:26:47.533</Modified>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\.nuget\packages\newtonsoft.json\12.0.1\lib\netstandard2.0\Newtonsoft.Json.dll">
|
||||
<PackagePath>Newtonsoft.Json.dll</PackagePath>
|
||||
@ -738,47 +738,51 @@
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\HospitalServerManager.xr.xml">
|
||||
<PackagePath>HospitalServerManager.xr.xml</PackagePath>
|
||||
<Modified>2019-01-06T14:54:13.864</Modified>
|
||||
<Modified>2019-01-11T21:23:02.163</Modified>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\App.xbf">
|
||||
<PackagePath>App.xbf</PackagePath>
|
||||
<Modified>2019-01-06T18:01:49.561</Modified>
|
||||
<Modified>2019-01-11T21:26:47.293</Modified>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\AdmissionsPage.xbf">
|
||||
<PackagePath>View\AdmissionsPage.xbf</PackagePath>
|
||||
<Modified>2019-01-06T18:01:49.561</Modified>
|
||||
<Modified>2019-01-11T21:26:47.293</Modified>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\DiagnosesPage.xbf">
|
||||
<PackagePath>View\DiagnosesPage.xbf</PackagePath>
|
||||
<Modified>2019-01-06T18:01:49.562</Modified>
|
||||
<Modified>2019-01-11T21:26:47.293</Modified>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\DoctorsPage.xbf">
|
||||
<PackagePath>View\DoctorsPage.xbf</PackagePath>
|
||||
<Modified>2019-01-06T18:01:49.562</Modified>
|
||||
<Modified>2019-01-11T21:26:47.293</Modified>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\EditRecordDialog.xbf">
|
||||
<PackagePath>View\EditRecordDialog.xbf</PackagePath>
|
||||
<Modified>2019-01-06T18:01:49.562</Modified>
|
||||
<Modified>2019-01-11T21:26:47.293</Modified>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\MainFrameView.xbf">
|
||||
<PackagePath>View\MainFrameView.xbf</PackagePath>
|
||||
<Modified>2019-01-06T18:01:49.562</Modified>
|
||||
<Modified>2019-01-11T21:26:47.294</Modified>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\NewAdmissionPage.xbf">
|
||||
<PackagePath>View\NewAdmissionPage.xbf</PackagePath>
|
||||
<Modified>2019-01-11T21:26:47.294</Modified>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\NewRecordDialog.xbf">
|
||||
<PackagePath>View\NewRecordDialog.xbf</PackagePath>
|
||||
<Modified>2019-01-06T18:01:49.562</Modified>
|
||||
<Modified>2019-01-11T21:26:47.294</Modified>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\PatientsPage.xbf">
|
||||
<PackagePath>View\PatientsPage.xbf</PackagePath>
|
||||
<Modified>2019-01-06T18:01:49.563</Modified>
|
||||
<Modified>2019-01-11T21:26:47.294</Modified>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\RoomsPage.xbf">
|
||||
<PackagePath>View\RoomsPage.xbf</PackagePath>
|
||||
<Modified>2019-01-06T18:01:49.563</Modified>
|
||||
<Modified>2019-01-11T21:26:47.294</Modified>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\UserControls\ColumnListView.xbf">
|
||||
<PackagePath>View\UserControls\ColumnListView.xbf</PackagePath>
|
||||
<Modified>2019-01-06T18:01:49.563</Modified>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\SurgeriesPage.xbf">
|
||||
<PackagePath>View\SurgeriesPage.xbf</PackagePath>
|
||||
<Modified>2019-01-11T21:26:47.295</Modified>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Program Files %28x86%29\Windows Kits\10\UnionMetadata\10.0.17134.0\Windows.winmd">
|
||||
<PackagePath>WinMetadata\Windows.winmd</PackagePath>
|
||||
@ -786,11 +790,11 @@
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\resources.pri">
|
||||
<PackagePath>resources.pri</PackagePath>
|
||||
<Modified>2019-01-06T14:54:14.579</Modified>
|
||||
<Modified>2019-01-10T21:02:25.193</Modified>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\Core\HospitalServerManager.exe">
|
||||
<PackagePath>HospitalServerManager.exe</PackagePath>
|
||||
<Modified>2019-01-06T18:01:50.126</Modified>
|
||||
<Modified>2019-01-11T21:26:47.850</Modified>
|
||||
</AppxPackagedFile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@ -574,6 +574,9 @@
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\MainFrameView.xbf">
|
||||
<PackagePath>View\MainFrameView.xbf</PackagePath>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\NewAdmissionPage.xbf">
|
||||
<PackagePath>View\NewAdmissionPage.xbf</PackagePath>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\NewRecordDialog.xbf">
|
||||
<PackagePath>View\NewRecordDialog.xbf</PackagePath>
|
||||
</AppxPackagedFile>
|
||||
@ -583,8 +586,8 @@
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\RoomsPage.xbf">
|
||||
<PackagePath>View\RoomsPage.xbf</PackagePath>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\UserControls\ColumnListView.xbf">
|
||||
<PackagePath>View\UserControls\ColumnListView.xbf</PackagePath>
|
||||
<AppxPackagedFile Include="C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\SurgeriesPage.xbf">
|
||||
<PackagePath>View\SurgeriesPage.xbf</PackagePath>
|
||||
</AppxPackagedFile>
|
||||
<AppxPackagedFile Include="C:\Program Files %28x86%29\Windows Kits\10\UnionMetadata\10.0.17134.0\Windows.winmd">
|
||||
<PackagePath>WinMetadata\Windows.winmd</PackagePath>
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,10 +1,9 @@
|
||||
<?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.Application">
|
||||
<RootProperty Name="RequestedTheme" />
|
||||
</RootType>
|
||||
<RootType FullName="Windows.UI.Xaml.Controls.Page">
|
||||
<RootProperty Name="Background" />
|
||||
<RootProperty Name="Resources" />
|
||||
@ -66,7 +65,6 @@
|
||||
<RootProperty Name="BorderThickness" />
|
||||
<RootProperty Name="ItemTemplate" />
|
||||
<RootProperty Name="ItemContainerStyle" />
|
||||
<RootProperty Name="ItemsSource" />
|
||||
</RootType>
|
||||
<RootType FullName="Windows.UI.Xaml.Controls.ScrollViewer">
|
||||
<RootMethod Name="GetVerticalScrollBarVisibility" />
|
||||
@ -106,14 +104,6 @@
|
||||
<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" />
|
||||
@ -128,6 +118,16 @@
|
||||
<RootProperty Name="VerticalAlignment" />
|
||||
<RootProperty Name="Margin" />
|
||||
</RootType>
|
||||
<RootType FullName="Windows.UI.Xaml.Controls.Button">
|
||||
<RootProperty Name="Content" />
|
||||
<RootProperty Name="HorizontalAlignment" />
|
||||
<RootProperty Name="Margin" />
|
||||
<RootProperty Name="Name" />
|
||||
<RootProperty Name="Width" />
|
||||
<RootProperty Name="VerticalAlignment" />
|
||||
<RootProperty Name="FontSize" />
|
||||
<RootEvent Name="Click" />
|
||||
</RootType>
|
||||
<RootType FullName="HospitalServerManager.View.AdmissionsPage" />
|
||||
<RootType FullName="HospitalServerManager.View.DiagnosesPage" />
|
||||
<RootType FullName="HospitalServerManager.View.DoctorsPage" />
|
||||
@ -147,6 +147,8 @@
|
||||
<RootProperty Name="FlowDirection" />
|
||||
<RootProperty Name="VerticalAlignment" />
|
||||
<RootProperty Name="Style" />
|
||||
<RootProperty Name="IsOpen" />
|
||||
<RootProperty Name="IsSticky" />
|
||||
<RootProperty Name="PrimaryCommands" />
|
||||
</RootType>
|
||||
<RootType FullName="Windows.UI.Xaml.Controls.Frame">
|
||||
@ -161,14 +163,15 @@
|
||||
<RootEvent Name="Click" />
|
||||
</RootType>
|
||||
<RootType FullName="HospitalServerManager.View.MainFrameView" />
|
||||
<RootType FullName="Windows.UI.Xaml.Controls.DatePicker">
|
||||
<RootProperty Name="Name" />
|
||||
<RootProperty Name="HorizontalAlignment" />
|
||||
<RootProperty Name="VerticalAlignment" />
|
||||
</RootType>
|
||||
<RootType FullName="HospitalServerManager.View.NewAdmissionPage" />
|
||||
<RootType FullName="HospitalServerManager.View.NewRecordDialog" />
|
||||
<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" />
|
||||
<RootType FullName="HospitalServerManager.View.SurgeriesPage" />
|
||||
</Roots.RootTypes>
|
||||
</Roots>
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
bin/x86/Debug/View/NewAdmissionPage.xbf
Normal file
BIN
bin/x86/Debug/View/NewAdmissionPage.xbf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
bin/x86/Debug/View/SurgeriesPage.xbf
Normal file
BIN
bin/x86/Debug/View/SurgeriesPage.xbf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "6E38FB29F9D5CA8F36FB6C3E6488659E"
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "93B905F6219D7391BE00214FC4FA75D9"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
|
@ -1,4 +1,4 @@
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "6E38FB29F9D5CA8F36FB6C3E6488659E"
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "93B905F6219D7391BE00214FC4FA75D9"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
|
@ -2,7 +2,8 @@
|
||||
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">
|
||||
xmlns:local="using:HospitalServerManager"
|
||||
RequestedTheme="Light">
|
||||
|
||||
</Application>
|
||||
|
||||
|
Binary file not shown.
@ -1 +1 @@
|
||||
f03c17be22ceb22b1ce3324e21e3371a79db21a6
|
||||
047462d3464f4c463d63a2cd80aec82b38733e4c
|
||||
|
@ -612,22 +612,17 @@ C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\MainFrameView.g.cs
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\PatientsPage.g.i.cs
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\PatientsPage.g.cs
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\UserControls\ColumnListView.g.i.cs
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\UserControls\ColumnListView.g.cs
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\App.xaml
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\MainFrameView.xaml
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\PatientsPage.xaml
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\UserControls\ColumnListView.xaml
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\App.xbf
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\MainFrameView.xbf
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\PatientsPage.xbf
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\UserControls\ColumnListView.xbf
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\HospitalServerManager.exe
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\HospitalServerManager.pdb
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\App.xbf
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\MainFrameView.xbf
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\PatientsPage.xbf
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\UserControls\ColumnListView.xbf
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\HospitalServerManager.xr.xml
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\HospitalServerManager.exe
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\HospitalServerManager.pdb
|
||||
@ -942,3 +937,13 @@ C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\DiagnosesPage.g.cs
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\DiagnosesPage.xaml
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\DiagnosesPage.xbf
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\SurgeriesPage.g.i.cs
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\SurgeriesPage.g.cs
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\SurgeriesPage.xaml
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\SurgeriesPage.xbf
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\SurgeriesPage.xbf
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\NewAdmissionPage.g.i.cs
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\NewAdmissionPage.g.cs
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\NewAdmissionPage.xaml
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\obj\x86\Debug\View\NewAdmissionPage.xbf
|
||||
C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\bin\x86\Debug\View\NewAdmissionPage.xbf
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,10 +1,9 @@
|
||||
<?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.Application">
|
||||
<RootProperty Name="RequestedTheme" />
|
||||
</RootType>
|
||||
<RootType FullName="Windows.UI.Xaml.Controls.Page">
|
||||
<RootProperty Name="Background" />
|
||||
<RootProperty Name="Resources" />
|
||||
@ -66,7 +65,6 @@
|
||||
<RootProperty Name="BorderThickness" />
|
||||
<RootProperty Name="ItemTemplate" />
|
||||
<RootProperty Name="ItemContainerStyle" />
|
||||
<RootProperty Name="ItemsSource" />
|
||||
</RootType>
|
||||
<RootType FullName="Windows.UI.Xaml.Controls.ScrollViewer">
|
||||
<RootMethod Name="GetVerticalScrollBarVisibility" />
|
||||
@ -106,14 +104,6 @@
|
||||
<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" />
|
||||
@ -128,6 +118,16 @@
|
||||
<RootProperty Name="VerticalAlignment" />
|
||||
<RootProperty Name="Margin" />
|
||||
</RootType>
|
||||
<RootType FullName="Windows.UI.Xaml.Controls.Button">
|
||||
<RootProperty Name="Content" />
|
||||
<RootProperty Name="HorizontalAlignment" />
|
||||
<RootProperty Name="Margin" />
|
||||
<RootProperty Name="Name" />
|
||||
<RootProperty Name="Width" />
|
||||
<RootProperty Name="VerticalAlignment" />
|
||||
<RootProperty Name="FontSize" />
|
||||
<RootEvent Name="Click" />
|
||||
</RootType>
|
||||
<RootType FullName="HospitalServerManager.View.AdmissionsPage" />
|
||||
<RootType FullName="HospitalServerManager.View.DiagnosesPage" />
|
||||
<RootType FullName="HospitalServerManager.View.DoctorsPage" />
|
||||
@ -147,6 +147,8 @@
|
||||
<RootProperty Name="FlowDirection" />
|
||||
<RootProperty Name="VerticalAlignment" />
|
||||
<RootProperty Name="Style" />
|
||||
<RootProperty Name="IsOpen" />
|
||||
<RootProperty Name="IsSticky" />
|
||||
<RootProperty Name="PrimaryCommands" />
|
||||
</RootType>
|
||||
<RootType FullName="Windows.UI.Xaml.Controls.Frame">
|
||||
@ -161,14 +163,15 @@
|
||||
<RootEvent Name="Click" />
|
||||
</RootType>
|
||||
<RootType FullName="HospitalServerManager.View.MainFrameView" />
|
||||
<RootType FullName="Windows.UI.Xaml.Controls.DatePicker">
|
||||
<RootProperty Name="Name" />
|
||||
<RootProperty Name="HorizontalAlignment" />
|
||||
<RootProperty Name="VerticalAlignment" />
|
||||
</RootType>
|
||||
<RootType FullName="HospitalServerManager.View.NewAdmissionPage" />
|
||||
<RootType FullName="HospitalServerManager.View.NewRecordDialog" />
|
||||
<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" />
|
||||
<RootType FullName="HospitalServerManager.View.SurgeriesPage" />
|
||||
</Roots.RootTypes>
|
||||
</Roots>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\AdmissionsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "E7F790C1DC46B1BD7555B0808C61D134"
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\AdmissionsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "4D2B04A0ACD4E8803760518066DE8FB2"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
@ -65,34 +65,34 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
switch(connectionId)
|
||||
{
|
||||
case 5: // View\AdmissionsPage.xaml line 145
|
||||
case 5: // View\AdmissionsPage.xaml line 143
|
||||
this.obj5 = new global::System.WeakReference((global::Windows.UI.Xaml.Controls.Grid)target);
|
||||
break;
|
||||
case 6: // View\AdmissionsPage.xaml line 157
|
||||
case 6: // View\AdmissionsPage.xaml line 155
|
||||
this.obj6 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
case 7: // View\AdmissionsPage.xaml line 160
|
||||
case 7: // View\AdmissionsPage.xaml line 158
|
||||
this.obj7 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
case 8: // View\AdmissionsPage.xaml line 163
|
||||
case 8: // View\AdmissionsPage.xaml line 161
|
||||
this.obj8 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
case 9: // View\AdmissionsPage.xaml line 165
|
||||
case 9: // View\AdmissionsPage.xaml line 163
|
||||
this.obj9 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
case 10: // View\AdmissionsPage.xaml line 167
|
||||
case 10: // View\AdmissionsPage.xaml line 165
|
||||
this.obj10 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
case 11: // View\AdmissionsPage.xaml line 169
|
||||
case 11: // View\AdmissionsPage.xaml line 167
|
||||
this.obj11 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
case 12: // View\AdmissionsPage.xaml line 171
|
||||
case 12: // View\AdmissionsPage.xaml line 169
|
||||
this.obj12 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
case 13: // View\AdmissionsPage.xaml line 173
|
||||
case 13: // View\AdmissionsPage.xaml line 171
|
||||
this.obj13 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
case 14: // View\AdmissionsPage.xaml line 175
|
||||
case 14: // View\AdmissionsPage.xaml line 173
|
||||
this.obj14 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
default:
|
||||
@ -210,31 +210,31 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\AdmissionsPage.xaml line 157
|
||||
// View\AdmissionsPage.xaml line 155
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj6, obj, null);
|
||||
}
|
||||
}
|
||||
private void Update_AdmissionDate(global::System.DateTime obj, int phase)
|
||||
private void Update_AdmissionDate(global::System.String obj, int phase)
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\AdmissionsPage.xaml line 160
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj7, obj.ToString(), null);
|
||||
// View\AdmissionsPage.xaml line 158
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj7, obj, null);
|
||||
}
|
||||
}
|
||||
private void Update_LeavingDate(global::System.Nullable<global::System.DateTime> obj, int phase)
|
||||
private void Update_LeavingDate(global::System.String obj, int phase)
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\AdmissionsPage.xaml line 163
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj8, obj.ToString(), null);
|
||||
// View\AdmissionsPage.xaml line 161
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj8, obj, null);
|
||||
}
|
||||
}
|
||||
private void Update_PatientPESEL(global::System.String obj, int phase)
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\AdmissionsPage.xaml line 165
|
||||
// View\AdmissionsPage.xaml line 163
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj9, obj, null);
|
||||
}
|
||||
}
|
||||
@ -242,7 +242,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\AdmissionsPage.xaml line 167
|
||||
// View\AdmissionsPage.xaml line 165
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj10, obj, null);
|
||||
}
|
||||
}
|
||||
@ -250,7 +250,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\AdmissionsPage.xaml line 169
|
||||
// View\AdmissionsPage.xaml line 167
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj11, obj.ToString(), null);
|
||||
}
|
||||
}
|
||||
@ -258,7 +258,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\AdmissionsPage.xaml line 171
|
||||
// View\AdmissionsPage.xaml line 169
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj12, obj.ToString(), null);
|
||||
}
|
||||
}
|
||||
@ -266,7 +266,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\AdmissionsPage.xaml line 173
|
||||
// View\AdmissionsPage.xaml line 171
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj13, obj.ToString(), null);
|
||||
}
|
||||
}
|
||||
@ -274,7 +274,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\AdmissionsPage.xaml line 175
|
||||
// View\AdmissionsPage.xaml line 173
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj14, obj.ToString(), null);
|
||||
}
|
||||
}
|
||||
@ -288,12 +288,6 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
switch(connectionId)
|
||||
{
|
||||
case 1: // View\AdmissionsPage.xaml line 1
|
||||
{
|
||||
global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)(target);
|
||||
((global::Windows.UI.Xaml.Controls.Page)element1).Loaded += this.Page_Loaded;
|
||||
}
|
||||
break;
|
||||
case 2: // View\AdmissionsPage.xaml line 12
|
||||
{
|
||||
this.RosterViewModel = (global::HospitalServerManager.ViewModel.RosterViewModel)(target);
|
||||
@ -304,7 +298,7 @@ namespace HospitalServerManager.View
|
||||
this.pageTitle = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
|
||||
}
|
||||
break;
|
||||
case 4: // View\AdmissionsPage.xaml line 132
|
||||
case 4: // View\AdmissionsPage.xaml line 130
|
||||
{
|
||||
this.databaseView = (global::Windows.UI.Xaml.Controls.ListView)(target);
|
||||
}
|
||||
@ -351,8 +345,7 @@ namespace HospitalServerManager.View
|
||||
break;
|
||||
case 23: // View\AdmissionsPage.xaml line 34
|
||||
{
|
||||
global::Windows.UI.Xaml.Controls.Button element23 = (global::Windows.UI.Xaml.Controls.Button)(target);
|
||||
((global::Windows.UI.Xaml.Controls.Button)element23).Click += this.NewRecordButton_Click;
|
||||
this.btnNewRecord = (global::Windows.UI.Xaml.Controls.Button)(target);
|
||||
}
|
||||
break;
|
||||
case 24: // View\AdmissionsPage.xaml line 35
|
||||
@ -383,7 +376,7 @@ namespace HospitalServerManager.View
|
||||
global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null;
|
||||
switch(connectionId)
|
||||
{
|
||||
case 5: // View\AdmissionsPage.xaml line 145
|
||||
case 5: // View\AdmissionsPage.xaml line 143
|
||||
{
|
||||
global::Windows.UI.Xaml.Controls.Grid element5 = (global::Windows.UI.Xaml.Controls.Grid)target;
|
||||
AdmissionsPage_obj5_Bindings bindings = new AdmissionsPage_obj5_Bindings();
|
||||
|
@ -1,4 +1,4 @@
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\AdmissionsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "E7F790C1DC46B1BD7555B0808C61D134"
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\AdmissionsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "4D2B04A0ACD4E8803760518066DE8FB2"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
@ -31,6 +31,8 @@ namespace HospitalServerManager.View
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
private global::Windows.UI.Xaml.Controls.ComboBox lookInComboBox;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Button btnNewRecord;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<Page x:ConnectionId='1'
|
||||
<Page
|
||||
x:Class="HospitalServerManager.View.AdmissionsPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
@ -7,7 +7,7 @@
|
||||
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}">
|
||||
<Page.Resources>
|
||||
<viewmodel:RosterViewModel x:ConnectionId='2' x:Name="RosterViewModel"/>
|
||||
</Page.Resources>
|
||||
@ -31,7 +31,7 @@
|
||||
<TextBlock x:ConnectionId='3' Text="Przyjęcia" HorizontalAlignment="Left" Margin="15, 5, 0, 0" FontSize="20"
|
||||
VerticalAlignment="Top" Name="pageTitle" Grid.ColumnSpan="2"/>
|
||||
<StackPanel Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center">
|
||||
<Button x:ConnectionId='23' Content="Nowy rekord" Margin="30, 0, 30, 0" Grid.Row="1" Width="150"/>
|
||||
<Button x:ConnectionId='23' Content="Nowy rekord" Margin="30, 0, 30, 0" Grid.Row="1" Width="150" Name="btnNewRecord"/>
|
||||
<Button x:ConnectionId='24' Content="Usuń zaznaczone" Margin="30, 0, 30, 0" Grid.Row="1" Grid.Column="1" Width="150"/>
|
||||
<Button x:ConnectionId='25' Content="Edytuj rekord" Margin="30, 0, 30, 0" Grid.Row="1" Width="150"/>
|
||||
</StackPanel>
|
||||
@ -88,8 +88,6 @@
|
||||
<RadioButton x:ConnectionId='17' Content="Rosnąco" Margin="15, 0, 15, 0" IsChecked="True" Tag="0" Name="radioBtn1" />
|
||||
<RadioButton x:ConnectionId='18' Content="Malejąco" Margin="15, 0, 15, 0" Tag="1" Name="radionBtn2" />
|
||||
</StackPanel>
|
||||
<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"
|
||||
@ -116,15 +114,15 @@
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="ID przyjęcia" Margin="8,0" Foreground="DarkRed" Grid.Column="0"/>
|
||||
<TextBlock Text="Data przyjęcia" Foreground="DarkRed" Grid.Column="1"/>
|
||||
<TextBlock Text="Data zwolnienia" Foreground="DarkRed" Grid.Column="2"/>
|
||||
<TextBlock Text="Pesel pacjenta" Foreground="DarkRed" Grid.Column="3"/>
|
||||
<TextBlock Text="Symbol diagnozy" Foreground="DarkRed" Grid.Column="4"/>
|
||||
<TextBlock Text="ID lekarza" Foreground="DarkRed" Grid.Column="5"/>
|
||||
<TextBlock Text="ID operacji" Foreground="DarkRed" Grid.Column="6"/>
|
||||
<TextBlock Text="Nr pokoju" Foreground="DarkRed" Grid.Column="7"/>
|
||||
<TextBlock Text="Planowane?" Foreground="DarkRed" Grid.Column="8"/>
|
||||
<TextBlock Text="ID przyjęcia" Margin="8,0" Foreground="DarkRed" Grid.Column="0" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Data przyjęcia" Foreground="DarkRed" Grid.Column="1" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Data zwolnienia" Foreground="DarkRed" Grid.Column="2" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Pesel pacjenta" Foreground="DarkRed" Grid.Column="3" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Symbol diagnozy" Foreground="DarkRed" Grid.Column="4" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="ID lekarza" Foreground="DarkRed" Grid.Column="5" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="ID operacji" Foreground="DarkRed" Grid.Column="6" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Nr pokoju" Foreground="DarkRed" Grid.Column="7" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Planowane?" Foreground="DarkRed" Grid.Column="8" HorizontalAlignment="Center"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListView.HeaderTemplate>
|
||||
@ -154,25 +152,25 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock x:ConnectionId='6' Name="ItemId"
|
||||
<TextBlock x:ConnectionId='6' Name="ItemId" HorizontalAlignment="Center"
|
||||
|
||||
Grid.Column="0" />
|
||||
<TextBlock x:ConnectionId='7' Name="ItemName"
|
||||
<TextBlock x:ConnectionId='7' Name="ItemName" HorizontalAlignment="Center"
|
||||
|
||||
Grid.Column="1"/>
|
||||
<TextBlock x:ConnectionId='8'
|
||||
<TextBlock x:ConnectionId='8' HorizontalAlignment="Center"
|
||||
Grid.Column="2"/>
|
||||
<TextBlock x:ConnectionId='9'
|
||||
<TextBlock x:ConnectionId='9' HorizontalAlignment="Center"
|
||||
Grid.Column="3"/>
|
||||
<TextBlock x:ConnectionId='10'
|
||||
<TextBlock x:ConnectionId='10' HorizontalAlignment="Center"
|
||||
Grid.Column="4"/>
|
||||
<TextBlock x:ConnectionId='11'
|
||||
<TextBlock x:ConnectionId='11' HorizontalAlignment="Center"
|
||||
Grid.Column="5"/>
|
||||
<TextBlock x:ConnectionId='12'
|
||||
<TextBlock x:ConnectionId='12' HorizontalAlignment="Center"
|
||||
Grid.Column="6"/>
|
||||
<TextBlock x:ConnectionId='13'
|
||||
<TextBlock x:ConnectionId='13' HorizontalAlignment="Center"
|
||||
Grid.Column="7"/>
|
||||
<TextBlock x:ConnectionId='14'
|
||||
<TextBlock x:ConnectionId='14' HorizontalAlignment="Center"
|
||||
Grid.Column="8"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
|
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DiagnosesPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "507D0D235F37666962632326D8D60175"
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DiagnosesPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "AABEDB5A200FD3FC5A7E33D09296B24C"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
@ -60,19 +60,19 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
switch(connectionId)
|
||||
{
|
||||
case 5: // View\DiagnosesPage.xaml line 132
|
||||
case 5: // View\DiagnosesPage.xaml line 130
|
||||
this.obj5 = new global::System.WeakReference((global::Windows.UI.Xaml.Controls.Grid)target);
|
||||
break;
|
||||
case 6: // View\DiagnosesPage.xaml line 139
|
||||
case 6: // View\DiagnosesPage.xaml line 137
|
||||
this.obj6 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
case 7: // View\DiagnosesPage.xaml line 142
|
||||
case 7: // View\DiagnosesPage.xaml line 140
|
||||
this.obj7 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
case 8: // View\DiagnosesPage.xaml line 145
|
||||
case 8: // View\DiagnosesPage.xaml line 143
|
||||
this.obj8 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
case 9: // View\DiagnosesPage.xaml line 147
|
||||
case 9: // View\DiagnosesPage.xaml line 145
|
||||
this.obj9 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
default:
|
||||
@ -185,7 +185,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\DiagnosesPage.xaml line 139
|
||||
// View\DiagnosesPage.xaml line 137
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj6, obj, null);
|
||||
}
|
||||
}
|
||||
@ -193,7 +193,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\DiagnosesPage.xaml line 142
|
||||
// View\DiagnosesPage.xaml line 140
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj7, obj, null);
|
||||
}
|
||||
}
|
||||
@ -201,7 +201,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\DiagnosesPage.xaml line 145
|
||||
// View\DiagnosesPage.xaml line 143
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj8, obj, null);
|
||||
}
|
||||
}
|
||||
@ -209,7 +209,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\DiagnosesPage.xaml line 147
|
||||
// View\DiagnosesPage.xaml line 145
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj9, obj, null);
|
||||
}
|
||||
}
|
||||
@ -239,7 +239,7 @@ namespace HospitalServerManager.View
|
||||
this.pageTitle = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
|
||||
}
|
||||
break;
|
||||
case 4: // View\DiagnosesPage.xaml line 119
|
||||
case 4: // View\DiagnosesPage.xaml line 117
|
||||
{
|
||||
this.databaseView = (global::Windows.UI.Xaml.Controls.ListView)(target);
|
||||
}
|
||||
@ -318,7 +318,7 @@ namespace HospitalServerManager.View
|
||||
global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null;
|
||||
switch(connectionId)
|
||||
{
|
||||
case 5: // View\DiagnosesPage.xaml line 132
|
||||
case 5: // View\DiagnosesPage.xaml line 130
|
||||
{
|
||||
global::Windows.UI.Xaml.Controls.Grid element5 = (global::Windows.UI.Xaml.Controls.Grid)target;
|
||||
DiagnosesPage_obj5_Bindings bindings = new DiagnosesPage_obj5_Bindings();
|
||||
|
@ -1,4 +1,4 @@
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DiagnosesPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "507D0D235F37666962632326D8D60175"
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DiagnosesPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "AABEDB5A200FD3FC5A7E33D09296B24C"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
|
@ -25,7 +25,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock x:ConnectionId='3' Text="Lekarze" HorizontalAlignment="Left" Margin="15, 5, 0, 0" FontSize="20"
|
||||
<TextBlock x:ConnectionId='3' Text="Diagnozy" HorizontalAlignment="Left" Margin="15, 5, 0, 0" FontSize="20"
|
||||
VerticalAlignment="Top" Name="pageTitle" Grid.ColumnSpan="2"/>
|
||||
<StackPanel Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center">
|
||||
<Button x:ConnectionId='18' Content="Nowy rekord" Margin="30, 0, 30, 0" Grid.Row="1" Width="150"/>
|
||||
@ -85,8 +85,6 @@
|
||||
<RadioButton x:ConnectionId='12' Content="Rosnąco" Margin="15, 0, 15, 0" IsChecked="True" Tag="0" Name="radioBtn1" />
|
||||
<RadioButton x:ConnectionId='13' Content="Malejąco" Margin="15, 0, 15, 0" Tag="1" Name="radionBtn2" />
|
||||
</StackPanel>
|
||||
<Button Content="Zaawansowane filtry" Grid.Row="2" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
||||
Margin="15, 0, 15, 0"/>
|
||||
|
||||
</Grid>
|
||||
<Grid Grid.Row="3" Grid.ColumnSpan="4" Margin="20, 5, 20, 5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
|
||||
@ -102,16 +100,16 @@
|
||||
<DataTemplate >
|
||||
<Grid >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="0.8*" />
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="ID diagnozy" Margin="8,0" Foreground="DarkRed" Grid.Column="0"/>
|
||||
<TextBlock Text="Nazwa diagnozy" Foreground="DarkRed" Grid.Column="1"/>
|
||||
<TextBlock Text="Dziedzina chirurgii" Foreground="DarkRed" Grid.Column="2"/>
|
||||
<TextBlock Text="Opis" Foreground="DarkRed" Grid.Column="3"/>
|
||||
<TextBlock Text="ID diagnozy" Margin="8,0" Foreground="DarkRed" Grid.Column="0" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Nazwa diagnozy" Foreground="DarkRed" Grid.Column="1" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Dziedzina chirurgii" Foreground="DarkRed" Grid.Column="2" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Opis" Foreground="DarkRed" Grid.Column="3" HorizontalAlignment="Center"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListView.HeaderTemplate>
|
||||
@ -131,20 +129,20 @@
|
||||
|
||||
<Grid x:ConnectionId='5' Name="valueStoreGrid">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="0.8*"/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock x:ConnectionId='6' Name="ItemId"
|
||||
|
||||
HorizontalAlignment="Center"
|
||||
Grid.Column="0"/>
|
||||
<TextBlock x:ConnectionId='7' Name="ItemName"
|
||||
<TextBlock x:ConnectionId='7' Name="ItemName" HorizontalAlignment="Center"
|
||||
|
||||
Grid.Column="1" />
|
||||
<TextBlock x:ConnectionId='8'
|
||||
<TextBlock x:ConnectionId='8' HorizontalAlignment="Center"
|
||||
Grid.Column="2" />
|
||||
<TextBlock x:ConnectionId='9'
|
||||
<TextBlock x:ConnectionId='9' HorizontalAlignment="Center"
|
||||
Grid.Column="3"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
|
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DoctorsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "154D15F17780F3E6DC4A4BD69A9548A8"
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DoctorsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "971DADAA13475823239220CC8C40CAE3"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
@ -63,28 +63,28 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
switch(connectionId)
|
||||
{
|
||||
case 5: // View\DoctorsPage.xaml line 141
|
||||
case 5: // View\DoctorsPage.xaml line 139
|
||||
this.obj5 = new global::System.WeakReference((global::Windows.UI.Xaml.Controls.Grid)target);
|
||||
break;
|
||||
case 6: // View\DoctorsPage.xaml line 151
|
||||
case 6: // View\DoctorsPage.xaml line 149
|
||||
this.obj6 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
case 7: // View\DoctorsPage.xaml line 154
|
||||
case 7: // View\DoctorsPage.xaml line 152
|
||||
this.obj7 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
case 8: // View\DoctorsPage.xaml line 157
|
||||
case 8: // View\DoctorsPage.xaml line 155
|
||||
this.obj8 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
case 9: // View\DoctorsPage.xaml line 159
|
||||
case 9: // View\DoctorsPage.xaml line 157
|
||||
this.obj9 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
case 10: // View\DoctorsPage.xaml line 161
|
||||
case 10: // View\DoctorsPage.xaml line 159
|
||||
this.obj10 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
case 11: // View\DoctorsPage.xaml line 163
|
||||
case 11: // View\DoctorsPage.xaml line 161
|
||||
this.obj11 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
case 12: // View\DoctorsPage.xaml line 165
|
||||
case 12: // View\DoctorsPage.xaml line 163
|
||||
this.obj12 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
||||
break;
|
||||
default:
|
||||
@ -200,7 +200,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\DoctorsPage.xaml line 151
|
||||
// View\DoctorsPage.xaml line 149
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj6, obj, null);
|
||||
}
|
||||
}
|
||||
@ -208,7 +208,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\DoctorsPage.xaml line 154
|
||||
// View\DoctorsPage.xaml line 152
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj7, obj, null);
|
||||
}
|
||||
}
|
||||
@ -216,7 +216,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\DoctorsPage.xaml line 157
|
||||
// View\DoctorsPage.xaml line 155
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj8, obj, null);
|
||||
}
|
||||
}
|
||||
@ -224,7 +224,7 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\DoctorsPage.xaml line 159
|
||||
// View\DoctorsPage.xaml line 157
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj9, obj, null);
|
||||
}
|
||||
}
|
||||
@ -232,23 +232,23 @@ namespace HospitalServerManager.View
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\DoctorsPage.xaml line 161
|
||||
// View\DoctorsPage.xaml line 159
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj10, obj, null);
|
||||
}
|
||||
}
|
||||
private void Update_EmploymentDate(global::System.DateTime obj, int phase)
|
||||
private void Update_EmploymentDate(global::System.String obj, int phase)
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\DoctorsPage.xaml line 163
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj11, obj.ToString(), null);
|
||||
// View\DoctorsPage.xaml line 161
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj11, obj, null);
|
||||
}
|
||||
}
|
||||
private void Update_JobPosition(global::System.String obj, int phase)
|
||||
{
|
||||
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
||||
{
|
||||
// View\DoctorsPage.xaml line 165
|
||||
// View\DoctorsPage.xaml line 163
|
||||
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj12, obj, null);
|
||||
}
|
||||
}
|
||||
@ -278,7 +278,7 @@ namespace HospitalServerManager.View
|
||||
this.pageTitle = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
|
||||
}
|
||||
break;
|
||||
case 4: // View\DoctorsPage.xaml line 128
|
||||
case 4: // View\DoctorsPage.xaml line 126
|
||||
{
|
||||
this.databaseView = (global::Windows.UI.Xaml.Controls.ListView)(target);
|
||||
}
|
||||
@ -357,7 +357,7 @@ namespace HospitalServerManager.View
|
||||
global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null;
|
||||
switch(connectionId)
|
||||
{
|
||||
case 5: // View\DoctorsPage.xaml line 141
|
||||
case 5: // View\DoctorsPage.xaml line 139
|
||||
{
|
||||
global::Windows.UI.Xaml.Controls.Grid element5 = (global::Windows.UI.Xaml.Controls.Grid)target;
|
||||
DoctorsPage_obj5_Bindings bindings = new DoctorsPage_obj5_Bindings();
|
||||
|
@ -1,4 +1,4 @@
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DoctorsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "154D15F17780F3E6DC4A4BD69A9548A8"
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DoctorsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "971DADAA13475823239220CC8C40CAE3"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
|
@ -88,8 +88,6 @@
|
||||
<RadioButton x:ConnectionId='15' Content="Rosnąco" Margin="15, 0, 15, 0" IsChecked="True" Tag="0" Name="radioBtn1" />
|
||||
<RadioButton x:ConnectionId='16' Content="Malejąco" Margin="15, 0, 15, 0" Tag="1" Name="radionBtn2" />
|
||||
</StackPanel>
|
||||
<Button 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"
|
||||
@ -106,21 +104,21 @@
|
||||
<Grid >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="0.15*"/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition Width="0.5*"/>
|
||||
<ColumnDefinition Width="0.8*"/>
|
||||
<ColumnDefinition Width="0.8*"/>
|
||||
<ColumnDefinition Width="0.7*"/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="Id" Margin="8,0" Foreground="DarkRed" Grid.Column="0"/>
|
||||
<TextBlock Text="Imię" Foreground="DarkRed" Grid.Column="1"/>
|
||||
<TextBlock Text="Nazwisko" Foreground="DarkRed" Grid.Column="2"/>
|
||||
<TextBlock Text="Stopień naukowy" Foreground="DarkRed" Grid.Column="3"/>
|
||||
<TextBlock Text="Specjalizacja" Foreground="DarkRed" Grid.Column="4"/>
|
||||
<TextBlock Text="Data zatrudnienia" Foreground="DarkRed" Grid.Column="5"/>
|
||||
<TextBlock Text="Stanowisko" Foreground="DarkRed" Grid.Column="6"/>
|
||||
<TextBlock Text="Id" Margin="8,0" Foreground="DarkRed" Grid.Column="0" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Imię" Foreground="DarkRed" Grid.Column="1" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Nazwisko" Foreground="DarkRed" Grid.Column="2" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Stopień naukowy" Foreground="DarkRed" Grid.Column="3" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Specjalizacja" Foreground="DarkRed" Grid.Column="4" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Data zatrudnienia" Foreground="DarkRed" Grid.Column="5" HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="Stanowisko" Foreground="DarkRed" Grid.Column="6" HorizontalAlignment="Center"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListView.HeaderTemplate>
|
||||
@ -141,28 +139,28 @@
|
||||
<Grid x:ConnectionId='5' Name="valueStoreGrid">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="0.15*"/>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="0.5*"/>
|
||||
<ColumnDefinition Width="0.8*"/>
|
||||
<ColumnDefinition Width="0.8*"/>
|
||||
<ColumnDefinition Width="0.7*"/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock x:ConnectionId='6' Name="ItemId"
|
||||
<TextBlock x:ConnectionId='6' Name="ItemId" HorizontalAlignment="Center"
|
||||
|
||||
Grid.Column="0" FontSize="12"/>
|
||||
<TextBlock x:ConnectionId='7' Name="ItemName"
|
||||
<TextBlock x:ConnectionId='7' Name="ItemName" HorizontalAlignment="Center"
|
||||
|
||||
Grid.Column="1" FontSize="12"/>
|
||||
<TextBlock x:ConnectionId='8'
|
||||
<TextBlock x:ConnectionId='8' HorizontalAlignment="Center"
|
||||
Grid.Column="2" FontSize="12"/>
|
||||
<TextBlock x:ConnectionId='9'
|
||||
<TextBlock x:ConnectionId='9' HorizontalAlignment="Center"
|
||||
Grid.Column="3" FontSize="12"/>
|
||||
<TextBlock x:ConnectionId='10'
|
||||
<TextBlock x:ConnectionId='10' HorizontalAlignment="Center"
|
||||
Grid.Column="4" FontSize="12"/>
|
||||
<TextBlock x:ConnectionId='11'
|
||||
<TextBlock x:ConnectionId='11' HorizontalAlignment="Center"
|
||||
Grid.Column="5" FontSize="12"/>
|
||||
<TextBlock x:ConnectionId='12'
|
||||
<TextBlock x:ConnectionId='12' HorizontalAlignment="Center"
|
||||
Grid.Column="6" FontSize="12"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\MainFrameView.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "7F242CBA31C865C289BC4CEE93B799A9"
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\MainFrameView.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "788DC4EDA86A5130B8D8C5518DE569B8"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
|
@ -1,4 +1,4 @@
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\MainFrameView.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "7F242CBA31C865C289BC4CEE93B799A9"
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\MainFrameView.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "788DC4EDA86A5130B8D8C5518DE569B8"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
|
@ -14,9 +14,9 @@
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<CommandBar x:ConnectionId='2' FlowDirection="LeftToRight" VerticalAlignment="Top" Style="{StaticResource CommandBarRevealStyle}"
|
||||
Name="navigationBar" Grid.Row="0">
|
||||
Name="navigationBar" Grid.Row="0" IsOpen="True" IsSticky="True">
|
||||
<AppBarButton x:ConnectionId='4' Icon="Street" Label="Sale" Tag="RoomsPage" />
|
||||
<AppBarButton x:ConnectionId='5' Icon="Cut" Label="Operacje" Tag="SurgerionPage" />
|
||||
<AppBarButton x:ConnectionId='5' Icon="Cut" Label="Operacje" Tag="SurgeriesPage" />
|
||||
<AppBarButton x:ConnectionId='6' Icon="Paste" Label="Diagnozy" Tag="DiagnosesPage" />
|
||||
<AppBarButton x:ConnectionId='7' Icon="WebCam" Label="Pracownicy" Tag="DoctorsPage" />
|
||||
<AppBarButton x:ConnectionId='8' Icon="People" Label="Pacjenci" Tag="PatientsPage" />
|
||||
|
Binary file not shown.
116
obj/x86/Debug/View/NewAdmissionPage.g.cs
Normal file
116
obj/x86/Debug/View/NewAdmissionPage.g.cs
Normal file
@ -0,0 +1,116 @@
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\NewAdmissionPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "38AFE574CD0B5678EA5AC6CD4279A0EC"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace HospitalServerManager.View
|
||||
{
|
||||
partial class NewAdmissionPage :
|
||||
global::Windows.UI.Xaml.Controls.Page,
|
||||
global::Windows.UI.Xaml.Markup.IComponentConnector,
|
||||
global::Windows.UI.Xaml.Markup.IComponentConnector2
|
||||
{
|
||||
/// <summary>
|
||||
/// Connect()
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void Connect(int connectionId, object target)
|
||||
{
|
||||
switch(connectionId)
|
||||
{
|
||||
case 2: // View\NewAdmissionPage.xaml line 12
|
||||
{
|
||||
this.RosterViewModel = (global::HospitalServerManager.ViewModel.RosterViewModel)(target);
|
||||
}
|
||||
break;
|
||||
case 3: // View\NewAdmissionPage.xaml line 14
|
||||
{
|
||||
this.grid = (global::Windows.UI.Xaml.Controls.Grid)(target);
|
||||
}
|
||||
break;
|
||||
case 4: // View\NewAdmissionPage.xaml line 32
|
||||
{
|
||||
this.lastAdmission = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
|
||||
}
|
||||
break;
|
||||
case 5: // View\NewAdmissionPage.xaml line 34
|
||||
{
|
||||
this.tbID = (global::Windows.UI.Xaml.Controls.TextBox)(target);
|
||||
}
|
||||
break;
|
||||
case 6: // View\NewAdmissionPage.xaml line 35
|
||||
{
|
||||
this.admissionDate = (global::Windows.UI.Xaml.Controls.DatePicker)(target);
|
||||
}
|
||||
break;
|
||||
case 7: // View\NewAdmissionPage.xaml line 36
|
||||
{
|
||||
this.leavingDate = (global::Windows.UI.Xaml.Controls.DatePicker)(target);
|
||||
}
|
||||
break;
|
||||
case 8: // View\NewAdmissionPage.xaml line 37
|
||||
{
|
||||
this.patientsId = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
|
||||
}
|
||||
break;
|
||||
case 9: // View\NewAdmissionPage.xaml line 38
|
||||
{
|
||||
this.diagnosisSymbol = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
|
||||
}
|
||||
break;
|
||||
case 10: // View\NewAdmissionPage.xaml line 39
|
||||
{
|
||||
this.mainDoctorId = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
|
||||
}
|
||||
break;
|
||||
case 11: // View\NewAdmissionPage.xaml line 40
|
||||
{
|
||||
this.operationId = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
|
||||
}
|
||||
break;
|
||||
case 12: // View\NewAdmissionPage.xaml line 41
|
||||
{
|
||||
this.roomNumber = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
|
||||
}
|
||||
break;
|
||||
case 13: // View\NewAdmissionPage.xaml line 46
|
||||
{
|
||||
global::Windows.UI.Xaml.Controls.Button element13 = (global::Windows.UI.Xaml.Controls.Button)(target);
|
||||
((global::Windows.UI.Xaml.Controls.Button)element13).Click += this.Button_Click;
|
||||
}
|
||||
break;
|
||||
case 14: // View\NewAdmissionPage.xaml line 43
|
||||
{
|
||||
this.trueCheckBox = (global::Windows.UI.Xaml.Controls.RadioButton)(target);
|
||||
}
|
||||
break;
|
||||
case 15: // View\NewAdmissionPage.xaml line 44
|
||||
{
|
||||
this.falseCheckBox = (global::Windows.UI.Xaml.Controls.RadioButton)(target);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// GetBindingConnector(int connectionId, object target)
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public global::Windows.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target)
|
||||
{
|
||||
global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null;
|
||||
return returnValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
67
obj/x86/Debug/View/NewAdmissionPage.g.i.cs
Normal file
67
obj/x86/Debug/View/NewAdmissionPage.g.i.cs
Normal file
@ -0,0 +1,67 @@
|
||||
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\NewAdmissionPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "38AFE574CD0B5678EA5AC6CD4279A0EC"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace HospitalServerManager.View
|
||||
{
|
||||
partial class NewAdmissionPage : global::Windows.UI.Xaml.Controls.Page
|
||||
{
|
||||
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
private global::HospitalServerManager.ViewModel.RosterViewModel RosterViewModel;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Grid grid;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
private global::Windows.UI.Xaml.Controls.TextBlock lastAdmission;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
private global::Windows.UI.Xaml.Controls.TextBox tbID;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
private global::Windows.UI.Xaml.Controls.DatePicker admissionDate;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
private global::Windows.UI.Xaml.Controls.DatePicker leavingDate;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
private global::Windows.UI.Xaml.Controls.ComboBox patientsId;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
private global::Windows.UI.Xaml.Controls.ComboBox diagnosisSymbol;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
private global::Windows.UI.Xaml.Controls.ComboBox mainDoctorId;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
private global::Windows.UI.Xaml.Controls.ComboBox operationId;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
private global::Windows.UI.Xaml.Controls.ComboBox roomNumber;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
private global::Windows.UI.Xaml.Controls.RadioButton trueCheckBox;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
private global::Windows.UI.Xaml.Controls.RadioButton falseCheckBox;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent()
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent()
|
||||
{
|
||||
if (_contentLoaded)
|
||||
return;
|
||||
|
||||
_contentLoaded = true;
|
||||
|
||||
global::System.Uri resourceLocator = new global::System.Uri("ms-appx:///View/NewAdmissionPage.xaml");
|
||||
global::Windows.UI.Xaml.Application.LoadComponent(this, resourceLocator, global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
|
||||
}
|
||||
|
||||
partial void UnloadObject(global::Windows.UI.Xaml.DependencyObject unloadableObject);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
51
obj/x86/Debug/View/NewAdmissionPage.xaml
Normal file
51
obj/x86/Debug/View/NewAdmissionPage.xaml
Normal file
@ -0,0 +1,51 @@
|
||||
<Page
|
||||
x:Class="HospitalServerManager.View.NewAdmissionPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:HospitalServerManager.View"
|
||||
xmlns:viewmodel="using:HospitalServerManager.ViewModel"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||
<Page.Resources>
|
||||
<viewmodel:RosterViewModel x:ConnectionId='2' x:Name="RosterViewModel"/>
|
||||
</Page.Resources>
|
||||
<Grid x:ConnectionId='3' Margin="60" Name="grid">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock x:ConnectionId='4' Name="lastAdmission" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center"
|
||||
FontSize="18"/>
|
||||
<TextBox x:ConnectionId='5' Name="tbID" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
||||
<DatePicker x:ConnectionId='6' Name="admissionDate" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
||||
<DatePicker x:ConnectionId='7' Name="leavingDate" Grid.Row="3" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
||||
<ComboBox x:ConnectionId='8' Name="patientsId" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
||||
<ComboBox x:ConnectionId='9' Name="diagnosisSymbol" Grid.Row="5" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
||||
<ComboBox x:ConnectionId='10' Name="mainDoctorId" Grid.Row="6" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
||||
<ComboBox x:ConnectionId='11' Name="operationId" Grid.Row="7" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
||||
<ComboBox x:ConnectionId='12' Name="roomNumber" Grid.Row="8" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
||||
<StackPanel Grid.Row="9" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
|
||||
<RadioButton x:ConnectionId='14' Name="trueCheckBox" Content="TRUE" IsChecked="True"/>
|
||||
<RadioButton x:ConnectionId='15' Name="falseCheckBox" Content="FALSE"/>
|
||||
</StackPanel>
|
||||
<Button x:ConnectionId='13' Content="Sprawdź poprawność danych i potwierdź" Grid.Row="10" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center"
|
||||
FontSize="17" />
|
||||
</Grid>
|
||||
|
||||
</Page>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user