/// <summary>
 /// Create a new ConsumerDebtPayment record.
 /// </summary>
 /// <param name="row"></param>
 public ConsumerTrustPayment(ConsumerTrustPaymentRow row)
 {
     this.RowId              = row.ConsumerTrustPaymentId;
     this.RowVersion         = row.RowVersion;
     this.ActualPaymentDate  = row.IsActualPaymentDateNull() ? null : (DateTime?)row.ActualPaymentDate;
     this.ActualPaymentValue = row.IsActualPaymentValueNull() ? null : (Decimal?)row.ActualPaymentValue;
     this.CheckId            = row.IsCheckIdNull() ? null : row.CheckId;
     this.ClearedDate        = row.ClearedDate;
     this.Fee0      = row.IsFee0Null() ? (Decimal?)null : (Decimal?)row.Fee0;
     this.IsActive  = row.IsActive;
     this.IsCleared = row.IsCleared;
     this.Memo0     = row.IsMemo0Null() ? null : row.Memo0;
     this.Memo1     = row.IsMemo1Null() ? null : row.Memo1;
     this.Memo2     = row.IsMemo2Null() ? null : row.Memo2;
     this.Memo3     = row.IsMemo3Null() ? null : row.Memo3;
     this.StatusId  = row.StatusId;
 }
예제 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="consumerTrustPaymentRow"></param>
 internal PaymentInfo(ConsumerTrustPaymentRow consumerTrustPaymentRow)
 {
     this.BlotterId = consumerTrustPaymentRow.BlotterId;
     this.ConsumerTrustPaymentId = consumerTrustPaymentRow.ConsumerTrustPaymentId;
     this.EffectivePaymentDate   = consumerTrustPaymentRow.EffectivePaymentDate;
     this.EffectivePaymentValue  = consumerTrustPaymentRow.EffectivePaymentValue;
     this.Fee0           = consumerTrustPaymentRow.Fee0;
     this.Fee1           = consumerTrustPaymentRow.Fee1;
     this.Fee2           = consumerTrustPaymentRow.Fee2;
     this.Fee3           = consumerTrustPaymentRow.Fee3;
     this.IsActive       = consumerTrustPaymentRow.IsActive;
     this.IsCleared      = consumerTrustPaymentRow.IsCleared;
     this.Memo0          = consumerTrustPaymentRow.IsMemo0Null() ? string.Empty : consumerTrustPaymentRow.Memo0;
     this.Memo1          = consumerTrustPaymentRow.IsMemo1Null() ? string.Empty : consumerTrustPaymentRow.Memo1;
     this.Memo2          = consumerTrustPaymentRow.IsMemo2Null() ? string.Empty : consumerTrustPaymentRow.Memo2;
     this.Memo3          = consumerTrustPaymentRow.IsMemo3Null() ? string.Empty : consumerTrustPaymentRow.Memo3;
     this.PaymentId      = consumerTrustPaymentRow.ConsumerTrustPaymentId;
     this.StatusId       = consumerTrustPaymentRow.StatusId;
     this.TrackingNumber = consumerTrustPaymentRow.IsTrackingNumberNull() ? String.Empty : consumerTrustPaymentRow.TrackingNumber;
 }