mirror of
https://github.com/SirLecram/HospitalServerManager
synced 2025-01-09 13:37:33 +01:00
f234ec1f26
- last changes and visual edit
396 lines
18 KiB
C#
396 lines
18 KiB
C#
#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.
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace HospitalServerManager.View
|
|
{
|
|
partial class AdmissionsPage :
|
|
global::Windows.UI.Xaml.Controls.Page,
|
|
global::Windows.UI.Xaml.Markup.IComponentConnector,
|
|
global::Windows.UI.Xaml.Markup.IComponentConnector2
|
|
{
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private static class XamlBindingSetters
|
|
{
|
|
public static void Set_Windows_UI_Xaml_Controls_TextBlock_Text(global::Windows.UI.Xaml.Controls.TextBlock obj, global::System.String value, string targetNullValue)
|
|
{
|
|
if (value == null && targetNullValue != null)
|
|
{
|
|
value = targetNullValue;
|
|
}
|
|
obj.Text = value ?? global::System.String.Empty;
|
|
}
|
|
};
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private class AdmissionsPage_obj5_Bindings :
|
|
global::Windows.UI.Xaml.IDataTemplateExtension,
|
|
global::Windows.UI.Xaml.Markup.IDataTemplateComponent,
|
|
global::Windows.UI.Xaml.Markup.IComponentConnector,
|
|
IAdmissionsPage_Bindings
|
|
{
|
|
private global::HospitalServerManager.ViewModel.AdmissionViewModel dataRoot;
|
|
private bool initialized = false;
|
|
private const int NOT_PHASED = (1 << 31);
|
|
private const int DATA_CHANGED = (1 << 30);
|
|
private bool removedDataContextHandler = false;
|
|
|
|
// Fields for each control that has bindings.
|
|
private global::System.WeakReference obj5;
|
|
private global::Windows.UI.Xaml.Controls.TextBlock obj6;
|
|
private global::Windows.UI.Xaml.Controls.TextBlock obj7;
|
|
private global::Windows.UI.Xaml.Controls.TextBlock obj8;
|
|
private global::Windows.UI.Xaml.Controls.TextBlock obj9;
|
|
private global::Windows.UI.Xaml.Controls.TextBlock obj10;
|
|
private global::Windows.UI.Xaml.Controls.TextBlock obj11;
|
|
private global::Windows.UI.Xaml.Controls.TextBlock obj12;
|
|
private global::Windows.UI.Xaml.Controls.TextBlock obj13;
|
|
private global::Windows.UI.Xaml.Controls.TextBlock obj14;
|
|
|
|
public AdmissionsPage_obj5_Bindings()
|
|
{
|
|
}
|
|
|
|
// IComponentConnector
|
|
|
|
public void Connect(int connectionId, global::System.Object target)
|
|
{
|
|
switch(connectionId)
|
|
{
|
|
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 155
|
|
this.obj6 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
case 7: // View\AdmissionsPage.xaml line 158
|
|
this.obj7 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
case 8: // View\AdmissionsPage.xaml line 161
|
|
this.obj8 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
case 9: // View\AdmissionsPage.xaml line 163
|
|
this.obj9 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
case 10: // View\AdmissionsPage.xaml line 165
|
|
this.obj10 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
case 11: // View\AdmissionsPage.xaml line 167
|
|
this.obj11 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
case 12: // View\AdmissionsPage.xaml line 169
|
|
this.obj12 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
case 13: // View\AdmissionsPage.xaml line 171
|
|
this.obj13 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
case 14: // View\AdmissionsPage.xaml line 173
|
|
this.obj14 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
|
|
public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args)
|
|
{
|
|
if (this.SetDataRoot(args.NewValue))
|
|
{
|
|
this.Update();
|
|
}
|
|
}
|
|
|
|
// IDataTemplateExtension
|
|
|
|
public bool ProcessBinding(uint phase)
|
|
{
|
|
throw new global::System.NotImplementedException();
|
|
}
|
|
|
|
public int ProcessBindings(global::Windows.UI.Xaml.Controls.ContainerContentChangingEventArgs args)
|
|
{
|
|
int nextPhase = -1;
|
|
ProcessBindings(args.Item, args.ItemIndex, (int)args.Phase, out nextPhase);
|
|
return nextPhase;
|
|
}
|
|
|
|
public void ResetTemplate()
|
|
{
|
|
Recycle();
|
|
}
|
|
|
|
// IDataTemplateComponent
|
|
|
|
public void ProcessBindings(global::System.Object item, int itemIndex, int phase, out int nextPhase)
|
|
{
|
|
nextPhase = -1;
|
|
switch(phase)
|
|
{
|
|
case 0:
|
|
nextPhase = -1;
|
|
this.SetDataRoot(item);
|
|
if (!removedDataContextHandler)
|
|
{
|
|
removedDataContextHandler = true;
|
|
(this.obj5.Target as global::Windows.UI.Xaml.Controls.Grid).DataContextChanged -= this.DataContextChangedHandler;
|
|
}
|
|
this.initialized = true;
|
|
break;
|
|
}
|
|
this.Update_((global::HospitalServerManager.ViewModel.AdmissionViewModel) item, 1 << phase);
|
|
}
|
|
|
|
public void Recycle()
|
|
{
|
|
}
|
|
|
|
// IAdmissionsPage_Bindings
|
|
|
|
public void Initialize()
|
|
{
|
|
if (!this.initialized)
|
|
{
|
|
this.Update();
|
|
}
|
|
}
|
|
|
|
public void Update()
|
|
{
|
|
this.Update_(this.dataRoot, NOT_PHASED);
|
|
this.initialized = true;
|
|
}
|
|
|
|
public void StopTracking()
|
|
{
|
|
}
|
|
|
|
public void DisconnectUnloadedObject(int connectionId)
|
|
{
|
|
throw new global::System.ArgumentException("No unloadable elements to disconnect.");
|
|
}
|
|
|
|
public bool SetDataRoot(global::System.Object newDataRoot)
|
|
{
|
|
if (newDataRoot != null)
|
|
{
|
|
this.dataRoot = (global::HospitalServerManager.ViewModel.AdmissionViewModel)newDataRoot;
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Update methods for each path node used in binding steps.
|
|
private void Update_(global::HospitalServerManager.ViewModel.AdmissionViewModel obj, int phase)
|
|
{
|
|
if (obj != null)
|
|
{
|
|
if ((phase & (NOT_PHASED | (1 << 0))) != 0)
|
|
{
|
|
this.Update_PrimaryKey(obj.PrimaryKey, phase);
|
|
this.Update_AdmissionDate(obj.AdmissionDate, phase);
|
|
this.Update_LeavingDate(obj.LeavingDate, phase);
|
|
this.Update_PatientPESEL(obj.PatientPESEL, phase);
|
|
this.Update_DiagnosisSymbol(obj.DiagnosisSymbol, phase);
|
|
this.Update_MainDoctor(obj.MainDoctor, phase);
|
|
this.Update_OperationID(obj.OperationID, phase);
|
|
this.Update_RoomNumber(obj.RoomNumber, phase);
|
|
this.Update_IsPlanned(obj.IsPlanned, phase);
|
|
}
|
|
}
|
|
}
|
|
private void Update_PrimaryKey(global::System.String obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// View\AdmissionsPage.xaml line 155
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj6, obj, null);
|
|
}
|
|
}
|
|
private void Update_AdmissionDate(global::System.String obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// View\AdmissionsPage.xaml line 158
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj7, obj, null);
|
|
}
|
|
}
|
|
private void Update_LeavingDate(global::System.String obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// 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 163
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj9, obj, null);
|
|
}
|
|
}
|
|
private void Update_DiagnosisSymbol(global::System.String obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// View\AdmissionsPage.xaml line 165
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj10, obj, null);
|
|
}
|
|
}
|
|
private void Update_MainDoctor(global::System.Int32 obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// View\AdmissionsPage.xaml line 167
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj11, obj.ToString(), null);
|
|
}
|
|
}
|
|
private void Update_OperationID(global::System.Nullable<global::System.Int32> obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// View\AdmissionsPage.xaml line 169
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj12, obj.ToString(), null);
|
|
}
|
|
}
|
|
private void Update_RoomNumber(global::System.Int32 obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// View\AdmissionsPage.xaml line 171
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj13, obj.ToString(), null);
|
|
}
|
|
}
|
|
private void Update_IsPlanned(global::System.Boolean obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// View\AdmissionsPage.xaml line 173
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj14, obj.ToString(), null);
|
|
}
|
|
}
|
|
}
|
|
/// <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\AdmissionsPage.xaml line 12
|
|
{
|
|
this.RosterViewModel = (global::HospitalServerManager.ViewModel.RosterViewModel)(target);
|
|
}
|
|
break;
|
|
case 3: // View\AdmissionsPage.xaml line 31
|
|
{
|
|
this.pageTitle = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
|
|
}
|
|
break;
|
|
case 4: // View\AdmissionsPage.xaml line 130
|
|
{
|
|
this.databaseView = (global::Windows.UI.Xaml.Controls.ListView)(target);
|
|
}
|
|
break;
|
|
case 16: // View\AdmissionsPage.xaml line 85
|
|
{
|
|
this.sortComboBox = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
|
|
((global::Windows.UI.Xaml.Controls.ComboBox)this.sortComboBox).SelectionChanged += this.SortComboBox_SelectionChanged;
|
|
}
|
|
break;
|
|
case 17: // View\AdmissionsPage.xaml line 88
|
|
{
|
|
this.radioBtn1 = (global::Windows.UI.Xaml.Controls.RadioButton)(target);
|
|
((global::Windows.UI.Xaml.Controls.RadioButton)this.radioBtn1).Click += this.RadionBtn_Click;
|
|
}
|
|
break;
|
|
case 18: // View\AdmissionsPage.xaml line 89
|
|
{
|
|
this.radionBtn2 = (global::Windows.UI.Xaml.Controls.RadioButton)(target);
|
|
((global::Windows.UI.Xaml.Controls.RadioButton)this.radionBtn2).Click += this.RadionBtn_Click;
|
|
}
|
|
break;
|
|
case 19: // View\AdmissionsPage.xaml line 58
|
|
{
|
|
this.searchBox = (global::Windows.UI.Xaml.Controls.TextBox)(target);
|
|
}
|
|
break;
|
|
case 20: // View\AdmissionsPage.xaml line 60
|
|
{
|
|
this.lookInComboBox = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
|
|
}
|
|
break;
|
|
case 21: // View\AdmissionsPage.xaml line 63
|
|
{
|
|
global::Windows.UI.Xaml.Controls.Button element21 = (global::Windows.UI.Xaml.Controls.Button)(target);
|
|
((global::Windows.UI.Xaml.Controls.Button)element21).Click += this.SearchButton_Click;
|
|
}
|
|
break;
|
|
case 22: // View\AdmissionsPage.xaml line 64
|
|
{
|
|
global::Windows.UI.Xaml.Controls.Button element22 = (global::Windows.UI.Xaml.Controls.Button)(target);
|
|
((global::Windows.UI.Xaml.Controls.Button)element22).Click += this.ResetButton_Click;
|
|
}
|
|
break;
|
|
case 23: // View\AdmissionsPage.xaml line 34
|
|
{
|
|
this.btnNewRecord = (global::Windows.UI.Xaml.Controls.Button)(target);
|
|
}
|
|
break;
|
|
case 24: // View\AdmissionsPage.xaml line 35
|
|
{
|
|
global::Windows.UI.Xaml.Controls.Button element24 = (global::Windows.UI.Xaml.Controls.Button)(target);
|
|
((global::Windows.UI.Xaml.Controls.Button)element24).Click += this.DeleteButton_Click;
|
|
}
|
|
break;
|
|
case 25: // View\AdmissionsPage.xaml line 36
|
|
{
|
|
global::Windows.UI.Xaml.Controls.Button element25 = (global::Windows.UI.Xaml.Controls.Button)(target);
|
|
((global::Windows.UI.Xaml.Controls.Button)element25).Click += this.EditButton_Click;
|
|
}
|
|
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;
|
|
switch(connectionId)
|
|
{
|
|
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();
|
|
returnValue = bindings;
|
|
bindings.SetDataRoot(element5.DataContext);
|
|
element5.DataContextChanged += bindings.DataContextChangedHandler;
|
|
global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element5, bindings);
|
|
global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element5, bindings);
|
|
}
|
|
break;
|
|
}
|
|
return returnValue;
|
|
}
|
|
}
|
|
}
|
|
|