Commit 24774025 by lcx

重载功能补充,获取、编辑工作量修改

parent 2f7c8184
...@@ -23,21 +23,18 @@ public class SecondAllotController : ControllerBase ...@@ -23,21 +23,18 @@ public class SecondAllotController : ControllerBase
private readonly SecondAllotService secondAllotService; private readonly SecondAllotService secondAllotService;
private readonly ResultComputeService resultComputeService; private readonly ResultComputeService resultComputeService;
private readonly SecondAllotDetails secondAllotDetails; private readonly SecondAllotDetails secondAllotDetails;
private readonly Services.SecondAllot.SecondAllotService secondAllot;
public SecondAllotController( public SecondAllotController(
ClaimService claimService, ClaimService claimService,
SecondAllotService secondAllotService, SecondAllotService secondAllotService,
ResultComputeService resultComputeService, ResultComputeService resultComputeService,
SecondAllotDetails secondAllotDetails, SecondAllotDetails secondAllotDetails
Services.SecondAllot.SecondAllotService secondAllot
) )
{ {
this.claimService = claimService; this.claimService = claimService;
this.secondAllotService = secondAllotService; this.secondAllotService = secondAllotService;
this.resultComputeService = resultComputeService; this.resultComputeService = resultComputeService;
this.secondAllotDetails = secondAllotDetails; this.secondAllotDetails = secondAllotDetails;
this.secondAllot = secondAllot;
} }
#region 二次绩效列表、录入数据展示,保存数据 #region 二次绩效列表、录入数据展示,保存数据
...@@ -155,7 +152,8 @@ public ApiResponse SecondDetail([CustomizeValidator(RuleSet = "Refresh"), FromBo ...@@ -155,7 +152,8 @@ public ApiResponse SecondDetail([CustomizeValidator(RuleSet = "Refresh"), FromBo
[HttpPost] [HttpPost]
public ApiResponse AutoComplete([FromBody] SecondEmpRequest request) public ApiResponse AutoComplete([FromBody] SecondEmpRequest request)
{ {
var result = secondAllotService.AutoComplete(request, claimService.GetUserId()); //var result = secondAllotService.AutoComplete(request, claimService.GetUserId());
var result = secondAllotService.AutoComplete(request.SecondId, request.JobNumber);
return new ApiResponse(ResponseType.OK, result); return new ApiResponse(ResponseType.OK, result);
} }
...@@ -478,7 +476,7 @@ public ApiResponse DeptComputeDetail(int allotId) ...@@ -478,7 +476,7 @@ public ApiResponse DeptComputeDetail(int allotId)
[HttpPost("api/second/detail/{secondId}/{employeeSource}")] [HttpPost("api/second/detail/{secondId}/{employeeSource}")]
public ApiResponse GetSecondAllotDetail([FromRoute] int secondId, int employeeSource) public ApiResponse GetSecondAllotDetail([FromRoute] int secondId, int employeeSource)
{ {
var detail = secondAllot.GetSecondSavedData(claimService.GetUserId(), secondId, employeeSource); var detail = secondAllotService.GetSecondSavedData(claimService.GetUserId(), secondId, employeeSource);
return new ApiResponse(ResponseType.OK, detail); return new ApiResponse(ResponseType.OK, detail);
} }
...@@ -490,7 +488,7 @@ public ApiResponse GetSecondAllotDetail([FromRoute] int secondId, int employeeSo ...@@ -490,7 +488,7 @@ public ApiResponse GetSecondAllotDetail([FromRoute] int secondId, int employeeSo
[HttpPost("api/second/worktype/{secondId}")] [HttpPost("api/second/worktype/{secondId}")]
public ApiResponse GetWorktypeDict([FromRoute] int secondId) public ApiResponse GetWorktypeDict([FromRoute] int secondId)
{ {
var detail = secondAllot.GetWorkTypeDict(secondId); var detail = secondAllotService.GetWorkTypeDict(secondId);
return new ApiResponse(ResponseType.OK, detail); return new ApiResponse(ResponseType.OK, detail);
} }
...@@ -502,7 +500,7 @@ public ApiResponse GetWorktypeDict([FromRoute] int secondId) ...@@ -502,7 +500,7 @@ public ApiResponse GetWorktypeDict([FromRoute] int secondId)
[HttpPost("api/second/workload/{secondId}")] [HttpPost("api/second/workload/{secondId}")]
public ApiResponse GetWorkloadDict([FromRoute] int secondId) public ApiResponse GetWorkloadDict([FromRoute] int secondId)
{ {
var detail = secondAllot.GetWorkloadDict(secondId); var detail = secondAllotService.GetWorkloadDict(secondId);
return new ApiResponse(ResponseType.OK, detail); return new ApiResponse(ResponseType.OK, detail);
} }
...@@ -516,7 +514,7 @@ public ApiResponse GetWorkloadDict([FromRoute] int secondId) ...@@ -516,7 +514,7 @@ public ApiResponse GetWorkloadDict([FromRoute] int secondId)
[AllowAnonymous] [AllowAnonymous]
public ApiResponse SaveValue([FromRoute] int secondId, [FromBody] dynamic request) public ApiResponse SaveValue([FromRoute] int secondId, [FromBody] dynamic request)
{ {
secondAllot.SaveSecondAllotData(secondId, request); secondAllotService.SaveSecondAllotData(secondId, request);
return new ApiResponse(ResponseType.OK); return new ApiResponse(ResponseType.OK);
} }
} }
......
...@@ -2426,7 +2426,12 @@ ...@@ -2426,7 +2426,12 @@
</member> </member>
<member name="P:Performance.DtoModels.WorkloadRequest.WorkTypeId"> <member name="P:Performance.DtoModels.WorkloadRequest.WorkTypeId">
<summary> <summary>
1、工作量 2、其他 自定义工作量类型Id(不包括默认工作量绩效类型、单项奖励)
</summary>
</member>
<member name="P:Performance.DtoModels.WorkloadRequest.IsSingleAwards">
<summary>
是否是单项奖励
</summary> </summary>
</member> </member>
<member name="P:Performance.DtoModels.WorkyearRequest.MaxRange"> <member name="P:Performance.DtoModels.WorkyearRequest.MaxRange">
...@@ -3439,6 +3444,11 @@ ...@@ -3439,6 +3444,11 @@
8 归档 9 等待生成 10 绩效结果解析成功 8 归档 9 等待生成 10 绩效结果解析成功
</summary> </summary>
</member> </member>
<member name="P:Performance.DtoModels.Detail.Status">
<summary>
状态 1 未提交 2 等待审核 3 审核通过 4 驳回
</summary>
</member>
<member name="P:Performance.DtoModels.SecondListResponse.IsArchive"> <member name="P:Performance.DtoModels.SecondListResponse.IsArchive">
<summary> 是否归档 </summary> <summary> 是否归档 </summary>
</member> </member>
......
...@@ -953,12 +953,12 @@ ...@@ -953,12 +953,12 @@
年资职称绩效 年资职称绩效
</summary> </summary>
</member> </member>
<member name="P:Performance.EntityModels.ag_headsource.PerformanceShareTheWorkload"> <member name="P:Performance.EntityModels.ag_headsource.Workload_Ratio_Default">
<summary> <summary>
工作量绩效占比 工作量绩效占比
</summary> </summary>
</member> </member>
<member name="P:Performance.EntityModels.ag_headsource.PerformanceWorkloadDistributionAmount"> <member name="P:Performance.EntityModels.ag_headsource.Workload_Amount_Default">
<summary> <summary>
工作量分配绩效金额 工作量分配绩效金额
</summary> </summary>
......
...@@ -91,7 +91,7 @@ public enum AgWorkloadType ...@@ -91,7 +91,7 @@ public enum AgWorkloadType
/// <summary> /// <summary>
/// 工作量 /// 工作量
/// </summary> /// </summary>
Workload = 2, Workload = 0,
} }
public enum DataFormat public enum DataFormat
{ {
......
...@@ -20,7 +20,7 @@ public class SecondEmpRequestValidator : AbstractValidator<SecondEmpRequest> ...@@ -20,7 +20,7 @@ public class SecondEmpRequestValidator : AbstractValidator<SecondEmpRequest>
{ {
public SecondEmpRequestValidator() public SecondEmpRequestValidator()
{ {
RuleFor(x => x.TempId).NotNull().GreaterThan(0); //RuleFor(x => x.TempId).NotNull().GreaterThan(0);
RuleFor(x => x.SecondId).NotNull().GreaterThan(0); RuleFor(x => x.SecondId).NotNull().GreaterThan(0);
} }
} }
......
...@@ -43,9 +43,14 @@ public class WorkloadRequest ...@@ -43,9 +43,14 @@ public class WorkloadRequest
public Nullable<decimal> Sort { get; set; } public Nullable<decimal> Sort { get; set; }
/// <summary> /// <summary>
/// 1、工作量 2、其他 /// 自定义工作量类型Id(不包括默认工作量绩效类型、单项奖励)
/// </summary> /// </summary>
public int WorkTypeId { get; set; } public int WorkTypeId { get; set; }
/// <summary>
/// 是否是单项奖励
/// </summary>
public bool IsSingleAwards { get; set; }
} }
public class WorkloadRequestValidator : AbstractValidator<WorkloadRequest> public class WorkloadRequestValidator : AbstractValidator<WorkloadRequest>
{ {
......
...@@ -26,6 +26,9 @@ public class Detail ...@@ -26,6 +26,9 @@ public class Detail
/// </summary> /// </summary>
public int States { get; set; } public int States { get; set; }
/// <summary>
/// 状态 1 未提交 2 等待审核 3 审核通过 4 驳回
/// </summary>
public int Status { get; set; } public int Status { get; set; }
public string Department { get; set; } public string Department { get; set; }
......
...@@ -74,12 +74,12 @@ public class ag_headsource ...@@ -74,12 +74,12 @@ public class ag_headsource
/// <summary> /// <summary>
/// 工作量绩效占比 /// 工作量绩效占比
/// </summary> /// </summary>
public Nullable<decimal> PerformanceShareTheWorkload { get; set; } public Nullable<decimal> Workload_Ratio_Default { get; set; }
/// <summary> /// <summary>
/// 工作量分配绩效金额 /// 工作量分配绩效金额
/// </summary> /// </summary>
public Nullable<decimal> PerformanceWorkloadDistributionAmount { get; set; } public Nullable<decimal> Workload_Amount_Default { get; set; }
/// <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