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
6b93e79f
Commit
6b93e79f
authored
Sep 18, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
其他绩效驳回时,去除校验
parent
094634d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
performance/Performance.Services/EmployeeService.cs
+9
-6
No files found.
performance/Performance.Services/EmployeeService.cs
View file @
6b93e79f
...
@@ -502,20 +502,23 @@ public bool DeleteApr(int id)
...
@@ -502,20 +502,23 @@ public bool DeleteApr(int id)
/// <returns></returns>
/// <returns></returns>
public
bool
ConfirmAudit
(
int
userid
,
AprAmountAuditRequest
request
)
public
bool
ConfirmAudit
(
int
userid
,
AprAmountAuditRequest
request
)
{
{
if
(
request
?.
Members
==
null
||
!
request
.
Members
.
Any
())
if
(
request
.
IsPass
==
1
)
throw
new
PerformanceException
(
"审核信息无效,请确认"
);
foreach
(
var
item
in
request
.
Members
)
{
{
if
(
string
.
IsNullOrEmpty
(
item
.
DoctorName
)
&&
string
.
IsNullOrEmpty
(
item
.
PersonnelNumber
))
if
(
request
?.
Members
==
null
||
!
request
.
Members
.
Any
(
))
throw
new
PerformanceException
(
"审核信息无效,请确认"
);
throw
new
PerformanceException
(
"审核信息无效,请确认"
);
foreach
(
var
item
in
request
.
Members
)
{
if
(
string
.
IsNullOrEmpty
(
item
.
DoctorName
)
&&
string
.
IsNullOrEmpty
(
item
.
PersonnelNumber
))
throw
new
PerformanceException
(
"审核信息无效,请确认"
);
}
}
}
var
allApramounts
=
perapramountRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
request
.
AllotId
);
var
allApramounts
=
perapramountRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
request
.
AllotId
);
foreach
(
var
member
in
request
.
Members
)
foreach
(
var
member
in
request
.
Members
)
{
{
var
apramounts
=
allApramounts
?.
Where
(
t
=>
(
t
.
DoctorName
??
""
)
==
member
.
DoctorName
&&
(
t
.
PersonnelNumber
??
""
)
==
member
.
PersonnelNumber
);
var
apramounts
=
allApramounts
?.
Where
(
t
=>
(
t
.
DoctorName
??
""
)
==
member
.
DoctorName
&&
(
t
.
PersonnelNumber
??
""
)
==
member
.
PersonnelNumber
);
if
(
apramounts
==
null
||
!
apramounts
.
Any
(
))
if
(
request
.
IsPass
==
1
&&
(
apramounts
==
null
||
!
apramounts
.
Any
()
))
throw
new
PerformanceException
(
$"工号为“
{
member
.
PersonnelNumber
}
”的审核信息无效,请确认"
);
throw
new
PerformanceException
(
$"工号为“
{
member
.
PersonnelNumber
}
”的审核信息无效,请确认"
);
foreach
(
var
item
in
apramounts
)
foreach
(
var
item
in
apramounts
)
...
...
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