private void addEnvelopeLine(LineItemDRM newLine, OldFFDBDataSet.EnvelopeLineRow sourceELine) { EnvelopeLineDRM newELine = new EnvelopeLineDRM(newLine); newELine.EnvelopeID = envelopeAppender.getDestinationIdFromSourceId(sourceELine.envelopeID); newELine.Description = getELineDescription(sourceELine); newELine.Amount = sourceELine.amount; }
private void addEnvelopeLines(LineItemDRM newLine, OldFFDBDataSet.LineItemRow sourceLine) { OldFFDBDataSet.EnvelopeLineRow[] eLines = sourceLine.GetEnvelopeLineRows(); foreach (OldFFDBDataSet.EnvelopeLineRow eLine in eLines) { addEnvelopeLine(newLine, eLine); } }
private void addLineToTransaction(TransactionDRM transaction, OldFFDBDataSet.LineItemRow sourceLine) { LineItemDRM newLine = new LineItemDRM(); newLine.setParentTransaction(transaction); newLine.AccountID = accountAppender.getDestinationIdFromSourceId(sourceLine.accountID); newLine.Amount = sourceLine.amount; newLine.ConfirmationNumber = getConfirmationNumber(sourceLine); newLine.Polarity = FamilyFinance.Data.PolarityCON.GetPlolartiy(sourceLine.creditDebit); newLine.State = FamilyFinance.Data.TransactionStateCON.GetState(sourceLine.complete[0]); addEnvelopeLines(newLine, sourceLine); }