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
3de36e47
Commit
3de36e47
authored
Sep 25, 2019
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保底绩效不使用实发绩效
parent
96ee9c1c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
performance/Performance.Services/AllotCompute/ResultComputeService.cs
+1
-1
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
+9
-3
No files found.
performance/Performance.Services/AllotCompute/ResultComputeService.cs
View file @
3de36e47
...
...
@@ -56,7 +56,7 @@ public List<res_baiscnorm> Compute(per_allot allot, PerExcel excel, List<PerShee
List
<
ComputeEmployee
>
computeEmployees
=
Mapper
.
Map
<
List
<
ComputeEmployee
>>(
empolyeeList
);
logManageService
.
WriteMsg
(
"正在生成绩效"
,
"临床科室主任、临床科室副主任、临床科室护士长 最终绩效数据计算"
,
1
,
allot
.
ID
,
"ReceiveMessage"
);
var
computResult
=
computeDirector
.
Compute
(
computeEmployees
,
accountbasicList
,
accountSheet
,
allot
);
var
computResult
=
computeDirector
.
Compute
(
computeEmployees
,
accountbasicList
,
accountSheet
,
allot
,
isMinimum
);
//计算 绩效标准 基数(科主任、副主任、护士长 =>> 平均值)
List
<
res_baiscnorm
>
baiscnormList
=
new
List
<
res_baiscnorm
>();
baiscNormService
.
ComputeAvg
(
baiscnormList
,
accountbasicList
,
computResult
);
...
...
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
View file @
3de36e47
...
...
@@ -137,7 +137,7 @@ public class ComputeDirector : IAutoInjection
/// <param name="nurseList"></param>
/// <param name="directorList"></param>
/// <returns></returns>
public
List
<
ComputeResult
>
Compute
(
List
<
ComputeEmployee
>
empolyeeList
,
List
<
im_accountbasic
>
accountbasicList
,
List
<
PerSheet
>
accountSheet
,
per_allot
allot
)
public
List
<
ComputeResult
>
Compute
(
List
<
ComputeEmployee
>
empolyeeList
,
List
<
im_accountbasic
>
accountbasicList
,
List
<
PerSheet
>
accountSheet
,
per_allot
allot
,
bool
isMinimum
)
{
var
basicRuleList
=
new
[]
{
...
...
@@ -172,9 +172,15 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<im_a
var
resAccount
=
dataList
.
Where
(
t
=>
t
.
UnitType
==
accountbasic
.
UnitType
&&
t
.
AccountingUnit
==
accountbasic
.
DoctorAccountingUnit
);
var
number
=
resAccount
.
OrderByDescending
(
t
=>
t
.
ManagerNumber
).
Sum
(
t
=>
t
.
ManagerNumber
+
t
.
Number
);
var
perforTotal
=
resAccount
.
Sum
(
t
=>
t
.
PerforTotal
);
var
realGiveFee
=
resAccount
.
Sum
(
t
=>
t
.
RealGiveFee
);
var
avg
=
resAccount
.
Average
(
t
=>
t
.
Avg
);
var
realAvg
=
resAccount
.
Sum
(
t
=>
(
t
.
ManagerNumber
+
t
.
Number
)
==
0
?
0
:
t
.
RealGiveFee
/
(
t
.
ManagerNumber
+
t
.
Number
))
/
resAccount
.
Count
();
//保底绩效时,不使用实发绩效
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
basicRule
=
basicRuleList
.
FirstOrDefault
(
t
=>
t
.
UnitType
==
(
UnitType
)
accountbasic
.
UnitType
);
if
(
basicRule
==
null
)
continue
;
...
...
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