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
26996e64
Commit
26996e64
authored
Jan 25, 2021
by
lcx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v20201230yubei' into v2020morge-graphql
parents
1fa1003f
f460e96e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletions
+33
-1
performance/Performance.Api/Controllers/SecondAllotController.cs
+2
-1
performance/Performance.Services/SecondAllotService.cs
+31
-0
No files found.
performance/Performance.Api/Controllers/SecondAllotController.cs
View file @
26996e64
...
...
@@ -446,7 +446,8 @@ public ApiResponse SecondPrint(int secondid)
public
ApiResponse
DeptComputeDetail
(
int
allotId
)
{
var
userId
=
claimService
.
GetUserId
();
var
data
=
secondAllotService
.
DeptComputeDetail
(
userId
,
allotId
,
out
int
isShowManage
);
//var data = secondAllotService.DeptComputeDetail(userId, allotId, out int isShowManage);
var
data
=
secondAllotService
.
DeptComputeDetailList
(
userId
,
allotId
,
out
int
isShowManage
);
return
new
ApiResponse
(
ResponseType
.
OK
,
new
{
isShowManage
,
data
});
}
}
...
...
performance/Performance.Services/SecondAllotService.cs
View file @
26996e64
...
...
@@ -1796,6 +1796,37 @@ public List<SecondPerforResponse> DeptComputeDetail(int userId, int allotId, out
return
result
;
}
public
List
<
DeptDataDetails
>
DeptComputeDetailList
(
int
userId
,
int
allotId
,
out
int
isShowManage
)
{
var
user
=
perforUserRepository
.
GetEntity
(
t
=>
t
.
ID
==
userId
);
if
(
user
==
null
)
throw
new
NotImplementedException
(
"人员ID无效"
);
var
deptDatas
=
new
List
<
DeptDataDetails
>();
var
allot
=
perforPerallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
allotId
);
isShowManage
=
computeService
.
IsShowManage
(
allotId
);
var
userrole
=
userroleRepository
.
GetEntity
(
t
=>
t
.
UserID
==
userId
);
var
role
=
roleRepository
.
GetEntity
(
t
=>
t
.
ID
==
userrole
.
RoleID
);
Dictionary
<
int
,
string
>
dict
=
new
Dictionary
<
int
,
string
>
{
{
application
.
DirectorRole
,
AccountUnitType
.
科主任
.
ToString
()
},
{
application
.
NurseRole
,
AccountUnitType
.
护士长
.
ToString
()
},
{
application
.
OfficeRole
,
AccountUnitType
.
行政中层
.
ToString
()
},
{
application
.
SpecialRole
,
AccountUnitType
.
科主任
.
ToString
()
},
};
if
(!
dict
.
Keys
.
Contains
(
role
.
Type
.
Value
))
return
new
List
<
DeptDataDetails
>();
var
computes
=
rescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
AccountingUnit
==
user
.
Department
&&
t
.
AccountType
==
dict
[
role
.
Type
.
Value
]);
if
(
computes
==
null
||
!
computes
.
Any
())
return
new
List
<
DeptDataDetails
>();
foreach
(
var
item
in
computes
)
{
deptDatas
.
Add
(
computeService
.
GetDoctorDetail
(
item
.
ID
));
}
return
deptDatas
;
}
/// <summary>
/// 获取一次次绩效结果
/// </summary>
...
...
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