Parcourir la source

nullable values

master
Flo Smilari il y a 4 ans
Parent
révision
4156755688

+ 2
- 2
Pages/CaritasServiceFundVeloAlternatePickupContactPage.razor Voir le fichier

<div class="row no-gutters w-100"> <div class="row no-gutters w-100">
<div class="col-12"> <div class="col-12">
<MatSelect Class="w-100 required" Label="@i18n["Salutation"]" Outlined="true" @bind-Value="pucSalutation" Required="true" Style="margin-bottom: 0.5rem"> <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> </MatSelect>
</div> </div>
</div> </div>

+ 2
- 2
Pages/CaritasServiceFundVeloFoundKeyDataPage.razor Voir le fichier

report.GeographicInfo.Latitude = bicycleGeoPosition.Latitude; report.GeographicInfo.Latitude = bicycleGeoPosition.Latitude;
report.GeographicInfo.Longitude = bicycleGeoPosition.Longitude; report.GeographicInfo.Longitude = bicycleGeoPosition.Longitude;
report.FotoString = imgUrl; 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 != null) {
if (SelectedBrand.Id == -999) { if (SelectedBrand.Id == -999) {
report.NeueMarke = SelectedBrand.Bezeichnung; report.NeueMarke = SelectedBrand.Bezeichnung;

+ 2
- 2
Shared/Models/FoundReport.cs Voir le fichier

public string AbholTelefon { get; set; } 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.Anrede = anrede;
this.Vorname = vorname; this.Vorname = vorname;
this.Nachname = nachname; this.Nachname = nachname;

+ 2
- 2
Shared/Models/MissingReport.cs Voir le fichier

public string SuchDienstNr { get; set; } 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, 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.Anrede = anrede;
this.Vorname = vorname; this.Vorname = vorname;
this.Nachname = nachname; this.Nachname = nachname;

+ 3
- 3
Shared/Models/Report.cs Voir le fichier

public string Nachname { get; set; } // required public string Nachname { get; set; } // required
public string Mobil { get; set; } public string Mobil { get; set; }
public string Telefon { 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 RahmenNummer { get; set; }
public string Bemerkung { get; set; } public string Bemerkung { get; set; }
public string Foto { get; set; } public string Foto { get; set; }

+ 1
- 1
Shared/Models/ReportResponse.cs Voir le fichier

public string GetDataAsFormattedList() { public string GetDataAsFormattedList() {
string result = ""; string result = "";
foreach (string s in Data) { foreach (string s in Data) {
result += s + "\r\n";
result += s + '\r'+'\n';
} }
return result; return result;
} }

Chargement…
Annuler
Enregistrer