Пример #1
0
 public static AircraftPurchaseReceptionDTO CreateAircraftPurchaseReceptionDTO(int aircraftPurchaseReceptionId, global::System.DateTime startDate, global::System.DateTime createDate, bool isClosed, global::System.Guid sourceId, int status, int supplierId, global::System.Collections.ObjectModel.ObservableCollection<AircraftPurchaseReceptionLineDTO> receptionLines, global::System.Collections.ObjectModel.ObservableCollection<ReceptionScheduleDTO> receptionSchedules)
 {
     AircraftPurchaseReceptionDTO aircraftPurchaseReceptionDTO = new AircraftPurchaseReceptionDTO();
     aircraftPurchaseReceptionDTO.AircraftPurchaseReceptionId = aircraftPurchaseReceptionId;
     aircraftPurchaseReceptionDTO.StartDate = startDate;
     aircraftPurchaseReceptionDTO.CreateDate = createDate;
     aircraftPurchaseReceptionDTO.IsClosed = isClosed;
     aircraftPurchaseReceptionDTO.SourceId = sourceId;
     aircraftPurchaseReceptionDTO.Status = status;
     aircraftPurchaseReceptionDTO.SupplierId = supplierId;
     if ((receptionLines == null))
     {
         throw new global::System.ArgumentNullException("receptionLines");
     }
     aircraftPurchaseReceptionDTO.ReceptionLines = receptionLines;
     if ((receptionSchedules == null))
     {
         throw new global::System.ArgumentNullException("receptionSchedules");
     }
     aircraftPurchaseReceptionDTO.ReceptionSchedules = receptionSchedules;
     return aircraftPurchaseReceptionDTO;
 }
Пример #2
0
 public void AddToAircraftPurchaseReceptions(AircraftPurchaseReceptionDTO aircraftPurchaseReceptionDTO)
 {
     base.AddObject("AircraftPurchaseReceptions", aircraftPurchaseReceptionDTO);
 }