public void Populate_spreadsheet_row(ICellSet cell_set, int row_number) { cell_set.Populate_cell(row_number, DateSpreadsheetIndex + 1, Date); cell_set.Populate_cell(row_number, AmountSpreadsheetIndex + 1, Amount); cell_set.Populate_cell(row_number, TypeSpreadsheetIndex + 1, Type); cell_set.Populate_cell(row_number, DescriptionSpreadsheetIndex + 1, Description); }
public void Populate_spreadsheet_row(ICellSet cells, int row_number) { cells.Populate_cell(row_number, 1, Date); cells.Populate_cell(row_number, 2, Amount); cells.Populate_cell(row_number, 3, Description); cells.Populate_cell(row_number, 4, Index); }
private void Populate_cell_with_amount(ICellSet cell_set, int row_number, int amount_index, double amount) { if (amount != 0) { cell_set.Populate_cell(row_number, amount_index + 1, amount); } else { cell_set.Populate_cell(row_number, amount_index + 1, String.Empty); } }
public void Populate_spreadsheet_row(ICellSet cell_set, int row_number) { if (Divider) { cell_set.Populate_cell(row_number, DividerIndex + 1, ReconConsts.DividerText); } else { cell_set.Populate_cell(row_number, DateIndex + 1, Date); Populate_cell_with_amount(cell_set, row_number, UnreconciledAmountIndex, Unreconciled_amount); cell_set.Populate_cell(row_number, CodeIndex + 1, Code); Populate_cell_with_amount(cell_set, row_number, ReconciledAmountIndex, Reconciled_amount); cell_set.Populate_cell(row_number, DatePaidIndex + 1, Date_paid); Populate_cell_with_amount(cell_set, row_number, TotalPaidIndex, Total_paid); cell_set.Populate_cell(row_number, DescriptionIndex + 1, Description); } }
public void Populate_spreadsheet_row(ICellSet cell_set, int row_number) { if (Divider) { cell_set.Populate_cell(row_number, DividerIndex + 1, ReconConsts.DividerText); } else { cell_set.Populate_cell(row_number, DateIndex + 1, Date); Populate_cell_with_amount(cell_set, row_number, UnreconciledAmountIndex, Unreconciled_amount); cell_set.Populate_cell(row_number, MatchedIndex + 1, Matched ? "x" : String.Empty); cell_set.Populate_cell(row_number, DescriptionIndex + 1, Description); Populate_cell_with_amount(cell_set, row_number, ReconciledAmountIndex, Reconciled_amount); if (Match != null) { Match.Populate_spreadsheet_row(cell_set, row_number); } } }