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
c557bb9a
Commit
c557bb9a
authored
Oct 13, 2020
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
护理部审核完善
parent
346ed792
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
performance/Performance.Services/SecondAllotService.cs
+13
-0
No files found.
performance/Performance.Services/SecondAllotService.cs
View file @
c557bb9a
...
...
@@ -17,6 +17,7 @@ namespace Performance.Services
public
class
SecondAllotService
:
IAutoInjection
{
private
readonly
Application
application
;
private
readonly
PerforHospitalRepository
hospitalRepository
;
private
readonly
PerforUserRepository
perforUserRepository
;
private
readonly
PerforUserhospitalRepository
perforUserhospitalRepository
;
private
readonly
PerforPerallotRepository
perforPerallotRepository
;
...
...
@@ -40,6 +41,7 @@ public class SecondAllotService : IAutoInjection
private
readonly
List
<
ag_tempitem
>
tempitems
=
new
List
<
ag_tempitem
>();
public
SecondAllotService
(
IOptions
<
Application
>
application
,
PerforHospitalRepository
hospitalRepository
,
PerforUserRepository
perforUserRepository
,
PerforUserhospitalRepository
perforUserhospitalRepository
,
PerforPerallotRepository
perforPerallotRepository
,
...
...
@@ -62,6 +64,7 @@ public class SecondAllotService : IAutoInjection
PerforRescomputeRepository
rescomputeRepository
)
{
this
.
application
=
application
.
Value
;
this
.
hospitalRepository
=
hospitalRepository
;
this
.
perforUserRepository
=
perforUserRepository
;
this
.
perforUserhospitalRepository
=
perforUserhospitalRepository
;
this
.
perforPerallotRepository
=
perforPerallotRepository
;
...
...
@@ -1356,6 +1359,16 @@ public bool ConfirmAudit(int userId, SecondAuditRequest request)
if
(
result
&&
request
.
IsPass
==
1
)
{
// 护理部审核
var
allot
=
perforPerallotRepository
.
GetEntity
(
w
=>
w
.
ID
==
second
.
AllotId
);
if
(
allot
==
null
)
return
true
;
var
hospital
=
hospitalRepository
.
GetEntity
(
w
=>
w
.
ID
==
allot
.
HospitalId
);
if
(
hospital
==
null
)
return
true
;
if
(
hospital
.
IsOpenNursingDeptAudit
!=
1
||
second
.
NursingDeptStatus
!=
3
)
return
true
;
var
computes
=
new
List
<
ag_compute
>();
if
(
second
.
SubmitType
==
1
)
{
...
...
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