Commit ef052def by ruyun.zhang

添加代码注释,添加凸显规则

parent 75c15689
...@@ -13,12 +13,37 @@ public class UniteDeptDetailResponse ...@@ -13,12 +13,37 @@ public class UniteDeptDetailResponse
} }
public class DeptDetailItem public class DeptDetailItem
{ {
/// <summary>
/// 显示标题
/// </summary>
public string Title { get; set; } public string Title { get; set; }
/// <summary>
/// 总额
/// </summary>
public decimal Total { get; set; } public decimal Total { get; set; }
/// <summary>
/// 格式化后总额
/// </summary>
public string TotalFormat { get; set; } public string TotalFormat { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; } public string Remark { get; set; }
/// <summary>
/// 排序
/// </summary>
public int Sort { get; set; } public int Sort { get; set; }
/// <summary>
/// 是否显示
/// </summary>
public bool Display { get; set; } = true; public bool Display { get; set; } = true;
/// <summary>
/// 背景颜色突出
/// </summary>
public bool StandOut { get; set; } = false;
/// <summary>
/// 原始Sheet类型
/// </summary>
public SheetType SheetType { get; set; } public SheetType SheetType { get; set; }
public List<DeptDetailItem> Children { get; set; } public List<DeptDetailItem> Children { get; set; }
public List<Dictionary<string, object>> Items { get; set; } public List<Dictionary<string, object>> Items { get; set; }
......
...@@ -5,18 +5,61 @@ namespace Performance.DtoModels ...@@ -5,18 +5,61 @@ namespace Performance.DtoModels
{ {
public class UniteDeptDetailItem public class UniteDeptDetailItem
{ {
/// <summary>
/// ID 无实际意义,为前端提供
/// </summary>
public string Id { get; set; } public string Id { get; set; }
/// <summary>
/// ParentId 无实际意义,为前端提供
/// </summary>
public string ParentId { get; set; } public string ParentId { get; set; }
/// <summary>
/// 原始Sheet类型
/// </summary>
public int SheetType { get; set; } public int SheetType { get; set; }
/// <summary>
/// 显示标题
/// </summary>
public string Title { get; set; } public string Title { get; set; }
/// <summary>
/// 标题别名
/// </summary>
public string Alias { get; set; } public string Alias { get; set; }
/// <summary>
/// 是否允许设置别名
/// </summary>
public bool IsAllowAlias { get; set; } = false; public bool IsAllowAlias { get; set; } = false;
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; } public string Remark { get; set; }
/// <summary>
/// 是否允许备注
/// </summary>
public bool IsAllowRemark { get; set; } = true; public bool IsAllowRemark { get; set; } = true;
/// <summary>
/// 格式
/// </summary>
public string Format { get; set; } public string Format { get; set; }
/// <summary>
/// 是否允许设置格式
/// </summary>
public bool IsAllowFormat { get; set; } = true; public bool IsAllowFormat { get; set; } = true;
/// <summary>
/// 排序
/// </summary>
public int Sort { get; set; } public int Sort { get; set; }
/// <summary>
/// 是否显示
/// </summary>
public string Display { get; set; } public string Display { get; set; }
/// <summary>
/// 背景颜色突出
/// </summary>
public bool StandOut { get; set; } = false;
/// <summary>
/// 子集
/// </summary>
public List<UniteDeptDetailItem> Children { get; set; } public List<UniteDeptDetailItem> Children { get; set; }
} }
} }
...@@ -122,7 +122,7 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s ...@@ -122,7 +122,7 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s
response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.业绩分值.ToString(), Total = 0 }); response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.业绩分值.ToString(), Total = 0 });
response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.业绩绩效.ToString(), Total = total, Children = detailItems }); response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.业绩绩效.ToString(), Total = total, Children = detailItems });
response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.工作量绩效.ToString(), Total = 0 }); response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.工作量绩效.ToString(), Total = 0 });
response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.考核前绩效.ToString(), Total = total }); response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.考核前绩效.ToString(), Total = total, StandOut = true });
#endregion #endregion
} }
else if (UnitTypeUtil.Is(response.UnitType, UnitType.特殊核算组.ToString())) else if (UnitTypeUtil.Is(response.UnitType, UnitType.特殊核算组.ToString()))
...@@ -155,7 +155,7 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s ...@@ -155,7 +155,7 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s
response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.业绩分值.ToString(), Total = 0 }); response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.业绩分值.ToString(), Total = 0 });
response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.业绩绩效.ToString(), Total = 0 }); response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.业绩绩效.ToString(), Total = 0 });
response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.工作量绩效.ToString(), Total = detailItems.Total, TotalFormat = detailItems.TotalFormat, Items = detailItems.Items }); response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.工作量绩效.ToString(), Total = detailItems.Total, TotalFormat = detailItems.TotalFormat, Items = detailItems.Items });
response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.考核前绩效.ToString(), Total = special.First().PerforTotal ?? 0 }); response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.考核前绩效.ToString(), Total = special.First().PerforTotal ?? 0, StandOut = true });
#endregion #endregion
} }
else else
...@@ -302,15 +302,15 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s ...@@ -302,15 +302,15 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s
response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.业绩分值.ToString(), Total = account.Income ?? 0, Children = detailItems }); response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.业绩分值.ToString(), Total = account.Income ?? 0, Children = detailItems });
response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.业绩绩效.ToString(), Total = account.PerforFee ?? 0 }); response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.业绩绩效.ToString(), Total = account.PerforFee ?? 0 });
response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.工作量绩效.ToString(), Total = detailItemWorkloads.Total, TotalFormat = detailItemWorkloads.TotalFormat, Items = detailItemWorkloads.Items }); response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.工作量绩效.ToString(), Total = detailItemWorkloads.Total, TotalFormat = detailItemWorkloads.TotalFormat, Items = detailItemWorkloads.Items });
response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.考核前绩效.ToString(), Total = account.PerforTotal ?? 0 }); response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.考核前绩效.ToString(), Total = account.PerforTotal ?? 0, StandOut = true });
#endregion #endregion
} }
// 只显示合计没有详情 // 只显示合计没有详情
response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.考核后绩效.ToString(), Total = account.AssessLaterPerforTotal ?? 0 }); response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.考核后绩效.ToString(), Total = account.AssessLaterPerforTotal ?? 0, StandOut = true });
response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.考核后其他绩效.ToString(), Total = account.AssessLaterOtherFee ?? 0 }); response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.考核后其他绩效.ToString(), Total = account.AssessLaterOtherFee ?? 0 });
response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.调节系数.ToString(), Total = account.AdjustFactor ?? 1 }); response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.调节系数.ToString(), Total = account.AdjustFactor ?? 1 });
response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.实发绩效.ToString(), Total = account.RealGiveFee ?? 0 }); response.DetailItems.Add(new DeptDetailItem { Title = UniteDept.Title.实发绩效.ToString(), Total = account.RealGiveFee ?? 0, StandOut = true });
// 加载用户设置 // 加载用户设置
var settings = GetUniteDeptDetailSetting(allotId); var settings = GetUniteDeptDetailSetting(allotId);
...@@ -621,12 +621,12 @@ public List<UniteDeptDetailItem> GetUniteDeptDetailSetting(int allotId) ...@@ -621,12 +621,12 @@ public List<UniteDeptDetailItem> GetUniteDeptDetailSetting(int allotId)
#endregion #endregion
response.Add(new UniteDeptDetailItem { Title = UniteDept.Title.工作量绩效.ToString(), Format = UniteDept.Format.整数.ToString(), Children = gzlUniteDepts }); response.Add(new UniteDeptDetailItem { Title = UniteDept.Title.工作量绩效.ToString(), Format = UniteDept.Format.整数.ToString(), Children = gzlUniteDepts });
response.Add(new UniteDeptDetailItem { Title = UniteDept.Title.考核前绩效.ToString(), Format = UniteDept.Format.整数.ToString(), }); response.Add(new UniteDeptDetailItem { Title = UniteDept.Title.考核前绩效.ToString(), Format = UniteDept.Format.整数.ToString(), StandOut = true });
// 只显示合计没有详情 // 只显示合计没有详情
response.Add(new UniteDeptDetailItem { Title = UniteDept.Title.考核后绩效.ToString(), Format = UniteDept.Format.整数.ToString(), Remark = "考核前绩效 × 考核得分率 + 药占比奖罚 + 材料占比奖罚 + 医院奖罚 + 考核后其他绩效" }); response.Add(new UniteDeptDetailItem { Title = UniteDept.Title.考核后绩效.ToString(), Format = UniteDept.Format.整数.ToString(), StandOut = true, Remark = "考核前绩效 × 考核得分率 + 药占比奖罚 + 材料占比奖罚 + 医院奖罚 + 考核后其他绩效" });
response.Add(new UniteDeptDetailItem { Title = UniteDept.Title.考核后其他绩效.ToString(), Format = UniteDept.Format.整数.ToString(), }); response.Add(new UniteDeptDetailItem { Title = UniteDept.Title.考核后其他绩效.ToString(), Format = UniteDept.Format.整数.ToString(), });
response.Add(new UniteDeptDetailItem { Title = UniteDept.Title.调节系数.ToString(), Format = UniteDept.Format.两位小数百分比.ToString(), }); response.Add(new UniteDeptDetailItem { Title = UniteDept.Title.调节系数.ToString(), Format = UniteDept.Format.两位小数百分比.ToString(), });
response.Add(new UniteDeptDetailItem { Title = UniteDept.Title.实发绩效.ToString(), Format = UniteDept.Format.整数.ToString(), Remark = "考核后绩效 × 调节系数 + 调节后其他绩效" }); response.Add(new UniteDeptDetailItem { Title = UniteDept.Title.实发绩效.ToString(), Format = UniteDept.Format.整数.ToString(), StandOut = true, Remark = "考核后绩效 × 调节系数 + 调节后其他绩效" });
// 显示详情 // 显示详情
#region 补全公共附属表明细 #region 补全公共附属表明细
......
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