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
46cf14cc
Commit
46cf14cc
authored
Dec 04, 2020
by
lcx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '二次绩效历史人员' into 渝北其他绩效录入
parents
4b80af9e
80cfbc09
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
41 additions
and
3 deletions
+41
-3
performance/Performance.Api/Controllers/SecondAllotController.cs
+9
-3
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+3
-0
performance/Performance.DtoModels/Request/AgOtherRequest.cs
+4
-0
performance/Performance.DtoModels/Request/UseTempRequest.cs
+4
-0
performance/Performance.DtoModels/Response/SecondResponse.cs
+20
-0
performance/Performance.Services/Details/SecondAllotDetails.cs
+0
-0
performance/Performance.Services/SecondAllotService.cs
+1
-0
No files found.
performance/Performance.Api/Controllers/SecondAllotController.cs
View file @
46cf14cc
...
...
@@ -21,15 +21,19 @@ public class SecondAllotController : ControllerBase
private
readonly
ClaimService
claimService
;
private
readonly
SecondAllotService
secondAllotService
;
private
readonly
ResultComputeService
resultComputeService
;
private
readonly
SecondAllotDetails
secondAllotDetails
;
public
SecondAllotController
(
ClaimService
claimService
,
SecondAllotService
secondAllotService
,
ResultComputeService
resultComputeService
)
ResultComputeService
resultComputeService
,
SecondAllotDetails
secondAllotDetails
)
{
this
.
claimService
=
claimService
;
this
.
secondAllotService
=
secondAllotService
;
this
.
resultComputeService
=
resultComputeService
;
this
.
secondAllotDetails
=
secondAllotDetails
;
}
#
region
二次绩效列表、录入数据展示,保存数据
...
...
@@ -120,7 +124,8 @@ public ApiResponse SaveCompute([FromBody] List<ag_compute> request)
[
HttpPost
]
public
ApiResponse
SecondDetail
([
CustomizeValidator
(
RuleSet
=
"Refresh"
),
FromBody
]
UseTempRequest
request
)
{
var
result
=
secondAllotService
.
GetSecondDetail
(
request
,
claimService
.
GetUserId
());
//var result = secondAllotService.GetSecondDetail(request, claimService.GetUserId());
var
result
=
secondAllotDetails
.
GetSecondDetails
(
claimService
.
GetUserId
(),
request
.
SecondId
,
request
.
HospitalId
,
request
.
IsArchive
,
request
.
EmployeeSource
);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
}
...
...
@@ -396,7 +401,8 @@ public ApiResponse NursingDeptAuditResult([FromBody] SecondAuditRequest request)
[
HttpPost
]
public
ApiResponse
OtherList
([
FromBody
]
AgOtherRequest
request
)
{
var
result
=
secondAllotService
.
OtherList
(
request
.
SecondId
,
claimService
.
GetUserId
());
//var result = secondAllotService.OtherList(request.SecondId, claimService.GetUserId());
var
result
=
secondAllotDetails
.
GetOtherTempDetails
(
claimService
.
GetUserId
(),
request
.
SecondId
,
request
.
IsArchive
,
request
.
EmployeeSource
);
var
obj
=
new
{
header
=
secondAllotService
.
OtherListHeader
(
request
.
SecondId
,
result
?.
Sum
(
t
=>
t
.
RealAmount
)),
...
...
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
46cf14cc
...
...
@@ -2247,6 +2247,9 @@
<member
name=
"P:Performance.DtoModels.UseTempRequest.IsArchive"
>
<summary>
是否归档
</summary>
</member>
<member
name=
"P:Performance.DtoModels.UseTempRequest.EmployeeSource"
>
<summary>
人员信息来源
</summary>
</member>
<member
name=
"P:Performance.DtoModels.WorkItemRequest.Item"
>
<summary>
工作量绩效项
...
...
performance/Performance.DtoModels/Request/AgOtherRequest.cs
View file @
46cf14cc
...
...
@@ -9,6 +9,10 @@ public class AgOtherRequest
{
public
int
SecondId
{
get
;
set
;
}
public
int
IsArchive
{
get
;
set
;
}
public
int
EmployeeSource
{
get
;
set
;
}
public
List
<
ag_othersource
>
Othersources
{
get
;
set
;
}
}
}
performance/Performance.DtoModels/Request/UseTempRequest.cs
View file @
46cf14cc
...
...
@@ -19,7 +19,11 @@ public class UseTempRequest
/// <summary> 是否归档 </summary>
public
int
IsArchive
{
get
;
set
;
}
/// <summary> 人员信息来源 </summary>
public
int
EmployeeSource
{
get
;
set
;
}
}
public
class
UseTempRequestValidator
:
AbstractValidator
<
UseTempRequest
>
{
public
UseTempRequestValidator
()
...
...
performance/Performance.DtoModels/Response/SecondResponse.cs
View file @
46cf14cc
...
...
@@ -18,10 +18,13 @@ public class HeadItem : ICloneable
public
int
Type
{
get
;
set
;
}
public
decimal
FactorValue
{
get
;
set
;
}
public
int
SourceType
{
get
;
set
;
}
/// <summary> 1 带出历史数据 2不带出 </summary>
public
Nullable
<
int
>
IsBring
{
get
;
set
;
}
/// <summary> 1 value相加值为1 </summary>
public
Nullable
<
int
>
SpecialAttr
{
get
;
set
;
}
public
Nullable
<
int
>
WorkType
{
get
;
set
;
}
public
object
Clone
()
...
...
@@ -34,5 +37,22 @@ public class BodyItem : HeadItem
{
public
int
RowNumber
{
get
;
set
;
}
public
string
Value
{
get
;
set
;
}
public
BodyItem
()
{
}
public
BodyItem
(
HeadItem
headItem
)
{
FiledId
=
headItem
.
FiledId
;
FiledName
=
headItem
.
FiledName
;
Sort
=
headItem
.
Sort
;
Type
=
headItem
.
Type
;
FactorValue
=
headItem
.
FactorValue
;
SourceType
=
headItem
.
SourceType
;
IsBring
=
headItem
.
IsBring
;
SpecialAttr
=
headItem
.
SpecialAttr
;
WorkType
=
headItem
.
WorkType
;
}
}
}
performance/Performance.Services/Details/SecondAllotDetails.cs
0 → 100644
View file @
46cf14cc
This diff is collapsed.
Click to expand it.
performance/Performance.Services/SecondAllotService.cs
View file @
46cf14cc
...
...
@@ -419,6 +419,7 @@ private List<BodyItem> GetEmployees(List<per_employee> employees, int allotId, i
{
(
"姓名"
,
"FullName"
),
(
t
)
=>
t
.
DoctorName
},
{
(
"岗位"
,
"Post"
),
(
t
)
=>
!
string
.
IsNullOrEmpty
(
t
.
Duty
)
&&
(
t
.
Duty
.
IndexOf
(
"主任"
)
>
-
1
||
t
.
Duty
.
IndexOf
(
"护士长"
)
>
-
1
)
?
"主任"
:
"其他"
},
{
(
"出勤"
,
"ActualAttendance"
),
(
t
)
=>
t
.
AttendanceDay
},
{
(
"职称"
,
"JobTitle"
),
(
t
)
=>
t
.
JobTitle
},
{
(
"预留比例"
,
"ReservedRatio"
),
(
t
)
=>
t
.
ReservedRatio
},
{
(
"医院其他绩效"
,
"OtherPerformance"
),
(
t
)
=>
getAprAmount
(
t
)},
};
...
...
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