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
eb12f21a
Commit
eb12f21a
authored
Mar 29, 2019
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://192.168.0.110:8880/zry/performance
into develop
parents
ad933cd9
b80bfcfd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
performance/Performance.Services/ComputeService.cs
+4
-2
performance/Performance.Services/SheetSevice.cs
+4
-3
No files found.
performance/Performance.Services/ComputeService.cs
View file @
eb12f21a
...
...
@@ -154,13 +154,15 @@ public DeptDetailResponse GetDepartmentDetail(DeptDetailRequest request)
if
(
sheetWorkload
==
null
)
return
null
;
var
dataWorkloadList
=
_perforImDataRepository
.
GetEntities
(
t
=>
t
.
SheetID
==
sheetWorkload
.
ID
&&
t
.
IsTotal
!=
1
&&
t
.
AccountingUnit
==
nurse
.
AccountingUnit
);
dataWorkloadList
.
ForEach
(
t
=>
response
.
Workload
.
Add
(
new
DeptDetail
{
ItemName
=
t
.
TypeName
,
ItemValue
=
t
.
CellValue
??
0
}));
if
(
dataWorkloadList
!=
null
&&
dataWorkloadList
.
Count
>
0
)
dataWorkloadList
.
ForEach
(
t
=>
response
.
Workload
.
Add
(
new
DeptDetail
{
ItemName
=
t
.
TypeName
,
ItemValue
=
t
.
CellValue
??
0
}));
var
sheetEconomic
=
sheetList
.
FirstOrDefault
(
t
=>
t
.
SheetType
==
(
int
)
SheetType
.
ComputeEconomic
);
if
(
sheetEconomic
==
null
)
return
null
;
var
dataEconomicList
=
_perforImDataRepository
.
GetEntities
(
t
=>
t
.
SheetID
==
sheetEconomic
.
ID
&&
t
.
UnitType
==
2
&&
t
.
IsTotal
!=
1
&&
t
.
AccountingUnit
==
nurse
.
AccountingUnit
);
dataEconomicList
.
ForEach
(
t
=>
response
.
Economic
.
Add
(
new
DeptDetail
{
ItemName
=
t
.
TypeName
,
ItemValue
=
t
.
CellValue
??
0
}));
if
(
dataEconomicList
!=
null
&&
dataEconomicList
.
Count
>
0
)
dataEconomicList
.
ForEach
(
t
=>
response
.
Economic
.
Add
(
new
DeptDetail
{
ItemName
=
t
.
TypeName
,
ItemValue
=
t
.
CellValue
??
0
}));
return
response
;
}
...
...
performance/Performance.Services/SheetSevice.cs
View file @
eb12f21a
...
...
@@ -396,8 +396,8 @@ private void EmployeeExport(int sheetID, SheetExportResponse response)
row
.
Data
.
Add
(
new
Cell
(
4
,
"职称"
,
1
,
1
,
false
,
true
));
row
.
Data
.
Add
(
new
Cell
(
5
,
"绩效基数核算参考对象"
,
1
,
1
,
false
,
true
));
row
.
Data
.
Add
(
new
Cell
(
6
,
"岗位系数"
,
1
,
1
,
false
,
true
));
row
.
Data
.
Add
(
new
Cell
(
7
,
"
考核得分率
"
,
1
,
1
,
false
,
true
));
row
.
Data
.
Add
(
new
Cell
(
8
,
"
医生姓名
"
,
1
,
1
,
false
,
true
));
row
.
Data
.
Add
(
new
Cell
(
7
,
"
参加工作时间
"
,
1
,
1
,
false
,
true
));
row
.
Data
.
Add
(
new
Cell
(
8
,
"
考核得分率
"
,
1
,
1
,
false
,
true
));
row
.
Data
.
Add
(
new
Cell
(
9
,
"出勤率"
,
1
,
1
,
false
,
true
));
row
.
Data
.
Add
(
new
Cell
(
10
,
"核算单元医生数"
,
1
,
1
,
false
,
true
));
row
.
Data
.
Add
(
new
Cell
(
11
,
"工作量绩效"
,
1
,
1
,
false
,
true
));
...
...
@@ -409,6 +409,7 @@ private void EmployeeExport(int sheetID, SheetExportResponse response)
for
(
int
i
=
0
;
i
<
employeeList
.
Count
();
i
++)
{
var
item
=
employeeList
.
ElementAt
(
i
);
var
workTime
=
item
.
WorkTime
!=
null
?
((
DateTime
)
item
.
WorkTime
).
ToString
(
"yyyy-MM-dd"
)
:
""
;
var
rowbody
=
new
Row
(
i
);
rowbody
.
Data
.
Add
(
new
Cell
(
1
,
item
.
AccountingUnit
,
1
,
1
,
false
,
false
));
rowbody
.
Data
.
Add
(
new
Cell
(
2
,
item
.
Department
,
1
,
1
,
false
,
false
));
...
...
@@ -416,7 +417,7 @@ private void EmployeeExport(int sheetID, SheetExportResponse response)
rowbody
.
Data
.
Add
(
new
Cell
(
4
,
item
.
JobTitle
,
1
,
1
,
false
,
true
));
rowbody
.
Data
.
Add
(
new
Cell
(
5
,
item
.
FitPeople
,
1
,
1
,
false
,
true
));
rowbody
.
Data
.
Add
(
new
Cell
(
6
,
item
.
PostCoefficient
,
1
,
1
,
false
,
true
));
rowbody
.
Data
.
Add
(
new
Cell
(
7
,
item
.
W
orkTime
,
1
,
1
,
false
,
true
));
rowbody
.
Data
.
Add
(
new
Cell
(
7
,
w
orkTime
,
1
,
1
,
false
,
true
));
rowbody
.
Data
.
Add
(
new
Cell
(
8
,
item
.
ScoreAverageRate
,
1
,
1
,
false
,
true
));
rowbody
.
Data
.
Add
(
new
Cell
(
9
,
item
.
Attendance
,
1
,
1
,
false
,
true
));
rowbody
.
Data
.
Add
(
new
Cell
(
10
,
item
.
PeopleNumber
,
1
,
1
,
false
,
true
));
...
...
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