make major changes to views

This commit is contained in:
Strati 2018-07-01 15:32:50 +02:00
parent f1721e1c25
commit 060ec425fa
19 changed files with 731 additions and 171 deletions

View File

@ -0,0 +1,15 @@
<Page x:Class="WpfWebClient.AddFoodplace"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:WpfWebClient"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
Title="Home" Width="593" Height="565">
<Grid Width="593" Height="565">
<Label Content="Neuen Foodplace" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontFamily="Tahoma" FontSize="48" Height="61" Width="583"/>
</Grid>
</Page>

View File

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace WpfWebClient
{
/// <summary>
/// Interaction logic for AddFoodplace.xaml
/// </summary>
public partial class AddFoodplace : Page
{
public AddFoodplace()
{
InitializeComponent();
}
}
}

View File

@ -6,7 +6,7 @@
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IService" />
<binding name="BasicHttpBinding_IService" maxBufferSize="64000000" maxReceivedMessageSize="64000000"/>
</basicHttpBinding>
</bindings>
<client>

View File

@ -35,6 +35,9 @@ namespace WpfWebClient.ServiceReferenceEHEC {
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string LastNameField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private WpfWebClient.ServiceReferenceEHEC.PatientAtFoodPlace[] PatientAtFoodPlacesField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private int PersonIDField;
@ -44,6 +47,9 @@ namespace WpfWebClient.ServiceReferenceEHEC {
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string StreetNameField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string StreetNumberField;
[global::System.ComponentModel.BrowsableAttribute(false)]
public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
get {
@ -106,6 +112,19 @@ namespace WpfWebClient.ServiceReferenceEHEC {
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public WpfWebClient.ServiceReferenceEHEC.PatientAtFoodPlace[] PatientAtFoodPlaces {
get {
return this.PatientAtFoodPlacesField;
}
set {
if ((object.ReferenceEquals(this.PatientAtFoodPlacesField, value) != true)) {
this.PatientAtFoodPlacesField = value;
this.RaisePropertyChanged("PatientAtFoodPlaces");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public int PersonID {
get {
@ -145,6 +164,19 @@ namespace WpfWebClient.ServiceReferenceEHEC {
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string StreetNumber {
get {
return this.StreetNumberField;
}
set {
if ((object.ReferenceEquals(this.StreetNumberField, value) != true)) {
this.StreetNumberField = value;
this.RaisePropertyChanged("StreetNumber");
}
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
@ -393,6 +425,115 @@ namespace WpfWebClient.ServiceReferenceEHEC {
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
[System.Runtime.Serialization.DataContractAttribute(Name="PatientAtFoodPlace", Namespace="http://schemas.datacontract.org/2004/07/Server.Models")]
[System.SerializableAttribute()]
public partial class PatientAtFoodPlace : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
[System.NonSerializedAttribute()]
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private WpfWebClient.ServiceReferenceEHEC.FoodPlace FoodPlaceField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private int FoodPlaceIDField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private WpfWebClient.ServiceReferenceEHEC.Person PatientField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private int PatientIDField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.DateTime VistingDateField;
[global::System.ComponentModel.BrowsableAttribute(false)]
public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
get {
return this.extensionDataField;
}
set {
this.extensionDataField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public WpfWebClient.ServiceReferenceEHEC.FoodPlace FoodPlace {
get {
return this.FoodPlaceField;
}
set {
if ((object.ReferenceEquals(this.FoodPlaceField, value) != true)) {
this.FoodPlaceField = value;
this.RaisePropertyChanged("FoodPlace");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public int FoodPlaceID {
get {
return this.FoodPlaceIDField;
}
set {
if ((this.FoodPlaceIDField.Equals(value) != true)) {
this.FoodPlaceIDField = value;
this.RaisePropertyChanged("FoodPlaceID");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public WpfWebClient.ServiceReferenceEHEC.Person 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 System.DateTime VistingDate {
get {
return this.VistingDateField;
}
set {
if ((this.VistingDateField.Equals(value) != true)) {
this.VistingDateField = value;
this.RaisePropertyChanged("VistingDate");
}
}
}
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="Country", Namespace="http://schemas.datacontract.org/2004/07/Server.Models")]
@ -454,6 +595,147 @@ namespace WpfWebClient.ServiceReferenceEHEC {
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
[System.Runtime.Serialization.DataContractAttribute(Name="FoodPlace", Namespace="http://schemas.datacontract.org/2004/07/Server.Models")]
[System.SerializableAttribute()]
public partial class FoodPlace : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
[System.NonSerializedAttribute()]
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private WpfWebClient.ServiceReferenceEHEC.City CityField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string DescriptionField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private int FoodPlaceIDField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string NameField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private WpfWebClient.ServiceReferenceEHEC.PatientAtFoodPlace[] PatientAtFoodPlacesField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string StreetnameField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string StreetnumberField;
[global::System.ComponentModel.BrowsableAttribute(false)]
public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
get {
return this.extensionDataField;
}
set {
this.extensionDataField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public WpfWebClient.ServiceReferenceEHEC.City 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 Description {
get {
return this.DescriptionField;
}
set {
if ((object.ReferenceEquals(this.DescriptionField, value) != true)) {
this.DescriptionField = value;
this.RaisePropertyChanged("Description");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public int FoodPlaceID {
get {
return this.FoodPlaceIDField;
}
set {
if ((this.FoodPlaceIDField.Equals(value) != true)) {
this.FoodPlaceIDField = value;
this.RaisePropertyChanged("FoodPlaceID");
}
}
}
[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 WpfWebClient.ServiceReferenceEHEC.PatientAtFoodPlace[] PatientAtFoodPlaces {
get {
return this.PatientAtFoodPlacesField;
}
set {
if ((object.ReferenceEquals(this.PatientAtFoodPlacesField, value) != true)) {
this.PatientAtFoodPlacesField = value;
this.RaisePropertyChanged("PatientAtFoodPlaces");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Streetname {
get {
return this.StreetnameField;
}
set {
if ((object.ReferenceEquals(this.StreetnameField, value) != true)) {
this.StreetnameField = value;
this.RaisePropertyChanged("Streetname");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Streetnumber {
get {
return this.StreetnumberField;
}
set {
if ((object.ReferenceEquals(this.StreetnumberField, value) != true)) {
this.StreetnumberField = value;
this.RaisePropertyChanged("Streetnumber");
}
}
}
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="Exam", Namespace="http://schemas.datacontract.org/2004/07/Server.Models")]
@ -466,6 +748,9 @@ namespace WpfWebClient.ServiceReferenceEHEC {
[System.Runtime.Serialization.OptionalFieldAttribute()]
private System.DateTime DateField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string DescriptionField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private WpfWebClient.ServiceReferenceEHEC.Doctor DoctorField;
@ -476,7 +761,7 @@ namespace WpfWebClient.ServiceReferenceEHEC {
private WpfWebClient.ServiceReferenceEHEC.Person PatientField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private WpfWebClient.ServiceReferenceEHEC.Result ResultField;
private WpfWebClient.ServiceReferenceEHEC.Strain StrainField;
[global::System.ComponentModel.BrowsableAttribute(false)]
public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
@ -501,6 +786,19 @@ namespace WpfWebClient.ServiceReferenceEHEC {
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Description {
get {
return this.DescriptionField;
}
set {
if ((object.ReferenceEquals(this.DescriptionField, value) != true)) {
this.DescriptionField = value;
this.RaisePropertyChanged("Description");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public WpfWebClient.ServiceReferenceEHEC.Doctor Doctor {
get {
@ -540,99 +838,6 @@ namespace WpfWebClient.ServiceReferenceEHEC {
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public WpfWebClient.ServiceReferenceEHEC.Result Result {
get {
return this.ResultField;
}
set {
if ((object.ReferenceEquals(this.ResultField, value) != true)) {
this.ResultField = value;
this.RaisePropertyChanged("Result");
}
}
}
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="Result", Namespace="http://schemas.datacontract.org/2004/07/Server.Models")]
[System.SerializableAttribute()]
public partial class Result : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
[System.NonSerializedAttribute()]
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string DescriptionField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string NameField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private int ResultIDField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private WpfWebClient.ServiceReferenceEHEC.Strain StrainField;
[global::System.ComponentModel.BrowsableAttribute(false)]
public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
get {
return this.extensionDataField;
}
set {
this.extensionDataField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Description {
get {
return this.DescriptionField;
}
set {
if ((object.ReferenceEquals(this.DescriptionField, value) != true)) {
this.DescriptionField = value;
this.RaisePropertyChanged("Description");
}
}
}
[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.Runtime.Serialization.DataMemberAttribute()]
public WpfWebClient.ServiceReferenceEHEC.Strain Strain {
get {
@ -733,12 +938,6 @@ namespace WpfWebClient.ServiceReferenceEHEC {
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/WriteExam", ReplyAction="http://tempuri.org/IService/WriteExamResponse")]
System.Threading.Tasks.Task WriteExamAsync(WpfWebClient.ServiceReferenceEHEC.Exam exam);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/WriteResult", ReplyAction="http://tempuri.org/IService/WriteResultResponse")]
void WriteResult(WpfWebClient.ServiceReferenceEHEC.Result result);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/WriteResult", ReplyAction="http://tempuri.org/IService/WriteResultResponse")]
System.Threading.Tasks.Task WriteResultAsync(WpfWebClient.ServiceReferenceEHEC.Result result);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/WriteCity", ReplyAction="http://tempuri.org/IService/WriteCityResponse")]
void WriteCity(WpfWebClient.ServiceReferenceEHEC.City city);
@ -751,6 +950,12 @@ namespace WpfWebClient.ServiceReferenceEHEC {
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/WriteCountry", ReplyAction="http://tempuri.org/IService/WriteCountryResponse")]
System.Threading.Tasks.Task WriteCountryAsync(WpfWebClient.ServiceReferenceEHEC.Country country);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/WriteFoodPlace", ReplyAction="http://tempuri.org/IService/WriteFoodPlaceResponse")]
void WriteFoodPlace(WpfWebClient.ServiceReferenceEHEC.FoodPlace foodplace);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/WriteFoodPlace", ReplyAction="http://tempuri.org/IService/WriteFoodPlaceResponse")]
System.Threading.Tasks.Task WriteFoodPlaceAsync(WpfWebClient.ServiceReferenceEHEC.FoodPlace foodplace);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/GetGenders", ReplyAction="http://tempuri.org/IService/GetGendersResponse")]
WpfWebClient.ServiceReferenceEHEC.Gender[] GetGenders();
@ -774,6 +979,30 @@ namespace WpfWebClient.ServiceReferenceEHEC {
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/GetDoctors", ReplyAction="http://tempuri.org/IService/GetDoctorsResponse")]
System.Threading.Tasks.Task<WpfWebClient.ServiceReferenceEHEC.Doctor[]> GetDoctorsAsync();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/GetCities", ReplyAction="http://tempuri.org/IService/GetCitiesResponse")]
WpfWebClient.ServiceReferenceEHEC.City[] GetCities();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/GetCities", ReplyAction="http://tempuri.org/IService/GetCitiesResponse")]
System.Threading.Tasks.Task<WpfWebClient.ServiceReferenceEHEC.City[]> GetCitiesAsync();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/GetCountries", ReplyAction="http://tempuri.org/IService/GetCountriesResponse")]
WpfWebClient.ServiceReferenceEHEC.Country[] GetCountries();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/GetCountries", ReplyAction="http://tempuri.org/IService/GetCountriesResponse")]
System.Threading.Tasks.Task<WpfWebClient.ServiceReferenceEHEC.Country[]> GetCountriesAsync();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/GetFoodPlaces", ReplyAction="http://tempuri.org/IService/GetFoodPlacesResponse")]
WpfWebClient.ServiceReferenceEHEC.FoodPlace[] GetFoodPlaces();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/GetFoodPlaces", ReplyAction="http://tempuri.org/IService/GetFoodPlacesResponse")]
System.Threading.Tasks.Task<WpfWebClient.ServiceReferenceEHEC.FoodPlace[]> GetFoodPlacesAsync();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/GetRelations", ReplyAction="http://tempuri.org/IService/GetRelationsResponse")]
WpfWebClient.ServiceReferenceEHEC.PatientAtFoodPlace[] GetRelations();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/GetRelations", ReplyAction="http://tempuri.org/IService/GetRelationsResponse")]
System.Threading.Tasks.Task<WpfWebClient.ServiceReferenceEHEC.PatientAtFoodPlace[]> GetRelationsAsync();
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
@ -819,14 +1048,6 @@ namespace WpfWebClient.ServiceReferenceEHEC {
return base.Channel.WriteExamAsync(exam);
}
public void WriteResult(WpfWebClient.ServiceReferenceEHEC.Result result) {
base.Channel.WriteResult(result);
}
public System.Threading.Tasks.Task WriteResultAsync(WpfWebClient.ServiceReferenceEHEC.Result result) {
return base.Channel.WriteResultAsync(result);
}
public void WriteCity(WpfWebClient.ServiceReferenceEHEC.City city) {
base.Channel.WriteCity(city);
}
@ -843,6 +1064,14 @@ namespace WpfWebClient.ServiceReferenceEHEC {
return base.Channel.WriteCountryAsync(country);
}
public void WriteFoodPlace(WpfWebClient.ServiceReferenceEHEC.FoodPlace foodplace) {
base.Channel.WriteFoodPlace(foodplace);
}
public System.Threading.Tasks.Task WriteFoodPlaceAsync(WpfWebClient.ServiceReferenceEHEC.FoodPlace foodplace) {
return base.Channel.WriteFoodPlaceAsync(foodplace);
}
public WpfWebClient.ServiceReferenceEHEC.Gender[] GetGenders() {
return base.Channel.GetGenders();
}
@ -874,5 +1103,37 @@ namespace WpfWebClient.ServiceReferenceEHEC {
public System.Threading.Tasks.Task<WpfWebClient.ServiceReferenceEHEC.Doctor[]> GetDoctorsAsync() {
return base.Channel.GetDoctorsAsync();
}
public WpfWebClient.ServiceReferenceEHEC.City[] GetCities() {
return base.Channel.GetCities();
}
public System.Threading.Tasks.Task<WpfWebClient.ServiceReferenceEHEC.City[]> GetCitiesAsync() {
return base.Channel.GetCitiesAsync();
}
public WpfWebClient.ServiceReferenceEHEC.Country[] GetCountries() {
return base.Channel.GetCountries();
}
public System.Threading.Tasks.Task<WpfWebClient.ServiceReferenceEHEC.Country[]> GetCountriesAsync() {
return base.Channel.GetCountriesAsync();
}
public WpfWebClient.ServiceReferenceEHEC.FoodPlace[] GetFoodPlaces() {
return base.Channel.GetFoodPlaces();
}
public System.Threading.Tasks.Task<WpfWebClient.ServiceReferenceEHEC.FoodPlace[]> GetFoodPlacesAsync() {
return base.Channel.GetFoodPlacesAsync();
}
public WpfWebClient.ServiceReferenceEHEC.PatientAtFoodPlace[] GetRelations() {
return base.Channel.GetRelations();
}
public System.Threading.Tasks.Task<WpfWebClient.ServiceReferenceEHEC.PatientAtFoodPlace[]> GetRelationsAsync() {
return base.Channel.GetRelationsAsync();
}
}
}

View File

@ -19,12 +19,6 @@
<wsdl:message name="IService_WriteExam_OutputMessage">
<wsdl:part name="parameters" element="tns:WriteExamResponse" />
</wsdl:message>
<wsdl:message name="IService_WriteResult_InputMessage">
<wsdl:part name="parameters" element="tns:WriteResult" />
</wsdl:message>
<wsdl:message name="IService_WriteResult_OutputMessage">
<wsdl:part name="parameters" element="tns:WriteResultResponse" />
</wsdl:message>
<wsdl:message name="IService_WriteCity_InputMessage">
<wsdl:part name="parameters" element="tns:WriteCity" />
</wsdl:message>
@ -37,6 +31,12 @@
<wsdl:message name="IService_WriteCountry_OutputMessage">
<wsdl:part name="parameters" element="tns:WriteCountryResponse" />
</wsdl:message>
<wsdl:message name="IService_WriteFoodPlace_InputMessage">
<wsdl:part name="parameters" element="tns:WriteFoodPlace" />
</wsdl:message>
<wsdl:message name="IService_WriteFoodPlace_OutputMessage">
<wsdl:part name="parameters" element="tns:WriteFoodPlaceResponse" />
</wsdl:message>
<wsdl:message name="IService_GetGenders_InputMessage">
<wsdl:part name="parameters" element="tns:GetGenders" />
</wsdl:message>
@ -61,6 +61,30 @@
<wsdl:message name="IService_GetDoctors_OutputMessage">
<wsdl:part name="parameters" element="tns:GetDoctorsResponse" />
</wsdl:message>
<wsdl:message name="IService_GetCities_InputMessage">
<wsdl:part name="parameters" element="tns:GetCities" />
</wsdl:message>
<wsdl:message name="IService_GetCities_OutputMessage">
<wsdl:part name="parameters" element="tns:GetCitiesResponse" />
</wsdl:message>
<wsdl:message name="IService_GetCountries_InputMessage">
<wsdl:part name="parameters" element="tns:GetCountries" />
</wsdl:message>
<wsdl:message name="IService_GetCountries_OutputMessage">
<wsdl:part name="parameters" element="tns:GetCountriesResponse" />
</wsdl:message>
<wsdl:message name="IService_GetFoodPlaces_InputMessage">
<wsdl:part name="parameters" element="tns:GetFoodPlaces" />
</wsdl:message>
<wsdl:message name="IService_GetFoodPlaces_OutputMessage">
<wsdl:part name="parameters" element="tns:GetFoodPlacesResponse" />
</wsdl:message>
<wsdl:message name="IService_GetRelations_InputMessage">
<wsdl:part name="parameters" element="tns:GetRelations" />
</wsdl:message>
<wsdl:message name="IService_GetRelations_OutputMessage">
<wsdl:part name="parameters" element="tns:GetRelationsResponse" />
</wsdl:message>
<wsdl:portType name="IService">
<wsdl:operation name="WritePatient">
<wsdl:input wsaw:Action="http://tempuri.org/IService/WritePatient" message="tns:IService_WritePatient_InputMessage" />
@ -70,10 +94,6 @@
<wsdl:input wsaw:Action="http://tempuri.org/IService/WriteExam" message="tns:IService_WriteExam_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService/WriteExamResponse" message="tns:IService_WriteExam_OutputMessage" />
</wsdl:operation>
<wsdl:operation name="WriteResult">
<wsdl:input wsaw:Action="http://tempuri.org/IService/WriteResult" message="tns:IService_WriteResult_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService/WriteResultResponse" message="tns:IService_WriteResult_OutputMessage" />
</wsdl:operation>
<wsdl:operation name="WriteCity">
<wsdl:input wsaw:Action="http://tempuri.org/IService/WriteCity" message="tns:IService_WriteCity_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService/WriteCityResponse" message="tns:IService_WriteCity_OutputMessage" />
@ -82,6 +102,10 @@
<wsdl:input wsaw:Action="http://tempuri.org/IService/WriteCountry" message="tns:IService_WriteCountry_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService/WriteCountryResponse" message="tns:IService_WriteCountry_OutputMessage" />
</wsdl:operation>
<wsdl:operation name="WriteFoodPlace">
<wsdl:input wsaw:Action="http://tempuri.org/IService/WriteFoodPlace" message="tns:IService_WriteFoodPlace_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService/WriteFoodPlaceResponse" message="tns:IService_WriteFoodPlace_OutputMessage" />
</wsdl:operation>
<wsdl:operation name="GetGenders">
<wsdl:input wsaw:Action="http://tempuri.org/IService/GetGenders" message="tns:IService_GetGenders_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService/GetGendersResponse" message="tns:IService_GetGenders_OutputMessage" />
@ -98,6 +122,22 @@
<wsdl:input wsaw:Action="http://tempuri.org/IService/GetDoctors" message="tns:IService_GetDoctors_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService/GetDoctorsResponse" message="tns:IService_GetDoctors_OutputMessage" />
</wsdl:operation>
<wsdl:operation name="GetCities">
<wsdl:input wsaw:Action="http://tempuri.org/IService/GetCities" message="tns:IService_GetCities_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService/GetCitiesResponse" message="tns:IService_GetCities_OutputMessage" />
</wsdl:operation>
<wsdl:operation name="GetCountries">
<wsdl:input wsaw:Action="http://tempuri.org/IService/GetCountries" message="tns:IService_GetCountries_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService/GetCountriesResponse" message="tns:IService_GetCountries_OutputMessage" />
</wsdl:operation>
<wsdl:operation name="GetFoodPlaces">
<wsdl:input wsaw:Action="http://tempuri.org/IService/GetFoodPlaces" message="tns:IService_GetFoodPlaces_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService/GetFoodPlacesResponse" message="tns:IService_GetFoodPlaces_OutputMessage" />
</wsdl:operation>
<wsdl:operation name="GetRelations">
<wsdl:input wsaw:Action="http://tempuri.org/IService/GetRelations" message="tns:IService_GetRelations_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService/GetRelationsResponse" message="tns:IService_GetRelations_OutputMessage" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="BasicHttpBinding_IService" type="tns:IService">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
@ -119,15 +159,6 @@
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="WriteResult">
<soap:operation soapAction="http://tempuri.org/IService/WriteResult" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="WriteCity">
<soap:operation soapAction="http://tempuri.org/IService/WriteCity" style="document" />
<wsdl:input>
@ -146,6 +177,15 @@
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="WriteFoodPlace">
<soap:operation soapAction="http://tempuri.org/IService/WriteFoodPlace" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetGenders">
<soap:operation soapAction="http://tempuri.org/IService/GetGenders" style="document" />
<wsdl:input>
@ -182,6 +222,42 @@
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetCities">
<soap:operation soapAction="http://tempuri.org/IService/GetCities" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetCountries">
<soap:operation soapAction="http://tempuri.org/IService/GetCountries" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetFoodPlaces">
<soap:operation soapAction="http://tempuri.org/IService/GetFoodPlaces" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetRelations">
<soap:operation soapAction="http://tempuri.org/IService/GetRelations" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="Service">
<wsdl:port name="BasicHttpBinding_IService" binding="tns:BasicHttpBinding_IService">

View File

@ -25,22 +25,10 @@
<xs:sequence />
</xs:complexType>
</xs:element>
<xs:element name="WriteResult">
<xs:complexType>
<xs:sequence>
<xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/Server.Models" minOccurs="0" name="result" nillable="true" type="q3:Result" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="WriteResultResponse">
<xs:complexType>
<xs:sequence />
</xs:complexType>
</xs:element>
<xs:element name="WriteCity">
<xs:complexType>
<xs:sequence>
<xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/Server.Models" minOccurs="0" name="city" nillable="true" type="q4:City" />
<xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/Server.Models" minOccurs="0" name="city" nillable="true" type="q3:City" />
</xs:sequence>
</xs:complexType>
</xs:element>
@ -52,7 +40,7 @@
<xs:element name="WriteCountry">
<xs:complexType>
<xs:sequence>
<xs:element xmlns:q5="http://schemas.datacontract.org/2004/07/Server.Models" minOccurs="0" name="country" nillable="true" type="q5:Country" />
<xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/Server.Models" minOccurs="0" name="country" nillable="true" type="q4:Country" />
</xs:sequence>
</xs:complexType>
</xs:element>
@ -61,6 +49,18 @@
<xs:sequence />
</xs:complexType>
</xs:element>
<xs:element name="WriteFoodPlace">
<xs:complexType>
<xs:sequence>
<xs:element xmlns:q5="http://schemas.datacontract.org/2004/07/Server.Models" minOccurs="0" name="foodplace" nillable="true" type="q5:FoodPlace" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="WriteFoodPlaceResponse">
<xs:complexType>
<xs:sequence />
</xs:complexType>
</xs:element>
<xs:element name="GetGenders">
<xs:complexType>
<xs:sequence />
@ -109,4 +109,52 @@
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="GetCities">
<xs:complexType>
<xs:sequence />
</xs:complexType>
</xs:element>
<xs:element name="GetCitiesResponse">
<xs:complexType>
<xs:sequence>
<xs:element xmlns:q10="http://schemas.datacontract.org/2004/07/Server.Models" minOccurs="0" name="GetCitiesResult" nillable="true" type="q10:ArrayOfCity" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="GetCountries">
<xs:complexType>
<xs:sequence />
</xs:complexType>
</xs:element>
<xs:element name="GetCountriesResponse">
<xs:complexType>
<xs:sequence>
<xs:element xmlns:q11="http://schemas.datacontract.org/2004/07/Server.Models" minOccurs="0" name="GetCountriesResult" nillable="true" type="q11:ArrayOfCountry" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="GetFoodPlaces">
<xs:complexType>
<xs:sequence />
</xs:complexType>
</xs:element>
<xs:element name="GetFoodPlacesResponse">
<xs:complexType>
<xs:sequence>
<xs:element xmlns:q12="http://schemas.datacontract.org/2004/07/Server.Models" minOccurs="0" name="GetFoodPlacesResult" nillable="true" type="q12:ArrayOfFoodPlace" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="GetRelations">
<xs:complexType>
<xs:sequence />
</xs:complexType>
</xs:element>
<xs:element name="GetRelationsResponse">
<xs:complexType>
<xs:sequence>
<xs:element xmlns:q13="http://schemas.datacontract.org/2004/07/Server.Models" minOccurs="0" name="GetRelationsResult" nillable="true" type="q13:ArrayOfPatientAtFoodPlace" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@ -6,9 +6,11 @@
<xs:element minOccurs="0" name="FirstName" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Gender" nillable="true" type="tns:Gender" />
<xs:element minOccurs="0" name="LastName" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="PatientAtFoodPlaces" nillable="true" type="tns:ArrayOfPatientAtFoodPlace" />
<xs:element minOccurs="0" name="PersonID" type="xs:int" />
<xs:element minOccurs="0" name="Salutation" nillable="true" type="tns:Salutation" />
<xs:element minOccurs="0" name="StreetName" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="StreetNumber" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
<xs:element name="Person" nillable="true" type="tns:Person" />
@ -35,6 +37,34 @@
</xs:sequence>
</xs:complexType>
<xs:element name="Gender" nillable="true" type="tns:Gender" />
<xs:complexType name="ArrayOfPatientAtFoodPlace">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="PatientAtFoodPlace" nillable="true" type="tns:PatientAtFoodPlace" />
</xs:sequence>
</xs:complexType>
<xs:element name="ArrayOfPatientAtFoodPlace" nillable="true" type="tns:ArrayOfPatientAtFoodPlace" />
<xs:complexType name="PatientAtFoodPlace">
<xs:sequence>
<xs:element minOccurs="0" name="FoodPlace" nillable="true" type="tns:FoodPlace" />
<xs:element minOccurs="0" name="FoodPlaceID" type="xs:int" />
<xs:element minOccurs="0" name="Patient" nillable="true" type="tns:Person" />
<xs:element minOccurs="0" name="PatientID" type="xs:int" />
<xs:element minOccurs="0" name="VistingDate" type="xs:dateTime" />
</xs:sequence>
</xs:complexType>
<xs:element name="PatientAtFoodPlace" nillable="true" type="tns:PatientAtFoodPlace" />
<xs:complexType name="FoodPlace">
<xs:sequence>
<xs:element minOccurs="0" name="City" nillable="true" type="tns:City" />
<xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="FoodPlaceID" type="xs:int" />
<xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="PatientAtFoodPlaces" nillable="true" type="tns:ArrayOfPatientAtFoodPlace" />
<xs:element minOccurs="0" name="Streetname" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Streetnumber" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
<xs:element name="FoodPlace" nillable="true" type="tns:FoodPlace" />
<xs:complexType name="Salutation">
<xs:sequence>
<xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
@ -45,10 +75,11 @@
<xs:complexType name="Exam">
<xs:sequence>
<xs:element minOccurs="0" name="Date" type="xs:dateTime" />
<xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Doctor" nillable="true" type="tns:Doctor" />
<xs:element minOccurs="0" name="ExamID" type="xs:int" />
<xs:element minOccurs="0" name="Patient" nillable="true" type="tns:Person" />
<xs:element minOccurs="0" name="Result" nillable="true" type="tns:Result" />
<xs:element minOccurs="0" name="Strain" nillable="true" type="tns:Strain" />
</xs:sequence>
</xs:complexType>
<xs:element name="Exam" nillable="true" type="tns:Exam" />
@ -62,15 +93,6 @@
</xs:complexContent>
</xs:complexType>
<xs:element name="Doctor" nillable="true" type="tns:Doctor" />
<xs:complexType name="Result">
<xs:sequence>
<xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="ResultID" type="xs:int" />
<xs:element minOccurs="0" name="Strain" nillable="true" type="tns:Strain" />
</xs:sequence>
</xs:complexType>
<xs:element name="Result" nillable="true" type="tns:Result" />
<xs:complexType name="Strain">
<xs:sequence>
<xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
@ -102,4 +124,22 @@
</xs:sequence>
</xs:complexType>
<xs:element name="ArrayOfDoctor" nillable="true" type="tns:ArrayOfDoctor" />
<xs:complexType name="ArrayOfCity">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="City" nillable="true" type="tns:City" />
</xs:sequence>
</xs:complexType>
<xs:element name="ArrayOfCity" nillable="true" type="tns:ArrayOfCity" />
<xs:complexType name="ArrayOfCountry">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="Country" nillable="true" type="tns:Country" />
</xs:sequence>
</xs:complexType>
<xs:element name="ArrayOfCountry" nillable="true" type="tns:ArrayOfCountry" />
<xs:complexType name="ArrayOfFoodPlace">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="FoodPlace" nillable="true" type="tns:FoodPlace" />
</xs:sequence>
</xs:complexType>
<xs:element name="ArrayOfFoodPlace" nillable="true" type="tns:ArrayOfFoodPlace" />
</xs:schema>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is automatically generated by Visual Studio .Net. It is
used to store generic object data source configuration information.
Renaming the file extension or editing the content of this file may
cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="City" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TypeInfo>WpfWebClient.ServiceReferenceEHEC.City, Connected Services.ServiceReferenceEHEC.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is automatically generated by Visual Studio .Net. It is
used to store generic object data source configuration information.
Renaming the file extension or editing the content of this file may
cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="Country" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TypeInfo>WpfWebClient.ServiceReferenceEHEC.Country, Connected Services.ServiceReferenceEHEC.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is automatically generated by Visual Studio .Net. It is
used to store generic object data source configuration information.
Renaming the file extension or editing the content of this file may
cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="FoodPlace" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TypeInfo>WpfWebClient.ServiceReferenceEHEC.FoodPlace, Connected Services.ServiceReferenceEHEC.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is automatically generated by Visual Studio .Net. It is
used to store generic object data source configuration information.
Renaming the file extension or editing the content of this file may
cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="PatientAtFoodPlace" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TypeInfo>WpfWebClient.ServiceReferenceEHEC.PatientAtFoodPlace, Connected Services.ServiceReferenceEHEC.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -6,7 +6,7 @@
xmlns:local="clr-namespace:WpfWebClient"
mc:Ignorable="d"
Title="MainWindow" Height="596" Width="800">
<Grid>
<Grid Margin="0,0,-6.4,0.4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="199*"/>
<ColumnDefinition Width="593*"/>
@ -16,9 +16,9 @@
<Button Content="Home" HorizontalAlignment="Left" Margin="10,187,0,0" VerticalAlignment="Top" Width="190" Height="66" FontSize="24" FontFamily="Tahoma" Click="Button_Click_Home"/>
<Button Content="New Case" HorizontalAlignment="Left" Margin="10,258,0,0" VerticalAlignment="Top" Width="190" Height="66" FontSize="24" FontFamily="Tahoma" Click="Button_Click_NewCase"/>
<Button Content="View Doctors" HorizontalAlignment="Left" Margin="10,329,0,0" VerticalAlignment="Top" Width="190" Height="66" FontFamily="Tahoma" FontSize="24" Click="Button_Click_ViewDoctors"/>
<Image Source="/resources/eheclogo.png" HorizontalAlignment="Left" Height="180" VerticalAlignment="Top" Width="200" RenderTransformOrigin="0,1"/>
<Button Content="View Strains" HorizontalAlignment="Left" Margin="10,400,0,0" VerticalAlignment="Top" Width="190" Height="66" FontFamily="Tahoma" FontSize="24" Click="Button_Click_ViewStrains"/>
<Button Content="Add Foodplace" HorizontalAlignment="Left" Margin="10,473,0,0" VerticalAlignment="Top" Width="190" Height="66" FontFamily="Tahoma" FontSize="24" Click="Button_Click_ViewStrains"/>
<Button Content="Add Foodplace" HorizontalAlignment="Left" Margin="10,473,0,0" VerticalAlignment="Top" Width="190" Height="66" FontFamily="Tahoma" FontSize="24" Click="Button_Click_AddFoodplace"/>
<Image HorizontalAlignment="Left" Height="187" VerticalAlignment="Top" Width="200" Source="Images/eheclogo.png"/>
</Grid>
<Grid Grid.Column="1" HorizontalAlignment="Right" Height="565" VerticalAlignment="Top" Width="593"/>
<Frame x:Name="Main" HorizontalAlignment="Left" Width="593" Grid.Column="1" NavigationUIVisibility="Hidden" Navigated="Main_Navigated" Margin="0" UseLayoutRounding="False"/>

View File

@ -45,6 +45,11 @@ namespace WpfWebClient
Main.Content = new Home();
}
private void Button_Click_AddFoodplace(object sender, RoutedEventArgs e)
{
Main.Content = new AddFoodplace();
}
private void Main_Navigated(object sender, NavigationEventArgs e)
{

View File

@ -22,13 +22,15 @@
<Label Content="Vorname" HorizontalAlignment="Left" Margin="10,152,0,0" Grid.Row="1" VerticalAlignment="Top" Height="34" Width="104" FontFamily="Tahoma" FontSize="24"/>
<Label Content="Strasse" HorizontalAlignment="Left" Margin="10,201,0,0" Grid.Row="1" VerticalAlignment="Top" Height="34" Width="104" FontFamily="Tahoma" FontSize="24"/>
<Label Content="Ort" HorizontalAlignment="Left" Margin="10,248,0,0" Grid.Row="1" VerticalAlignment="Top" Height="34" Width="75" FontFamily="Tahoma" FontSize="24"/>
<Label Content="Arzt" HorizontalAlignment="Left" Margin="10,294,0,0" Grid.Row="1" VerticalAlignment="Top" Height="34" Width="75" FontFamily="Tahoma" FontSize="24" RenderTransformOrigin="0.533,1.244"/>
<Label Content="Arzt" HorizontalAlignment="Left" Margin="10,351.4,0,0" Grid.Row="1" VerticalAlignment="Top" Height="34" Width="75" FontFamily="Tahoma" FontSize="24" RenderTransformOrigin="0.533,1.244"/>
<Label Content="Anrede" HorizontalAlignment="Left" Margin="10,61,0,0" Grid.Row="1" VerticalAlignment="Top" Height="34" Width="104" FontSize="24" FontFamily="Tahoma"/>
<TextBox x:Name="txtAnrede" Grid.Column="1" HorizontalAlignment="Left" Height="34" Margin="0,61,0,0" Grid.Row="1" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="455"/>
<TextBox x:Name="txtName" Grid.Column="1" HorizontalAlignment="Left" Height="34" Margin="0,104,0,0" Grid.Row="1" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="455"/>
<TextBox x:Name="txtVorname" Grid.Column="1" HorizontalAlignment="Left" Height="34" Margin="0,152,0,0" Grid.Row="1" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="455"/>
<TextBox x:Name="txtStrasse" Grid.Column="1" HorizontalAlignment="Left" Height="34" Margin="0,201,0,0" Grid.Row="1" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="455"/>
<TextBox x:Name="txtOrt" Grid.Column="1" HorizontalAlignment="Left" Height="34" Margin="0,248,0,0" Grid.Row="1" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="455"/>
<ListBox x:Name="listBoxArzt" Grid.Column="1" HorizontalAlignment="Left" Height="129" Margin="0,294,0,0" Grid.Row="1" VerticalAlignment="Top" Width="455"/>
<ComboBox x:Name="ComboBoxSalutations" HorizontalAlignment="Left" Margin="0.4,61.4,-0.2,0" Grid.Row="1" VerticalAlignment="Top" Width="455" Height="34" Grid.Column="1"/>
<ComboBox x:Name="ComboBoxCities" HorizontalAlignment="Left" Margin="0.4,253.4,-0.2,0" Grid.Row="1" VerticalAlignment="Top" Width="455" Grid.Column="1" Height="34"/>
<ComboBox x:Name="ComboBoxCountries" HorizontalAlignment="Left" Margin="0.4,297.4,-0.2,0" Grid.Row="1" VerticalAlignment="Top" Width="455" Grid.Column="1" Height="34"/>
<ComboBox x:Name="ComboBoxDoctors" HorizontalAlignment="Left" Margin="0.4,351.4,-0.2,0" Grid.Row="1" VerticalAlignment="Top" Width="455" Grid.Column="1" Height="34"/>
<Label Content="Land" HorizontalAlignment="Left" Margin="10,297.4,0,0" Grid.Row="1" VerticalAlignment="Top" Height="34" Width="75" FontFamily="Tahoma" FontSize="24"/>
</Grid>
</Page>

View File

@ -25,20 +25,40 @@ namespace WpfWebClient
{
InitializeComponent();
WpfWebClient.ServiceReferenceEHEC.ServiceClient client = new WpfWebClient.ServiceReferenceEHEC.ServiceClient();
Person p = new Person();
//Retrieve all salutations and save them into "salutationlist"
List<WpfWebClient.ServiceReferenceEHEC.Salutation> salutationlist = new List<ServiceReferenceEHEC.Salutation>(client.GetSalutations());
p.FirstName = txtVorname.ToString();
p.LastName = txtName.ToString();
p.StreetName = txtStrasse.ToString();
//Display all salutations with name in Combobox
ComboBoxSalutations.ItemsSource = salutationlist;
ComboBoxSalutations.DisplayMemberPath = "Name";
//Retrieve all cities and save them into "citylist"
List<WpfWebClient.ServiceReferenceEHEC.City> citylist = new List<ServiceReferenceEHEC.City>(client.GetCities());
//Display all cities with name in Combobox
ComboBoxCities.ItemsSource = citylist;
ComboBoxCities.DisplayMemberPath = "Name";
//Retrieve all salutations and save them into "countrylist"
List<WpfWebClient.ServiceReferenceEHEC.Country> countrylist = new List<ServiceReferenceEHEC.Country>(client.GetCountries());
//Display all countries with name in Combobox
ComboBoxCountries.ItemsSource = countrylist;
ComboBoxCountries.DisplayMemberPath = "Name";
//Retrieve all doctors and save them into "doctorlist"
List<WpfWebClient.ServiceReferenceEHEC.Doctor> doctorlist = new List<ServiceReferenceEHEC.Doctor>(client.GetDoctors());
//Display all doctors with name in Combobox
ComboBoxDoctors.ItemsSource = doctorlist;
ComboBoxDoctors.DisplayMemberPath = "FirstName";
client.WritePatient(p);
// Client Verbindung schliessen
client.Close();
}
}
}

View File

@ -9,7 +9,14 @@
Title="ViewDoctors" Width="593" Height="565">
<Grid Width="593" Height="565">
<DataGrid x:Name="DataGridViewDoctors" HorizontalAlignment="Left" Height="565" VerticalAlignment="Top" Width="593"/>
<DataGrid x:Name="DataGridViewDoctors"
CanUserAddRows="False"
CanUserSortColumns="True"
HorizontalAlignment="Left"
Height="565"
VerticalAlignment="Top"
Width="593"/>
</Grid>
</Page>

View File

@ -32,10 +32,7 @@ namespace WpfWebClient
List<WpfWebClient.ServiceReferenceEHEC.Doctor> doctorlist = new List<ServiceReferenceEHEC.Doctor>(client.GetDoctors());
DataGridViewDoctors.ItemsSource = doctorlist;
}
}
}

View File

@ -56,6 +56,9 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Compile Include="AddFoodplace.xaml.cs">
<DependentUpon>AddFoodplace.xaml</DependentUpon>
</Compile>
<Compile Include="Home.xaml.cs">
<DependentUpon>Home.xaml</DependentUpon>
</Compile>
@ -65,6 +68,10 @@
<Compile Include="ViewDoctors.xaml.cs">
<DependentUpon>ViewDoctors.xaml</DependentUpon>
</Compile>
<Page Include="AddFoodplace.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Home.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
@ -132,12 +139,24 @@
<None Include="Connected Services\ServiceReferenceEHEC\Service2.xsd">
<SubType>Designer</SubType>
</None>
<None Include="Connected Services\ServiceReferenceEHEC\WpfWebClient.ServiceReferenceEHEC.City.datasource">
<DependentUpon>Reference.svcmap</DependentUpon>
</None>
<None Include="Connected Services\ServiceReferenceEHEC\WpfWebClient.ServiceReferenceEHEC.Country.datasource">
<DependentUpon>Reference.svcmap</DependentUpon>
</None>
<None Include="Connected Services\ServiceReferenceEHEC\WpfWebClient.ServiceReferenceEHEC.Doctor.datasource">
<DependentUpon>Reference.svcmap</DependentUpon>
</None>
<None Include="Connected Services\ServiceReferenceEHEC\WpfWebClient.ServiceReferenceEHEC.FoodPlace.datasource">
<DependentUpon>Reference.svcmap</DependentUpon>
</None>
<None Include="Connected Services\ServiceReferenceEHEC\WpfWebClient.ServiceReferenceEHEC.Gender.datasource">
<DependentUpon>Reference.svcmap</DependentUpon>
</None>
<None Include="Connected Services\ServiceReferenceEHEC\WpfWebClient.ServiceReferenceEHEC.PatientAtFoodPlace.datasource">
<DependentUpon>Reference.svcmap</DependentUpon>
</None>
<None Include="Connected Services\ServiceReferenceEHEC\WpfWebClient.ServiceReferenceEHEC.Salutation.datasource">
<DependentUpon>Reference.svcmap</DependentUpon>
</None>
@ -173,5 +192,8 @@
<LastGenOutput>Reference.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<Resource Include="Images\eheclogo.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>