|
|
|
@@ -70,7 +70,7 @@ |
|
|
|
</div>
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-4-tablet mat-layout-grid-cell-span-8-desktop">
|
|
|
|
<div class="mat-layout-grid-inner">
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-4-tablet mat-layout-grid-cell-span-12-desktop">
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-8-tablet mat-layout-grid-cell-span-12-desktop">
|
|
|
|
<div class="mat-layout-grid-inner">
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-8-tablet mat-layout-grid-cell-span-6-desktop">
|
|
|
|
<div class="mat-layout-grid-inner">
|
|
|
|
@@ -111,7 +111,7 @@ |
|
|
|
</MatSelectValue>
|
|
|
|
</div>
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-8-tablet mat-layout-grid-cell-span-12-desktop">
|
|
|
|
<MatStringField Class="w-100 form-check-label" Label="@I18n["FrameNumber"]" Outlined="true" type="text" @bind-Value="frameNumber"
|
|
|
|
<MatStringField Class="w-100" Label="@I18n["FrameNumber"]" Outlined="true" type="text" @bind-Value="frameNumber"
|
|
|
|
OnKeyDown="@InputCursorHandler.OnKeyDownHandlerAsync" maxlength="20"></MatStringField>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@@ -123,8 +123,29 @@ |
|
|
|
OnKeyDown="@InputCursorHandler.OnConstrainedFieldKeyDownHandlerAsync" pattern="^([0-9]*)$"></MatNumericUpDownField>
|
|
|
|
</div>
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-4-tablet mat-layout-grid-cell-span-12-desktop">
|
|
|
|
<MatTextField Class="w-100 form-check-label" Label="@I18n["Price"]" Format="0.00" Outlined="true" @bind-Value="@price"
|
|
|
|
OnKeyDown="@InputCursorHandler.OnConstrainedFieldKeyDownHandlerAsync" pattern="^([0-9]+,?[0-9]*|,[0-9]+)$"></MatTextField>
|
|
|
|
<MatNumericUpDownField Class="w-100" Label="@I18n["Price"]" Outlined="true" @bind-Value="@price"
|
|
|
|
OnKeyDown="@InputCursorHandler.OnConstrainedFieldKeyDownHandlerAsync" pattern="^([0-9]{0,5})$"></MatNumericUpDownField>
|
|
|
|
</div>
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-8-tablet mat-layout-grid-cell-span-12-desktop">
|
|
|
|
<MatDatePicker Class="w-100" Label="@I18n["LastLocation.Date"]" Outlined="true" EnableTime="true" Enable24hours="true" EnableWeekNumbers="true" AllowInput="true"
|
|
|
|
Maximum="@DateTime.Now" @bind-Value="lastLocationDateTime" @onkeydown="InputCursorHandler.OnKeyDownHandlerAsync">
|
|
|
|
</MatDatePicker>
|
|
|
|
</div>
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-8-tablet mat-layout-grid-cell-span-12-desktop">
|
|
|
|
<MatStringField Class="w-100" Label="@I18n["LastLocation.Street"]" Outlined="true" type="text" @bind-Value="lastLocationStreet"
|
|
|
|
OnKeyDown="@InputCursorHandler.OnKeyDownHandlerAsync" maxlength="50"></MatStringField>
|
|
|
|
</div>
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-8-tablet mat-layout-grid-cell-span-12-desktop">
|
|
|
|
<div class="outlined">
|
|
|
|
<MatAutocompleteList TItem="ZipCity" FullWidth="true" Label="@I18n["LastLocation.ZipCity"]" Items="@ZipCities" OnTextChanged="setZipCityValue" @bind-Value="SelectedZipCity" CustomStringSelector="@(i => i?.Zip_City)"
|
|
|
|
ShowClearButton="true" NumberOfElementsInPopup="6" @onkeydown="InputCursorHandler.OnKeyDownHandlerAsync">
|
|
|
|
<ItemTemplate>
|
|
|
|
<div>
|
|
|
|
<span>@context?.Zip_City</span>
|
|
|
|
</div>
|
|
|
|
</ItemTemplate>
|
|
|
|
</MatAutocompleteList>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-8-tablet mat-layout-grid-cell-span-12-desktop">
|
|
|
|
<MatSelectValue FullWidth="true" Outlined="true" Label="@I18n["SearchService"]" @bind-Value="selectedSearchService" Items="@SearchServices" ValueSelector="@(i=>i)"
|
|
|
|
@@ -136,20 +157,17 @@ |
|
|
|
</ItemTemplate>
|
|
|
|
</MatSelectValue>
|
|
|
|
</div>
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-4-tablet mat-layout-grid-cell-span-12-desktop">
|
|
|
|
<MatStringField Class="w-100 form-check-label" Label="@I18n["SearchServiceNbr"]" Outlined="true" type="text" @bind-Value="searchServiceNbr"
|
|
|
|
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-8-tablet mat-layout-grid-cell-span-12-desktop">
|
|
|
|
<MatStringField Class="w-100" Label="@I18n["SearchServiceNbr"]" Outlined="true" type="text" @bind-Value="searchServiceNbr"
|
|
|
|
OnKeyDown="@InputCursorHandler.OnKeyDownHandlerAsync" maxlength="20"></MatStringField>
|
|
|
|
</div>
|
|
|
|
@*<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-4-tablet mat-layout-grid-cell-span-12-desktop">
|
|
|
|
<MatStringField Class="w-100 form-check-label" Label="@I18n["Remark"]" Outlined="true" type="text" @bind-Value="remark"
|
|
|
|
OnKeyDown="@InputCursorHandler.OnKeyDownHandlerAsync" maxlength="1000" rows="2" TextArea="true"></MatStringField>
|
|
|
|
</div>*@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-4-tablet mat-layout-grid-cell-span-12-desktop">
|
|
|
|
<MatStringField Class="w-100 form-check-label" Label="@I18n["Remark"]" Outlined="true" type="text" @bind-Value="remark"
|
|
|
|
<div class="mat-layout-grid-cell mat-layout-grid-cell-span-4-phone mat-layout-grid-cell-span-8-tablet mat-layout-grid-cell-span-12-desktop">
|
|
|
|
<MatStringField Class="w-100" Label="@I18n["Remark"]" Outlined="true" type="text" @bind-Value="remark"
|
|
|
|
OnKeyDown="@InputCursorHandler.OnKeyDownHandlerAsync" maxlength="1000" rows="2" TextArea="true"></MatStringField>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@@ -190,8 +208,21 @@ |
|
|
|
private string remark;
|
|
|
|
private string searchServiceNbr;
|
|
|
|
private uint age;
|
|
|
|
private float price;
|
|
|
|
private uint price;
|
|
|
|
private DateTime? lastLocationDateTime;
|
|
|
|
private string lastLocationStreet;
|
|
|
|
private string lastLocationZipCity;
|
|
|
|
private ZipCity selectedZipCity;
|
|
|
|
|
|
|
|
private ZipCity SelectedZipCity {
|
|
|
|
get { return selectedZipCity; }
|
|
|
|
set { selectedZipCity = (value != null) ? value : new ZipCity(lastLocationZipCity); }
|
|
|
|
}
|
|
|
|
|
|
|
|
private void setZipCityValue(string value) {
|
|
|
|
lastLocationZipCity = value;
|
|
|
|
selectedZipCity = null;
|
|
|
|
}
|
|
|
|
|
|
|
|
private void setBrandValue(string value) {
|
|
|
|
brandStringValue = value;
|
|
|
|
@@ -244,6 +275,10 @@ |
|
|
|
get => MasterDataService.SearchServices;
|
|
|
|
}
|
|
|
|
|
|
|
|
private ZipCity[] ZipCities {
|
|
|
|
get => MasterDataService.ZipCities;
|
|
|
|
}
|
|
|
|
|
|
|
|
private void Next() {
|
|
|
|
updateDtoFromGUI();
|
|
|
|
PageHistoryManager.AddPageToHistory(NavigationManager.Uri);
|
|
|
|
@@ -297,6 +332,9 @@ |
|
|
|
frameNumber = report.RahmenNummer;
|
|
|
|
age = report.Alter;
|
|
|
|
price = report.Preis;
|
|
|
|
lastLocationDateTime = report.StandortDatum;
|
|
|
|
lastLocationStreet = report.StandortStrasse;
|
|
|
|
SelectedZipCity = new ZipCity(report.StandortPlz, report.StandortOrt);
|
|
|
|
selectedSearchService = Array.Find(SearchServices, searchService => searchService.Id == report.SuchDienstId);
|
|
|
|
searchServiceNbr = report.SuchDienstNr;
|
|
|
|
remark = report.Bemerkung;
|
|
|
|
@@ -320,6 +358,10 @@ |
|
|
|
report.Preis = price;
|
|
|
|
report.SuchDienstId = selectedSearchService != null ? selectedSearchService.Id : null;
|
|
|
|
report.SuchDienstNr = searchServiceNbr;
|
|
|
|
report.StandortDatum = lastLocationDateTime;
|
|
|
|
report.StandortStrasse = lastLocationStreet;
|
|
|
|
report.StandortPlz = SelectedZipCity.Zip;
|
|
|
|
report.StandortOrt = SelectedZipCity.City;
|
|
|
|
}
|
|
|
|
|
|
|
|
} |