Commit e52618b8 by lcx

跳过4.1写入科室

parent 30a3a895
......@@ -142,19 +142,19 @@ private void WriteDataToFile(IWorkbook workbook, per_allot allot, Dictionary<ExD
var types = new List<SheetType> { SheetType.OtherIncome, SheetType.Income, SheetType.Expend, SheetType.Workload, SheetType.OtherWorkload/*, SheetType.AccountBasic*/ };
decimal ratio = 60m;
string accountBasicSheetName = "";
for (int sheetIndex = 0; sheetIndex < workbook.NumberOfSheets; sheetIndex++)
{
var sheetName = workbook.GetSheetAt(sheetIndex).SheetName;
if (!sheetName.StartsWith("4.1"))
continue;
accountBasicSheetName = sheetName;
break;
}
var accountBasicSheet = workbook.GetSheet(accountBasicSheetName);
HandleSheet(workbook, allot, exdict, extractDto, groupName, isSingle, accountBasicSheet, ratio, types, factory, style, employeeDict, collectData);
//string accountBasicSheetName = "";
//for (int sheetIndex = 0; sheetIndex < workbook.NumberOfSheets; sheetIndex++)
//{
// var sheetName = workbook.GetSheetAt(sheetIndex).SheetName;
// if (!sheetName.StartsWith("4.1"))
// continue;
// accountBasicSheetName = sheetName;
// break;
//}
//var accountBasicSheet = workbook.GetSheet(accountBasicSheetName);
//HandleSheet(workbook, allot, exdict, extractDto, groupName, isSingle, accountBasicSheet, ratio, types, factory, style, employeeDict, collectData);
for (int sheetIndex = 0; sheetIndex < workbook.NumberOfSheets; sheetIndex++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment