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
29f6d530
Commit
29f6d530
authored
Apr 07, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
夜班绩效补充
parent
1ec59c77
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
performance/Performance.Api/wwwroot/Performance.Api.xml
+8
-1
performance/Performance.Services/AllotCompute/ProcessComputService.cs
+6
-1
No files found.
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
29f6d530
...
@@ -208,7 +208,7 @@
...
@@ -208,7 +208,7 @@
<summary>
<summary>
上传文件
上传文件
</summary>
</summary>
<param
name=
"
form
"
></param>
<param
name=
"
allotId
"
></param>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Performance.Api.Controllers.AllotController.Generate(Performance.DtoModels.AllotRequest)"
>
<member
name=
"M:Performance.Api.Controllers.AllotController.Generate(Performance.DtoModels.AllotRequest)"
>
...
@@ -218,6 +218,13 @@
...
@@ -218,6 +218,13 @@
<param
name=
"request"
></param>
<param
name=
"request"
></param>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Performance.Api.Controllers.AllotController.GenerateReport(Performance.DtoModels.AllotRequest)"
>
<summary>
绩效生成报表
</summary>
<param
name=
"request"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.AllotController.Recalculation(Performance.DtoModels.RecalculationRequest)"
>
<member
name=
"M:Performance.Api.Controllers.AllotController.Recalculation(Performance.DtoModels.RecalculationRequest)"
>
<summary>
<summary>
重新计算院领导绩效
重新计算院领导绩效
...
...
performance/Performance.Services/AllotCompute/ProcessComputService.cs
View file @
29f6d530
...
@@ -349,6 +349,7 @@ public void ComputeOffice(per_allot allot, PerExcel excel)
...
@@ -349,6 +349,7 @@ public void ComputeOffice(per_allot allot, PerExcel excel)
{
{
//取出科室
//取出科室
var
accountList
=
excel
.
PerSheet
.
FirstOrDefault
(
t
=>
t
.
SheetType
==
SheetType
.
AccountBasic
)?.
PerData
?.
Select
(
t
=>
(
PerDataAccountBaisc
)
t
);
var
accountList
=
excel
.
PerSheet
.
FirstOrDefault
(
t
=>
t
.
SheetType
==
SheetType
.
AccountBasic
)?.
PerData
?.
Select
(
t
=>
(
PerDataAccountBaisc
)
t
);
var
accountExtraData
=
excel
.
PerSheet
.
FirstOrDefault
(
t
=>
t
.
SheetType
==
SheetType
.
AccountExtra
)?.
PerData
?.
Select
(
t
=>
(
PerData
)
t
);
List
<
string
>
involves
=
new
List
<
string
>
List
<
string
>
involves
=
new
List
<
string
>
{
{
...
@@ -382,7 +383,11 @@ public void ComputeOffice(per_allot allot, PerExcel excel)
...
@@ -382,7 +383,11 @@ public void ComputeOffice(per_allot allot, PerExcel excel)
dept
.
NeedSecondAllot
=
empolyees
.
Any
(
w
=>
w
.
NeedSecondAllot
==
"是"
)
?
"是"
:
"否"
;
dept
.
NeedSecondAllot
=
empolyees
.
Any
(
w
=>
w
.
NeedSecondAllot
==
"是"
)
?
"是"
:
"否"
;
if
(
UnitTypeUtil
.
IsOffice
(
resAccount
?.
UnitType
)
&&
dept
.
NeedSecondAllot
==
"是"
)
if
(
UnitTypeUtil
.
IsOffice
(
resAccount
?.
UnitType
)
&&
dept
.
NeedSecondAllot
==
"是"
)
{
{
// 夜班绩效 从医院奖罚的明细项中获取
var
nightShift
=
accountExtraData
?.
FirstOrDefault
(
w
=>
w
.
UnitType
==
resAccount
?.
UnitType
&&
w
.
AccountingUnit
==
dept
.
AccountingUnit
&&
w
.
TypeName
?.
Trim
()
==
"夜班绩效"
)?.
CellValue
??
0
;
dept
.
NightShiftWorkPerforFee
=
0
;
dept
.
ScoringAverage
=
resAccount
?.
ScoringAverage
==
null
?
0
:
resAccount
.
ScoringAverage
;
dept
.
ScoringAverage
=
resAccount
?.
ScoringAverage
==
null
?
0
:
resAccount
.
ScoringAverage
;
dept
.
AdjustFactor
=
(
isBudget
?
adjust
:
resAccount
?.
AdjustFactor
)
??
1
;
dept
.
AdjustFactor
=
(
isBudget
?
adjust
:
resAccount
?.
AdjustFactor
)
??
1
;
dept
.
Extra
=
resAccount
?.
Extra
??
0
;
dept
.
Extra
=
resAccount
?.
Extra
??
0
;
...
...
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