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
526146dd
Commit
526146dd
authored
Nov 23, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次绩效计算、加载数据异常
parent
8f90f001
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
performance/Performance.Services/RedistributionService.cs
+11
-9
No files found.
performance/Performance.Services/RedistributionService.cs
View file @
526146dd
...
...
@@ -280,6 +280,8 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
private
List
<
Dictionary
<
string
,
object
>>
LoadWorkload
(
per_allot
allot
,
ag_secondallot
second
,
List
<
ag_bodysource
>
loadEmployees
,
bool
isSave
=
true
,
EmployeeSource
overrideMode
=
0
)
{
List
<
Dictionary
<
string
,
object
>>
result
=
new
List
<
Dictionary
<
string
,
object
>>();
if
(
loadEmployees
==
null
||
!
loadEmployees
.
Any
())
return
result
;
var
status
=
(
new
int
[]
{
(
int
)
SecondAllotStatus
.
WaitReview
,
(
int
)
SecondAllotStatus
.
PassAudit
});
// 已提交
if
(
second
.
Status
.
HasValue
&&
status
.
Contains
(
second
.
Status
.
Value
))
...
...
@@ -980,11 +982,8 @@ private void overviewCalculate(Dictionary<string, object> head, List<Dictionary<
//// 夜班工作量绩效总和
//var nightShiftWorkPerforTotal = rows.Sum(row => GetDecimal2(row, nameof(ag_bodysource.NightWorkPerformance)));
//head.AddOrUpdate(nameof(ag_headsource.NightShiftWorkPerforTotal), nightShiftWorkPerforTotal);
// 科室考核前奖励
var
totalPreAccountingReward
=
rows
.
Sum
(
row
=>
GetDecimal2
(
row
,
nameof
(
ag_bodysource
.
PreDeptReward
)));
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
TotalPreAccountingReward
),
totalPreAccountingReward
);
// 可分配绩效(顶栏) = 科室总绩效 - 夜班绩效(顶栏) - 科室考核前奖励
var
totalPerformance
=
GetDecimal2
(
head
,
nameof
(
ag_headsource
.
TotalDistPerformance
))
-
GetDecimal2
(
head
,
nameof
(
ag_headsource
.
NightShiftWorkPerforTotal
))
-
totalPreAccountingReward
;
// 可分配绩效(顶栏) = 科室总绩效 - 夜班绩效(顶栏)
var
totalPerformance
=
GetDecimal2
(
head
,
nameof
(
ag_headsource
.
TotalDistPerformance
))
-
GetDecimal2
(
head
,
nameof
(
ag_headsource
.
NightShiftWorkPerforTotal
));
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
TotalPerformance
),
totalPerformance
);
//// 医院其他绩效总和
//var otherPerformance = rows.Sum(row => GetDecimal2(row, nameof(ag_bodysource.OtherPerformance)));
...
...
@@ -999,11 +998,14 @@ private void overviewCalculate(Dictionary<string, object> head, List<Dictionary<
// 科室单项奖励
var
totalDeptReward
=
rows
.
Sum
(
row
=>
GetDecimal2
(
row
,
nameof
(
ag_bodysource
.
DeptReward
)));
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
TotalDeptReward
),
totalDeptReward
);
// 科室考核前奖励
var
totalPreAccountingReward
=
rows
.
Sum
(
row
=>
GetDecimal2
(
row
,
nameof
(
ag_bodysource
.
PreDeptReward
)));
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
TotalPreAccountingReward
),
totalPreAccountingReward
);
// 主任基础绩效(顶部) = 行内主任基础绩效总和
var
directorBasisPerformance
=
rows
.
Sum
(
row
=>
GetDecimal2
(
row
,
nameof
(
ag_bodysource
.
BasisPerformance
)));
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
DirectorBasisPerformance
),
directorBasisPerformance
);
// 业绩分配绩效总额 = 可分配绩效 - 科主任或护士长基础绩效 - 科室单项奖励
var
theTotalAllocationOfPerformanceResults
=
totalPerformance
-
directorBasisPerformance
-
totalDeptReward
;
// 业绩分配绩效总额 = 可分配绩效 - 科主任或护士长基础绩效 - 科室单项奖励
- 科室考核前奖励
var
theTotalAllocationOfPerformanceResults
=
totalPerformance
-
directorBasisPerformance
-
totalDeptReward
-
totalPreAccountingReward
;
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
TheTotalAllocationOfPerformanceResults
),
theTotalAllocationOfPerformanceResults
);
}
...
...
@@ -1206,8 +1208,8 @@ private void distPerformanceCalculate(List<Dictionary<string, object>> rows)
var
deptReward
=
GetDecimal2
(
row
,
nameof
(
ag_bodysource
.
DeptReward
));
var
preDeptReward
=
GetDecimal2
(
row
,
nameof
(
ag_bodysource
.
PreDeptReward
));
var
basisPerformance
=
GetDecimal2
(
row
,
nameof
(
ag_bodysource
.
BasisPerformance
));
// 可分配绩效 = 当前行职称绩效 + 工作量绩效工资 + 当前行单项奖励 + 当前行主任基础绩效 (科主任护士长)
- 考核前奖励
var
distPerformance
=
titlePerformance
+
workPerformance
+
deptReward
+
basisPerformance
-
preDeptReward
;
// 可分配绩效 = 当前行职称绩效 + 工作量绩效工资 + 当前行单项奖励 + 当前行主任基础绩效 (科主任护士长)
var
distPerformance
=
titlePerformance
+
workPerformance
+
deptReward
+
basisPerformance
+
preDeptReward
;
row
.
AddOrUpdate
(
nameof
(
ag_bodysource
.
DistPerformance
),
distPerformance
);
}
}
...
...
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