private void WriteValueItemRow(Cell cell, ValueItemRow itemRow) { WordHelper.Write(cell, itemRow.Name, _builder); Row row = cell.ParentRow; int shift = row.IndexOf(cell) + 1; foreach (SemesterData sems in itemRow.Items.Keys) { int count = itemRow.Items[sems]; int index = -1; if (_map.SemesterMapping.ContainsKey(sems)) { index = _map.SemesterMapping[sems]; } if (index < 0) { continue; } index = index + shift; WordHelper.Write(row.Cells[index], (count == 0 ? "" : "" + count), _builder); } }
private void WriteValueItemRow(Cell cell, ValueItemRow itemRow) { WordHelper.Write(cell, itemRow.Name, _builder); Row row = cell.ParentRow; int shift = row.IndexOf(cell) + 1; foreach (SemesterData sems in itemRow.Items.Keys) { int count = itemRow.Items[sems]; int index = -1; if (_map.SemesterMapping.ContainsKey(sems)) index = _map.SemesterMapping[sems]; if (index < 0) continue; index = index + shift; WordHelper.Write(row.Cells[index], (count == 0 ? "" : "" + count), _builder); } }