adds some functions
This commit is contained in:
parent
ac23ad0857
commit
f0c9a88d40
|
@ -9,7 +9,9 @@
|
|||
Title="Home" Width="593" Height="565">
|
||||
|
||||
<Grid Width="593" Height="565">
|
||||
<Label Content="Willkommen" HorizontalAlignment="Left" Margin="158,285,0,0" VerticalAlignment="Top" FontFamily="Tahoma" FontSize="48" Height="61" Width="272"/>
|
||||
<Label Content="Willkommen" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontFamily="Tahoma" FontSize="48" Height="61" Width="272"/>
|
||||
<TextBlock HorizontalAlignment="Left" Margin="10,124,0,0" TextWrapping="Wrap" Text="Haben Sie die Applikation zum ersten Mal gestartet? In diesem Fall nutzen Sie die vorhandene Funktion zum erstellen von einigen Patienten." VerticalAlignment="Top" Height="89" Width="573" FontSize="20"/>
|
||||
<Button Content="Generate Patients" HorizontalAlignment="Left" Margin="398,234,0,0" VerticalAlignment="Top" Width="147" Height="59" FontSize="18" Click="Button_Click_GeneratePatients"/>
|
||||
|
||||
</Grid>
|
||||
</Page>
|
||||
|
|
|
@ -12,6 +12,7 @@ using System.Windows.Media;
|
|||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using WpfWebClient.ServiceReferenceEHEC;
|
||||
|
||||
namespace WpfWebClient
|
||||
{
|
||||
|
@ -24,5 +25,27 @@ namespace WpfWebClient
|
|||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Button_Click_GeneratePatients(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
WpfWebClient.ServiceReferenceEHEC.ServiceClient client = new WpfWebClient.ServiceReferenceEHEC.ServiceClient();
|
||||
Person p = new Person();
|
||||
|
||||
//p.City = 1;
|
||||
p.FirstName = "Lucas";
|
||||
p.LastName = "Meier";
|
||||
p.StreetName = "Hansestrasse";
|
||||
//p.Salutation = 1;
|
||||
//p.Gender = 1;
|
||||
|
||||
|
||||
|
||||
// Patient an Webservice übermitteln
|
||||
client.WritePatient(p);
|
||||
|
||||
// Client schliessen
|
||||
client.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<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 Cases" HorizontalAlignment="Left" Margin="10,400,0,0" VerticalAlignment="Top" Width="190" Height="66" FontFamily="Tahoma" FontSize="24" Click="Button_Click_ViewCases"/>
|
||||
<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"/>
|
||||
</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"/>
|
||||
|
|
|
@ -35,9 +35,9 @@ namespace WpfWebClient
|
|||
Main.Content = new ViewDoctors();
|
||||
}
|
||||
|
||||
private void Button_Click_ViewCases(object sender, RoutedEventArgs e)
|
||||
private void Button_Click_ViewStrains(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Main.Content = new ViewCases();
|
||||
Main.Content = new ViewStrains();
|
||||
}
|
||||
|
||||
private void Button_Click_Home(object sender, RoutedEventArgs e)
|
||||
|
|
|
@ -26,7 +26,16 @@ namespace WpfWebClient
|
|||
InitializeComponent();
|
||||
WpfWebClient.ServiceReferenceEHEC.ServiceClient client = new WpfWebClient.ServiceReferenceEHEC.ServiceClient();
|
||||
|
||||
|
||||
Person p = new Person();
|
||||
|
||||
|
||||
|
||||
|
||||
client.WritePatient(p);
|
||||
|
||||
|
||||
// Client Verbindung schliessen
|
||||
client.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
Title="ViewDoctors" Width="593" Height="565">
|
||||
|
||||
<Grid Width="593" Height="565">
|
||||
<DataGrid HorizontalAlignment="Left" Height="565" VerticalAlignment="Top" Width="593"/>
|
||||
|
||||
<Label Content="View Doctors" HorizontalAlignment="Left" VerticalAlignment="Top" Height="35" Width="433" FontFamily="Tahoma" FontSize="24" Margin="160,-3,0,0"/>
|
||||
</Grid>
|
||||
</Page>
|
||||
|
|
|
@ -21,8 +21,14 @@ namespace WpfWebClient
|
|||
public partial class ViewDoctors : Page
|
||||
{
|
||||
public ViewDoctors()
|
||||
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
WpfWebClient.ServiceReferenceEHEC.ServiceClient client = new WpfWebClient.ServiceReferenceEHEC.ServiceClient();
|
||||
|
||||
client.GetDoctors();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<Page x:Class="WpfWebClient.ViewCases"
|
||||
<Page x:Class="WpfWebClient.ViewStrains"
|
||||
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"
|
||||
|
@ -9,7 +9,7 @@
|
|||
Title="ViewCases" Width="593" Height="565">
|
||||
|
||||
<Grid Width="593" Height="565">
|
||||
<Label Content="View Cases" HorizontalAlignment="Left" VerticalAlignment="Top" Height="35" Width="433" FontFamily="Tahoma" FontSize="24" Margin="160,-3,0,0"/>
|
||||
<Label Content="View Strains" HorizontalAlignment="Left" VerticalAlignment="Top" Height="35" Width="433" FontFamily="Tahoma" FontSize="24" Margin="160,-3,0,0"/>
|
||||
|
||||
</Grid>
|
||||
</Page>
|
|
@ -18,11 +18,8 @@ namespace WpfWebClient
|
|||
/// <summary>
|
||||
/// Interaction logic for ViewCases.xaml
|
||||
/// </summary>
|
||||
public partial class ViewCases : Page
|
||||
public partial class ViewStrains : Page
|
||||
{
|
||||
public ViewCases()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
public ViewStrains() => InitializeComponent();
|
||||
}
|
||||
}
|
|
@ -59,8 +59,8 @@
|
|||
<Compile Include="Home.xaml.cs">
|
||||
<DependentUpon>Home.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ViewCases.xaml.cs">
|
||||
<DependentUpon>ViewCases.xaml</DependentUpon>
|
||||
<Compile Include="ViewStrains.xaml.cs">
|
||||
<DependentUpon>ViewStrains.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ViewDoctors.xaml.cs">
|
||||
<DependentUpon>ViewDoctors.xaml</DependentUpon>
|
||||
|
@ -92,7 +92,7 @@
|
|||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="ViewCases.xaml">
|
||||
<Page Include="ViewStrains.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
|
|
Loading…
Reference in New Issue