last changes to webclient

This commit is contained in:
Michael 2018-09-20 21:36:41 +02:00
parent 2dd05d4c2b
commit be51371e57
5 changed files with 14 additions and 12 deletions

View File

@ -10,7 +10,7 @@
</configSections>
<system.web>
<compilation debug="true" targetFramework="4.6.1" />
<httpRuntime targetFramework="4.6.1" maxRequestLength="2048000" executionTimeout="7200"/>
<httpRuntime targetFramework="4.6.1" maxRequestLength="204800" executionTimeout="7200"/>
</system.web>
<system.codedom>
<compilers>
@ -25,6 +25,9 @@
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
<behavior name="CalculatorServiceBehavior">
<dataContractSerializer maxItemsInObjectGraph="6553600" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />

View File

@ -33,7 +33,8 @@ namespace WpfWebClient
// Display all cities with name in Combobox
ComboBoxFPCities.ItemsSource = citylist;
ComboBoxFPCities.DisplayMemberPath = "Name";
client.Close();
}
private void btnAddFoodPlace_Click(object sender, RoutedEventArgs e)

View File

@ -96,7 +96,7 @@ namespace WpfWebClient.Helper
do
{
PatientAtFoodPlace patf = new PatientAtFoodPlace();
PatientAtFoodPlace patfgen = new PatientAtFoodPlace();
int randnumFP = random.Next(0, foodPlaces.Count());
FoodPlace foodpl = foodPlaces[randnumFP];
@ -104,11 +104,11 @@ namespace WpfWebClient.Helper
int randnumP = random.Next(0, patients.Count());
Person patient = patients[randnumP];
patf.FoodPlace = foodpl;
patf.Patient = patient;
patf.VistingDate = new DateTime(2005, 12, 20);
patfgen.FoodPlace = foodpl;
patfgen.Patient = patient;
patfgen.VistingDate = new DateTime(2005, 12, 20);
PatientsAtFoodPlaces.Add(patf);
PatientsAtFoodPlaces.Add(patfgen);
i++;

View File

@ -98,8 +98,6 @@ namespace WpfWebClient
}
// create a bunch of people at foodplaces
var patientsatfps = GenerateTestData.CreatePatientAtFoodPlaces(int.Parse(txtNumberofTestdata.Text));
foreach (var f in patientsatfps)

View File

@ -68,9 +68,9 @@ namespace WpfWebClient
Person p = new Person();
// if (ComboBoxSalutations.SelectedValue != null && ComboBoxSalutations.SelectedValue is Salutation)
// if (ComboBoxGenders.SelectedValue != null && ComboBoxGenders.SelectedValue is Gender)
// if (ComboBoxCities.SelectedValue != null && ComboBoxCities.SelectedValue is City)
if (ComboBoxSalutations.SelectedValue != null && ComboBoxSalutations.SelectedValue is Salutation)
if (ComboBoxGenders.SelectedValue != null && ComboBoxGenders.SelectedValue is Gender)
if (ComboBoxCities.SelectedValue != null && ComboBoxCities.SelectedValue is City)
// Pick all selected fields and send object to client
p.Salutation = (Salutation)ComboBoxSalutations.SelectedValue;