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
543d34be
Commit
543d34be
authored
Jul 25, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交驳回切换填报模板后,主任绩效自动带出无法删除
parent
756d5f58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
performance/Performance.Services/RedistributionService.cs
+19
-0
No files found.
performance/Performance.Services/RedistributionService.cs
View file @
543d34be
...
...
@@ -988,6 +988,8 @@ public void ResultCompute(ComputeMode computeMode, Dictionary<string, object> he
if
(
computeMode
==
ComputeMode
.
NotCalculate
)
{
// 清空行内主任基础绩效
clearBasisPerformance
(
rows
,
specialPostName
);
// 清空无效数据
clearPerformanceWorkload
(
rows
,
workloadGroups
);
// 行内计算单项奖励
...
...
@@ -1065,6 +1067,23 @@ private void clearPerformanceWorkload(List<Dictionary<string, object>> rows, Lis
}
/// <summary>
/// 清空行内主任基础绩效
/// </summary>
/// <param name="rows"></param>
/// <param name="workloadGroups"></param>
private
void
clearBasisPerformance
(
List
<
Dictionary
<
string
,
object
>>
rows
,
string
[]
specialPostName
)
{
foreach
(
var
row
in
rows
)
{
var
post
=
row
.
GetString
(
nameof
(
ag_bodysource
.
Post
));
if
(
specialPostName
.
Contains
(
post
))
{
row
.
AddOrUpdate
(
nameof
(
ag_bodysource
.
BasisPerformance
),
0
m
);
}
}
}
/// <summary>
/// 行内计算单项奖励
/// </summary>
/// <param name="rows"></param>
...
...
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