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
c4dff4c0
Commit
c4dff4c0
authored
Sep 01, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应发绩效实发绩效计算修改
parent
96840303
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
performance/Performance.Services/ComputeService.cs
+3
-2
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
+4
-4
No files found.
performance/Performance.Services/ComputeService.cs
View file @
c4dff4c0
...
@@ -171,11 +171,12 @@ public List<ResComputeResponse> GetCompute(int allotId, int type)
...
@@ -171,11 +171,12 @@ 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
.
ShouldGiveFee
=
(
t
.
Efficiency
+
t
.
Scale
)
*
t
.
Grant
;
t
.
PerforSumFee
=
t
.
ShouldGiveFee
+
t
.
Punishment
+
t
.
OtherPerfor
;
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
??
0
;
var
scoreAverageRate
=
t
.
ScoreAverageRate
??
employee
.
ScoreAverageRate
??
0
;
var
attendance
=
t
.
Attendance
??
employee
.
Attendance
??
0
;
var
attendance
=
t
.
Attendance
??
employee
.
Attendance
??
0
;
t
.
GiveFee
=
t
.
ShouldGiveFee
*
scoreAverageRate
*
attendance
+
t
.
OtherPerfor
;
t
.
GiveFee
=
t
.
PerforSumFee
*
scoreAverageRate
*
attendance
;
t
.
RealGiveFee
=
t
.
GiveFee
*
(
t
.
Adjust
??
1
m
);
t
.
RealGiveFee
=
t
.
GiveFee
*
(
t
.
Adjust
??
1
m
);
t
.
BaiscNormValue
=
t
.
RealGiveFee
;
t
.
BaiscNormValue
=
t
.
RealGiveFee
;
}
}
...
...
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
View file @
c4dff4c0
...
@@ -388,17 +388,17 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<im_a
...
@@ -388,17 +388,17 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<im_a
Attendance
=
empolyee
.
Attendance
Attendance
=
empolyee
.
Attendance
};
};
//应发管理绩效
//应发管理绩效
compute
.
ShouldGiveFee
=
Math
.
Round
((
compute
.
Efficiency
+
compute
.
Scale
)
*
(
compute
.
Grant
??
0
)
??
0
,
MidpointRounding
.
AwayFromZero
);
compute
.
ShouldGiveFee
=
Math
.
Round
((
(
compute
.
Efficiency
+
compute
.
Scale
)
*
(
compute
.
Grant
??
0
)
+
(
compute
.
Punishment
??
0
)
+
(
compute
.
OtherPerfor
??
0
)
)
??
0
,
MidpointRounding
.
AwayFromZero
);
//绩效合计
//绩效合计
compute
.
PerforSumFee
=
Math
.
Round
((
compute
.
Avg
*
(
empolyee
.
Basics
??
0
))
+
compute
.
ShouldGiveFee
??
0
,
MidpointRounding
.
AwayFromZero
);
compute
.
PerforSumFee
=
Math
.
Round
((
(
compute
.
Avg
*
(
empolyee
.
Basics
??
0
))
+
compute
.
ShouldGiveFee
)
??
0
,
MidpointRounding
.
AwayFromZero
);
//应发绩效
//应发绩效
//compute.GiveFee = compute.PerforSumFee;
//compute.GiveFee = compute.PerforSumFee;
compute
.
GiveFee
=
Math
.
Round
(
compute
.
PerforSumFee
*
compute
.
ScoreAverageRate
*
(
compute
.
Attendance
??
0
)
+
(
compute
.
Punishment
??
0
)
+
(
compute
.
OtherPerfor
??
0
)
??
0
,
MidpointRounding
.
AwayFromZero
);
compute
.
GiveFee
=
Math
.
Round
(
compute
.
PerforSumFee
*
compute
.
ScoreAverageRate
*
(
compute
.
Attendance
??
0
)
??
0
,
MidpointRounding
.
AwayFromZero
);
//实发绩效
//实发绩效
//compute.RealGiveFee = (compute.GiveFee * compute.ScoreAverageRate * (compute.Attendance ?? 0) + (compute.Punishment ?? 0) + (compute.OtherPerfor ?? 0)) * (compute.Adjust ?? 1m);
//compute.RealGiveFee = (compute.GiveFee * compute.ScoreAverageRate * (compute.Attendance ?? 0) + (compute.Punishment ?? 0) + (compute.OtherPerfor ?? 0)) * (compute.Adjust ?? 1m);
compute
.
RealGiveFee
=
Math
.
Round
(
compute
.
GiveFee
*
(
compute
.
Adjust
??
1
m
)
??
0
,
MidpointRounding
.
AwayFromZero
);
compute
.
RealGiveFee
=
Math
.
Round
(
compute
.
GiveFee
*
(
compute
.
Adjust
??
1
m
)
??
0
,
MidpointRounding
.
AwayFromZero
);
// 参考基数专用绩效合计
// 参考基数专用绩效合计
compute
.
BaiscNormPerforTotal
=
compute
.
PerforSumFee
;
compute
.
BaiscNormPerforTotal
=
Math
.
Round
(((
compute
.
Efficiency
+
compute
.
Scale
)
*
(
compute
.
Grant
??
0
)
+
compute
.
Avg
*
(
empolyee
.
Basics
??
0
))
??
0
,
MidpointRounding
.
AwayFromZero
)
;
computeList
.
Add
(
compute
);
computeList
.
Add
(
compute
);
}
}
...
...
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