public static SundryInvoiceDTO CreateSundryInvoiceDTO(int sundryInvoiceId, global::System.DateTime invoiceDate, decimal invoiceValue, decimal paidAmount, global::System.DateTime createDate, bool isValid, bool isCompleted, int status, int supplierId, int currencyId, global::System.Collections.ObjectModel.ObservableCollection<InvoiceLineDTO> invoiceLines) { SundryInvoiceDTO sundryInvoiceDTO = new SundryInvoiceDTO(); sundryInvoiceDTO.SundryInvoiceId = sundryInvoiceId; sundryInvoiceDTO.InvoiceDate = invoiceDate; sundryInvoiceDTO.InvoiceValue = invoiceValue; sundryInvoiceDTO.PaidAmount = paidAmount; sundryInvoiceDTO.CreateDate = createDate; sundryInvoiceDTO.IsValid = isValid; sundryInvoiceDTO.IsCompleted = isCompleted; sundryInvoiceDTO.Status = status; sundryInvoiceDTO.SupplierId = supplierId; sundryInvoiceDTO.CurrencyId = currencyId; if ((invoiceLines == null)) { throw new global::System.ArgumentNullException("invoiceLines"); } sundryInvoiceDTO.InvoiceLines = invoiceLines; return sundryInvoiceDTO; }
public void AddToSundryInvoices(SundryInvoiceDTO sundryInvoiceDTO) { base.AddObject("SundryInvoices", sundryInvoiceDTO); }