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
0ec1c97d
Commit
0ec1c97d
authored
Jul 18, 2019
by
李承祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特殊科室增加枚举,护士总绩效基数分组合并,去除重复添加
parent
e7129a72
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
performance/Performance.DtoModels/PerExcel/ExcelEnum.cs
+2
-0
performance/Performance.Services/AllotCompute/BaiscNormService.cs
+14
-0
performance/Performance.Services/AllotCompute/ResultComputeService.cs
+10
-0
No files found.
performance/Performance.DtoModels/PerExcel/ExcelEnum.cs
View file @
0ec1c97d
...
...
@@ -161,6 +161,8 @@ public enum PerforType
行政中层
,
[
Description
(
"行政工勤人均绩效"
)]
行政工勤
,
[
Description
(
"医生护士平均绩效"
)]
医生护士平均
,
}
/// <summary>
...
...
performance/Performance.Services/AllotCompute/BaiscNormService.cs
View file @
0ec1c97d
...
...
@@ -118,6 +118,13 @@ public List<res_baiscnorm> DocterNurseBaiscnorm(List<res_baiscnorm> baiscnormLis
// 护士
var
sheetNurse
=
list
.
FirstOrDefault
(
t
=>
t
.
SheetType
==
SheetType
.
ComputeNurseAccount
);
var
perdataNurse
=
sheetNurse
.
PerData
.
Select
(
t
=>
(
PerDataAccountNurse
)
t
);
perdataNurse
=
perdataNurse
.
GroupBy
(
t
=>
t
.
AccountingUnit
)
.
Select
(
t
=>
new
PerDataAccountNurse
{
AccountingUnit
=
t
.
Key
,
Number
=
t
.
Sum
(
p
=>
p
.
Number
),
PerforTotal
=
t
.
Max
(
p
=>
p
.
PerforTotal
)
});
var
baiscnormNurse
=
new
res_baiscnorm
{
PositionName
=
EnumHelper
.
GetDescription
(
PerforType
.
护士
),
...
...
@@ -130,6 +137,13 @@ public List<res_baiscnorm> DocterNurseBaiscnorm(List<res_baiscnorm> baiscnormLis
// 医生
var
sheetDocter
=
list
.
FirstOrDefault
(
t
=>
t
.
SheetType
==
SheetType
.
ComputeDoctorAccount
);
var
perdataDocter
=
sheetDocter
.
PerData
.
Select
(
t
=>
(
PerDataAccountDoctor
)
t
);
perdataDocter
=
perdataDocter
.
GroupBy
(
t
=>
t
.
AccountingUnit
)
.
Select
(
t
=>
new
PerDataAccountDoctor
{
AccountingUnit
=
t
.
Key
,
Number
=
t
.
Sum
(
p
=>
p
.
Number
),
PerforTotal
=
t
.
Max
(
p
=>
p
.
PerforTotal
)
});
var
baiscnormDocter
=
new
res_baiscnorm
{
PositionName
=
EnumHelper
.
GetDescription
(
PerforType
.
临床医生
),
...
...
performance/Performance.Services/AllotCompute/ResultComputeService.cs
View file @
0ec1c97d
...
...
@@ -87,6 +87,15 @@ public void SpecialUnitCompute(PerExcel excel, per_allot allot, List<res_baiscno
var
type
=
typeList
.
FirstOrDefault
(
o
=>
o
.
Description
==
item
.
QuantitativeIndicators
);
if
(
type
!=
null
)
{
if
(
type
.
Value
==
(
int
)
PerforType
.
医生护士平均
)
{
var
doctor
=
baiscNormService
.
GetBaiscNorm
(
baiscnormList
,
PerforType
.
临床医生
)
??
0
;
var
nurse
=
baiscNormService
.
GetBaiscNorm
(
baiscnormList
,
PerforType
.
护士
)
??
0
;
// 添加参数计算
item
.
Quantity
=
(
doctor
+
nurse
)
/
2
;
}
else
{
var
radio
=
perforImEmployeeRepository
.
GetEntities
(
p
=>
p
.
FitPeople
==
EnumHelper
.
GetDescription
((
PerforType
)
type
.
Value
)
&&
p
.
AllotID
==
allot
.
ID
)
?.
FirstOrDefault
().
FitPeopleRatio
??
1
;
var
basic
=
baiscNormService
.
GetBaiscNorm
(
baiscnormList
,
(
PerforType
)
type
.
Value
);
...
...
@@ -94,6 +103,7 @@ public void SpecialUnitCompute(PerExcel excel, per_allot allot, List<res_baiscno
item
.
Quantity
=
basic
!=
null
?
basic
*
radio
:
null
;
}
}
}
List
<
res_specialunit
>
resDataList
=
new
List
<
res_specialunit
>();
...
...
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