public static PaymentNoticeDTO CreatePaymentNoticeDTO(int paymentNoticeId, global::System.DateTime createDate, global::System.DateTime deadLine, int status, bool isComplete, global::System.Collections.ObjectModel.ObservableCollection<PaymentNoticeLineDTO> paymentNoticeLines, int currencyId, int supplierId, int bankAccountId) { PaymentNoticeDTO paymentNoticeDTO = new PaymentNoticeDTO(); paymentNoticeDTO.PaymentNoticeId = paymentNoticeId; paymentNoticeDTO.CreateDate = createDate; paymentNoticeDTO.DeadLine = deadLine; paymentNoticeDTO.Status = status; paymentNoticeDTO.IsComplete = isComplete; if ((paymentNoticeLines == null)) { throw new global::System.ArgumentNullException("paymentNoticeLines"); } paymentNoticeDTO.PaymentNoticeLines = paymentNoticeLines; paymentNoticeDTO.CurrencyId = currencyId; paymentNoticeDTO.SupplierId = supplierId; paymentNoticeDTO.BankAccountId = bankAccountId; return paymentNoticeDTO; }
public void AddToPaymentNotices(PaymentNoticeDTO paymentNoticeDTO) { base.AddObject("PaymentNotices", paymentNoticeDTO); }