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
8b5bea24
Commit
8b5bea24
authored
May 16, 2022
by
1391696987
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手工录入登录角色判断修改
parent
da587975
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
performance/Performance.Services/EmployeeService.cs
+20
-7
No files found.
performance/Performance.Services/EmployeeService.cs
View file @
8b5bea24
...
...
@@ -1259,7 +1259,11 @@ public List<GatherDropResponse> GetGatherDrop(Gather gather)
var
takeOut
=
new
[]
{
"核算单元(医技组)"
,
"核算单元(医生组)"
,
"核算单元(护理组)"
,
" "
,
""
};
if
(
username
.
Login
==
"admin"
)
var
userrole
=
userroleRepository
.
GetEntity
(
t
=>
t
.
UserID
==
gather
.
UserId
);
if
(
userrole
==
null
)
throw
new
PerformanceException
(
"用户未绑定角色"
);
var
roles
=
new
int
[]
{
(
int
)
Role
.
医院管理员
,
(
int
)
Role
.
绩效管理员
,
(
int
)
Role
.
绩效核算办
};
if
(!
roles
.
Contains
(
userrole
.
RoleID
))
{
var
types
=
new
[]
{
(
int
)
SheetType
.
OtherIncome
,
(
int
)
SheetType
.
Expend
,
(
int
)
SheetType
.
Workload
,
(
int
)
SheetType
.
SpecialUnit
};
...
...
@@ -1419,20 +1423,29 @@ public GatherResponse GetGatherTotal(Gather gather)
.
Select
(
s
=>
Regex
.
Replace
(
s
.
SheetName
.
Replace
(
" "
,
""
).
Replace
(
"."
,
""
),
"[0-9]"
,
""
))
.
Distinct
().
ToList
();
if
(
userLogin
.
Login
!=
"admin"
)
var
userrole
=
userroleRepository
.
GetEntity
(
t
=>
t
.
UserID
==
gather
.
UserId
);
if
(
userrole
==
null
)
throw
new
PerformanceException
(
"用户未绑定角色"
);
var
roles
=
new
int
[]
{
(
int
)
Role
.
医院管理员
,
(
int
)
Role
.
绩效管理员
,
(
int
)
Role
.
绩效核算办
};
List
<
ex_result_gather
>
exresultgather
=
new
List
<
ex_result_gather
>();
if
(!
roles
.
Contains
(
userrole
.
RoleID
))
{
if
(
userSource
.
Count
()
!=
0
)
if
(
userSource
.
Count
()
!=
0
)
{
exp
=
exp
.
And
(
t
=>
userSource
.
Contains
(
t
.
Source
));
var
hasDepartment
=
perdeptdicRepository
.
GetEntities
(
p
=>
p
.
AccountingUnit
.
Contains
(
userLogin
.
Department
)).
Select
(
s
=>
s
.
HISDeptName
).
Distinct
().
ToList
();
exp
=
exp
.
And
(
t
=>
hasDepartment
.
Contains
(
t
.
Department
));
}
}
List
<
ex_result_gather
>
exresultgather
=
new
List
<
ex_result_gather
>();
if
(
userSource
.
Count
()
!=
0
)
{
exresultgather
=
exresultgatherRepository
.
GetEntities
(
exp
);
}
}
else
{
exresultgather
=
exresultgatherRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
gather
.
AllotId
);
}
var
datas
=
exresultgather
.
GroupBy
(
t
=>
new
{
t
.
Department
,
t
.
Source
,
t
.
Category
,
t
.
Submitter
})
...
...
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