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
2c6fcddc
Commit
2c6fcddc
authored
Jul 07, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/打印逻辑调整' into develop
parents
b9c84c1e
0e4d1e44
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
performance/Performance.Services/SecondAllotService.cs
+10
-3
No files found.
performance/Performance.Services/SecondAllotService.cs
View file @
2c6fcddc
...
@@ -2086,18 +2086,25 @@ public List<SecPrintResponse> Print(int secondId)
...
@@ -2086,18 +2086,25 @@ public List<SecPrintResponse> Print(int secondId)
var
second
=
agsecondallotRepository
.
GetEntity
(
t
=>
t
.
Id
==
secondId
);
var
second
=
agsecondallotRepository
.
GetEntity
(
t
=>
t
.
Id
==
secondId
);
if
(
second
==
null
)
return
new
List
<
SecPrintResponse
>();
if
(
second
==
null
)
return
new
List
<
SecPrintResponse
>();
var
allot
=
perallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
second
.
AllotId
);
if
(
allot
==
null
)
return
new
List
<
SecPrintResponse
>();
var
temps
=
agusetempRepository
.
GetEntities
(
w
=>
w
.
HospitalId
==
allot
.
HospitalId
&&
w
.
UnitType
==
second
.
UnitType
&&
w
.
Department
==
second
.
Department
);
var
useTempId
=
second
.
UseTempId
??
temps
?.
OrderByDescending
(
w
=>
w
.
Id
).
FirstOrDefault
().
UseTempId
;
//var computes = agcomputeRepository.GetEntities(t => t.SecondId == secondId);
//var computes = agcomputeRepository.GetEntities(t => t.SecondId == secondId);
//if (computes == null || !computes.Any())
//if (computes == null || !computes.Any())
// return new List<SecPrintResponse>();
// return new List<SecPrintResponse>();
List
<
SecPrintResponse
>
result
=
new
List
<
SecPrintResponse
>();
List
<
SecPrintResponse
>
result
=
new
List
<
SecPrintResponse
>();
if
(
second
.
UseTempId
.
HasValue
&&
second
.
U
seTempId
==
6
)
if
(
useTempId
.
HasValue
&&
u
seTempId
==
6
)
{
{
var
data
=
agothersourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
secondId
);
var
data
=
agothersourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
secondId
);
if
(
data
==
null
||
!
data
.
Any
())
return
new
List
<
SecPrintResponse
>();
if
(
data
==
null
||
!
data
.
Any
())
return
new
List
<
SecPrintResponse
>();
result
=
Mapper
.
Map
<
List
<
SecPrintResponse
>>(
data
);
result
=
Mapper
.
Map
<
List
<
SecPrintResponse
>>(
data
);
}
}
else
if
(
second
.
UseTempId
.
HasValue
&&
(
new
int
[]
{
9
,
10
}).
Contains
(
second
.
U
seTempId
.
Value
))
else
if
(
useTempId
.
HasValue
&&
(
new
int
[]
{
9
,
10
}).
Contains
(
u
seTempId
.
Value
))
{
{
var
data
=
agbodysourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
secondId
);
var
data
=
agbodysourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
secondId
);
if
(
data
==
null
||
!
data
.
Any
())
return
new
List
<
SecPrintResponse
>();
if
(
data
==
null
||
!
data
.
Any
())
return
new
List
<
SecPrintResponse
>();
...
@@ -2120,7 +2127,7 @@ public List<SecPrintResponse> Print(int secondId)
...
@@ -2120,7 +2127,7 @@ public List<SecPrintResponse> Print(int secondId)
NightWorkPerformance
=
w
.
NightWorkPerformance
,
NightWorkPerformance
=
w
.
NightWorkPerformance
,
}).
ToList
();
}).
ToList
();
}
}
else
else
if
(
useTempId
.
HasValue
&&
(
new
int
[]
{
7
,
8
}).
Contains
(
useTempId
.
Value
))
{
{
var
itemname
=
new
List
<
string
>
{
"人员工号"
,
"姓名"
,
"职称"
,
"职称绩效"
,
"工作量绩效工资"
,
"单项奖励小计"
,
"可分配绩效"
,
"医院其他绩效"
,
"夜班工作量绩效"
};
var
itemname
=
new
List
<
string
>
{
"人员工号"
,
"姓名"
,
"职称"
,
"职称绩效"
,
"工作量绩效工资"
,
"单项奖励小计"
,
"可分配绩效"
,
"医院其他绩效"
,
"夜班工作量绩效"
};
var
fixaitems
=
agfixatitemRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
secondId
&&
itemname
.
Contains
(
t
.
ItemName
));
var
fixaitems
=
agfixatitemRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
secondId
&&
itemname
.
Contains
(
t
.
ItemName
));
...
...
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