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
3d36ff42
Commit
3d36ff42
authored
Sep 09, 2020
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改医院开关
parent
08772e62
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
13 deletions
+20
-13
performance/Performance.DtoModels/Request/HospitalRequest.cs
+4
-0
performance/Performance.Services/ComputeService.cs
+15
-13
performance/Performance.Services/HospitalService.cs
+1
-0
No files found.
performance/Performance.DtoModels/Request/HospitalRequest.cs
View file @
3d36ff42
...
...
@@ -55,6 +55,10 @@ public class HospitalRequest
/// 是否显示绩效合计 1 显示绩效合计 2 显示管理绩效
/// </summary>
public
Nullable
<
int
>
IsShowManage
{
get
;
set
;
}
/// <summary>
/// 是否开启科室CMI占比 1 启用 2 禁用
/// </summary>
public
Nullable
<
int
>
IsOpenCMIPercent
{
get
;
set
;
}
}
public
class
HospitalRequestValidator
:
AbstractValidator
<
HospitalRequest
>
...
...
performance/Performance.Services/ComputeService.cs
View file @
3d36ff42
...
...
@@ -178,7 +178,7 @@ public List<ResComputeResponse> GetCompute(int allotId, int type)
var
employee
=
employees
.
FirstOrDefault
(
e
=>
e
.
DoctorName
==
t
.
EmployeeName
&&
e
.
AccountingUnit
==
t
.
AccountingUnit
&&
pairs
[
type
].
Contains
(
e
.
UnitType
));
var
scoreAverageRate
=
t
.
ScoreAverageRate
??
employee
.
ScoreAverageRate
??
0
;
var
attendance
=
t
.
Attendance
??
employee
.
Attendance
??
0
;
t
.
GiveFee
=
t
.
ShouldGiveFee
*
scoreAverageRate
*
attendance
+
t
.
OtherPerfor
;
t
.
GiveFee
=
t
.
ShouldGiveFee
*
scoreAverageRate
*
attendance
+
(
t
.
OtherPerfor
??
0
)
;
t
.
RealGiveFee
=
t
.
GiveFee
*
(
t
.
Adjust
??
1
m
);
t
.
BaiscNormValue
=
t
.
RealGiveFee
;
}
...
...
@@ -438,12 +438,14 @@ public List<ComputeResponse> AllCompute(int allotId, int isShowManage)
var
empDic
=
perforPeremployeeRepository
.
GetEntities
(
w
=>
w
.
AllotId
==
allotId
);
foreach
(
var
item
in
result
)
{
var
temp
=
item
.
PerforSumFee
??
0
+
item
.
PerforManagementFee
??
0
;
item
.
ShouldGiveFee
=
item
.
PerforSumFee
??
0
+
item
.
PerforManagementFee
??
0
+
item
.
OthePerfor
??
0
+
item
.
NightWorkPerfor
??
0
;
item
.
PerforSumFee
=
Math
.
Round
(
item
.
PerforSumFee
??
0
,
0
,
MidpointRounding
.
AwayFromZero
);
item
.
PerforManagementFee
=
Math
.
Round
(
item
.
PerforManagementFee
??
0
,
0
,
MidpointRounding
.
AwayFromZero
);
item
.
OthePerfor
=
Math
.
Round
(
item
.
OthePerfor
??
0
,
0
,
MidpointRounding
.
AwayFromZero
);
item
.
NightWorkPerfor
=
Math
.
Round
(
item
.
NightWorkPerfor
??
0
,
0
,
MidpointRounding
.
AwayFromZero
);
item
.
ShouldGiveFee
=
Math
.
Round
((
item
.
PerforSumFee
??
0
)
+
(
item
.
PerforManagementFee
??
0
)
+
(
item
.
OthePerfor
??
0
)
+
(
item
.
NightWorkPerfor
??
0
),
0
,
MidpointRounding
.
AwayFromZero
);
item
.
ReservedRatio
=
empDic
?.
FirstOrDefault
(
w
=>
w
.
DoctorName
==
item
.
EmployeeName
&&
w
.
PersonnelNumber
==
item
.
JobNumber
)?.
ReservedRatio
??
0
;
item
.
ReservedRatioFee
=
temp
*
item
.
ReservedRatio
;
item
.
RealGiveFee
=
item
.
ShouldGiveFee
-
(
item
.
ReservedRatioFee
??
0
);
item
.
ReservedRatioFee
=
Math
.
Round
(((
item
.
PerforSumFee
??
0
)
+
(
item
.
PerforManagementFee
??
0
))
*
item
.
ReservedRatio
??
0
,
0
,
MidpointRounding
.
AwayFromZero
)
;
item
.
RealGiveFee
=
Math
.
Round
(
item
.
ShouldGiveFee
-
(
item
.
ReservedRatioFee
??
0
)
??
0
,
0
,
MidpointRounding
.
AwayFromZero
);
}
}
...
...
@@ -465,17 +467,17 @@ private List<ComputeResponse> GetAllotPerformance(int allotId, int isShowManage)
return
allot
?.
Select
(
t
=>
{
var
comp
=
new
ComputeResponse
(
"一次绩效"
,
t
.
AccountingUnit
,
t
.
EmployeeName
,
t
.
JobNumber
,
t
.
JobTitle
);
// 仅显示管理绩效
if
(
isShowManage
==
1
&&
types
.
Contains
(
t
.
AccountType
))
{
if
(
types
.
Contains
(
t
.
AccountType
))
comp
.
PerforManagementFee
=
(
t
.
ShouldGiveFee
??
0
)
+
(
t
.
OtherPerfor
??
0
)
+
(
t
.
Punishment
??
0
);
comp
.
PerforSumFee
=
0
;
}
else
{
comp
.
PerforManagementFee
=
t
.
RealGiveFee
;
// 仅显示管理绩效
if
(
isShowManage
==
1
)
comp
.
PerforSumFee
=
0
;
else
comp
.
PerforSumFee
=
t
.
Avg
;
}
return
comp
;
}).
ToList
();
}
...
...
performance/Performance.Services/HospitalService.cs
View file @
3d36ff42
...
...
@@ -133,6 +133,7 @@ public HospitalResponse Update(HospitalRequest request)
//hospital.IsOpenDirector = request.IsOpenDirector;
hospital
.
IsOpenDrugprop
=
request
.
IsOpenDrugprop
;
hospital
.
IsShowManage
=
request
.
IsShowManage
;
hospital
.
IsOpenCMIPercent
=
request
.
IsOpenCMIPercent
;
//hospital.IsOpenIncome = request.IsOpenIncome;
if
(!
_hospitalRepository
.
Update
(
hospital
))
...
...
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