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
000b5bb0
Commit
000b5bb0
authored
Sep 17, 2019
by
李承祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
核算单元类型新增 其他组; 医技工作量计算bug
parent
2b62c62c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletions
+8
-1
performance/Performance.DtoModels/PerExcel/ExcelEnum.cs
+2
-0
performance/Performance.Services/AllotCompute/ProcessComputService.cs
+5
-1
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
+1
-0
No files found.
performance/Performance.DtoModels/PerExcel/ExcelEnum.cs
View file @
000b5bb0
...
@@ -23,6 +23,8 @@ public enum UnitType
...
@@ -23,6 +23,8 @@ public enum UnitType
医技组
=
3
,
医技组
=
3
,
[
Description
(
"专家组"
)]
[
Description
(
"专家组"
)]
专家组
=
4
,
专家组
=
4
,
[
Description
(
"其他组"
)]
其他组
=
5
,
}
}
public
enum
SheetType
public
enum
SheetType
...
...
performance/Performance.Services/AllotCompute/ProcessComputService.cs
View file @
000b5bb0
...
@@ -247,7 +247,7 @@ public List<PerSheet> Compute(PerExcel excel, List<PerSheet> perSheet, List<res_
...
@@ -247,7 +247,7 @@ public List<PerSheet> Compute(PerExcel excel, List<PerSheet> perSheet, List<res_
var
pairs
=
new
[]
var
pairs
=
new
[]
{
{
new
{
Name
=
"医生组临床科室单元核算表"
,
Data
=
doctorWorkloadData
,
SheetType
=
SheetType
.
ComputeDoctorAccount
,
UnitTypes
=
new
List
<
UnitType
>
{
UnitType
.
医生组
,
UnitType
.
医技组
,
UnitType
.
专家组
}
},
new
{
Name
=
"医生组临床科室单元核算表"
,
Data
=
doctorWorkloadData
,
SheetType
=
SheetType
.
ComputeDoctorAccount
,
UnitTypes
=
new
List
<
UnitType
>
{
UnitType
.
医生组
,
UnitType
.
医技组
,
UnitType
.
专家组
,
UnitType
.
其他组
}
},
new
{
Name
=
"护理组临床科室单元核算表"
,
Data
=
nurseWorkloadData
,
SheetType
=
SheetType
.
ComputeNurseAccount
,
UnitTypes
=
new
List
<
UnitType
>
{
UnitType
.
护理组
}
},
new
{
Name
=
"护理组临床科室单元核算表"
,
Data
=
nurseWorkloadData
,
SheetType
=
SheetType
.
ComputeNurseAccount
,
UnitTypes
=
new
List
<
UnitType
>
{
UnitType
.
护理组
}
},
new
{
Name
=
"专家核算表"
,
Data
=
doctorWorkloadData
,
SheetType
=
SheetType
.
ComputeDoctorAccount
,
UnitTypes
=
new
List
<
UnitType
>
{
UnitType
.
专家组
}
},
new
{
Name
=
"专家核算表"
,
Data
=
doctorWorkloadData
,
SheetType
=
SheetType
.
ComputeDoctorAccount
,
UnitTypes
=
new
List
<
UnitType
>
{
UnitType
.
专家组
}
},
};
};
...
@@ -271,6 +271,10 @@ public List<PerSheet> Compute(PerExcel excel, List<PerSheet> perSheet, List<res_
...
@@ -271,6 +271,10 @@ public List<PerSheet> Compute(PerExcel excel, List<PerSheet> perSheet, List<res_
econDoctor
=
economicData
.
FirstOrDefault
(
t
=>
t
.
AccountingUnit
==
dept
.
Department
);
econDoctor
=
economicData
.
FirstOrDefault
(
t
=>
t
.
AccountingUnit
==
dept
.
Department
);
workDoctor
=
info
.
Data
.
FirstOrDefault
(
t
=>
t
.
AccountingUnit
==
dept
.
Department
);
workDoctor
=
info
.
Data
.
FirstOrDefault
(
t
=>
t
.
AccountingUnit
==
dept
.
Department
);
}
}
else
if
(
UnitType
.
医技组
==
unitType
&&
workDoctor
==
null
)
{
workDoctor
=
info
.
Data
.
FirstOrDefault
(
t
=>
t
.
AccountingUnit
==
dept
.
Department
&&
t
.
UnitType
==
UnitType
.
医生组
.
ToString
());
}
//保底绩效
//保底绩效
var
minimum
=
baiscnormList
.
FirstOrDefault
(
t
=>
t
.
PositionName
==
dept
.
MinimumReference
);
var
minimum
=
baiscnormList
.
FirstOrDefault
(
t
=>
t
.
PositionName
==
dept
.
MinimumReference
);
if
(!
string
.
IsNullOrEmpty
(
dept
.
MinimumReference
)
&&
minimum
!=
null
)
if
(!
string
.
IsNullOrEmpty
(
dept
.
MinimumReference
)
&&
minimum
!=
null
)
...
...
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
View file @
000b5bb0
...
@@ -165,6 +165,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<im_a
...
@@ -165,6 +165,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<im_a
var
avg
=
resAccount
.
Max
(
t
=>
t
.
Avg
);
var
avg
=
resAccount
.
Max
(
t
=>
t
.
Avg
);
var
basicRule
=
basicRuleList
.
FirstOrDefault
(
t
=>
t
.
UnitType
==
(
UnitType
)
accountbasic
.
UnitType
);
var
basicRule
=
basicRuleList
.
FirstOrDefault
(
t
=>
t
.
UnitType
==
(
UnitType
)
accountbasic
.
UnitType
);
if
(
basicRule
==
null
)
continue
;
var
empolyee
=
empolyeeList
.
FirstOrDefault
(
t
=>
t
.
AccountType
==
basicRule
.
AccountUnitType
.
ToString
()
&&
t
.
AccountingUnit
==
accountbasic
.
DoctorAccountingUnit
);
var
empolyee
=
empolyeeList
.
FirstOrDefault
(
t
=>
t
.
AccountType
==
basicRule
.
AccountUnitType
.
ToString
()
&&
t
.
AccountingUnit
==
accountbasic
.
DoctorAccountingUnit
);
if
(
empolyee
==
null
)
if
(
empolyee
==
null
)
...
...
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