public static AirframeMaintainInvoiceDTO CreateAirframeMaintainInvoiceDTO(int airframeMaintainInvoiceId, global::System.DateTime invoiceDate, global::System.DateTime inMaintainTime, global::System.DateTime outMaintainTime, decimal invoiceValue, decimal paidAmount, global::System.DateTime createDate, bool isValid, bool isCompleted, int status, global::System.Collections.ObjectModel.ObservableCollection<MaintainInvoiceLineDTO> maintainInvoiceLines, global::System.Guid documentId, int supplierId, int currencyId) { AirframeMaintainInvoiceDTO airframeMaintainInvoiceDTO = new AirframeMaintainInvoiceDTO(); airframeMaintainInvoiceDTO.AirframeMaintainInvoiceId = airframeMaintainInvoiceId; airframeMaintainInvoiceDTO.InvoiceDate = invoiceDate; airframeMaintainInvoiceDTO.InMaintainTime = inMaintainTime; airframeMaintainInvoiceDTO.OutMaintainTime = outMaintainTime; airframeMaintainInvoiceDTO.InvoiceValue = invoiceValue; airframeMaintainInvoiceDTO.PaidAmount = paidAmount; airframeMaintainInvoiceDTO.CreateDate = createDate; airframeMaintainInvoiceDTO.IsValid = isValid; airframeMaintainInvoiceDTO.IsCompleted = isCompleted; airframeMaintainInvoiceDTO.Status = status; if ((maintainInvoiceLines == null)) { throw new global::System.ArgumentNullException("maintainInvoiceLines"); } airframeMaintainInvoiceDTO.MaintainInvoiceLines = maintainInvoiceLines; airframeMaintainInvoiceDTO.DocumentId = documentId; airframeMaintainInvoiceDTO.SupplierId = supplierId; airframeMaintainInvoiceDTO.CurrencyId = currencyId; return airframeMaintainInvoiceDTO; }
public void AddToAirframeMaintainInvoices(AirframeMaintainInvoiceDTO airframeMaintainInvoiceDTO) { base.AddObject("AirframeMaintainInvoices", airframeMaintainInvoiceDTO); }