考核得分率变更

parent 51f34449
...@@ -1712,6 +1712,11 @@ ...@@ -1712,6 +1712,11 @@
ExTypeId ExTypeId
</summary> </summary>
</member> </member>
<member name="P:Performance.EntityModels.ex_script.ConfigId">
<summary>
配置Id
</summary>
</member>
<member name="P:Performance.EntityModels.ex_script.IsEnable"> <member name="P:Performance.EntityModels.ex_script.IsEnable">
<summary> <summary>
是否可用 1 可用 2 不可用 是否可用 1 可用 2 不可用
......
...@@ -289,7 +289,8 @@ public void Save(List<PerSheet> perSheets, int allotId) ...@@ -289,7 +289,8 @@ public void Save(List<PerSheet> perSheets, int allotId)
workDoctor = info.Data.FirstOrDefault(t => t.UnitType == UnitType.医生组.ToString() && t.AccountingUnit == dept.AccountingUnit); workDoctor = info.Data.FirstOrDefault(t => t.UnitType == UnitType.医生组.ToString() && t.AccountingUnit == dept.AccountingUnit);
dept.MedicineFactor = workDoctor?.MedicineFactor; dept.MedicineFactor = workDoctor?.MedicineFactor;
dept.ScoringAverage = scoreAverage.HasValue ? scoreAverage ?? 0 : dept.ScoringAverage; //dept.ScoringAverage = scoreAverage.HasValue ? scoreAverage ?? 0 : dept.ScoringAverage;
dept.ScoringAverage = dept.ScoringAverage;
dept.AdjustFactor = dept.AdjustFactor == 0m ? 1 : dept.AdjustFactor; dept.AdjustFactor = dept.AdjustFactor == 0m ? 1 : dept.AdjustFactor;
dept.Income = econDoctor?.CellValue ?? 0; dept.Income = econDoctor?.CellValue ?? 0;
dept.WorkloadFee = workDoctor?.CellValue ?? 0; dept.WorkloadFee = workDoctor?.CellValue ?? 0;
......
...@@ -188,7 +188,8 @@ public class ResultComputeService : IAutoInjection ...@@ -188,7 +188,8 @@ public class ResultComputeService : IAutoInjection
Quantity = item.Quantity, Quantity = item.Quantity,
QuantitativeIndicatorsValue = item.QuantitativeIndicatorsValue, QuantitativeIndicatorsValue = item.QuantitativeIndicatorsValue,
QuantitativeFee = item.Quantity * item.QuantitativeIndicatorsValue * headcount, QuantitativeFee = item.Quantity * item.QuantitativeIndicatorsValue * headcount,
ScoringAverage = scoreAverage.HasValue ? scoreAverage : dept?.ScoringAverage, //ScoringAverage = scoreAverage.HasValue ? scoreAverage : dept?.ScoringAverage,
ScoringAverage = dept?.ScoringAverage,
//OtherPerfor = dept?.OtherPerfor, //OtherPerfor = dept?.OtherPerfor,
Punishment = (extra ?? 0), Punishment = (extra ?? 0),
MedicineExtra = (drugExtra ?? 0), MedicineExtra = (drugExtra ?? 0),
......
...@@ -761,7 +761,8 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId) ...@@ -761,7 +761,8 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
else if (sheet.SheetType == (int)SheetType.AccountScoreAverage) else if (sheet.SheetType == (int)SheetType.AccountScoreAverage)
{ {
sheettype = 8; sheettype = 8;
amount = Math.Round(doctor?.ScoringAverage ?? 0, 4); //amount = Math.Round(doctor?.ScoringAverage ?? 0, 4);
amount = Math.Round(basicData.Where(t => t.SheetID == sheet.ID && t.UnitType == type && t.IsTotal == 1)?.FirstOrDefault().CellValue ?? 0, 4);
} }
var item = new DetailDtos var item = new DetailDtos
...@@ -999,7 +1000,8 @@ public DeptDataDetails SpecialDeptDetail(ag_secondallot second) ...@@ -999,7 +1000,8 @@ public DeptDataDetails SpecialDeptDetail(ag_secondallot second)
else if (sheet.SheetType == (int)SheetType.AccountScoreAverage) else if (sheet.SheetType == (int)SheetType.AccountScoreAverage)
{ {
sheettype = 8; sheettype = 8;
amount = Math.Round(special.FirstOrDefault()?.ScoringAverage ?? 0, 4); //amount = Math.Round(special.FirstOrDefault()?.ScoringAverage ?? 0, 4);
amount = Math.Round(basicData.Where(t => t.SheetID == sheet.ID && t.UnitType == (int)UnitType.特殊核算组 && t.IsTotal == 1)?.FirstOrDefault().CellValue ?? 0, 4);
} }
var item = new DetailDtos 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