Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
c49df31a
Commit
c49df31a
authored
Nov 13, 2019
by
李承祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次绩效审核
parent
3b92e0f8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
137 additions
and
16 deletions
+137
-16
performance/Performance.Api/Controllers/SecondAllotController.cs
+66
-11
performance/Performance.Api/wwwroot/Performance.Api.xml
+24
-5
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+9
-0
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+5
-0
performance/Performance.DtoModels/Request/SecondAuditRequest.cs
+28
-0
performance/Performance.EntityModels/Entity/ag_secondallot.cs
+5
-0
performance/Performance.Services/SecondAllotService.cs
+0
-0
No files found.
performance/Performance.Api/Controllers/SecondAllotController.cs
View file @
c49df31a
...
@@ -27,6 +27,7 @@ public class SecondAllotController : ControllerBase
...
@@ -27,6 +27,7 @@ public class SecondAllotController : ControllerBase
this
.
secondAllotService
=
secondAllotService
;
this
.
secondAllotService
=
secondAllotService
;
}
}
#
region
二次绩效列表、录入数据展示,保存数据
/// <summary>
/// <summary>
/// 二次绩效列表(没有需要初始化)
/// 二次绩效列表(没有需要初始化)
/// </summary>
/// </summary>
...
@@ -104,6 +105,31 @@ public ApiResponse SaveCompute([FromBody]List<ag_compute> request)
...
@@ -104,6 +105,31 @@ public ApiResponse SaveCompute([FromBody]List<ag_compute> request)
}
}
/// <summary>
/// <summary>
/// 二次绩效录入页面配置信息
/// </summary>
/// <returns></returns>
[
Route
(
"api/second/detail"
)]
[
HttpPost
]
public
ApiResponse
SecondDetail
([
CustomizeValidator
(
RuleSet
=
"Refresh"
),
FromBody
]
UseTempRequest
request
)
{
var
result
=
secondAllotService
.
GetSecondDetail
(
request
);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
}
#
endregion
#
region
模板使用
/// <summary>
/// 选择二次绩效模板
/// </summary>
/// <returns></returns>
[
HttpGet
(
"api/temp/list/{hospitalid}"
)]
public
ApiResponse
<
List
<
SecondTempResponse
>>
Temp
(
int
hospitalid
)
{
var
result
=
secondAllotService
.
GetTemp
(
hospitalid
);
return
new
ApiResponse
<
List
<
SecondTempResponse
>>(
ResponseType
.
OK
,
result
);
}
/// <summary>
/// 保存已选择二次绩效模板
/// 保存已选择二次绩效模板
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
...
@@ -126,7 +152,9 @@ public ApiResponse RefreshTemp([CustomizeValidator(RuleSet = "Refresh"), FromBod
...
@@ -126,7 +152,9 @@ public ApiResponse RefreshTemp([CustomizeValidator(RuleSet = "Refresh"), FromBod
secondAllotService
.
RefreshTemp
(
request
);
secondAllotService
.
RefreshTemp
(
request
);
return
new
ApiResponse
(
ResponseType
.
OK
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
}
#
endregion
#
region
二次绩效工作量配置
/// <summary>
/// <summary>
/// 二次绩效工作量列表
/// 二次绩效工作量列表
/// </summary>
/// </summary>
...
@@ -174,28 +202,54 @@ public ApiResponse WorkloadDelete([CustomizeValidator(RuleSet = "Delete"), FromB
...
@@ -174,28 +202,54 @@ public ApiResponse WorkloadDelete([CustomizeValidator(RuleSet = "Delete"), FromB
var
result
=
secondAllotService
.
WorkloadDelete
(
request
.
Id
);
var
result
=
secondAllotService
.
WorkloadDelete
(
request
.
Id
);
return
new
ApiResponse
(
result
?
ResponseType
.
OK
:
ResponseType
.
Fail
);
return
new
ApiResponse
(
result
?
ResponseType
.
OK
:
ResponseType
.
Fail
);
}
}
#
endregion
#
region
二次绩效审核
/// <summary>
/// <summary>
///
选择二次绩效模板
///
提交审核
/// </summary>
/// </summary>
/// <returns></returns>
/// <param name="secondid">二次绩效Id</param>
[
HttpGet
(
"api/temp/list/{hospitalid}"
)]
/// <returns></returns>
public
ApiResponse
<
List
<
SecondTempResponse
>>
Temp
(
int
hospitalid
)
[
HttpPost
]
[
Route
(
"/api/second/audit/submit/{secondid}"
)]
public
ApiResponse
SubmitAudit
(
int
secondid
)
{
{
var
result
=
secondAllotService
.
GetTemp
(
hospitalid
);
var
second
=
secondAllotService
.
GetSecondallot
(
secondid
);
return
new
ApiResponse
<
List
<
SecondTempResponse
>>(
ResponseType
.
OK
,
result
);
if
(
second
==
null
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"二次绩效Id无效"
);
if
(
second
.
Status
==
3
)
return
new
ApiResponse
(
ResponseType
.
Fail
,
"该绩效已\"审核通过\",无需再次提交"
);
var
userid
=
claimService
.
GetUserId
();
var
result
=
secondAllotService
.
AuditSubmit
(
second
);
return
result
?
new
ApiResponse
(
ResponseType
.
OK
,
"提交成功"
)
:
new
ApiResponse
(
ResponseType
.
Fail
,
"提交失败"
);
}
}
/// <summary>
/// <summary>
/// 二次绩效录入页面配置信息
/// 二次绩效审核列表
/// </summary>
/// <returns></returns>
[
HttpGet
]
[
Route
(
"/api/second/audit/list"
)]
public
ApiResponse
<
List
<
ag_secondallot
>>
AuditList
()
{
var
userid
=
claimService
.
GetUserId
();
var
list
=
secondAllotService
.
AuditList
(
userid
);
return
new
ApiResponse
<
List
<
ag_secondallot
>>(
ResponseType
.
OK
,
"审核列表"
,
list
);
}
/// <summary>
/// 二次绩效审核结果;驳回、成功
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
[
Route
(
"api/second/detail"
)]
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
SecondDetail
([
CustomizeValidator
(
RuleSet
=
"Refresh"
),
FromBody
]
UseTempRequest
request
)
[
Route
(
"/api/second/audit/result"
)]
public
ApiResponse
AuditResult
([
FromBody
]
SecondAuditRequest
request
)
{
{
var
result
=
secondAllotService
.
GetSecondDetail
(
request
);
var
userid
=
claimService
.
GetUserId
();
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
var
result
=
secondAllotService
.
ConfirmAudit
(
userid
,
request
);
return
result
?
new
ApiResponse
(
ResponseType
.
OK
,
"操作成功"
)
:
new
ApiResponse
(
ResponseType
.
Fail
,
"操作失败"
);
}
}
#
endregion
}
}
}
}
\ No newline at end of file
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
c49df31a
...
@@ -757,6 +757,18 @@
...
@@ -757,6 +757,18 @@
</summary>
</summary>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.SecondDetail(Performance.DtoModels.UseTempRequest)"
>
<summary>
二次绩效录入页面配置信息
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.Temp(System.Int32)"
>
<summary>
选择二次绩效模板
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.UseTemp(Performance.DtoModels.UseTempRequest)"
>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.UseTemp(Performance.DtoModels.UseTempRequest)"
>
<summary>
<summary>
保存已选择二次绩效模板
保存已选择二次绩效模板
...
@@ -793,15 +805,22 @@
...
@@ -793,15 +805,22 @@
</summary>
</summary>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.
Temp
(System.Int32)"
>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.
SubmitAudit
(System.Int32)"
>
<summary>
<summary>
选择二次绩效模板
提交审核
</summary>
</summary>
<returns></returns>
<param
name=
"secondid"
>
二次绩效Id
</param>
<returns></returns>
</member>
</member>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.
SecondDetail(Performance.DtoModels.UseTempRequest)
"
>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.
AuditList
"
>
<summary>
<summary>
二次绩效录入页面配置信息
二次绩效审核列表
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.AuditResult(Performance.DtoModels.SecondAuditRequest)"
>
<summary>
二次绩效审核结果;驳回、成功
</summary>
</summary>
<returns></returns>
<returns></returns>
</member>
</member>
...
...
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
c49df31a
...
@@ -1464,6 +1464,15 @@
...
@@ -1464,6 +1464,15 @@
<member
name=
"P:Performance.DtoModels.ReportRequest.Month"
>
<member
name=
"P:Performance.DtoModels.ReportRequest.Month"
>
<summary>
月
</summary>
<summary>
月
</summary>
</member>
</member>
<member
name=
"P:Performance.DtoModels.SecondAuditRequest.SecondId"
>
<summary>
二次绩效Id
</summary>
</member>
<member
name=
"P:Performance.DtoModels.SecondAuditRequest.IsPass"
>
<summary>
审核结果 1、审核通过 2、驳回
</summary>
</member>
<member
name=
"P:Performance.DtoModels.SecondAuditRequest.Remark"
>
<summary>
备注
</summary>
</member>
<member
name=
"T:Performance.DtoModels.SetDepartmentRequest"
>
<member
name=
"T:Performance.DtoModels.SetDepartmentRequest"
>
<summary>
<summary>
登录请求
登录请求
...
...
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
c49df31a
...
@@ -669,6 +669,11 @@
...
@@ -669,6 +669,11 @@
审核人
审核人
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.EntityModels.ag_secondallot.Remark"
>
<summary>
备注
</summary>
</member>
<member
name=
"T:Performance.EntityModels.ag_temp"
>
<member
name=
"T:Performance.EntityModels.ag_temp"
>
<summary>
<summary>
二次绩效模板
二次绩效模板
...
...
performance/Performance.DtoModels/Request/SecondAuditRequest.cs
0 → 100644
View file @
c49df31a
using
FluentValidation
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Performance.DtoModels
{
public
class
SecondAuditRequest
{
/// <summary> 二次绩效Id </summary>
public
int
SecondId
{
get
;
set
;
}
/// <summary> 审核结果 1、审核通过 2、驳回 </summary>
public
int
IsPass
{
get
;
set
;
}
/// <summary> 备注 </summary>
public
string
Remark
{
get
;
set
;
}
}
public
class
SecondAuditRequestValidator
:
AbstractValidator
<
SecondAuditRequest
>
{
public
SecondAuditRequestValidator
()
{
RuleFor
(
x
=>
x
.
SecondId
).
NotNull
().
NotEmpty
().
GreaterThan
(
0
);
RuleFor
(
x
=>
x
.
IsPass
).
NotNull
().
NotEmpty
().
InclusiveBetween
(
1
,
2
);
RuleFor
(
x
=>
x
.
Remark
).
NotNull
().
NotEmpty
();
}
}
}
performance/Performance.EntityModels/Entity/ag_secondallot.cs
View file @
c49df31a
...
@@ -70,5 +70,10 @@ public class ag_secondallot
...
@@ -70,5 +70,10 @@ public class ag_secondallot
/// 审核人
/// 审核人
/// </summary>
/// </summary>
public
Nullable
<
int
>
AuditUser
{
get
;
set
;
}
public
Nullable
<
int
>
AuditUser
{
get
;
set
;
}
/// <summary>
/// 备注
/// </summary>
public
string
Remark
{
get
;
set
;
}
}
}
}
}
performance/Performance.Services/SecondAllotService.cs
View file @
c49df31a
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment