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
e2b5b687
Commit
e2b5b687
authored
Nov 27, 2020
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
科主任显示问题修复
parent
e8ec8778
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
performance/Performance.Services/ComputeService.cs
+4
-4
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
+2
-2
No files found.
performance/Performance.Services/ComputeService.cs
View file @
e2b5b687
...
@@ -174,13 +174,13 @@ public List<ResComputeResponse> GetCompute(int allotId, int type)
...
@@ -174,13 +174,13 @@ public List<ResComputeResponse> GetCompute(int allotId, int type)
//t.WorkTime = string.IsNullOrEmpty(t.WorkTime) ? null : Convert.ToDateTime(t.WorkTime).ToString("yyyy-MM-dd");
//t.WorkTime = string.IsNullOrEmpty(t.WorkTime) ? null : Convert.ToDateTime(t.WorkTime).ToString("yyyy-MM-dd");
if
(
isShowManage
==
2
)
if
(
isShowManage
==
2
)
{
{
t
.
PerforSumFee
=
t
.
ShouldGiveFee
+
t
.
AssessBeforeOtherFee
;
t
.
PerforSumFee
=
(
t
.
ShouldGiveFee
??
0
)
+
(
t
.
AssessBeforeOtherFee
??
0
)
;
var
employee
=
employees
.
FirstOrDefault
(
e
=>
e
.
DoctorName
==
t
.
EmployeeName
&&
e
.
AccountingUnit
==
t
.
AccountingUnit
&&
pairs
[
type
].
Contains
(
e
.
UnitType
));
var
employee
=
employees
.
FirstOrDefault
(
e
=>
e
.
DoctorName
==
t
.
EmployeeName
&&
e
.
AccountingUnit
==
t
.
AccountingUnit
&&
pairs
[
type
].
Contains
(
e
.
UnitType
));
var
scoreAverageRate
=
t
.
ScoreAverageRate
??
employee
.
ScoreAverageRate
??
1
;
var
scoreAverageRate
=
t
.
ScoreAverageRate
??
employee
.
ScoreAverageRate
??
1
;
var
attendance
=
t
.
Attendance
??
employee
.
Attendance
??
0
;
var
attendance
=
t
.
Attendance
??
employee
.
Attendance
??
0
;
t
.
GiveFee
=
t
.
ShouldGiveFee
*
scoreAverageRate
*
attendance
+
(
t
.
OtherPerfor
??
0
)
+
t
.
Punishment
+
t
.
OtherPerfor
+
t
.
AssessLaterOtherFee
;
t
.
GiveFee
=
(
t
.
ShouldGiveFee
??
0
)
*
scoreAverageRate
*
attendance
+
(
t
.
OtherPerfor
??
0
)
+
(
t
.
Punishment
??
0
)
+
(
t
.
AssessLaterOtherFee
??
0
)
;
t
.
RealGiveFee
=
t
.
GiveFee
*
(
t
.
Adjust
??
1
m
)
+
t
.
AdjustLaterOtherFee
;
t
.
RealGiveFee
=
t
.
GiveFee
*
(
t
.
Adjust
??
1
m
)
+
(
t
.
AdjustLaterOtherFee
??
0
)
;
t
.
BaiscNormValue
=
t
.
RealGiveFee
;
t
.
BaiscNormValue
=
(
t
.
RealGiveFee
??
0
)
;
}
}
var
aprAmount
=
apramounts
?.
Where
(
w
=>
!(
string
.
IsNullOrEmpty
(
w
.
DoctorName
)
&&
string
.
IsNullOrEmpty
(
w
.
PersonnelNumber
))
&&
w
.
DoctorName
?.
Trim
()
==
t
.
EmployeeName
?.
Trim
()
&&
w
.
PersonnelNumber
?.
Trim
()
==
t
.
JobNumber
?.
Trim
());
var
aprAmount
=
apramounts
?.
Where
(
w
=>
!(
string
.
IsNullOrEmpty
(
w
.
DoctorName
)
&&
string
.
IsNullOrEmpty
(
w
.
PersonnelNumber
))
&&
w
.
DoctorName
?.
Trim
()
==
t
.
EmployeeName
?.
Trim
()
&&
w
.
PersonnelNumber
?.
Trim
()
==
t
.
JobNumber
?.
Trim
());
...
...
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
View file @
e2b5b687
...
@@ -413,11 +413,11 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<PerS
...
@@ -413,11 +413,11 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<PerS
// 考核前绩效
// 考核前绩效
compute
.
PerforSumFee
=
compute
.
Attendance
==
0
?
Math
.
Round
(
compute
.
ShouldGiveFee
??
0
)
:
Math
.
Round
(
compute
.
Avg
/
compute
.
Attendance
+
compute
.
ShouldGiveFee
??
0
);
compute
.
PerforSumFee
=
compute
.
Attendance
==
0
?
Math
.
Round
(
compute
.
ShouldGiveFee
??
0
)
:
Math
.
Round
(
compute
.
Avg
/
compute
.
Attendance
+
compute
.
ShouldGiveFee
??
0
);
// 考核后绩效
// 考核后绩效
compute
.
GiveFee
=
Math
.
Round
(
compute
.
Avg
+
compute
.
AssessLaterManagementFee
??
0
);
compute
.
GiveFee
=
Math
.
Round
(
(
compute
.
Avg
??
0
)
+
(
compute
.
AssessLaterManagementFee
??
0
)
);
// 参考基数专用绩效合计
// 参考基数专用绩效合计
compute
.
BaiscNormPerforTotal
=
compute
.
PerforSumFee
;
compute
.
BaiscNormPerforTotal
=
compute
.
PerforSumFee
;
// 实发绩效
// 实发绩效
compute
.
RealGiveFee
=
Math
.
Round
((
compute
.
Avg
+
compute
.
AssessLaterManagementFee
)
*
compute
.
Adjust
+
compute
.
AdjustLaterOtherFee
??
0
);
compute
.
RealGiveFee
=
Math
.
Round
((
(
compute
.
Avg
??
0
)
+
(
compute
.
AssessLaterManagementFee
??
0
))
*
compute
.
Adjust
+
(
compute
.
AdjustLaterOtherFee
??
0
)
??
0
);
////绩效合计
////绩效合计
//compute.PerforSumFee = Math.Round((compute.Avg * (empolyee.Basics ?? 0)) + compute.ShouldGiveFee + compute.AssessBeforeOtherFee ?? 0);
//compute.PerforSumFee = Math.Round((compute.Avg * (empolyee.Basics ?? 0)) + compute.ShouldGiveFee + compute.AssessBeforeOtherFee ?? 0);
...
...
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