Commit ee899979 by lcx

费用字典列表pointcell数值错误

parent 979425df
...@@ -1423,23 +1423,23 @@ public SheetExportResponse GetDrugtypeFactor(AllotDeptRequest request) ...@@ -1423,23 +1423,23 @@ public SheetExportResponse GetDrugtypeFactor(AllotDeptRequest request)
var rowcells = new List<Cell> var rowcells = new List<Cell>
{ {
new Cell { CellType = "body", CellValue = index+1, PointCell = 0, MergeRow = 1, MergeCell = 1 }, new Cell { CellType = "body", CellValue = index+1, PointCell = 0, MergeRow = 1, MergeCell = 1 },
new Cell { CellType = "body", CellValue = charge.Charge, PointCell = 0, MergeRow = 1, MergeCell = 1 }, new Cell { CellType = "body", CellValue = charge.Charge, PointCell = 1, MergeRow = 1, MergeCell = 1 },
new Cell { CellType = "body", CellValue = charge.ChargeType, PointCell = 1, MergeRow = 1, MergeCell = 1 }, new Cell { CellType = "body", CellValue = charge.ChargeType, PointCell = 2, MergeRow = 1, MergeCell = 1 },
}; };
int i = 0; int i = 1;
foreach (var model in models) foreach (var model in models)
{ {
var modeldata = querydata.FirstOrDefault(t => t.Charge == charge.Charge && t.ChargeType == charge.ChargeType && t.ExModuleId == model.Id); var modeldata = querydata.FirstOrDefault(t => t.Charge == charge.Charge && t.ChargeType == charge.ChargeType && t.ExModuleId == model.Id);
int j = 1; int j = 0;
foreach (var column in defaultColumns) foreach (var column in defaultColumns)
{ {
rowcells.Add(new Cell rowcells.Add(new Cell
{ {
CellType = "body", CellType = "body",
CellValue = modeldata == null ? null : fields[column.Value].Invoke(modeldata), CellValue = modeldata == null ? null : fields[column.Value].Invoke(modeldata),
PointCell = 1 + i * 3 + j, PointCell = i * 3 + j,
MergeRow = 1, MergeRow = 1,
MergeCell = 1 MergeCell = 1
}); });
......
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