Commit e768e2fe by lcx

特殊科室详情

parent 16e726ae
...@@ -29,6 +29,11 @@ public class DeptDetailRequest ...@@ -29,6 +29,11 @@ public class DeptDetailRequest
/// 汇总ID /// 汇总ID
/// </summary> /// </summary>
public int AccountID { get; set; } public int AccountID { get; set; }
/// <summary>
/// 核算单元类型
/// </summary>
public int UnitType { get; set; }
} }
public class DetailRequestValidator : AbstractValidator<DeptDetailRequest> public class DetailRequestValidator : AbstractValidator<DeptDetailRequest>
{ {
......
...@@ -793,15 +793,15 @@ public DeptDataDetails SpecialDeptDetail(ag_secondallot second) ...@@ -793,15 +793,15 @@ public DeptDataDetails SpecialDeptDetail(ag_secondallot second)
UnitType = second.UnitType, UnitType = second.UnitType,
AccountingUnit = second.Department, AccountingUnit = second.Department,
//Department = second.Department, //Department = second.Department,
ScoringAverage = special.First().ScoringAverage.Value, ScoringAverage = special.FirstOrDefault()?.ScoringAverage ?? 0,
OtherPerfor1 = special.First().OtherPerfor.Value, OtherPerfor1 = special.FirstOrDefault()?.OtherPerfor ?? 0,
AdjustFactor = special.First().Adjust.Value, AdjustFactor = special.FirstOrDefault()?.Adjust ?? 0,
Avg = special.First().Avg, Avg = special.FirstOrDefault()?.Avg,
RealGiveFee = special.First().RealGiveFee, RealGiveFee = special.FirstOrDefault()?.RealGiveFee,
Number = special.First().Number.Value, Number = special.FirstOrDefault()?.Number ?? 0,
PerforFee = special.First().GiveFee, PerforFee = special.FirstOrDefault()?.GiveFee,
PerforTotal = special.First().ResultsTotalFee, PerforTotal = special.FirstOrDefault()?.ResultsTotalFee,
Income = special.First().ResultsTotalFee, Income = special.FirstOrDefault()?.ResultsTotalFee,
//Extra = special.First().Punishment.Value, //Extra = special.First().Punishment.Value,
}, },
Detail = new List<DetailDtos>(), Detail = new List<DetailDtos>(),
...@@ -844,6 +844,19 @@ public ag_secondallot GetAccountId(int secondId, out int accountId) ...@@ -844,6 +844,19 @@ public ag_secondallot GetAccountId(int secondId, out int accountId)
return second; return second;
} }
public ag_secondallot GetSecondByAccountId(int accountId)
{
var special = _perforResspecialunitRepository.GetEntity(t => t.ID == accountId);
if (special == null)
throw new PerformanceException("科室信息错误");
return new ag_secondallot
{
AllotId = special.AllotID,
Department = special.AccountingUnit,
UnitType = UnitType.特殊核算组.ToString()
};
}
/// <summary> /// <summary>
/// 添加额外绩效金额(基础绩效、其他绩效等) /// 添加额外绩效金额(基础绩效、其他绩效等)
/// </summary> /// </summary>
......
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