Commit fc1d3331 by lcx

绩效方案配置中新增抽取配置模板,模板类似工作量,区别在于不带系数,给5.3、5.4使用

parent a81b9382
...@@ -125,12 +125,6 @@ public static void ClearSheetTemplate(ISheet sheet, PerSheetPoint point, SheetTy ...@@ -125,12 +125,6 @@ public static void ClearSheetTemplate(ISheet sheet, PerSheetPoint point, SheetTy
var row = sheet.GetRow(i); var row = sheet.GetRow(i);
if (row != null) if (row != null)
{ {
if (sheetType != SheetType.OtherWorkload && i != 2)
{
sheet.RemoveRow(row);
continue;
}
row.ZeroHeight = false; //取消隐藏行 row.ZeroHeight = false; //取消隐藏行
int dataFirstCellRowNum = point.DataFirstCellNum.Value; int dataFirstCellRowNum = point.DataFirstCellNum.Value;
//跳过核算单元和科室 //跳过核算单元和科室
...@@ -145,6 +139,12 @@ public static void ClearSheetTemplate(ISheet sheet, PerSheetPoint point, SheetTy ...@@ -145,6 +139,12 @@ public static void ClearSheetTemplate(ISheet sheet, PerSheetPoint point, SheetTy
} }
} }
} }
if (!new SheetType[] { SheetType.Workload, SheetType.OtherWorkload }.Contains(sheetType))
{
var row = sheet.GetRow(point.DataFirstRowNum.Value - 1);
if (row != null) sheet.RemoveRow(row);
}
} }
public static void CloseAutoFilter(string path) public static void CloseAutoFilter(string path)
......
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