| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- namespace cwebplusApp.Shared.Models {
- public class FoundReport : Report {
- public string Anrede { get; set; } // required
- public string Vorname { get; set; } // required
- public string Nachname { get; set; } // required
- public bool AbholadresseIstKontakt { get; set; } // required
- public int TypId { get; set; } // required
- public int MarkeId { get; set; } // required
- public int FarbeId { get; set; } // required
- public string Bemerkung { get; set; }
- public string Mobil { get; set; }
- public string NeueMarke { get; set; }
- public string Rahmennummer { get; set; }
- public string Telefon { get; set; }
- public string Foto { get; set; }
- public GeographicInfo GeographicInfo { get; set; } // required
-
- public string AbholAnrede { get; set; } // required when AbholadresseIstKontakt = false
- public string AbholVorname { get; set; } // required when AbholadresseIstKontakt = false
- public string AbholNachname { get; set; } // required when AbholadresseIstKontakt = false
- public string AbholStrasse { get; set; } // required when AbholadresseIstKontakt = false
- public string AbholPLZ { get; set; } // required when AbholadresseIstKontakt = false
- public string AbholOrt { get; set; } // required when AbholadresseIstKontakt = false
- public string AbholMail { get; set; }
- public string AbholMobil { get; set; }
- public string AbholTelefon { get; set; }
-
-
- public FoundReport() : this("", "", "", true, -1, -1, -1, null) {
- }
-
- 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;
- this.AbholadresseIstKontakt = abholadresseIstKontakt;
- this.TypId = typId;
- this.MarkeId = markeId;
- this.FarbeId = farbeId;
- this.GeographicInfo = geographicInfo;
- }
- }
-
-
- public class GeographicInfo {
- public string Postcode { get; set; }
- public string Town { get; set; }
- public string Address { get; set; }
- public double Latitude { get; set; }
- public double Longitude { get; set; }
-
- public GeographicInfo() : this("", "", "", 0.0, 0.0) {
- }
-
- public GeographicInfo(string town, string postcode, string address, double latitude, double longitude) {
- this.Town = town;
- this.Postcode = postcode;
- this.Address = address;
- this.Latitude = latitude;
- this.Longitude = longitude;
- }
- }
-
- }
|