コード例 #1
0
ファイル: GvaViewPersonRatingDO.cs プロジェクト: MartinBG/Gva
 public GvaViewPersonRatingDO(
     GvaViewPersonRating rating,
     GvaViewPersonRatingEdition firstEdition,
     GvaViewPersonRatingEdition currentEdition)
 {
     this.LotId = rating.LotId;
     this.EditionIndex = currentEdition.Index;
     this.RatingPartIndex = rating.PartIndex;
     this.EditionPartIndex = currentEdition.PartIndex;
     this.RatingTypes = rating.RatingTypes;
     this.PersonRatingLevel = rating.RatingLevel;
     this.RatingClass = rating.RatingClass;
     this.AircraftTypeGroup = rating.AircraftTypeGroup;
     this.Authorization = rating.Authorization;
     this.AircraftTypeCategory = rating.AircraftTypeCategory;
     this.RatingSubClasses = currentEdition.RatingSubClasses;
     this.Limitations = currentEdition.Limitations;
     this.LastDocDateValidFrom = currentEdition.DocDateValidFrom;
     this.LastDocDateValidTo = currentEdition.DocDateValidTo;
     this.FirstDocDateValidFrom = firstEdition.DocDateValidFrom;
     this.Notes = currentEdition.Notes;
     this.NotesAlt = currentEdition.NotesAlt;
     this.LocationIndicator = rating.LocationIndicator;
     this.Sector = rating.Sector;
 }
コード例 #2
0
 public GvaViewPersonRatingEditionDO(GvaViewPersonRating rating, GvaViewPersonRatingEdition edition)
 {
     this.LotId = rating.LotId;
     this.EditionIndex = edition.Index;
     this.RatingPartIndex = rating.PartIndex;
     this.EditionPartIndex = edition.PartIndex;
     this.RatingTypes = rating.RatingTypes;
     this.PersonRatingLevel = rating.RatingLevel;
     this.RatingClass = rating.RatingClass;
     this.AircraftTypeGroup = rating.AircraftTypeGroup;
     this.AircraftTypeCategory = rating.AircraftTypeCategory;
     this.Authorization = rating.Authorization;
     this.RatingSubClasses = edition.RatingSubClasses;
     this.Limitations = !string.IsNullOrEmpty(edition.Limitations) ? edition.Limitations.Replace(GvaConstants.ConcatenatingExp, ", ") : null;
     this.DocDateValidFrom = edition.DocDateValidFrom;
     this.DocDateValidTo = edition.DocDateValidTo;
     this.LocationIndicator = rating.LocationIndicator;
     this.Sector = rating.Sector;
 }