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
42b3430f
Commit
42b3430f
authored
Mar 27, 2019
by
李承祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加方法描述
parent
9ae0577b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletions
+23
-1
performance/Performance.Services/ComputeService.cs
+23
-1
No files found.
performance/Performance.Services/ComputeService.cs
View file @
42b3430f
...
@@ -33,6 +33,12 @@ public class ComputeService : IAutoInjection
...
@@ -33,6 +33,12 @@ public class ComputeService : IAutoInjection
_perforResspecialunitRepository
=
perforResspecialunitRepository
;
_perforResspecialunitRepository
=
perforResspecialunitRepository
;
}
}
/// <summary>
/// 返回绩效发放列表
/// </summary>
/// <param name="allotId">绩效ID</param>
/// <param name="type">绩效基数核算参考对象</param>
/// <returns></returns>
public
List
<
res_compute
>
GetCompute
(
int
allotId
,
int
type
)
public
List
<
res_compute
>
GetCompute
(
int
allotId
,
int
type
)
{
{
var
list
=
new
List
<
res_compute
>();
var
list
=
new
List
<
res_compute
>();
...
@@ -60,12 +66,23 @@ public List<res_compute> GetCompute(int allotId, int type)
...
@@ -60,12 +66,23 @@ public List<res_compute> GetCompute(int allotId, int type)
}
}
return
Mapper
.
Map
<
List
<
res_compute
>>(
list
);
return
Mapper
.
Map
<
List
<
res_compute
>>(
list
);
}
}
/// <summary>
/// 返回特殊科室发放列表
/// </summary>
/// <param name="allotId">绩效ID</param>
/// <returns></returns>
public
List
<
res_specialunit
>
GetSpecial
(
int
allotId
)
public
List
<
res_specialunit
>
GetSpecial
(
int
allotId
)
{
{
var
list
=
_perforResspecialunitRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
var
list
=
_perforResspecialunitRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
return
Mapper
.
Map
<
List
<
res_specialunit
>>(
list
);
return
Mapper
.
Map
<
List
<
res_specialunit
>>(
list
);
}
}
/// <summary>
/// 返回医生组科室绩效
/// </summary>
/// <param name="allotId">绩效ID</param>
/// <returns></returns>
public
List
<
DoctorResponse
>
GetDoctorPerformance
(
int
allotId
)
public
List
<
DoctorResponse
>
GetDoctorPerformance
(
int
allotId
)
{
{
var
list
=
_perforResAccountdoctorRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
var
list
=
_perforResAccountdoctorRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
...
@@ -80,6 +97,11 @@ public List<DoctorResponse> GetDoctorPerformance(int allotId)
...
@@ -80,6 +97,11 @@ public List<DoctorResponse> GetDoctorPerformance(int allotId)
return
Mapper
.
Map
<
List
<
DoctorResponse
>>(
doctor
);
return
Mapper
.
Map
<
List
<
DoctorResponse
>>(
doctor
);
}
}
/// <summary>
/// 返回护理组科室绩效
/// </summary>
/// <param name="allotId">绩效ID</param>
/// <returns></returns>
public
List
<
NurseResponse
>
GetNursePerformance
(
int
allotId
)
public
List
<
NurseResponse
>
GetNursePerformance
(
int
allotId
)
{
{
var
list
=
_perforResAccountnurseRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
var
list
=
_perforResAccountnurseRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
...
@@ -88,7 +110,7 @@ public List<NurseResponse> GetNursePerformance(int allotId)
...
@@ -88,7 +110,7 @@ public List<NurseResponse> GetNursePerformance(int allotId)
{
{
foreach
(
var
item
in
nurse
)
foreach
(
var
item
in
nurse
)
{
{
item
.
UnitName
=
"护
士
组"
;
item
.
UnitName
=
"护
理
组"
;
}
}
}
}
return
Mapper
.
Map
<
List
<
NurseResponse
>>(
nurse
);
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