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
a6619e19
Commit
a6619e19
authored
Mar 27, 2019
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://192.168.0.110:8880/zry/performance
into develop
parents
2d3838af
879c2eff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
3 deletions
+25
-3
performance/Performance.Services/ComputeService.cs
+25
-3
No files found.
performance/Performance.Services/ComputeService.cs
View file @
a6619e19
...
...
@@ -33,6 +33,12 @@ public class ComputeService : IAutoInjection
_perforResspecialunitRepository
=
perforResspecialunitRepository
;
}
/// <summary>
/// 返回绩效发放列表
/// </summary>
/// <param name="allotId">绩效ID</param>
/// <param name="type">绩效基数核算参考对象</param>
/// <returns></returns>
public
List
<
res_compute
>
GetCompute
(
int
allotId
,
int
type
)
{
var
list
=
new
List
<
res_compute
>();
...
...
@@ -41,8 +47,8 @@ public List<res_compute> GetCompute(int allotId, int type)
{
1
,
new
List
<
PerformanceType
>{
PerformanceType
.
ReferenceDirector
}
},
{
2
,
new
List
<
PerformanceType
>{
PerformanceType
.
ReferenceDirectorAvg
}
},
{
3
,
new
List
<
PerformanceType
>{
PerformanceType
.
ReferenceNurseAvg95
,
PerformanceType
.
ReferenceHeadNurse
,
PerformanceType
.
Null
}
},
{
5
,
new
List
<
PerformanceType
>{
PerformanceType
.
Director
,
PerformanceType
.
DeputyDirector
}
},
{
6
,
new
List
<
PerformanceType
>{
PerformanceType
.
Nurse
}
}
{
4
,
new
List
<
PerformanceType
>{
PerformanceType
.
Director
,
PerformanceType
.
DeputyDirector
}
},
{
5
,
new
List
<
PerformanceType
>{
PerformanceType
.
Nurse
}
}
};
if
(
keyValues
.
ContainsKey
(
type
))
...
...
@@ -60,12 +66,23 @@ public List<res_compute> GetCompute(int allotId, int type)
}
return
Mapper
.
Map
<
List
<
res_compute
>>(
list
);
}
/// <summary>
/// 返回特殊科室发放列表
/// </summary>
/// <param name="allotId">绩效ID</param>
/// <returns></returns>
public
List
<
res_specialunit
>
GetSpecial
(
int
allotId
)
{
var
list
=
_perforResspecialunitRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
return
Mapper
.
Map
<
List
<
res_specialunit
>>(
list
);
}
/// <summary>
/// 返回医生组科室绩效
/// </summary>
/// <param name="allotId">绩效ID</param>
/// <returns></returns>
public
List
<
DoctorResponse
>
GetDoctorPerformance
(
int
allotId
)
{
var
list
=
_perforResAccountdoctorRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
...
...
@@ -80,6 +97,11 @@ public List<DoctorResponse> GetDoctorPerformance(int allotId)
return
Mapper
.
Map
<
List
<
DoctorResponse
>>(
doctor
);
}
/// <summary>
/// 返回护理组科室绩效
/// </summary>
/// <param name="allotId">绩效ID</param>
/// <returns></returns>
public
List
<
NurseResponse
>
GetNursePerformance
(
int
allotId
)
{
var
list
=
_perforResAccountnurseRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
...
...
@@ -88,7 +110,7 @@ public List<NurseResponse> GetNursePerformance(int allotId)
{
foreach
(
var
item
in
nurse
)
{
item
.
UnitName
=
"护
士
组"
;
item
.
UnitName
=
"护
理
组"
;
}
}
return
Mapper
.
Map
<
List
<
NurseResponse
>>(
nurse
);
...
...
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