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
a8426665
Commit
a8426665
authored
Jul 25, 2018
by
mduppanapudi-nisum-com
Committed by
tdutta-nisum-com
Jul 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MT-80 Ui changes (#59)
parent
325d4e73
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
8 deletions
+21
-8
RoleMappingServiceImpl.java
...java/com/nisum/mytime/service/RoleMappingServiceImpl.java
+1
-1
LoginController.js
src/main/webapp/WEB-INF/controllers/LoginController.js
+17
-4
ManagerReporteesController.js
.../webapp/WEB-INF/controllers/ManagerReporteesController.js
+1
-1
MyDetailsController.js
src/main/webapp/WEB-INF/controllers/MyDetailsController.js
+1
-1
ReporteesController.js
src/main/webapp/WEB-INF/controllers/ReporteesController.js
+1
-1
No files found.
src/main/java/com/nisum/mytime/service/RoleMappingServiceImpl.java
View file @
a8426665
...
...
@@ -71,7 +71,7 @@ public class RoleMappingServiceImpl implements RoleMappingService {
String
roleName
=
null
;
if
(!
roleInfoMap
.
isEmpty
())
{
Map
.
Entry
<
Integer
,
String
>
entry
=
roleInfoMap
.
entrySet
().
iterator
().
next
();
roleName
=
entry
.
getValu
e
();
roleName
=
roleInfoRepo
.
findByRoleId
(
entry
.
getValue
()).
getRoleNam
e
();
}
else
{
roleName
=
null
;
}
...
...
src/main/webapp/WEB-INF/controllers/LoginController.js
View file @
a8426665
...
...
@@ -261,8 +261,21 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window
menuItems
.
push
({
"menu"
:
"My Org"
,
"icon"
:
"fa fa-address-card-o fa-2x"
,
"path"
:
"templates/myOrg.html"
});
menuItems
.
push
({
"menu"
:
"My Profile"
,
"icon"
:
"fa fa-address-book-o fa-2x"
,
"path"
:
"templates/profile.html"
});
menuItems
.
push
({
"menu"
:
"Import Data"
,
"icon"
:
"fa fa-upload fa-2x"
,
"path"
:
"templates/exportData.html"
});
}
else
if
(
role
==
"Delivery Lead"
){
menuItems
.
push
({
"menu"
:
"Manage Employees"
,
"icon"
:
"fa fa-user-plus fa-2x"
,
"path"
:
"templates/roles.html"
});
menuItems
.
push
({
"menu"
:
"Manage Projects"
,
"icon"
:
"fa fa-tasks fa-2x"
,
"path"
:
"templates/projects.html"
});
menuItems
.
push
({
"menu"
:
"Employee Login Details"
,
"icon"
:
"fa fa-users fa-2x"
,
"path"
:
"templates/employees.html"
});
menuItems
.
push
({
"menu"
:
"Login Reports"
,
"icon"
:
"fa fa-pie-chart fa-2x"
,
"path"
:
"templates/reports.html"
});
menuItems
.
push
({
"menu"
:
"Attendance Report"
,
"icon"
:
"fa fa-bar-chart fa-2x"
,
"path"
:
"templates/attendanceReport.html"
});
menuItems
.
push
({
"menu"
:
"Shift Details"
,
"icon"
:
"fa fa-superpowers fa-2x"
,
"path"
:
"templates/shiftdetails.html"
});
menuItems
.
push
({
"menu"
:
"ReSync Data"
,
"icon"
:
"fa fa-recycle fa-2x"
,
"path"
:
"templates/resyncData.html"
});
menuItems
.
push
({
"menu"
:
"My Login Details"
,
"icon"
:
"fa fa-indent fa-2x"
,
"path"
:
"templates/employee.html"
});
menuItems
.
push
({
"menu"
:
"My Project Allocations"
,
"icon"
:
"fa fa-address-card-o fa-2x"
,
"path"
:
"templates/myProjectAllocations.html"
});
menuItems
.
push
({
"menu"
:
"My Org"
,
"icon"
:
"fa fa-address-card-o fa-2x"
,
"path"
:
"templates/myOrg.html"
});
menuItems
.
push
({
"menu"
:
"My Profile"
,
"icon"
:
"fa fa-address-book-o fa-2x"
,
"path"
:
"templates/profile.html"
});
menuItems
.
push
({
"menu"
:
"Import Data"
,
"icon"
:
"fa fa-upload fa-2x"
,
"path"
:
"templates/exportData.html"
});
}
else
if
(
role
==
"Manager"
){
menuItems
.
push
({
"menu"
:
"Manage Team"
,
"icon"
:
"fa fa-sitemap fa-2x"
,
"path"
:
"templates/projectDetails.html"
});
//
menuItems.push({"menu" : "Manage Team","icon" : "fa fa-sitemap fa-2x","path" : "templates/projectDetails.html"});
menuItems
.
push
({
"menu"
:
"View Projects"
,
"icon"
:
"fa fa-tasks fa-2x"
,
"path"
:
"templates/viewProjects.html"
});
menuItems
.
push
({
"menu"
:
"Reportee Details"
,
"icon"
:
"fa fa-users fa-2x"
,
"path"
:
"templates/reportees.html"
});
menuItems
.
push
({
"menu"
:
"My Login Details"
,
"icon"
:
"fa fa-indent fa-2x"
,
"path"
:
"templates/employee.html"
});
...
...
@@ -271,7 +284,7 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window
menuItems
.
push
({
"menu"
:
"My Profile"
,
"icon"
:
"fa fa-address-book-o fa-2x"
,
"path"
:
"templates/profile.html"
});
}
else
if
(
role
==
"HR Manager"
){
menuItems
.
push
({
"menu"
:
"Manage Employees"
,
"icon"
:
"fa fa-user-plus fa-2x"
,
"path"
:
"templates/roles.html"
});
menuItems
.
push
({
"menu"
:
"Manage Team"
,
"icon"
:
"fa fa-sitemap fa-2x"
,
"path"
:
"templates/projectDetails.html"
});
//
menuItems.push({"menu" : "Manage Team","icon" : "fa fa-sitemap fa-2x","path" : "templates/projectDetails.html"});
menuItems
.
push
({
"menu"
:
"Manage Projects"
,
"icon"
:
"fa fa-tasks fa-2x"
,
"path"
:
"templates/projects.html"
});
menuItems
.
push
({
"menu"
:
"Attendance Report"
,
"icon"
:
"fa fa-bar-chart fa-2x"
,
"path"
:
"templates/attendanceReport.html"
});
menuItems
.
push
({
"menu"
:
"Employee Login Details"
,
"icon"
:
"fa fa-users fa-2x"
,
"path"
:
"templates/employees.html"
});
...
...
@@ -292,7 +305,7 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window
}
else
if
(
role
==
"Delivery Manager"
||
role
==
"Director"
){
menuItems
.
push
({
"menu"
:
"Manage Accounts"
,
"icon"
:
"fa fa fa-user fa-2x"
,
"path"
:
"templates/accounts.html"
});
menuItems
.
push
({
"menu"
:
"Manage Employees"
,
"icon"
:
"fa fa-user-plus fa-2x"
,
"path"
:
"templates/roles.html"
});
menuItems
.
push
({
"menu"
:
"Manage Team"
,
"icon"
:
"fa fa-sitemap fa-2x"
,
"path"
:
"templates/projectDetails.html"
});
//
menuItems.push({"menu" : "Manage Team","icon" : "fa fa-sitemap fa-2x","path" : "templates/projectDetails.html"});
menuItems
.
push
({
"menu"
:
"Manage Domains"
,
"icon"
:
"fa fa-handshake-o"
,
"path"
:
"templates/domains.html"
});
menuItems
.
push
({
"menu"
:
"Manage Projects"
,
"icon"
:
"fa fa-tasks fa-2x"
,
"path"
:
"templates/projects.html"
});
menuItems
.
push
({
"menu"
:
"Manage Visa"
,
"icon"
:
"fa fa-tasks fa-2x"
,
"path"
:
"templates/visaList.html"
});
...
...
@@ -311,7 +324,7 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window
menuItems
.
push
({
"menu"
:
"My Org"
,
"icon"
:
"fa fa-address-card-o fa-2x"
,
"path"
:
"templates/myOrg.html"
});
menuItems
.
push
({
"menu"
:
"My Profile"
,
"icon"
:
"fa fa-address-book-o fa-2x"
,
"path"
:
"templates/profile.html"
});
}
else
{
menuItems
.
push
({
"menu"
:
"My Team"
,
"icon"
:
"fa fa-futbol-o fa-2x"
,
"path"
:
"templates/myTeam.html"
});
//
menuItems.push({"menu" : "My Team","icon" : "fa fa-futbol-o fa-2x","path" : "templates/myTeam.html"});
menuItems
.
push
({
"menu"
:
"My Project Allocations"
,
"icon"
:
"fa fa-life-ring fa-2x"
,
"path"
:
"templates/myProjectAllocations.html"
});
menuItems
.
push
({
"menu"
:
"My Login Details"
,
"icon"
:
"fa fa-indent fa-2x"
,
"path"
:
"templates/employee.html"
});
menuItems
.
push
({
"menu"
:
"My Org"
,
"icon"
:
"fa fa-address-card-o fa-2x"
,
"path"
:
"templates/myOrg.html"
});
...
...
src/main/webapp/WEB-INF/controllers/ManagerReporteesController.js
View file @
a8426665
...
...
@@ -28,7 +28,7 @@ myApp.controller("reporteesController", function($scope, $http, myFactory, $mdDi
{
field
:
'dateOfLogin'
,
displayName
:
'Date'
,
enableColumnMenu
:
true
,
enableSorting
:
true
},
{
field
:
'firstLogin'
,
displayName
:
'Login Time'
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'lastLogout'
,
displayName
:
'Logout Time'
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'totalLoginTime'
,
displayName
:
'Total Hours(HH:MM)'
,
enableColumnMenu
:
false
,
enableSorting
:
false
}
{
field
:
'totalLoginTime'
,
displayName
:
'Total Hours(HH:MM
:SS
)'
,
enableColumnMenu
:
false
,
enableSorting
:
false
}
]
};
$scope
.
gridOptions
.
data
=
[];
...
...
src/main/webapp/WEB-INF/controllers/MyDetailsController.js
View file @
a8426665
...
...
@@ -20,7 +20,7 @@ myApp.controller("employeeController", function($scope, $http, myFactory, $mdDia
{
field
:
'dateOfLogin'
,
displayName
:
'Date'
,
enableColumnMenu
:
true
,
enableSorting
:
true
},
{
field
:
'firstLogin'
,
displayName
:
'Login Time'
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'lastLogout'
,
displayName
:
'Logout Time'
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'totalLoginTime'
,
displayName
:
'Total Hours(HH:MM)'
,
enableColumnMenu
:
false
,
enableSorting
:
false
}
{
field
:
'totalLoginTime'
,
displayName
:
'Total Hours(HH:MM
:SS
)'
,
enableColumnMenu
:
false
,
enableSorting
:
false
}
]
};
$scope
.
gridOptions
.
data
=
[];
...
...
src/main/webapp/WEB-INF/controllers/ReporteesController.js
View file @
a8426665
...
...
@@ -28,7 +28,7 @@ myApp.controller("employeesController", function($scope, $http, myFactory, $mdDi
{
field
:
'dateOfLogin'
,
displayName
:
'Date'
,
enableColumnMenu
:
true
,
enableSorting
:
true
},
{
field
:
'firstLogin'
,
displayName
:
'Login Time'
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'lastLogout'
,
displayName
:
'Logout Time'
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'totalLoginTime'
,
displayName
:
'Total Hours(HH:MM)'
,
enableColumnMenu
:
false
,
enableSorting
:
false
}
{
field
:
'totalLoginTime'
,
displayName
:
'Total Hours(HH:MM
:SS
)'
,
enableColumnMenu
:
false
,
enableSorting
:
false
}
]
};
$scope
.
gridOptions
.
data
=
[];
...
...
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