Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mytime
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Narendar Vakiti
mytime
Commits
6acbfdff
Commit
6acbfdff
authored
Jul 19, 2018
by
bsatyanarayana-nisum-com
Committed by
tdutta-nisum-com
Jul 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MT-95_My_Org_Screen_data_not_populated (#28)
parent
66679862
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
AssignRolesController.js
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
+17
-0
No files found.
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
View file @
6acbfdff
...
...
@@ -79,6 +79,11 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
$scope
.
empSearchId
=
""
;
$scope
.
getUserRoles
();
}
$scope
.
refreshPageOrg
=
function
(){
$scope
.
getOrgEmps
();
}
var
gridOptionsReport
=
{
paginationPageSizes
:
[
10
,
20
,
30
,
40
,
50
,
100
],
paginationPageSize
:
10
,
...
...
@@ -107,6 +112,18 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
});
};
$scope
.
getOrgEmps
=
function
(){
$http
({
method
:
"GET"
,
url
:
appConfig
.
appUri
+
"user/getUserRoles"
}).
then
(
function
mySuccess
(
response
)
{
$scope
.
gridOptionsOrgView
.
data
=
response
.
data
;
},
function
myError
(
response
)
{
showAlert
(
"Something went wrong while fetching data!!!"
);
$scope
.
gridOptionsOrgView
.
data
=
[];
});
};
function
showAlert
(
message
)
{
$mdDialog
.
show
(
$mdDialog
.
alert
().
parent
(
angular
.
element
(
document
.
querySelector
(
'#popupContainer'
)))
...
...
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