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; } }
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; }