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
11ca8929
Commit
11ca8929
authored
Oct 21, 2020
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
考核后绩效、特殊科室绩效
parent
f08504de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
14 deletions
+32
-14
performance/Performance.Services/AllotCompute/ResultComputeService.cs
+30
-14
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
+2
-0
No files found.
performance/Performance.Services/AllotCompute/ResultComputeService.cs
View file @
11ca8929
...
@@ -226,7 +226,7 @@ public class ResultComputeService : IAutoInjection
...
@@ -226,7 +226,7 @@ public class ResultComputeService : IAutoInjection
&&
(!
string
.
IsNullOrEmpty
(
w
.
EmployeeName
)
||
!
string
.
IsNullOrEmpty
(
w
.
JobNumber
)))
&&
(!
string
.
IsNullOrEmpty
(
w
.
EmployeeName
)
||
!
string
.
IsNullOrEmpty
(
w
.
JobNumber
)))
.
FirstOrDefault
(
w
=>
w
.
AccountingUnit
==
empolyee
.
AccountingUnit
&&
w
.
UnitType
==
empolyee
.
UnitType
.
FirstOrDefault
(
w
=>
w
.
AccountingUnit
==
empolyee
.
AccountingUnit
&&
w
.
UnitType
==
empolyee
.
UnitType
&&
w
.
JobNumber
==
empolyee
.
JobNumber
&&
w
.
EmployeeName
==
empolyee
.
DoctorName
)?.
TotelValue
;
&&
w
.
JobNumber
==
empolyee
.
JobNumber
&&
w
.
EmployeeName
==
empolyee
.
DoctorName
)?.
TotelValue
;
var
avg
=
(
group
.
Number
==
0
?
0
:
(
sumValue
/
group
.
Number
));
var
empolyeeAdjust
=
isBudget
?
adjust
:
empolyee
.
Adjust
;
var
empolyeeAdjust
=
isBudget
?
adjust
:
empolyee
.
Adjust
;
var
compute
=
new
ComputeResult
var
compute
=
new
ComputeResult
{
{
...
@@ -244,29 +244,45 @@ public class ResultComputeService : IAutoInjection
...
@@ -244,29 +244,45 @@ public class ResultComputeService : IAutoInjection
OtherManagePerfor
=
empolyee
.
OtherManagePerfor
,
OtherManagePerfor
=
empolyee
.
OtherManagePerfor
,
Number
=
group
.
Number
,
Number
=
group
.
Number
,
PerforTotal
=
sumValue
,
PerforTotal
=
sumValue
,
Avg
=
group
.
Number
==
0
?
0
:
(
sumValue
/
group
.
Number
),
//
Avg = group.Number == 0 ? 0 : (sumValue / group.Number),
Adjust
=
empolyeeAdjust
??
1
m
,
Adjust
=
empolyeeAdjust
??
1
m
,
Grant
=
isBudget
?
grant
:
empolyee
.
Management
,
Grant
=
isBudget
?
grant
:
empolyee
.
Management
,
Attendance
=
empolyee
.
Attendance
??
0
,
Attendance
=
empolyee
.
Attendance
??
0
,
AssessBeforeOtherFee
=
empolyee
?.
AssessBeforeOtherFee
??
0
,
AssessBeforeOtherFee
=
empolyee
?.
AssessBeforeOtherFee
??
0
,
AssessLaterOtherFee
=
empolyee
?.
AssessLaterOtherFee
??
0
,
AssessLaterOtherFee
=
empolyee
?.
AssessLaterOtherFee
??
0
,
AdjustLaterOtherFee
=
empolyee
?.
AdjustLaterOtherFee
??
0
,
AdjustLaterOtherFee
=
empolyee
?.
AdjustLaterOtherFee
??
0
,
Efficiency
=
avg
*
(
empolyee
.
Efficiency
??
0
),
Scale
=
sumValue
*
(
empolyee
.
Scale
??
0
),
};
};
compute
.
Efficiency
=
compute
.
Avg
*
(
empolyee
.
Efficiency
??
1
);
compute
.
Avg
=
(
group
.
Number
==
0
?
0
:
(
sumValue
/
group
.
Number
))
*
(
empolyee
.
Basics
??
0
)
*
compute
.
Attendance
;
compute
.
Scale
=
compute
.
PerforTotal
*
(
empolyee
.
Scale
??
1
);
// 考核前管理绩效
//应发管理绩效
compute
.
ShouldGiveFee
=
Math
.
Round
((
compute
.
Efficiency
+
compute
.
Scale
)
*
compute
.
Grant
+
compute
.
OtherManagePerfor
??
0
);
compute
.
ShouldGiveFee
=
Math
.
Round
((
compute
.
Efficiency
+
compute
.
Scale
)
*
compute
.
Grant
??
0
);
// 考核后管理绩效
//绩效合计
compute
.
AssessLaterManagementFee
=
Math
.
Round
(
compute
.
ShouldGiveFee
*
compute
.
ScoreAverageRate
*
compute
.
Attendance
+
compute
.
Punishment
??
0
);
compute
.
PerforSumFee
=
Math
.
Round
(
compute
.
Avg
+
compute
.
ShouldGiveFee
+
compute
.
AssessBeforeOtherFee
??
0
);
// 考核前绩效
//应发绩效
compute
.
PerforSumFee
=
compute
.
Attendance
==
0
?
Math
.
Round
(
compute
.
ShouldGiveFee
??
0
)
:
Math
.
Round
(
compute
.
Avg
/
compute
.
Attendance
+
compute
.
ShouldGiveFee
??
0
);
//compute.GiveFee = compute.PerforSumFee;
// 考核后绩效
compute
.
GiveFee
=
Math
.
Round
(
compute
.
PerforSumFee
*
compute
.
ScoreAverageRate
*
compute
.
Attendance
+
compute
.
Punishment
+
compute
.
AssessLaterOtherFee
??
0
);
compute
.
GiveFee
=
Math
.
Round
(
compute
.
Avg
+
compute
.
AssessLaterManagementFee
??
0
);
//实发绩效
//compute.RealGiveFee = (compute.GiveFee * compute.ScoreAverageRate + (compute.Punishment ?? 0) + (compute.OtherPerfor ?? 0)) * (compute.Adjust ?? 1m);
compute
.
RealGiveFee
=
Math
.
Round
(
compute
.
GiveFee
*
compute
.
Adjust
+
compute
.
AdjustLaterOtherFee
??
0
);
// 参考基数专用绩效合计
// 参考基数专用绩效合计
compute
.
BaiscNormPerforTotal
=
compute
.
PerforSumFee
;
compute
.
BaiscNormPerforTotal
=
compute
.
PerforSumFee
;
// 实发绩效
compute
.
RealGiveFee
=
Math
.
Round
((
compute
.
Avg
+
compute
.
AssessLaterManagementFee
)
*
compute
.
Adjust
+
compute
.
AdjustLaterOtherFee
??
0
);
//compute.Efficiency = compute.Avg * (empolyee.Efficiency ?? 1);
//compute.Scale = compute.PerforTotal * (empolyee.Scale ?? 1);
////应发管理绩效
//compute.ShouldGiveFee = Math.Round((compute.Efficiency + compute.Scale) * compute.Grant ?? 0);
////绩效合计
//compute.PerforSumFee = Math.Round(compute.Avg + compute.ShouldGiveFee + compute.AssessBeforeOtherFee ?? 0);
////应发绩效
////compute.GiveFee = compute.PerforSumFee;
//compute.GiveFee = Math.Round(compute.PerforSumFee * compute.ScoreAverageRate * compute.Attendance + compute.Punishment + compute.AssessLaterOtherFee ?? 0);
////实发绩效
////compute.RealGiveFee = (compute.GiveFee * compute.ScoreAverageRate + (compute.Punishment ?? 0) + (compute.OtherPerfor ?? 0)) * (compute.Adjust ?? 1m);
//compute.RealGiveFee = Math.Round(compute.GiveFee * compute.Adjust + compute.AdjustLaterOtherFee ?? 0);
//// 参考基数专用绩效合计
//compute.BaiscNormPerforTotal = compute.PerforSumFee;
computeList
.
Add
(
compute
);
computeList
.
Add
(
compute
);
}
}
...
...
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
View file @
11ca8929
...
@@ -411,6 +411,8 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<PerS
...
@@ -411,6 +411,8 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<PerS
compute
.
AssessLaterManagementFee
=
Math
.
Round
(
compute
.
ShouldGiveFee
*
compute
.
ScoreAverageRate
*
compute
.
Attendance
+
compute
.
Punishment
??
0
);
compute
.
AssessLaterManagementFee
=
Math
.
Round
(
compute
.
ShouldGiveFee
*
compute
.
ScoreAverageRate
*
compute
.
Attendance
+
compute
.
Punishment
??
0
);
// 考核前绩效
// 考核前绩效
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
.
BaiscNormPerforTotal
=
compute
.
PerforSumFee
;
compute
.
BaiscNormPerforTotal
=
compute
.
PerforSumFee
;
// 实发绩效
// 实发绩效
...
...
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