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
df5a481b
Commit
df5a481b
authored
Jun 07, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
录入科室自动带出登录名
parent
259016d2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
performance/Performance.Services/EmployeeService.cs
+2
-12
No files found.
performance/Performance.Services/EmployeeService.cs
View file @
df5a481b
...
@@ -729,18 +729,8 @@ public view_per_apr_amount GetEmployeeMessage(int allotId, string personnelNumbe
...
@@ -729,18 +729,8 @@ public view_per_apr_amount GetEmployeeMessage(int allotId, string personnelNumbe
/// <returns></returns>
/// <returns></returns>
public
string
GetTypeInDepartment
(
int
userId
)
public
string
GetTypeInDepartment
(
int
userId
)
{
{
var
userrole
=
userroleRepository
.
GetEntity
(
t
=>
t
.
UserID
==
userId
);
var
user
=
userRepository
.
GetEntity
(
t
=>
t
.
ID
==
userId
);
if
(
userrole
==
null
)
throw
new
PerformanceException
(
"用户未绑定角色"
);
return
user
?.
Login
??
""
;
string
typeIn
=
""
;
// 护士长/科主任/特殊科室/行政科室 录入科室为核算单元
if
(
new
int
[]
{
3
,
4
,
9
,
10
}.
Contains
(
userrole
.
RoleID
))
typeIn
=
userRepository
.
GetEntity
(
w
=>
w
.
ID
==
userId
)?.
Department
??
""
;
// 非 护士长/科主任/特殊科室/行政科室 则为角色名称
else
typeIn
=
_roleRepository
.
GetEntity
(
w
=>
w
.
ID
==
userrole
.
RoleID
)?.
RoleName
??
""
;
return
typeIn
;
}
}
#
region
科室考核
#
region
科室考核
...
...
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