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
6777d66a
Commit
6777d66a
authored
Dec 13, 2021
by
纪旭 韦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下拉框补全
parent
d74bb436
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
performance/Performance.Services/EmployeeService.cs
+20
-3
No files found.
performance/Performance.Services/EmployeeService.cs
View file @
6777d66a
...
@@ -1137,8 +1137,7 @@ public ComparisonResponse GetComparison(ComparisonPagingRequest request)
...
@@ -1137,8 +1137,7 @@ public ComparisonResponse GetComparison(ComparisonPagingRequest request)
public
List
<
GatherDropResponse
>
GetGatherDrop
(
int
allotId
)
public
List
<
GatherDropResponse
>
GetGatherDrop
(
int
allotId
)
{
{
again
:
var
perSheets
=
perforPersheetRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
new
[]
{
3
,
4
,
7
}.
Contains
(
t
.
SheetType
.
Value
)).
ToList
();
var
perSheets
=
perforPersheetRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
new
[]
{
3
,
4
,
7
}.
Contains
(
t
.
SheetType
.
Value
));
if
(
perSheets
==
null
||
!
perSheets
.
Any
())
if
(
perSheets
==
null
||
!
perSheets
.
Any
())
{
{
var
allot
=
perallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
allotId
);
var
allot
=
perallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
allotId
);
...
@@ -1153,13 +1152,31 @@ public List<GatherDropResponse> GetGatherDrop(int allotId)
...
@@ -1153,13 +1152,31 @@ public List<GatherDropResponse> GetGatherDrop(int allotId)
// 先取上一个月的绩效Id,若没有取最后一个月的绩效Id,若都不存在则获取allotId为-1的数据
// 先取上一个月的绩效Id,若没有取最后一个月的绩效Id,若都不存在则获取allotId为-1的数据
allotId
=
index
+
1
<
list
.
Count
?
list
[
index
+
1
].
ID
:
list
.
First
().
ID
;
allotId
=
index
+
1
<
list
.
Count
?
list
[
index
+
1
].
ID
:
list
.
First
().
ID
;
if
(
allotId
==
allot
.
ID
)
return
new
List
<
GatherDropResponse
>();
if
(
allotId
==
allot
.
ID
)
return
new
List
<
GatherDropResponse
>();
goto
again
;
}
}
//var sheets = perSheets.Select(t => new GatherDropResponse() { Label = t.SheetName, Value = t.SheetName });
//var sheets = perSheets.Select(t => new GatherDropResponse() { Label = t.SheetName, Value = t.SheetName });
var
imHeaders
=
imheaderRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
var
imHeaders
=
imheaderRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
foreach
(
var
item
in
exresultgatherRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
))
{
perSheets
.
Add
(
new
per_sheet
{
SheetName
=
item
.
Source
}
);
imHeaders
.
Add
(
new
im_header
{
CellValue
=
item
.
Category
}
);
}
var
result
=
new
List
<
GatherDropResponse
>();
var
result
=
new
List
<
GatherDropResponse
>();
var
cellValue
=
new
[]
{
"核算单元(医技组)"
,
"核算单元(医生组)"
,
"核算单元(护理组)"
,
"科室名称"
};
var
cellValue
=
new
[]
{
"核算单元(医技组)"
,
"核算单元(医生组)"
,
"核算单元(护理组)"
,
"科室名称"
};
foreach
(
var
sheet
in
perSheets
)
foreach
(
var
sheet
in
perSheets
)
...
...
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