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
baa36331
Commit
baa36331
authored
Sep 25, 2019
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
科主任护士长平均值计算
parent
3de36e47
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
10 deletions
+19
-10
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+5
-0
performance/Performance.DtoModels/PerExcel/ComputeResult.cs
+5
-0
performance/Performance.Services/AllotCompute/BaiscNormService.cs
+2
-2
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
+7
-8
No files found.
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
baa36331
...
...
@@ -485,6 +485,11 @@
应发绩效(需计算)
</summary>
</member>
<member
name=
"P:Performance.DtoModels.ComputeResult.BaiscNormPerforTotal"
>
<summary>
参考基数专用绩效合计
</summary>
</member>
<member
name=
"P:Performance.DtoModels.ComputeResult.WorkTime"
>
<summary>
参加工作时间(来自人员名单)
...
...
performance/Performance.DtoModels/PerExcel/ComputeResult.cs
View file @
baa36331
...
...
@@ -96,6 +96,11 @@ public class ComputeResult
public
Nullable
<
decimal
>
GiveFee
{
get
;
set
;
}
/// <summary>
/// 参考基数专用绩效合计
/// </summary>
public
Nullable
<
decimal
>
BaiscNormPerforTotal
{
get
;
set
;
}
/// <summary>
/// 参加工作时间(来自人员名单)
/// </summary>
public
Nullable
<
DateTime
>
WorkTime
{
get
;
set
;
}
...
...
performance/Performance.Services/AllotCompute/BaiscNormService.cs
View file @
baa36331
...
...
@@ -36,8 +36,8 @@ public List<res_baiscnorm> ComputeAvg(List<res_baiscnorm> baiscnormList, List<im
{
PositionName
=
EnumHelper
.
GetDescription
(
item
.
Reference
),
TotelNumber
=
count
,
TotelValue
=
dataList
?.
Sum
(
t
=>
t
.
GiveFee
),
AvgValue
=
dataList
?.
Sum
(
t
=>
t
.
GiveFee
)
/
count
TotelValue
=
dataList
?.
Sum
(
t
=>
t
.
BaiscNormPerforTotal
),
AvgValue
=
dataList
?.
Sum
(
t
=>
t
.
BaiscNormPerforTotal
)
/
count
};
baiscnormList
.
Add
(
baiscnorm
);
}
...
...
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
View file @
baa36331
...
...
@@ -173,14 +173,10 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<im_a
var
number
=
resAccount
.
OrderByDescending
(
t
=>
t
.
ManagerNumber
).
Sum
(
t
=>
t
.
ManagerNumber
+
t
.
Number
);
var
perforTotal
=
resAccount
.
Sum
(
t
=>
t
.
PerforTotal
);
var
avg
=
resAccount
.
Average
(
t
=>
t
.
Avg
);
//保底绩效时,不使用实发绩效
var
realGiveFee
=
perforTotal
;
var
realAvg
=
avg
;
if
(!
isMinimum
)
{
realAvg
=
resAccount
.
Sum
(
t
=>
(
t
.
ManagerNumber
+
t
.
Number
)
==
0
?
0
:
t
.
RealGiveFee
/
(
t
.
ManagerNumber
+
t
.
Number
))
/
resAccount
.
Count
();
realGiveFee
=
resAccount
.
Sum
(
t
=>
t
.
RealGiveFee
);
}
//绩效参考标准,不使用实发绩效
var
realAvg
=
resAccount
.
Sum
(
t
=>
(
t
.
ManagerNumber
+
t
.
Number
)
==
0
?
0
:
t
.
RealGiveFee
/
(
t
.
ManagerNumber
+
t
.
Number
))
/
resAccount
.
Count
();
var
realGiveFee
=
resAccount
.
Sum
(
t
=>
t
.
RealGiveFee
);
var
basicRule
=
basicRuleList
.
FirstOrDefault
(
t
=>
t
.
UnitType
==
(
UnitType
)
accountbasic
.
UnitType
);
if
(
basicRule
==
null
)
continue
;
...
...
@@ -229,6 +225,9 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<im_a
compute
.
GiveFee
=
compute
.
PerforSumFee
;
//实发绩效
compute
.
RealGiveFee
=
(
compute
.
GiveFee
*
compute
.
ScoreAverageRate
+
(
compute
.
Punishment
??
0
)
+
(
compute
.
OtherPerfor
??
0
))
*
(
compute
.
Adjust
??
1
m
);
// 参考基数专用绩效合计
compute
.
BaiscNormPerforTotal
=
avg
+
compute
.
ShouldGiveFee
;
computeList
.
Add
(
compute
);
}
return
computeList
;
...
...
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