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
123b65a9
Commit
123b65a9
authored
Aug 02, 2019
by
799284587@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返回新增保底绩效
parent
e8cdadd7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
77 additions
and
267 deletions
+77
-267
performance/Performance.Api/Controllers/ComputeController.cs
+4
-4
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+51
-141
performance/Performance.DtoModels/AutoMapper/AutoMapperConfigs.cs
+2
-2
performance/Performance.DtoModels/Response/DeptResponse.cs
+16
-1
performance/Performance.DtoModels/Response/NurseResponse.cs
+0
-115
performance/Performance.Services/ComputeService.cs
+4
-4
No files found.
performance/Performance.Api/Controllers/ComputeController.cs
View file @
123b65a9
...
@@ -69,13 +69,13 @@ public ApiResponse<List<res_specialunit>> GetSpecial([FromBody]ComputerRequest r
...
@@ -69,13 +69,13 @@ public ApiResponse<List<res_specialunit>> GetSpecial([FromBody]ComputerRequest r
/// <returns></returns>
/// <returns></returns>
[
Route
(
"getdoctordata"
)]
[
Route
(
"getdoctordata"
)]
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
<
List
<
D
octor
Response
>>
GetDoctor
([
FromBody
]
ComputerRequest
request
)
public
ApiResponse
<
List
<
D
ept
Response
>>
GetDoctor
([
FromBody
]
ComputerRequest
request
)
{
{
var
allot
=
_allotService
.
GetAllot
(
request
.
AllotId
);
var
allot
=
_allotService
.
GetAllot
(
request
.
AllotId
);
if
(
null
==
allot
)
if
(
null
==
allot
)
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
var
list
=
_computeService
.
GetDoctorPerformance
(
request
.
AllotId
);
var
list
=
_computeService
.
GetDoctorPerformance
(
request
.
AllotId
);
return
new
ApiResponse
<
List
<
D
octor
Response
>>(
ResponseType
.
OK
,
"ok"
,
list
);
return
new
ApiResponse
<
List
<
D
ept
Response
>>(
ResponseType
.
OK
,
"ok"
,
list
);
}
}
/// <summary>
/// <summary>
...
@@ -85,13 +85,13 @@ public ApiResponse<List<DoctorResponse>> GetDoctor([FromBody]ComputerRequest req
...
@@ -85,13 +85,13 @@ public ApiResponse<List<DoctorResponse>> GetDoctor([FromBody]ComputerRequest req
/// <returns></returns>
/// <returns></returns>
[
Route
(
"getnursedata"
)]
[
Route
(
"getnursedata"
)]
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
<
List
<
Nurse
Response
>>
GetNurse
([
FromBody
]
ComputerRequest
request
)
public
ApiResponse
<
List
<
Dept
Response
>>
GetNurse
([
FromBody
]
ComputerRequest
request
)
{
{
var
allot
=
_allotService
.
GetAllot
(
request
.
AllotId
);
var
allot
=
_allotService
.
GetAllot
(
request
.
AllotId
);
if
(
null
==
allot
)
if
(
null
==
allot
)
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
var
list
=
_computeService
.
GetNursePerformance
(
request
.
AllotId
);
var
list
=
_computeService
.
GetNursePerformance
(
request
.
AllotId
);
return
new
ApiResponse
<
List
<
Nurse
Response
>>(
ResponseType
.
OK
,
"ok"
,
list
);
return
new
ApiResponse
<
List
<
Dept
Response
>>(
ResponseType
.
OK
,
"ok"
,
list
);
}
}
/// <summary>
/// <summary>
...
...
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
123b65a9
This diff is collapsed.
Click to expand it.
performance/Performance.DtoModels/AutoMapper/AutoMapperConfigs.cs
View file @
123b65a9
...
@@ -155,8 +155,8 @@ public AutoMapperConfigs()
...
@@ -155,8 +155,8 @@ public AutoMapperConfigs()
CreateMap
<
im_employee
,
ComputeEmployee
>();
CreateMap
<
im_employee
,
ComputeEmployee
>();
CreateMap
<
ComputeResult
,
res_compute
>();
CreateMap
<
ComputeResult
,
res_compute
>();
CreateMap
<
res_account
,
D
octor
Response
>();
CreateMap
<
res_account
,
D
ept
Response
>();
CreateMap
<
res_account
,
NurseResponse
>();
//
CreateMap<res_account, NurseResponse>();
//二次绩效
//二次绩效
...
...
performance/Performance.DtoModels/Response/D
octor
Response.cs
→
performance/Performance.DtoModels/Response/D
ept
Response.cs
View file @
123b65a9
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
namespace
Performance.DtoModels
namespace
Performance.DtoModels
{
{
public
class
D
octor
Response
public
class
D
ept
Response
{
{
/// <summary>
/// <summary>
///
///
...
@@ -54,6 +54,21 @@ public class DoctorResponse
...
@@ -54,6 +54,21 @@ public class DoctorResponse
public
Nullable
<
decimal
>
SlopeFactor
{
get
;
set
;
}
public
Nullable
<
decimal
>
SlopeFactor
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 保底绩效参考标准
/// </summary>
public
string
MinimumReference
{
get
;
set
;
}
/// <summary>
/// 保底绩效系数
/// </summary>
public
Nullable
<
decimal
>
MinimumFactor
{
get
;
set
;
}
/// <summary>
/// 保底绩效金额
/// </summary>
public
Nullable
<
decimal
>
MinimumFee
{
get
;
set
;
}
/// <summary>
/// 其他绩效1
/// 其他绩效1
/// </summary>
/// </summary>
public
Nullable
<
decimal
>
OtherPerfor1
{
get
;
set
;
}
public
Nullable
<
decimal
>
OtherPerfor1
{
get
;
set
;
}
...
...
performance/Performance.DtoModels/Response/NurseResponse.cs
deleted
100644 → 0
View file @
e8cdadd7
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Performance.DtoModels
{
public
class
NurseResponse
{
/// <summary>
///
/// </summary>
public
int
ID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
SheetID
{
get
;
set
;
}
public
int
UnitType
{
get
;
set
;
}
/// <summary>
/// 分组名称(医生、护士)
/// </summary>
public
string
UnitName
{
get
;
set
;
}
/// <summary>
/// 核算单元
/// </summary>
public
string
AccountingUnit
{
get
;
set
;
}
/// <summary>
/// 科室
/// </summary>
public
string
Department
{
get
;
set
;
}
/// <summary>
/// 护士人数
/// </summary>
public
Nullable
<
decimal
>
Number
{
get
;
set
;
}
/// <summary>
/// 护理基础系数
/// </summary>
public
Nullable
<
decimal
>
BasicFactor
{
get
;
set
;
}
/// <summary>
/// 倾斜系数
/// </summary>
public
Nullable
<
decimal
>
SlopeFactor
{
get
;
set
;
}
/// <summary>
/// 其他绩效1
/// </summary>
public
Nullable
<
decimal
>
OtherPerfor1
{
get
;
set
;
}
/// <summary>
/// 其他绩效2
/// </summary>
public
Nullable
<
decimal
>
OtherPerfor2
{
get
;
set
;
}
/// <summary>
/// 医院奖罚
/// </summary>
public
Nullable
<
decimal
>
Extra
{
get
;
set
;
}
/// <summary>
/// 考核对分率
/// </summary>
public
Nullable
<
decimal
>
ScoringAverage
{
get
;
set
;
}
/// <summary>
/// 调节系数
/// </summary>
public
Nullable
<
decimal
>
AdjustFactor
{
get
;
set
;
}
/// <summary>
/// 科室业绩
/// </summary>
public
Nullable
<
decimal
>
Income
{
get
;
set
;
}
/// <summary>
/// 业绩绩效
/// </summary>
public
Nullable
<
decimal
>
PerforFee
{
get
;
set
;
}
/// <summary>
/// 工作量绩效
/// </summary>
public
Nullable
<
decimal
>
WorkloadFee
{
get
;
set
;
}
/// <summary>
/// 绩效合计
/// </summary>
public
Nullable
<
decimal
>
PerforTotal
{
get
;
set
;
}
/// <summary>
/// 人均绩效
/// </summary>
public
Nullable
<
decimal
>
Avg
{
get
;
set
;
}
/// <summary>
/// 实发绩效
/// </summary>
public
Nullable
<
decimal
>
RealGiveFee
{
get
;
set
;
}
/// <summary>
/// 备注
/// </summary>
public
string
Remark
{
get
;
set
;
}
}
}
performance/Performance.Services/ComputeService.cs
View file @
123b65a9
...
@@ -89,10 +89,10 @@ public List<res_specialunit> GetSpecial(int allotId)
...
@@ -89,10 +89,10 @@ public List<res_specialunit> GetSpecial(int allotId)
/// </summary>
/// </summary>
/// <param name="allotId">绩效ID</param>
/// <param name="allotId">绩效ID</param>
/// <returns></returns>
/// <returns></returns>
public
List
<
D
octor
Response
>
GetDoctorPerformance
(
int
allotId
)
public
List
<
D
ept
Response
>
GetDoctorPerformance
(
int
allotId
)
{
{
var
list
=
perforResaccountRepository
.
GetEntities
(
t
=>
t
.
UnitType
!=
(
int
)
UnitType
.
护理组
&&
t
.
AllotID
==
allotId
)?.
OrderByDescending
(
t
=>
t
.
AccountingUnit
);
var
list
=
perforResaccountRepository
.
GetEntities
(
t
=>
t
.
UnitType
!=
(
int
)
UnitType
.
护理组
&&
t
.
AllotID
==
allotId
)?.
OrderByDescending
(
t
=>
t
.
AccountingUnit
);
List
<
D
octorResponse
>
doctor
=
Mapper
.
Map
<
List
<
Doctor
Response
>>(
list
);
List
<
D
eptResponse
>
doctor
=
Mapper
.
Map
<
List
<
Dept
Response
>>(
list
);
doctor
?.
ForEach
(
t
=>
t
.
UnitName
=
((
UnitType
)
t
.
UnitType
).
ToString
());
doctor
?.
ForEach
(
t
=>
t
.
UnitName
=
((
UnitType
)
t
.
UnitType
).
ToString
());
return
doctor
;
return
doctor
;
}
}
...
@@ -102,10 +102,10 @@ public List<DoctorResponse> GetDoctorPerformance(int allotId)
...
@@ -102,10 +102,10 @@ public List<DoctorResponse> GetDoctorPerformance(int allotId)
/// </summary>
/// </summary>
/// <param name="allotId">绩效ID</param>
/// <param name="allotId">绩效ID</param>
/// <returns></returns>
/// <returns></returns>
public
List
<
Nurse
Response
>
GetNursePerformance
(
int
allotId
)
public
List
<
Dept
Response
>
GetNursePerformance
(
int
allotId
)
{
{
var
list
=
perforResaccountRepository
.
GetEntities
(
t
=>
t
.
UnitType
==
(
int
)
UnitType
.
护理组
&&
t
.
AllotID
==
allotId
)?.
OrderByDescending
(
t
=>
t
.
AccountingUnit
);
var
list
=
perforResaccountRepository
.
GetEntities
(
t
=>
t
.
UnitType
==
(
int
)
UnitType
.
护理组
&&
t
.
AllotID
==
allotId
)?.
OrderByDescending
(
t
=>
t
.
AccountingUnit
);
List
<
NurseResponse
>
nurse
=
Mapper
.
Map
<
List
<
Nurse
Response
>>(
list
);
List
<
DeptResponse
>
nurse
=
Mapper
.
Map
<
List
<
Dept
Response
>>(
list
);
nurse
?.
ForEach
(
t
=>
t
.
UnitName
=
((
UnitType
)
t
.
UnitType
).
ToString
());
nurse
?.
ForEach
(
t
=>
t
.
UnitName
=
((
UnitType
)
t
.
UnitType
).
ToString
());
return
nurse
;
return
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