From 8051a4ea2f9da1e3778faf3dedfd02e556ebf4a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ho=CC=88rler?= Date: Tue, 26 Jun 2018 22:06:18 +0200 Subject: [PATCH] first working entity patient takes place in db. --- Client/App.config | 33 +- Client/Client.csproj | 25 +- .../EHEC_Service/Reference.cs | 924 ++++++++++++++++++ .../EHEC_Service/Reference.svcmap | 36 + .../Service.disco} | 2 +- .../EHEC_Service/Service.wsdl | 116 +++ .../EHEC_Service/Service.xsd | 23 + .../EHEC_Service/Service1.xsd | 64 ++ .../EHEC_Service/Service2.xsd | 42 + .../EHEC_Service/Service3.xsd | 103 ++ .../EHEC_Service/configuration.svcinfo | 10 + .../configuration91.svcinfo | 16 +- .../ServiceReference1/Reference.cs | 60 -- .../ServiceReference1/Reference.svcmap | 33 - .../ServiceReference1/ServerService.wsdl | 37 - .../ServiceReference1/ServerService.xsd | 13 - .../ServiceReference1/configuration.svcinfo | 10 - Client/MainWindow.xaml | 58 +- Client/MainWindow.xaml.cs | 88 +- EHEC_Server/EHEC_Server/Web.config | 2 +- 20 files changed, 1440 insertions(+), 255 deletions(-) create mode 100644 Client/Connected Services/EHEC_Service/Reference.cs create mode 100644 Client/Connected Services/EHEC_Service/Reference.svcmap rename Client/Connected Services/{ServiceReference1/ServerService.disco => EHEC_Service/Service.disco} (51%) create mode 100644 Client/Connected Services/EHEC_Service/Service.wsdl create mode 100644 Client/Connected Services/EHEC_Service/Service.xsd create mode 100644 Client/Connected Services/EHEC_Service/Service1.xsd create mode 100644 Client/Connected Services/EHEC_Service/Service2.xsd create mode 100644 Client/Connected Services/EHEC_Service/Service3.xsd create mode 100644 Client/Connected Services/EHEC_Service/configuration.svcinfo rename Client/Connected Services/{ServiceReference1 => EHEC_Service}/configuration91.svcinfo (96%) delete mode 100644 Client/Connected Services/ServiceReference1/Reference.cs delete mode 100644 Client/Connected Services/ServiceReference1/Reference.svcmap delete mode 100644 Client/Connected Services/ServiceReference1/ServerService.wsdl delete mode 100644 Client/Connected Services/ServiceReference1/ServerService.xsd delete mode 100644 Client/Connected Services/ServiceReference1/configuration.svcinfo diff --git a/Client/App.config b/Client/App.config index ee1ef04..e482f83 100644 --- a/Client/App.config +++ b/Client/App.config @@ -3,39 +3,16 @@ - + - + - + - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Client/Client.csproj b/Client/Client.csproj index fc0015c..b27c435 100644 --- a/Client/Client.csproj +++ b/Client/Client.csproj @@ -82,7 +82,7 @@ App.xaml Code - + True True Reference.svcmap @@ -110,8 +110,17 @@ ResXFileCodeGenerator Resources.Designer.cs - - + + + Designer + + + Designer + + + Designer + + Designer @@ -127,19 +136,19 @@ - + - + - + - + - + WCF Proxy Generator Reference.cs diff --git a/Client/Connected Services/EHEC_Service/Reference.cs b/Client/Connected Services/EHEC_Service/Reference.cs new file mode 100644 index 0000000..7ee7244 --- /dev/null +++ b/Client/Connected Services/EHEC_Service/Reference.cs @@ -0,0 +1,924 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Client.EHEC_Service { + using System.Runtime.Serialization; + using System; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="DoctorAccess", Namespace="http://schemas.datacontract.org/2004/07/EHEC_Server.DatabaseAccess")] + [System.SerializableAttribute()] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(Client.EHEC_Service.Doctor))] + public partial class DoctorAccess : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { + + [System.NonSerializedAttribute()] + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + [global::System.ComponentModel.BrowsableAttribute(false)] + public System.Runtime.Serialization.ExtensionDataObject ExtensionData { + get { + return this.extensionDataField; + } + set { + this.extensionDataField = value; + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="Doctor", Namespace="http://schemas.datacontract.org/2004/07/EHEC_Server")] + [System.SerializableAttribute()] + public partial class Doctor : Client.EHEC_Service.DoctorAccess { + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private int DoctorIdField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string DoctorOriginField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private Client.EHEC_Service.Exam[] ExamField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string FirstNameField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string LastNameField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string RegionField; + + [System.Runtime.Serialization.DataMemberAttribute()] + public int DoctorId { + get { + return this.DoctorIdField; + } + set { + if ((this.DoctorIdField.Equals(value) != true)) { + this.DoctorIdField = value; + this.RaisePropertyChanged("DoctorId"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string DoctorOrigin { + get { + return this.DoctorOriginField; + } + set { + if ((object.ReferenceEquals(this.DoctorOriginField, value) != true)) { + this.DoctorOriginField = value; + this.RaisePropertyChanged("DoctorOrigin"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public Client.EHEC_Service.Exam[] Exam { + get { + return this.ExamField; + } + set { + if ((object.ReferenceEquals(this.ExamField, value) != true)) { + this.ExamField = value; + this.RaisePropertyChanged("Exam"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string FirstName { + get { + return this.FirstNameField; + } + set { + if ((object.ReferenceEquals(this.FirstNameField, value) != true)) { + this.FirstNameField = value; + this.RaisePropertyChanged("FirstName"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string LastName { + get { + return this.LastNameField; + } + set { + if ((object.ReferenceEquals(this.LastNameField, value) != true)) { + this.LastNameField = value; + this.RaisePropertyChanged("LastName"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string Region { + get { + return this.RegionField; + } + set { + if ((object.ReferenceEquals(this.RegionField, value) != true)) { + this.RegionField = value; + this.RaisePropertyChanged("Region"); + } + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="Exam", Namespace="http://schemas.datacontract.org/2004/07/EHEC_Server")] + [System.SerializableAttribute()] + public partial class Exam : Client.EHEC_Service.ExamAccess { + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private Client.EHEC_Service.Doctor DoctorField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private int DoctorIdField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private int ExamIdField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private int OriginOriginIdField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private Client.EHEC_Service.Origin_Exam[] Origin_ExamField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private Client.EHEC_Service.Patient PatientField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private int PatientIdField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private Client.EHEC_Service.Result ResultField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private int Result_ResultIdField; + + [System.Runtime.Serialization.DataMemberAttribute()] + public Client.EHEC_Service.Doctor Doctor { + get { + return this.DoctorField; + } + set { + if ((object.ReferenceEquals(this.DoctorField, value) != true)) { + this.DoctorField = value; + this.RaisePropertyChanged("Doctor"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public int DoctorId { + get { + return this.DoctorIdField; + } + set { + if ((this.DoctorIdField.Equals(value) != true)) { + this.DoctorIdField = value; + this.RaisePropertyChanged("DoctorId"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public int ExamId { + get { + return this.ExamIdField; + } + set { + if ((this.ExamIdField.Equals(value) != true)) { + this.ExamIdField = value; + this.RaisePropertyChanged("ExamId"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public int OriginOriginId { + get { + return this.OriginOriginIdField; + } + set { + if ((this.OriginOriginIdField.Equals(value) != true)) { + this.OriginOriginIdField = value; + this.RaisePropertyChanged("OriginOriginId"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public Client.EHEC_Service.Origin_Exam[] Origin_Exam { + get { + return this.Origin_ExamField; + } + set { + if ((object.ReferenceEquals(this.Origin_ExamField, value) != true)) { + this.Origin_ExamField = value; + this.RaisePropertyChanged("Origin_Exam"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public Client.EHEC_Service.Patient Patient { + get { + return this.PatientField; + } + set { + if ((object.ReferenceEquals(this.PatientField, value) != true)) { + this.PatientField = value; + this.RaisePropertyChanged("Patient"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public int PatientId { + get { + return this.PatientIdField; + } + set { + if ((this.PatientIdField.Equals(value) != true)) { + this.PatientIdField = value; + this.RaisePropertyChanged("PatientId"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public Client.EHEC_Service.Result Result { + get { + return this.ResultField; + } + set { + if ((object.ReferenceEquals(this.ResultField, value) != true)) { + this.ResultField = value; + this.RaisePropertyChanged("Result"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public int Result_ResultId { + get { + return this.Result_ResultIdField; + } + set { + if ((this.Result_ResultIdField.Equals(value) != true)) { + this.Result_ResultIdField = value; + this.RaisePropertyChanged("Result_ResultId"); + } + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ExamAccess", Namespace="http://schemas.datacontract.org/2004/07/EHEC_Server.DatabaseAccess")] + [System.SerializableAttribute()] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(Client.EHEC_Service.Exam))] + public partial class ExamAccess : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { + + [System.NonSerializedAttribute()] + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + [global::System.ComponentModel.BrowsableAttribute(false)] + public System.Runtime.Serialization.ExtensionDataObject ExtensionData { + get { + return this.extensionDataField; + } + set { + this.extensionDataField = value; + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="Patient", Namespace="http://schemas.datacontract.org/2004/07/EHEC_Server")] + [System.SerializableAttribute()] + public partial class Patient : Client.EHEC_Service.PatientAccess { + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private System.DateTime BirthDateField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string CityField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private Client.EHEC_Service.Exam[] ExamField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string FirstNameField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string LastNameField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private int PatientIdField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string RegionField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string StreetField; + + [System.Runtime.Serialization.DataMemberAttribute()] + public System.DateTime BirthDate { + get { + return this.BirthDateField; + } + set { + if ((this.BirthDateField.Equals(value) != true)) { + this.BirthDateField = value; + this.RaisePropertyChanged("BirthDate"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string City { + get { + return this.CityField; + } + set { + if ((object.ReferenceEquals(this.CityField, value) != true)) { + this.CityField = value; + this.RaisePropertyChanged("City"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public Client.EHEC_Service.Exam[] Exam { + get { + return this.ExamField; + } + set { + if ((object.ReferenceEquals(this.ExamField, value) != true)) { + this.ExamField = value; + this.RaisePropertyChanged("Exam"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string FirstName { + get { + return this.FirstNameField; + } + set { + if ((object.ReferenceEquals(this.FirstNameField, value) != true)) { + this.FirstNameField = value; + this.RaisePropertyChanged("FirstName"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string LastName { + get { + return this.LastNameField; + } + set { + if ((object.ReferenceEquals(this.LastNameField, value) != true)) { + this.LastNameField = value; + this.RaisePropertyChanged("LastName"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public int PatientId { + get { + return this.PatientIdField; + } + set { + if ((this.PatientIdField.Equals(value) != true)) { + this.PatientIdField = value; + this.RaisePropertyChanged("PatientId"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string Region { + get { + return this.RegionField; + } + set { + if ((object.ReferenceEquals(this.RegionField, value) != true)) { + this.RegionField = value; + this.RaisePropertyChanged("Region"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string Street { + get { + return this.StreetField; + } + set { + if ((object.ReferenceEquals(this.StreetField, value) != true)) { + this.StreetField = value; + this.RaisePropertyChanged("Street"); + } + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="Result", Namespace="http://schemas.datacontract.org/2004/07/EHEC_Server")] + [System.SerializableAttribute()] + public partial class Result : Client.EHEC_Service.ResultAccess { + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private Client.EHEC_Service.Exam[] ExamField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string NameField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private int ResultIdField; + + [System.Runtime.Serialization.DataMemberAttribute()] + public Client.EHEC_Service.Exam[] Exam { + get { + return this.ExamField; + } + set { + if ((object.ReferenceEquals(this.ExamField, value) != true)) { + this.ExamField = value; + this.RaisePropertyChanged("Exam"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string Name { + get { + return this.NameField; + } + set { + if ((object.ReferenceEquals(this.NameField, value) != true)) { + this.NameField = value; + this.RaisePropertyChanged("Name"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public int ResultId { + get { + return this.ResultIdField; + } + set { + if ((this.ResultIdField.Equals(value) != true)) { + this.ResultIdField = value; + this.RaisePropertyChanged("ResultId"); + } + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="Origin_Exam", Namespace="http://schemas.datacontract.org/2004/07/EHEC_Server")] + [System.SerializableAttribute()] + public partial class Origin_Exam : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { + + [System.NonSerializedAttribute()] + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private Client.EHEC_Service.Exam ExamField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private int ExamExamIdField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private Client.EHEC_Service.Origin OriginField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private int OriginOriginIdField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private int Origin_ExamIdField; + + [global::System.ComponentModel.BrowsableAttribute(false)] + public System.Runtime.Serialization.ExtensionDataObject ExtensionData { + get { + return this.extensionDataField; + } + set { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public Client.EHEC_Service.Exam Exam { + get { + return this.ExamField; + } + set { + if ((object.ReferenceEquals(this.ExamField, value) != true)) { + this.ExamField = value; + this.RaisePropertyChanged("Exam"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public int ExamExamId { + get { + return this.ExamExamIdField; + } + set { + if ((this.ExamExamIdField.Equals(value) != true)) { + this.ExamExamIdField = value; + this.RaisePropertyChanged("ExamExamId"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public Client.EHEC_Service.Origin Origin { + get { + return this.OriginField; + } + set { + if ((object.ReferenceEquals(this.OriginField, value) != true)) { + this.OriginField = value; + this.RaisePropertyChanged("Origin"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public int OriginOriginId { + get { + return this.OriginOriginIdField; + } + set { + if ((this.OriginOriginIdField.Equals(value) != true)) { + this.OriginOriginIdField = value; + this.RaisePropertyChanged("OriginOriginId"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public int Origin_ExamId { + get { + return this.Origin_ExamIdField; + } + set { + if ((this.Origin_ExamIdField.Equals(value) != true)) { + this.Origin_ExamIdField = value; + this.RaisePropertyChanged("Origin_ExamId"); + } + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="Origin", Namespace="http://schemas.datacontract.org/2004/07/EHEC_Server")] + [System.SerializableAttribute()] + public partial class Origin : Client.EHEC_Service.OriginAccess { + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string CityField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string FoodField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string NameField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private int OriginIdField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private Client.EHEC_Service.Origin_Exam[] Origin_ExamField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string StreetField; + + [System.Runtime.Serialization.DataMemberAttribute()] + public string City { + get { + return this.CityField; + } + set { + if ((object.ReferenceEquals(this.CityField, value) != true)) { + this.CityField = value; + this.RaisePropertyChanged("City"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string Food { + get { + return this.FoodField; + } + set { + if ((object.ReferenceEquals(this.FoodField, value) != true)) { + this.FoodField = value; + this.RaisePropertyChanged("Food"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string Name { + get { + return this.NameField; + } + set { + if ((object.ReferenceEquals(this.NameField, value) != true)) { + this.NameField = value; + this.RaisePropertyChanged("Name"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public int OriginId { + get { + return this.OriginIdField; + } + set { + if ((this.OriginIdField.Equals(value) != true)) { + this.OriginIdField = value; + this.RaisePropertyChanged("OriginId"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public Client.EHEC_Service.Origin_Exam[] Origin_Exam { + get { + return this.Origin_ExamField; + } + set { + if ((object.ReferenceEquals(this.Origin_ExamField, value) != true)) { + this.Origin_ExamField = value; + this.RaisePropertyChanged("Origin_Exam"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string Street { + get { + return this.StreetField; + } + set { + if ((object.ReferenceEquals(this.StreetField, value) != true)) { + this.StreetField = value; + this.RaisePropertyChanged("Street"); + } + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="OriginAccess", Namespace="http://schemas.datacontract.org/2004/07/EHEC_Server.DatabaseAccess")] + [System.SerializableAttribute()] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(Client.EHEC_Service.Origin))] + public partial class OriginAccess : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { + + [System.NonSerializedAttribute()] + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + [global::System.ComponentModel.BrowsableAttribute(false)] + public System.Runtime.Serialization.ExtensionDataObject ExtensionData { + get { + return this.extensionDataField; + } + set { + this.extensionDataField = value; + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="PatientAccess", Namespace="http://schemas.datacontract.org/2004/07/EHEC_Server.DatabaseAccess")] + [System.SerializableAttribute()] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(Client.EHEC_Service.Patient))] + public partial class PatientAccess : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { + + [System.NonSerializedAttribute()] + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + [global::System.ComponentModel.BrowsableAttribute(false)] + public System.Runtime.Serialization.ExtensionDataObject ExtensionData { + get { + return this.extensionDataField; + } + set { + this.extensionDataField = value; + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ResultAccess", Namespace="http://schemas.datacontract.org/2004/07/EHEC_Server.DatabaseAccess")] + [System.SerializableAttribute()] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(Client.EHEC_Service.Result))] + public partial class ResultAccess : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { + + [System.NonSerializedAttribute()] + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + [global::System.ComponentModel.BrowsableAttribute(false)] + public System.Runtime.Serialization.ExtensionDataObject ExtensionData { + get { + return this.extensionDataField; + } + set { + this.extensionDataField = value; + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(ConfigurationName="EHEC_Service.IService")] + public interface IService { + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/WriteDoctor", ReplyAction="http://tempuri.org/IService/WriteDoctorResponse")] + void WriteDoctor(Client.EHEC_Service.Doctor doctor); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/WriteDoctor", ReplyAction="http://tempuri.org/IService/WriteDoctorResponse")] + System.Threading.Tasks.Task WriteDoctorAsync(Client.EHEC_Service.Doctor doctor); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/WritePatient", ReplyAction="http://tempuri.org/IService/WritePatientResponse")] + void WritePatient(Client.EHEC_Service.Patient patient); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/WritePatient", ReplyAction="http://tempuri.org/IService/WritePatientResponse")] + System.Threading.Tasks.Task WritePatientAsync(Client.EHEC_Service.Patient patient); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/WriteOrigin", ReplyAction="http://tempuri.org/IService/WriteOriginResponse")] + void WriteOrigin(Client.EHEC_Service.Origin origin); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/WriteOrigin", ReplyAction="http://tempuri.org/IService/WriteOriginResponse")] + System.Threading.Tasks.Task WriteOriginAsync(Client.EHEC_Service.Origin origin); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/WriteExam", ReplyAction="http://tempuri.org/IService/WriteExamResponse")] + void WriteExam(Client.EHEC_Service.Exam exam); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/WriteExam", ReplyAction="http://tempuri.org/IService/WriteExamResponse")] + System.Threading.Tasks.Task WriteExamAsync(Client.EHEC_Service.Exam exam); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/WriteResult", ReplyAction="http://tempuri.org/IService/WriteResultResponse")] + void WriteResult(Client.EHEC_Service.Result result); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/WriteResult", ReplyAction="http://tempuri.org/IService/WriteResultResponse")] + System.Threading.Tasks.Task WriteResultAsync(Client.EHEC_Service.Result result); + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface IServiceChannel : Client.EHEC_Service.IService, System.ServiceModel.IClientChannel { + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class ServiceClient : System.ServiceModel.ClientBase, Client.EHEC_Service.IService { + + public ServiceClient() { + } + + public ServiceClient(string endpointConfigurationName) : + base(endpointConfigurationName) { + } + + public ServiceClient(string endpointConfigurationName, string remoteAddress) : + base(endpointConfigurationName, remoteAddress) { + } + + public ServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : + base(endpointConfigurationName, remoteAddress) { + } + + public ServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : + base(binding, remoteAddress) { + } + + public void WriteDoctor(Client.EHEC_Service.Doctor doctor) { + base.Channel.WriteDoctor(doctor); + } + + public System.Threading.Tasks.Task WriteDoctorAsync(Client.EHEC_Service.Doctor doctor) { + return base.Channel.WriteDoctorAsync(doctor); + } + + public void WritePatient(Client.EHEC_Service.Patient patient) { + base.Channel.WritePatient(patient); + } + + public System.Threading.Tasks.Task WritePatientAsync(Client.EHEC_Service.Patient patient) { + return base.Channel.WritePatientAsync(patient); + } + + public void WriteOrigin(Client.EHEC_Service.Origin origin) { + base.Channel.WriteOrigin(origin); + } + + public System.Threading.Tasks.Task WriteOriginAsync(Client.EHEC_Service.Origin origin) { + return base.Channel.WriteOriginAsync(origin); + } + + public void WriteExam(Client.EHEC_Service.Exam exam) { + base.Channel.WriteExam(exam); + } + + public System.Threading.Tasks.Task WriteExamAsync(Client.EHEC_Service.Exam exam) { + return base.Channel.WriteExamAsync(exam); + } + + public void WriteResult(Client.EHEC_Service.Result result) { + base.Channel.WriteResult(result); + } + + public System.Threading.Tasks.Task WriteResultAsync(Client.EHEC_Service.Result result) { + return base.Channel.WriteResultAsync(result); + } + } +} diff --git a/Client/Connected Services/EHEC_Service/Reference.svcmap b/Client/Connected Services/EHEC_Service/Reference.svcmap new file mode 100644 index 0000000..20a85df --- /dev/null +++ b/Client/Connected Services/EHEC_Service/Reference.svcmap @@ -0,0 +1,36 @@ + + + + false + true + true + + false + false + false + + + true + Auto + true + true + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Client/Connected Services/ServiceReference1/ServerService.disco b/Client/Connected Services/EHEC_Service/Service.disco similarity index 51% rename from Client/Connected Services/ServiceReference1/ServerService.disco rename to Client/Connected Services/EHEC_Service/Service.disco index 1b03d49..aacc863 100644 --- a/Client/Connected Services/ServiceReference1/ServerService.disco +++ b/Client/Connected Services/EHEC_Service/Service.disco @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/Client/Connected Services/EHEC_Service/Service.wsdl b/Client/Connected Services/EHEC_Service/Service.wsdl new file mode 100644 index 0000000..93845d0 --- /dev/null +++ b/Client/Connected Services/EHEC_Service/Service.wsdl @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Client/Connected Services/EHEC_Service/Service.xsd b/Client/Connected Services/EHEC_Service/Service.xsd new file mode 100644 index 0000000..a249447 --- /dev/null +++ b/Client/Connected Services/EHEC_Service/Service.xsd @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Client/Connected Services/EHEC_Service/Service1.xsd b/Client/Connected Services/EHEC_Service/Service1.xsd new file mode 100644 index 0000000..23d304e --- /dev/null +++ b/Client/Connected Services/EHEC_Service/Service1.xsd @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Client/Connected Services/EHEC_Service/Service2.xsd b/Client/Connected Services/EHEC_Service/Service2.xsd new file mode 100644 index 0000000..d58e7f3 --- /dev/null +++ b/Client/Connected Services/EHEC_Service/Service2.xsd @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Client/Connected Services/EHEC_Service/Service3.xsd b/Client/Connected Services/EHEC_Service/Service3.xsd new file mode 100644 index 0000000..18846d1 --- /dev/null +++ b/Client/Connected Services/EHEC_Service/Service3.xsd @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Client/Connected Services/EHEC_Service/configuration.svcinfo b/Client/Connected Services/EHEC_Service/configuration.svcinfo new file mode 100644 index 0000000..62793fc --- /dev/null +++ b/Client/Connected Services/EHEC_Service/configuration.svcinfo @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Client/Connected Services/ServiceReference1/configuration91.svcinfo b/Client/Connected Services/EHEC_Service/configuration91.svcinfo similarity index 96% rename from Client/Connected Services/ServiceReference1/configuration91.svcinfo rename to Client/Connected Services/EHEC_Service/configuration91.svcinfo index 5e3bf21..86efe6e 100644 --- a/Client/Connected Services/ServiceReference1/configuration91.svcinfo +++ b/Client/Connected Services/EHEC_Service/configuration91.svcinfo @@ -1,10 +1,10 @@ - + - + - BasicHttpBinding_IServerService + BasicHttpBinding_IService @@ -112,10 +112,10 @@ - + - http://localhost:58304/ServerService.svc + http://localhost:50200/Service.svc @@ -124,10 +124,10 @@ basicHttpBinding - BasicHttpBinding_IServerService + BasicHttpBinding_IService - ServiceReference1.IServerService + EHEC_Service.IService System.ServiceModel.Configuration.AddressHeaderCollectionElement @@ -187,7 +187,7 @@ False - BasicHttpBinding_IServerService + BasicHttpBinding_IService diff --git a/Client/Connected Services/ServiceReference1/Reference.cs b/Client/Connected Services/ServiceReference1/Reference.cs deleted file mode 100644 index 3e283d6..0000000 --- a/Client/Connected Services/ServiceReference1/Reference.cs +++ /dev/null @@ -1,60 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Client.ServiceReference1 { - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - [System.ServiceModel.ServiceContractAttribute(ConfigurationName="ServiceReference1.IServerService")] - public interface IServerService { - - [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IServerService/DoWork", ReplyAction="http://tempuri.org/IServerService/DoWorkResponse")] - void DoWork(); - - [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IServerService/DoWork", ReplyAction="http://tempuri.org/IServerService/DoWorkResponse")] - System.Threading.Tasks.Task DoWorkAsync(); - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public interface IServerServiceChannel : Client.ServiceReference1.IServerService, System.ServiceModel.IClientChannel { - } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] - public partial class ServerServiceClient : System.ServiceModel.ClientBase, Client.ServiceReference1.IServerService { - - public ServerServiceClient() { - } - - public ServerServiceClient(string endpointConfigurationName) : - base(endpointConfigurationName) { - } - - public ServerServiceClient(string endpointConfigurationName, string remoteAddress) : - base(endpointConfigurationName, remoteAddress) { - } - - public ServerServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : - base(endpointConfigurationName, remoteAddress) { - } - - public ServerServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : - base(binding, remoteAddress) { - } - - public void DoWork() { - base.Channel.DoWork(); - } - - public System.Threading.Tasks.Task DoWorkAsync() { - return base.Channel.DoWorkAsync(); - } - } -} diff --git a/Client/Connected Services/ServiceReference1/Reference.svcmap b/Client/Connected Services/ServiceReference1/Reference.svcmap deleted file mode 100644 index ea5671a..0000000 --- a/Client/Connected Services/ServiceReference1/Reference.svcmap +++ /dev/null @@ -1,33 +0,0 @@ - - - - false - true - true - - false - false - false - - - true - Auto - true - true - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Client/Connected Services/ServiceReference1/ServerService.wsdl b/Client/Connected Services/ServiceReference1/ServerService.wsdl deleted file mode 100644 index ff4f9fe..0000000 --- a/Client/Connected Services/ServiceReference1/ServerService.wsdl +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Client/Connected Services/ServiceReference1/ServerService.xsd b/Client/Connected Services/ServiceReference1/ServerService.xsd deleted file mode 100644 index 29c2076..0000000 --- a/Client/Connected Services/ServiceReference1/ServerService.xsd +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/Client/Connected Services/ServiceReference1/configuration.svcinfo b/Client/Connected Services/ServiceReference1/configuration.svcinfo deleted file mode 100644 index 8d778e0..0000000 --- a/Client/Connected Services/ServiceReference1/configuration.svcinfo +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/Client/MainWindow.xaml b/Client/MainWindow.xaml index 567a815..f40acf7 100644 --- a/Client/MainWindow.xaml +++ b/Client/MainWindow.xaml @@ -6,8 +6,8 @@ xmlns:local="clr-namespace:Client" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" mc:Ignorable="d" - Title="MainWindow" Height="447.728" Width="800" WindowStyle="None" ShowInTaskbar="False" WindowStartupLocation="CenterScreen"> - + Title="MainWindow" Height="482.318" Width="800" WindowStyle="None" ShowInTaskbar="False" WindowStartupLocation="CenterScreen"> + @@ -17,178 +17,178 @@