| @@ -23,8 +23,8 @@ | |||
| <div class="row no-gutters w-100"> | |||
| <div class="col-12"> | |||
| <MatSelect Class="w-100 required" Label="@i18n["Salutation"]" Outlined="true" @bind-Value="pucSalutation" Required="true" Style="margin-bottom: 0.5rem"> | |||
| <MatOptionString Value="sir">@i18n["Man"]</MatOptionString> | |||
| <MatOptionString Value="madam">@i18n["Woman"]</MatOptionString> | |||
| <MatOptionString Value="M">@i18n["Male"]</MatOptionString> | |||
| <MatOptionString Value="F">@i18n["Female"]</MatOptionString> | |||
| </MatSelect> | |||
| </div> | |||
| </div> | |||
| @@ -311,8 +311,8 @@ | |||
| report.GeographicInfo.Latitude = bicycleGeoPosition.Latitude; | |||
| report.GeographicInfo.Longitude = bicycleGeoPosition.Longitude; | |||
| report.FotoString = imgUrl; | |||
| report.FarbeId = selectedColor != null ? selectedColor.Id : -1; | |||
| report.TypId = selectedBcType != null ? selectedBcType.Id : -1; | |||
| report.FarbeId = selectedColor != null ? selectedColor.Id : null; | |||
| report.TypId = selectedBcType != null ? selectedBcType.Id : null; | |||
| if (SelectedBrand != null) { | |||
| if (SelectedBrand.Id == -999) { | |||
| report.NeueMarke = SelectedBrand.Bezeichnung; | |||
| @@ -15,10 +15,10 @@ | |||
| public string AbholTelefon { get; set; } | |||
| public FoundReport() : this("", "", "", true, -1, -1, -1, new GeographicInfo()) { | |||
| public FoundReport() : this("", "", "", true, null, null, null, new GeographicInfo()) { | |||
| } | |||
| public FoundReport(string anrede, string vorname, string nachname, bool abholadresseIstKontakt, int typId, int markeId, int farbeId, GeographicInfo geographicInfo) { | |||
| public FoundReport(string anrede, string vorname, string nachname, bool abholadresseIstKontakt, int? typId, int? markeId, int? farbeId, GeographicInfo geographicInfo) { | |||
| this.Anrede = anrede; | |||
| this.Vorname = vorname; | |||
| this.Nachname = nachname; | |||
| @@ -13,11 +13,11 @@ | |||
| public string SuchDienstNr { get; set; } | |||
| public MissingReport() : this("", "", "", "", "", "", "", -1, -1, -1) { | |||
| public MissingReport() : this("", "", "", "", "", "", "", null, null, null) { | |||
| } | |||
| public MissingReport(string anrede, string vorname, string nachname, string mail, string personPLZ, | |||
| string personOrt, string personStrasse, int typId, int markeId, int farbeId) { | |||
| string personOrt, string personStrasse, int? typId, int? markeId, int? farbeId) { | |||
| this.Anrede = anrede; | |||
| this.Vorname = vorname; | |||
| this.Nachname = nachname; | |||
| @@ -6,9 +6,9 @@ | |||
| public string Nachname { get; set; } // required | |||
| public string Mobil { get; set; } | |||
| public string Telefon { get; set; } | |||
| public int TypId { get; set; } // required | |||
| public int MarkeId { get; set; } // required | |||
| public int FarbeId { get; set; } // required | |||
| public int? TypId { get; set; } // required | |||
| public int? MarkeId { get; set; } // required | |||
| public int? FarbeId { get; set; } // required | |||
| public string RahmenNummer { get; set; } | |||
| public string Bemerkung { get; set; } | |||
| public string Foto { get; set; } | |||
| @@ -10,7 +10,7 @@ namespace cwebplusApp.Shared.Models { | |||
| public string GetDataAsFormattedList() { | |||
| string result = ""; | |||
| foreach (string s in Data) { | |||
| result += s + "\r\n"; | |||
| result += s + '\r'+'\n'; | |||
| } | |||
| return result; | |||
| } | |||