Пример #1
0
        private static void fillRow(SvodDdr.DdrDataContext dc, int rowIndex,  RowData totalRow, Worksheet ws,  
            List<SourceData> sqlData)
        {
            var rowData = new RowData();
            var row = (Range) ws.Rows[rowIndex];
            string serviceCode = ((Range)row.Cells[1, serviceCodeColumn]).Value2.ToString();

            rowData.Select(sqlData, serviceCode);
            rowData.Fill(ws, rowIndex);
            totalRow.Accumulate(rowData);
        }
Пример #2
0
        private static void fillSection(SvodDdr.DdrDataContext dc, Worksheet ws,
            int minAge, int maxAge, int rowIndex, List<SourceData> sourceDataList, RowData itogLine)
        {
            foreach (var age in ddrAges.Where(x => x >= minAge && x <= maxAge))
            {
                var lineData = new RowData();

                lineData.Age = age;
                lineData.Select(sourceDataList, dc);
                lineData.Fill(dc, ws, rowIndex);
                itogLine.Accumulate(lineData);

                rowIndex++;
            }
        }