科室详情

parent 201a7605
......@@ -570,7 +570,12 @@
</member>
<member name="P:Performance.DtoModels.ComputeResult.ShouldGiveFee">
<summary>
应发管理绩效(需计算)
考核前管理绩效
</summary>
</member>
<member name="P:Performance.DtoModels.ComputeResult.AssessLaterManagementFee">
<summary>
考核后管理绩效
</summary>
</member>
<member name="P:Performance.DtoModels.ComputeResult.PerforSumFee">
......@@ -620,7 +625,7 @@
</member>
<member name="P:Performance.DtoModels.ComputeResult.GiveFee">
<summary>
应发绩效 考核(需计算)
应发绩效 考核(需计算)
</summary>
</member>
<member name="P:Performance.DtoModels.ComputeResult.BaiscNormPerforTotal">
......
......@@ -710,7 +710,7 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
var sheetType = new List<int> {
(int)SheetType.Income, (int)SheetType.OtherIncome, (int)SheetType.Expend, (int)SheetType.Workload, (int)SheetType.AccountExtra,
(int)SheetType.AccountDrugAssess, (int)SheetType.AccountMaterialsAssess, (int)SheetType.AccountScoreAverage,
(int)SheetType.AccountAdjustLaterOtherFee
(int)SheetType.AccountAdjustLaterOtherFee,(int)SheetType.AccountScoreAverage, (int)SheetType.BudgetRatio, (int)SheetType.AssessBeforeOtherFee
};
foreach (var stype in sheetType)
{
......@@ -751,26 +751,25 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
}
else if (sheet.SheetType == (int)SheetType.AccountDrugAssess)
{
sheettype = 6;
sheettype = 5;
amount = doctor?.MedicineExtra ?? 0;
}
else if (sheet.SheetType == (int)SheetType.AccountMaterialsAssess)
{
sheettype = 7;
sheettype = 5;
amount = doctor?.MaterialsExtra ?? 0;
}
else if (sheet.SheetType == (int)SheetType.AccountScoreAverage)
{
sheettype = 8;
//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);
}
else if (sheet.SheetType == (int)SheetType.AccountAdjustLaterOtherFee)
else
{
sheettype = 9;
amount = Math.Round(basicData.Where(t => t.SheetID == sheet.ID && t.UnitType == type && t.IsTotal == 1)?.FirstOrDefault()?.CellValue ?? 0, 0);
int[] types = new int[] { (int)SheetType.AccountScoreAverage, (int)SheetType.BudgetRatio, (int)SheetType.AssessBeforeOtherFee, (int)SheetType.AccountAdjustLaterOtherFee };
if (types.Contains(sheet.SheetType ?? 0))
{
sheettype = 5;
amount = Math.Round(basicData.Where(t => t.SheetID == sheet.ID && t.UnitType == type && t.IsTotal == 1)?.FirstOrDefault()?.CellValue ?? 0, 4);
}
}
var item = new DetailDtos
{
ItemName = sheetName,
......@@ -972,7 +971,8 @@ public DeptDataDetails SpecialDeptDetail(ag_secondallot second)
var sheetType = new List<int>
{
(int)SheetType.AccountExtra, (int)SheetType.AccountDrugAssess, (int)SheetType.AccountMaterialsAssess,
(int)SheetType.AccountScoreAverage, (int)SheetType.AccountAdjustLaterOtherFee
(int)SheetType.AccountScoreAverage, (int)SheetType.AccountAdjustLaterOtherFee,(int)SheetType.AccountScoreAverage,
(int)SheetType.BudgetRatio, (int)SheetType.AssessBeforeOtherFee,
};
Regex reg = new Regex("[0-9]*");
int groupBasis = 0;
......@@ -996,24 +996,22 @@ public DeptDataDetails SpecialDeptDetail(ag_secondallot second)
}
else if (sheet.SheetType == (int)SheetType.AccountDrugAssess)
{
sheettype = 6;
sheettype = 5;
amount = special.FirstOrDefault()?.MedicineExtra ?? 0;
}
else if (sheet.SheetType == (int)SheetType.AccountMaterialsAssess)
{
sheettype = 7;
sheettype = 5;
amount = special.FirstOrDefault()?.MaterialsExtra ?? 0;
}
else if (sheet.SheetType == (int)SheetType.AccountScoreAverage)
{
sheettype = 8;
//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);
}
else if (sheet.SheetType == (int)SheetType.AccountAdjustLaterOtherFee)
else
{
sheettype = 9;
amount = Math.Round(basicData.Where(t => t.SheetID == sheet.ID && t.UnitType == (int)UnitType.特殊核算组 && t.IsTotal == 1)?.FirstOrDefault()?.CellValue ?? 0, 0);
int[] types = new int[] { (int)SheetType.AccountScoreAverage, (int)SheetType.BudgetRatio, (int)SheetType.AssessBeforeOtherFee, (int)SheetType.AccountAdjustLaterOtherFee };
if (types.Contains(sheet.SheetType ?? 0))
{
sheettype = 5;
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
......
......@@ -104,6 +104,12 @@ public SheetType GetSheetType(string sheetName)
return SheetType.AccountDrugAssess;
else if (sheetName.StartsWith("5.4"))
return SheetType.AccountMaterialsAssess;
else if (sheetName.StartsWith("6.10")) // 调节后其他管理绩效
return SheetType.PersonAdjustLaterOtherManagePerforFee;
else if (sheetName.StartsWith("6.11")) // 个人岗位系数
return SheetType.PersonPostCoefficient;
else if (sheetName.StartsWith("6.1"))
return SheetType.AccountScoreAverage;
else if (sheetName.StartsWith("6.2"))
......@@ -119,10 +125,6 @@ public SheetType GetSheetType(string sheetName)
return SheetType.AccountAdjustLaterOtherFee;
else if (sheetName.StartsWith("6.9")) // 其他管理绩效
return SheetType.PersonOtherManagePerforFee;
else if (sheetName.StartsWith("6.10")) // 调节后其他管理绩效
return SheetType.PersonAdjustLaterOtherManagePerforFee;
else if (sheetName.StartsWith("6.11")) // 个人岗位系数
return SheetType.PersonPostCoefficient;
return SheetType.Unidentifiable;
}
......
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