考核得分率四舍五入

parent 1a8553e0
......@@ -289,7 +289,7 @@ public void Save(List<PerSheet> perSheets, int allotId)
workDoctor = info.Data.FirstOrDefault(t => t.UnitType == UnitType.医生组.ToString() && t.AccountingUnit == dept.AccountingUnit);
dept.MedicineFactor = workDoctor?.MedicineFactor;
dept.ScoringAverage = (scoreAverage.HasValue ? scoreAverage : dept.ScoringAverage) ?? 0;
dept.ScoringAverage = scoreAverage.HasValue ? scoreAverage ?? 0 : dept.ScoringAverage;
dept.AdjustFactor = dept.AdjustFactor == 0m ? 1 : dept.AdjustFactor;
dept.Income = econDoctor?.CellValue ?? 0;
dept.WorkloadFee = workDoctor?.CellValue ?? 0;
......
......@@ -761,7 +761,7 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
else if (sheet.SheetType == (int)SheetType.AccountScoreAverage)
{
sheettype = 8;
amount = doctor?.ScoringAverage ?? 0;
amount = Math.Round(doctor?.ScoringAverage ?? 0, 4);
}
var item = new DetailDtos
......@@ -999,7 +999,7 @@ public DeptDataDetails SpecialDeptDetail(ag_secondallot second)
else if (sheet.SheetType == (int)SheetType.AccountScoreAverage)
{
sheettype = 8;
amount = special.FirstOrDefault()?.ScoringAverage ?? 0;
amount = Math.Round(special.FirstOrDefault()?.ScoringAverage ?? 0, 4);
}
var item = new DetailDtos
......
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