Commit c94a4c73 by ruyun.zhang

科室详情

parent ae2c21eb
......@@ -188,7 +188,7 @@ public ApiResponse GetUniteDeptDetailSetting([FromQuery] int allotId)
/// <returns></returns>
[Route("unite/deptdetail/setting/save")]
[HttpPost]
public ApiResponse SaveUniteDeptDetailSetting([FromQuery] int allotId, [FromBody] UniteDeptSetting request)
public ApiResponse SaveUniteDeptDetailSetting([FromQuery] int allotId, [FromBody] List<UniteDeptDetailItem> request)
{
_computeService.SaveUniteDeptDetailSetting(allotId, request);
return new ApiResponse(ResponseType.OK, "保存成功");
......@@ -203,6 +203,7 @@ public ApiResponse SaveUniteDeptDetailSetting([FromQuery] int allotId, [FromBody
[HttpPost]
public ApiResponse UniteDeptDetail([FromBody] UniteDeptDetailRequest request)
{
request.UnitType = request.UnitType.Replace("行政后勤", "行政工勤");
if (!Enum.TryParse(request.UnitType, ignoreCase: true, out UnitType unitType))
return new ApiResponse(ResponseType.ParameterError, "核算组别错误");
var userid = _claim.GetUserId();
......
......@@ -1052,7 +1052,7 @@
<param name="allotId"></param>
<returns></returns>
</member>
<member name="M:Performance.Api.Controllers.ComputeController.SaveUniteDeptDetailSetting(System.Int32,Performance.DtoModels.UniteDeptSetting)">
<member name="M:Performance.Api.Controllers.ComputeController.SaveUniteDeptDetailSetting(System.Int32,System.Collections.Generic.List{Performance.DtoModels.UniteDeptDetailItem})">
<summary>
科室绩效详情显示隐藏设置--保存
</summary>
......
......@@ -193,11 +193,6 @@ public enum FromSource
public class UniteDept
{
public enum Type
{
左侧下拉 = 1,
右侧收缩 = 2,
}
public enum Title
{
业绩分值 = 2100,
......
......@@ -12,7 +12,6 @@ public class UniteDeptDetailResponse
}
public class DeptDetailItem
{
public int Type { get; set; }
public string Title { get; set; }
public decimal Total { get; set; }
public string TotalFormat { get; set; }
......@@ -20,6 +19,7 @@ public class DeptDetailItem
public int Sort { get; set; }
public bool Display { get; set; } = true;
public SheetType SheetType { get; set; }
public List<DeptDetailItem> Children { get; set; }
public List<Dictionary<string, object>> Items { get; set; }
}
}
......@@ -3,10 +3,6 @@
namespace Performance.DtoModels
{
public class UniteDeptSetting
{
public List<UniteDeptDetailItem> DetailItems { get; set; } = new List<UniteDeptDetailItem>();
}
public class UniteDeptDetailItem
{
public int Type { get; set; }
......
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