last changes to webclient
This commit is contained in:
parent
2dd05d4c2b
commit
be51371e57
|
@ -10,7 +10,7 @@
|
||||||
</configSections>
|
</configSections>
|
||||||
<system.web>
|
<system.web>
|
||||||
<compilation debug="true" targetFramework="4.6.1" />
|
<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.web>
|
||||||
<system.codedom>
|
<system.codedom>
|
||||||
<compilers>
|
<compilers>
|
||||||
|
@ -25,6 +25,9 @@
|
||||||
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
|
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
|
||||||
<serviceDebug includeExceptionDetailInFaults="false" />
|
<serviceDebug includeExceptionDetailInFaults="false" />
|
||||||
</behavior>
|
</behavior>
|
||||||
|
<behavior name="CalculatorServiceBehavior">
|
||||||
|
<dataContractSerializer maxItemsInObjectGraph="6553600" />
|
||||||
|
</behavior>
|
||||||
</serviceBehaviors>
|
</serviceBehaviors>
|
||||||
</behaviors>
|
</behaviors>
|
||||||
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
|
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
|
||||||
|
|
|
@ -33,7 +33,8 @@ namespace WpfWebClient
|
||||||
// Display all cities with name in Combobox
|
// Display all cities with name in Combobox
|
||||||
ComboBoxFPCities.ItemsSource = citylist;
|
ComboBoxFPCities.ItemsSource = citylist;
|
||||||
ComboBoxFPCities.DisplayMemberPath = "Name";
|
ComboBoxFPCities.DisplayMemberPath = "Name";
|
||||||
|
|
||||||
|
client.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btnAddFoodPlace_Click(object sender, RoutedEventArgs e)
|
private void btnAddFoodPlace_Click(object sender, RoutedEventArgs e)
|
||||||
|
|
|
@ -96,7 +96,7 @@ namespace WpfWebClient.Helper
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
PatientAtFoodPlace patf = new PatientAtFoodPlace();
|
PatientAtFoodPlace patfgen = new PatientAtFoodPlace();
|
||||||
|
|
||||||
int randnumFP = random.Next(0, foodPlaces.Count());
|
int randnumFP = random.Next(0, foodPlaces.Count());
|
||||||
FoodPlace foodpl = foodPlaces[randnumFP];
|
FoodPlace foodpl = foodPlaces[randnumFP];
|
||||||
|
@ -104,11 +104,11 @@ namespace WpfWebClient.Helper
|
||||||
int randnumP = random.Next(0, patients.Count());
|
int randnumP = random.Next(0, patients.Count());
|
||||||
Person patient = patients[randnumP];
|
Person patient = patients[randnumP];
|
||||||
|
|
||||||
patf.FoodPlace = foodpl;
|
patfgen.FoodPlace = foodpl;
|
||||||
patf.Patient = patient;
|
patfgen.Patient = patient;
|
||||||
patf.VistingDate = new DateTime(2005, 12, 20);
|
patfgen.VistingDate = new DateTime(2005, 12, 20);
|
||||||
|
|
||||||
PatientsAtFoodPlaces.Add(patf);
|
PatientsAtFoodPlaces.Add(patfgen);
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
|
|
|
@ -98,8 +98,6 @@ namespace WpfWebClient
|
||||||
}
|
}
|
||||||
|
|
||||||
// create a bunch of people at foodplaces
|
// create a bunch of people at foodplaces
|
||||||
|
|
||||||
|
|
||||||
var patientsatfps = GenerateTestData.CreatePatientAtFoodPlaces(int.Parse(txtNumberofTestdata.Text));
|
var patientsatfps = GenerateTestData.CreatePatientAtFoodPlaces(int.Parse(txtNumberofTestdata.Text));
|
||||||
|
|
||||||
foreach (var f in patientsatfps)
|
foreach (var f in patientsatfps)
|
||||||
|
|
|
@ -68,9 +68,9 @@ namespace WpfWebClient
|
||||||
|
|
||||||
Person p = new Person();
|
Person p = new Person();
|
||||||
|
|
||||||
// if (ComboBoxSalutations.SelectedValue != null && ComboBoxSalutations.SelectedValue is Salutation)
|
if (ComboBoxSalutations.SelectedValue != null && ComboBoxSalutations.SelectedValue is Salutation)
|
||||||
// if (ComboBoxGenders.SelectedValue != null && ComboBoxGenders.SelectedValue is Gender)
|
if (ComboBoxGenders.SelectedValue != null && ComboBoxGenders.SelectedValue is Gender)
|
||||||
// if (ComboBoxCities.SelectedValue != null && ComboBoxCities.SelectedValue is City)
|
if (ComboBoxCities.SelectedValue != null && ComboBoxCities.SelectedValue is City)
|
||||||
|
|
||||||
// Pick all selected fields and send object to client
|
// Pick all selected fields and send object to client
|
||||||
p.Salutation = (Salutation)ComboBoxSalutations.SelectedValue;
|
p.Salutation = (Salutation)ComboBoxSalutations.SelectedValue;
|
||||||
|
|
Loading…
Reference in New Issue