private void SetDetail(SheetData data, ArrearagesList item, ref uint rowIndex, List <uint> indices) { rowIndex++; data.SetNumber(rowIndex, "A", item.Id, cfidxDA1); data.SetText(rowIndex, "B", item.CustomerCode, cfidxDBI1); data.SetText(rowIndex, "C", item.Tel, cfidxDBI1); data.SetDate(rowIndex, "D", item.BilledAt, cfidxDDate1); data.SetDate(rowIndex, "E", item.ClosingAt, cfidxDDate1); data.SetDate(rowIndex, "F", item.OriginalDueAt, cfidxDDate1); data.SetNumber(rowIndex, "G", item.RemainAmount, cfidxDVal1); data.SetText(rowIndex, "H", item.InvoiceCode, cfidxDBI1); data.SetText(rowIndex, "I", item.DepartmentCode, cfidxDBI1); data.SetText(rowIndex, "J", item.StaffCode, cfidxDJ1); indices.Add(rowIndex); rowIndex++; data.SetStyle(rowIndex, "A", cfidxDA2); data.SetText(rowIndex, "B", item.CustomerName, cfidxDBI2); data.SetText(rowIndex, "C", item.CustomerNote, cfidxDBI2); data.SetDate(rowIndex, "D", item.SalesAt, cfidxDDate2); data.SetDate(rowIndex, "E", item.DueAt, cfidxDDate2); data.SetNumber(rowIndex, "F", item.ArrearagesDayCount, cfidxDDay2); data.SetStyle(rowIndex, "G", cfidxDBI2); data.SetText(rowIndex, "H", item.Note1, cfidxDBI2); data.SetText(rowIndex, "I", item.DepartmentName, cfidxDBI2); data.SetText(rowIndex, "J", item.StaffName, cfidxDJ2); }