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
c561c247
Commit
c561c247
authored
Mar 12, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/v2020morge' into v2020morge
parents
14107b79
9c264cdf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
15 deletions
+20
-15
performance/Performance.EntityModels/Entity/report_performance_category.cs
+18
-13
performance/Performance.Services/RoleService.cs
+2
-2
No files found.
performance/Performance.EntityModels/Entity/report_performance_category.cs
View file @
c561c247
...
@@ -7,43 +7,48 @@
...
@@ -7,43 +7,48 @@
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
{
/// <summary>
/// <summary>
///
///
/// </summary>
/// </summary>
[
Table
(
"report_performance_category"
)]
[
Table
(
"report_performance_category"
)]
public
class
report_performance_category
public
class
report_performance_category
{
{
/// <summary>
/// <summary>
///
///
/// </summary>
/// </summary>
public
string
Category
{
get
;
set
;
}
[
Key
]
public
int
Id
{
get
;
set
;
}
/// <summary>
/// <summary>
///
///
/// </summary>
/// </summary>
public
int
HospitalId
{
get
;
set
;
}
public
int
HospitalId
{
get
;
set
;
}
/// <summary>
/// <summary>
///
///
/// </summary>
/// </summary>
public
string
Original
{
get
;
set
;
}
public
int
Year
{
get
;
set
;
}
/// <summary>
/// <summary>
///
///
/// </summary>
/// </summary>
public
string
ItemName
{
get
;
set
;
}
public
int
Month
{
get
;
set
;
}
/// <summary>
/// <summary>
///
///
/// </summary>
/// </summary>
public
int
Year
{
get
;
set
;
}
public
string
Category
{
get
;
set
;
}
/// <summary>
/// <summary>
///
///
/// </summary>
/// </summary>
public
int
Month
{
get
;
set
;
}
public
string
Original
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
ItemName
{
get
;
set
;
}
}
}
}
}
performance/Performance.Services/RoleService.cs
View file @
c561c247
...
@@ -62,10 +62,10 @@ public List<RoleResponse> GetUsersRole(int userid)
...
@@ -62,10 +62,10 @@ public List<RoleResponse> GetUsersRole(int userid)
var
ParentUser
=
_userRepository
.
GetEntities
(
c
=>
c
.
ParentID
==
userid
);
var
ParentUser
=
_userRepository
.
GetEntities
(
c
=>
c
.
ParentID
==
userid
);
if
(
user
.
ParentID
!=
null
||
user
.
ParentID
==
0
)
if
(
user
.
ParentID
!=
null
||
user
.
ParentID
==
0
)
{
{
ParentUser
=
_userRepository
.
GetEntities
(
c
=>
c
.
ID
==
user
.
ParentID
);
ParentUser
=
_userRepository
.
GetEntities
(
c
=>
c
.
Parent
ID
==
user
.
ParentID
);
}
}
if
(
u
ser
!=
null
)
if
(
ParentU
ser
!=
null
)
{
{
foreach
(
var
sysUser
in
ParentUser
)
foreach
(
var
sysUser
in
ParentUser
)
{
{
...
...
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