Browse Source

List of zip/cities as autocompelete combobox in alternate pickup page

master
Flo Smilari 4 years ago
parent
commit
3df7134784

+ 0
- 24
Pages/Fundvelo/CaritasServiceFundVeloAlternatePickupContactPage.razor View File

OnKeyDown="@InputCursorHandler.OnKeyDownHandlerAsync"></MatStringField> OnKeyDown="@InputCursorHandler.OnKeyDownHandlerAsync"></MatStringField>
</div> </div>
</div> </div>
<div class="row no-gutters align-items-center w-100"> <div class="row no-gutters align-items-center w-100">
<div class="col-12"> <div class="col-12">
<div class="outlined"> <div class="outlined">
</div> </div>
</div> </div>
</div> </div>
@*<div class="row no-gutters align-items-center w-100">
<div class="col-4" style="padding-right:0.5em">
<MatStringField Class="w-100" Label="@I18n["Zip"]" Outlined="true" type="text" @bind-Value="pucZip" Required="true"
OnKeyDown="@InputCursorHandler.OnKeyDownHandlerAsync"></MatStringField>
</div>
<div class="col-8" style="padding-left:0.5em">
<MatStringField Class="w-100" Label="@I18n["City"]" Outlined="true" type="text" @bind-Value="pucCity" Required="true"
OnKeyDown="@InputCursorHandler.OnKeyDownHandlerAsync"></MatStringField>
</div>
</div>*@
<div class="row no-gutters align-items-center w-100"> <div class="row no-gutters align-items-center w-100">
<div class="col-12"> <div class="col-12">
<MatStringField Class="w-100" Label="@I18n["Mobile"]" Outlined="true" type="text" @bind-Value="pucMobile" <MatStringField Class="w-100" Label="@I18n["Mobile"]" Outlined="true" type="text" @bind-Value="pucMobile"
private string pucFirstname; private string pucFirstname;
private string pucLastname; private string pucLastname;
private string pucAddress; private string pucAddress;
//private string pucZip;
//private string pucCity;
private string pucMobile; private string pucMobile;
private string pucPhone; private string pucPhone;
private string pucEmail; private string pucEmail;
pucFirstname = report.AbholVorname; pucFirstname = report.AbholVorname;
pucLastname = report.AbholNachname; pucLastname = report.AbholNachname;
pucAddress = report.AbholStrasse; pucAddress = report.AbholStrasse;
//pucZip = report.AbholPLZ;
//pucCity = report.AbholOrt;
setZipCityValue(getZipCityFromReport(report)); setZipCityValue(getZipCityFromReport(report));
SelectedZipCity = Array.Find(ZipCities, zipCity => (zipCity.Zip.Equals(report.AbholPLZ) && zipCity.City.Equals(report.AbholOrt))); SelectedZipCity = Array.Find(ZipCities, zipCity => (zipCity.Zip.Equals(report.AbholPLZ) && zipCity.City.Equals(report.AbholOrt)));
pucMobile = report.AbholMobil; pucMobile = report.AbholMobil;
pucPhone = report.AbholTelefon; pucPhone = report.AbholTelefon;
pucEmail = report.AbholMail; pucEmail = report.AbholMail;
report.AbholVorname = pucFirstname; report.AbholVorname = pucFirstname;
report.AbholNachname = pucLastname; report.AbholNachname = pucLastname;
report.AbholStrasse = pucAddress; report.AbholStrasse = pucAddress;
//report.AbholPLZ = pucZip;
//report.AbholOrt = pucCity;
report.AbholPLZ = SelectedZipCity.Zip; report.AbholPLZ = SelectedZipCity.Zip;
report.AbholOrt = SelectedZipCity.City; report.AbholOrt = SelectedZipCity.City;
report.AbholMobil = pucMobile; report.AbholMobil = pucMobile;

Loading…
Cancel
Save