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
ff8b0c58
Commit
ff8b0c58
authored
Apr 14, 2023
by
ruyun.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次分配显示自定义
parent
70d4de26
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
19 deletions
+16
-19
performance/Performance.Services/AllotCompute/ResultComputeService.cs
+0
-3
performance/Performance.Services/RedistributionService.cs
+15
-15
performance/Performance.Services/SecondAllotService.cs
+1
-1
No files found.
performance/Performance.Services/AllotCompute/ResultComputeService.cs
View file @
ff8b0c58
...
@@ -710,9 +710,6 @@ public bool IssuedChangeSecond(per_allot allot, List<ag_secondallot> secondList)
...
@@ -710,9 +710,6 @@ public bool IssuedChangeSecond(per_allot allot, List<ag_secondallot> secondList)
}
}
}
}
perforAgsecondallotRepository
.
UpdateRange
(
updSeconds
.
ToArray
());
perforAgsecondallotRepository
.
UpdateRange
(
updSeconds
.
ToArray
());
_service
.
FreezeAllotSync
(
allot
.
ID
);
_service
.
SecondUseTempRestore
();
_service
.
RestoreSecondAllot
();
}
}
_service
.
FreezeAllotSync
(
allot
.
ID
);
_service
.
FreezeAllotSync
(
allot
.
ID
);
_service
.
SecondUseTempRestore
();
_service
.
SecondUseTempRestore
();
...
...
performance/Performance.Services/RedistributionService.cs
View file @
ff8b0c58
...
@@ -206,21 +206,21 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
...
@@ -206,21 +206,21 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
var
maps
=
new
List
<
SecondColumnDictionary
>()
var
maps
=
new
List
<
SecondColumnDictionary
>()
{
{
// 顶部
// 顶部
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TotalPerformance
),
"可分配绩效"
),
nameof
(
ag_
bodysource
.
WorkNumber
),
true
,
10
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TotalPerformance
),
"可分配绩效"
),
nameof
(
ag_
headsource
.
TotalPerformance
),
true
,
10
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
HosOtherPerformance
),
"医院其他绩效"
),
nameof
(
ag_
bodysource
.
WorkNumber
),
true
,
20
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
HosOtherPerformance
),
"医院其他绩效"
),
nameof
(
ag_
headsource
.
HosOtherPerformance
),
true
,
20
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
NightShiftWorkPerforTotal
),
"夜班绩效综合"
),
nameof
(
ag_
bodysource
.
WorkNumber
),
true
,
30
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
NightShiftWorkPerforTotal
),
"夜班绩效综合"
),
nameof
(
ag_
headsource
.
NightShiftWorkPerforTotal
),
true
,
30
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TotalPreAccountingReward
),
"核算平均前单项"
),
nameof
(
ag_
bodysource
.
WorkNumber
),
true
,
40
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TotalPreAccountingReward
),
"核算平均前单项"
),
nameof
(
ag_
headsource
.
TotalPreAccountingReward
),
true
,
40
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TotalDistPerformance
),
"科室总绩效"
),
nameof
(
ag_
bodysource
.
WorkNumber
),
true
,
50
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TotalDistPerformance
),
"科室总绩效"
),
nameof
(
ag_
headsource
.
TotalDistPerformance
),
true
,
50
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
DirectorBasisPerformance
),
"主任基础绩效"
),
nameof
(
ag_
bodysource
.
WorkNumber
),
true
,
60
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
DirectorBasisPerformance
),
"主任基础绩效"
),
nameof
(
ag_
headsource
.
DirectorBasisPerformance
),
true
,
60
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TotalDeptReward
),
"科室单项奖励"
),
nameof
(
ag_
bodysource
.
WorkNumber
),
true
,
70
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TotalDeptReward
),
"科室单项奖励"
),
nameof
(
ag_
headsource
.
TotalDeptReward
),
true
,
70
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
DaysFullAttendance
),
"满勤天数"
),
nameof
(
ag_
bodysource
.
WorkNumber
),
true
,
80
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
DaysFullAttendance
),
"满勤天数"
),
nameof
(
ag_
headsource
.
DaysFullAttendance
),
true
,
80
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
DepartmentsPerCapita
),
"科室人均"
),
nameof
(
ag_
bodysource
.
WorkNumber
),
true
,
90
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
DepartmentsPerCapita
),
"科室人均"
),
nameof
(
ag_
headsource
.
DepartmentsPerCapita
),
true
,
90
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TheNumberOfAccountingDepartment
),
"科室核算人数"
),
nameof
(
ag_
bodysource
.
WorkNumber
),
true
,
100
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TheNumberOfAccountingDepartment
),
"科室核算人数"
),
nameof
(
ag_
headsource
.
TheNumberOfAccountingDepartment
),
true
,
100
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TheTotalAllocationOfPerformanceResults
),
"业绩分配绩效总额"
),
nameof
(
ag_
bodysource
.
WorkNumber
),
true
,
110
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TheTotalAllocationOfPerformanceResults
),
"业绩分配绩效总额"
),
nameof
(
ag_
headsource
.
TheTotalAllocationOfPerformanceResults
),
true
,
110
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
SeniorityTitlesAccountedPerformance
),
"年资职称绩效占比"
),
nameof
(
ag_
bodysource
.
WorkNumber
),
true
,
120
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
SeniorityTitlesAccountedPerformance
),
"年资职称绩效占比"
),
nameof
(
ag_
headsource
.
SeniorityTitlesAccountedPerformance
),
true
,
120
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
SeniorityTitlesPerformance
),
"年资职称绩效"
),
nameof
(
ag_
bodysource
.
WorkNumber
),
true
,
130
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
SeniorityTitlesPerformance
),
"年资职称绩效"
),
nameof
(
ag_
headsource
.
SeniorityTitlesPerformance
),
true
,
130
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
Workload_Ratio_Default
),
"工作量绩效占比"
),
nameof
(
ag_
bodysource
.
WorkNumber
),
true
,
140
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
Workload_Ratio_Default
),
"工作量绩效占比"
),
nameof
(
ag_
headsource
.
Workload_Ratio_Default
),
true
,
140
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
Workload_Amount_Default
),
"工作量绩效金额"
),
nameof
(
ag_
bodysource
.
WorkNumber
),
true
,
150
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
Workload_Amount_Default
),
"工作量绩效金额"
),
nameof
(
ag_
headsource
.
Workload_Amount_Default
),
true
,
150
,
"Top"
,
isNumber
:
true
),
// 表格
// 表格
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_bodysource
.
WorkNumber
),
"人员工号"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
100
,
isNumber
:
false
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_bodysource
.
WorkNumber
),
"人员工号"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
100
,
isNumber
:
false
),
...
...
performance/Performance.Services/SecondAllotService.cs
View file @
ff8b0c58
...
@@ -1682,7 +1682,7 @@ bool VerifySubmissioAmount(decimal? leftAmount, decimal? rightAmount)
...
@@ -1682,7 +1682,7 @@ bool VerifySubmissioAmount(decimal? leftAmount, decimal? rightAmount)
var
nightShiftWorkPerforFee
=
data
.
Sum
(
w
=>
w
.
NightWorkPerformance
??
0
);
var
nightShiftWorkPerforFee
=
data
.
Sum
(
w
=>
w
.
NightWorkPerformance
??
0
);
var
total
=
data
.
Sum
(
t
=>
(
t
.
DistPerformance
??
0
)
+
(
t
.
NightWorkPerformance
??
0
));
var
total
=
data
.
Sum
(
t
=>
(
t
.
DistPerformance
??
0
)
+
(
t
.
NightWorkPerformance
??
0
));
if
(!
VerifySubmissioAmount
(
nightShiftWorkPerforFee
,
second
.
NightShiftWorkPerforFee
))
if
(!
VerifySubmissioAmount
(
nightShiftWorkPerforFee
,
second
.
NightShiftWorkPerforFee
))
throw
new
PerformanceException
(
$"
夜班绩效金额不一致!夜班
绩效金额:
{
second
.
NightShiftWorkPerforFee
??
0
:
0.
####
}
,提交金额:
{
nightShiftWorkPerforFee
:
0.
####
}
"
);
throw
new
PerformanceException
(
$"
专项绩效金额不一致!专项
绩效金额:
{
second
.
NightShiftWorkPerforFee
??
0
:
0.
####
}
,提交金额:
{
nightShiftWorkPerforFee
:
0.
####
}
"
);
else
if
(!
VerifySubmissioAmount
(
total
,
second
.
RealGiveFee
))
else
if
(!
VerifySubmissioAmount
(
total
,
second
.
RealGiveFee
))
throw
new
PerformanceException
(
$"总金额与考核后金额不一致!可分配金额:
{
second
.
RealGiveFee
:
0.
####
}
,提交金额:
{
total
:
0.
####
}
"
);
throw
new
PerformanceException
(
$"总金额与考核后金额不一致!可分配金额:
{
second
.
RealGiveFee
:
0.
####
}
,提交金额:
{
total
:
0.
####
}
"
);
else
else
...
...
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