Commit 440f21f2 by lcx

Merge branch 'v2020calculate' into v2020income

parents e36fc6a1 346ed792
...@@ -859,7 +859,7 @@ ...@@ -859,7 +859,7 @@
</member> </member>
<member name="P:Performance.EntityModels.ag_secondallot.NursingDeptStatus"> <member name="P:Performance.EntityModels.ag_secondallot.NursingDeptStatus">
<summary> <summary>
护理部审核状态 2 等待审核 3 审核通过 4 驳回 护理部审核状态 1 未提交 2 等待审核 3 审核通过 4 驳回
</summary> </summary>
</member> </member>
<member name="P:Performance.EntityModels.ag_secondallot.NursingDeptAuditTime"> <member name="P:Performance.EntityModels.ag_secondallot.NursingDeptAuditTime">
......
...@@ -87,7 +87,7 @@ public class ag_secondallot ...@@ -87,7 +87,7 @@ public class ag_secondallot
public string Remark { get; set; } public string Remark { get; set; }
/// <summary> /// <summary>
/// 护理部审核状态 2 等待审核 3 审核通过 4 驳回 /// 护理部审核状态 1 未提交 2 等待审核 3 审核通过 4 驳回
/// </summary> /// </summary>
public Nullable<int> NursingDeptStatus { get; set; } public Nullable<int> NursingDeptStatus { get; set; }
......
...@@ -496,30 +496,36 @@ public void GenerateSecondAllot(per_allot allot) ...@@ -496,30 +496,36 @@ public void GenerateSecondAllot(per_allot allot)
{ {
foreach (var item in accountUnit) foreach (var item in accountUnit)
{ {
tempSecond.Add(new ag_secondallot if (!tempSecond.Any(f => f.UnitType == ((UnitType)item.UnitType).ToString() && f.Department == item.AccountingUnit))
{ {
AllotId = allot.ID, tempSecond.Add(new ag_secondallot
Year = allot.Year, {
Month = allot.Month, AllotId = allot.ID,
UnitType = ((UnitType)item.UnitType).ToString(), Year = allot.Year,
Department = item.AccountingUnit, Month = allot.Month,
RealGiveFee = item.RealGiveFee, UnitType = ((UnitType)item.UnitType).ToString(),
}); Department = item.AccountingUnit,
RealGiveFee = item.RealGiveFee,
});
}
} }
} }
if (specialList != null) if (specialList != null)
{ {
foreach (var item in specialList) foreach (var item in specialList.Select(w => new { w.AccountingUnit, w.RealGiveFee }).Distinct())
{ {
tempSecond.Add(new ag_secondallot if (!tempSecond.Any(f => f.UnitType == UnitType.特殊核算组.ToString() && f.Department == item.AccountingUnit))
{ {
AllotId = allot.ID, tempSecond.Add(new ag_secondallot
Year = allot.Year, {
Month = allot.Month, AllotId = allot.ID,
UnitType = UnitType.特殊核算组.ToString(), Year = allot.Year,
Department = item.AccountingUnit, Month = allot.Month,
RealGiveFee = item.RealGiveFee, UnitType = UnitType.特殊核算组.ToString(),
}); Department = item.AccountingUnit,
RealGiveFee = item.RealGiveFee,
});
}
} }
} }
...@@ -539,6 +545,7 @@ public void GenerateSecondAllot(per_allot allot) ...@@ -539,6 +545,7 @@ public void GenerateSecondAllot(per_allot allot)
Department = item.Department, Department = item.Department,
RealGiveFee = item.RealGiveFee, RealGiveFee = item.RealGiveFee,
Status = 1, Status = 1,
NursingDeptStatus = 1,
}); });
} }
else if (Math.Round((second.RealGiveFee ?? 0) - (item.RealGiveFee ?? 0)) >= 0.5m) else if (Math.Round((second.RealGiveFee ?? 0) - (item.RealGiveFee ?? 0)) >= 0.5m)
...@@ -548,6 +555,8 @@ public void GenerateSecondAllot(per_allot allot) ...@@ -548,6 +555,8 @@ public void GenerateSecondAllot(per_allot allot)
{ {
second.Status = 4; second.Status = 4;
second.Remark = "科室绩效结果发生变更,需要重新提交"; second.Remark = "科室绩效结果发生变更,需要重新提交";
second.NursingDeptStatus = 4;
second.NursingDeptRemark = "科室绩效结果发生变更,需要重新提交";
} }
updSecond.Add(second); updSecond.Add(second);
} }
......
...@@ -1308,6 +1308,7 @@ public bool AuditSubmit(ag_secondallot second, int userId) ...@@ -1308,6 +1308,7 @@ public bool AuditSubmit(ag_secondallot second, int userId)
} }
second.UseTempId = temp.UseTempId; second.UseTempId = temp.UseTempId;
second.Status = 2; second.Status = 2;
second.NursingDeptStatus = 2;
second.SubmitType = temp.UseTempId == 6 ? 2 : 1; second.SubmitType = temp.UseTempId == 6 ? 2 : 1;
second.SubmitTime = DateTime.Now; second.SubmitTime = DateTime.Now;
//second.Remark = "已提交审核,等待审核中"; //second.Remark = "已提交审核,等待审核中";
......
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