public void AddToEnginePurchaseReceptions(EnginePurchaseReceptionDTO enginePurchaseReceptionDTO) { base.AddObject("EnginePurchaseReceptions", enginePurchaseReceptionDTO); }
public static EnginePurchaseReceptionDTO CreateEnginePurchaseReceptionDTO(int enginePurchaseReceptionId, global::System.DateTime startDate, global::System.DateTime createDate, bool isClosed, global::System.Guid sourceId, int status, int supplierId, global::System.Collections.ObjectModel.ObservableCollection<EnginePurchaseReceptionLineDTO> receptionLines, global::System.Collections.ObjectModel.ObservableCollection<ReceptionScheduleDTO> receptionSchedules) { EnginePurchaseReceptionDTO enginePurchaseReceptionDTO = new EnginePurchaseReceptionDTO(); enginePurchaseReceptionDTO.EnginePurchaseReceptionId = enginePurchaseReceptionId; enginePurchaseReceptionDTO.StartDate = startDate; enginePurchaseReceptionDTO.CreateDate = createDate; enginePurchaseReceptionDTO.IsClosed = isClosed; enginePurchaseReceptionDTO.SourceId = sourceId; enginePurchaseReceptionDTO.Status = status; enginePurchaseReceptionDTO.SupplierId = supplierId; if ((receptionLines == null)) { throw new global::System.ArgumentNullException("receptionLines"); } enginePurchaseReceptionDTO.ReceptionLines = receptionLines; if ((receptionSchedules == null)) { throw new global::System.ArgumentNullException("receptionSchedules"); } enginePurchaseReceptionDTO.ReceptionSchedules = receptionSchedules; return enginePurchaseReceptionDTO; }