コード例 #1
0
ファイル: AircraftViewDO.cs プロジェクト: MartinBG/Gva
        public AircraftViewDO(GvaViewAircraft aircraftData, GvaViewAircraftRegistration registration)
        {
            this.Id = aircraftData.LotId;
            this.ManSN = aircraftData.ManSN;
            this.Model = aircraftData.Model;
            this.ModelAlt = aircraftData.ModelAlt;
            this.OutputDate = aircraftData.OutputDate;
            this.ICAO = aircraftData.ICAO;
            this.AirCategory = aircraftData.AirCategory != null ? aircraftData.AirCategory.Name : null;
            this.AircraftProducer = aircraftData.AircraftProducer != null ? aircraftData.AircraftProducer.Name : null;
            this.Engine = aircraftData.Engine;
            this.Propeller = aircraftData.Propeller;
            this.ModifOrWingColor = aircraftData.ModifOrWingColor;
            this.EngineAlt = aircraftData.EngineAlt;
            this.PropellerAlt = aircraftData.PropellerAlt;
            this.ModifOrWingColorAlt = aircraftData.ModifOrWingColorAlt;
            this.ActNumber = aircraftData.ActNumber;

            if (registration != null)
            {
                this.Mark = registration.RegMark;
                this.CertNumber = registration.CertNumber;
                this.RegisterCode = registration.Register.Code;
            }
        }
コード例 #2
0
 public AircraftRegistrationDO(GvaViewAircraftRegistration registration)
 {
     this.LotId = registration.LotId;
     this.PartIndex = registration.PartIndex;
     this.CertRegisterId = registration.CertRegisterId;
     this.CertNumber = registration.CertNumber;
     this.ActNumber = registration.ActNumber;
     this.RegisterCode = registration.Register.Code;
     this.RegMark = registration.RegMark;
 }