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
3573c278
Commit
3573c278
authored
Jun 25, 2018
by
Rajeshekar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MT-55[Rajeshekar]: Refactored the code,added project start date
parent
b374ad62
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
153 additions
and
45 deletions
+153
-45
UserController.java
...main/java/com/nisum/mytime/controller/UserController.java
+1
-0
ProjectServiceImpl.java
...ain/java/com/nisum/mytime/service/ProjectServiceImpl.java
+7
-4
LoginController.js
src/main/webapp/WEB-INF/controllers/LoginController.js
+26
-19
MyProjectAllocations.js
src/main/webapp/WEB-INF/controllers/MyProjectAllocations.js
+2
-0
ProjectTeamController.js
src/main/webapp/WEB-INF/controllers/ProjectTeamController.js
+5
-2
ProjectReports.png
src/main/webapp/WEB-INF/images/ProjectReports.png
+0
-0
chartsReport.jpg
src/main/webapp/WEB-INF/images/chartsReport.jpg
+0
-0
project-management.gif
src/main/webapp/WEB-INF/images/project-management.gif
+0
-0
projectManagement.png
src/main/webapp/WEB-INF/images/projectManagement.png
+0
-0
teamManagement.jpg
src/main/webapp/WEB-INF/images/teamManagement.jpg
+0
-0
reports.js
src/main/webapp/WEB-INF/js/reports.js
+65
-0
registerEmployee.html
src/main/webapp/WEB-INF/templates/registerEmployee.html
+3
-19
registerEmployee1.html
src/main/webapp/WEB-INF/templates/registerEmployee1.html
+43
-0
reports.html
src/main/webapp/WEB-INF/templates/reports.html
+1
-1
No files found.
src/main/java/com/nisum/mytime/controller/UserController.java
View file @
3573c278
...
@@ -39,6 +39,7 @@ public class UserController {
...
@@ -39,6 +39,7 @@ public class UserController {
public
ResponseEntity
<
EmployeeRoles
>
getEmployeeRole
(
public
ResponseEntity
<
EmployeeRoles
>
getEmployeeRole
(
@RequestParam
(
"emailId"
)
String
emailId
)
throws
MyTimeException
{
@RequestParam
(
"emailId"
)
String
emailId
)
throws
MyTimeException
{
EmployeeRoles
employeesRole
=
userService
.
getEmployeesRole
(
emailId
);
EmployeeRoles
employeesRole
=
userService
.
getEmployeesRole
(
emailId
);
System
.
out
.
println
(
"emailId"
+
emailId
+
"result"
+
employeesRole
);
return
new
ResponseEntity
<>(
employeesRole
,
HttpStatus
.
OK
);
return
new
ResponseEntity
<>(
employeesRole
,
HttpStatus
.
OK
);
}
}
...
...
src/main/java/com/nisum/mytime/service/ProjectServiceImpl.java
View file @
3573c278
...
@@ -159,10 +159,13 @@ public class ProjectServiceImpl implements ProjectService {
...
@@ -159,10 +159,13 @@ public class ProjectServiceImpl implements ProjectService {
billings
.
setBillableStatus
(
pT
.
getBillableStatus
());
billings
.
setBillableStatus
(
pT
.
getBillableStatus
());
billings
.
setAccount
(
pT
.
getAccount
());
billings
.
setAccount
(
pT
.
getAccount
());
billings
.
setActive
(
true
);
billings
.
setActive
(
true
);
billings
.
setBillingStartDate
(
billings
.
setBillingStartDate
(
pT
.
getStartDate
()
==
null
DateUtils
.
truncate
(
pT
.
getStartDate
(),
Calendar
.
DATE
));
?
DateUtils
.
truncate
(
new
Date
(),
Calendar
.
DATE
)
billings
.
setBillingEndDate
(
:
DateUtils
.
truncate
(
pT
.
getStartDate
(),
Calendar
.
DATE
));
DateUtils
.
truncate
(
pT
.
getEndDate
(),
Calendar
.
DATE
));
if
(
pT
.
getEndDate
()
!=
null
)
{
billings
.
setBillingEndDate
(
DateUtils
.
truncate
(
pT
.
getEndDate
(),
Calendar
.
DATE
));
}
billings
.
setCreateDate
(
new
Date
());
billings
.
setCreateDate
(
new
Date
());
addEmployeeBillingDetails
(
billings
);
addEmployeeBillingDetails
(
billings
);
...
...
src/main/webapp/WEB-INF/controllers/LoginController.js
View file @
3573c278
...
@@ -107,7 +107,11 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window
...
@@ -107,7 +107,11 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window
if
(
result
==
"Cancelled"
){
console
.
log
(
result
);
if
(
result
==
"Cancelled"
){
console
.
log
(
result
);
showProgressDialog
(
"Registration cancelled!!! Please wait while redirected to login page."
);
showProgressDialog
(
"Registration cancelled!!! Please wait while redirected to login page."
);
$timeout
(
function
(){
redirectToLoginPage
();},
2000
);
$timeout
(
function
(){
redirectToLoginPage
();},
2000
);
}
else
if
(
result
==
"Error"
){
}
else
if
(
result
==
"RegAlert"
){
console
.
log
(
result
);
showProgressDialog
(
"Application access/registration required!!! Please reachout to HR to get required access"
);
$timeout
(
function
(){
redirectToLoginPage
();},
2000
);
}
else
if
(
result
==
"Error"
){
showProgressDialog
(
"Registration failed!!! Please wait while redirected to login page."
);
showProgressDialog
(
"Registration failed!!! Please wait while redirected to login page."
);
$timeout
(
function
(){
redirectToLoginPage
();},
2000
);
$timeout
(
function
(){
redirectToLoginPage
();},
2000
);
}
else
{
}
else
{
...
@@ -230,6 +234,9 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window
...
@@ -230,6 +234,9 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window
$scope
.
cancel
=
function
()
{
$scope
.
cancel
=
function
()
{
$mdDialog
.
hide
(
'Cancelled'
);
$mdDialog
.
hide
(
'Cancelled'
);
};
};
$scope
.
showRegAlert
=
function
()
{
$mdDialog
.
hide
(
'RegAlert'
);
};
}
}
function
setDefaultValues
(
userRole
,
profilePicUrl
){
function
setDefaultValues
(
userRole
,
profilePicUrl
){
...
@@ -242,69 +249,69 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window
...
@@ -242,69 +249,69 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window
var
role
=
userRole
.
role
;
var
role
=
userRole
.
role
;
myFactory
.
setEmpRole
(
role
);
myFactory
.
setEmpRole
(
role
);
if
(
role
==
"HR"
){
if
(
role
==
"HR"
){
menuItems
.
push
({
"menu"
:
"My Details"
,
"icon"
:
"fa fa-indent fa-2x"
,
"path"
:
"templates/employee.html"
});
menuItems
.
push
({
"menu"
:
"Employee Login Details"
,
"icon"
:
"fa fa-users fa-2x"
,
"path"
:
"templates/employees.html"
});
menuItems
.
push
({
"menu"
:
"Reports"
,
"icon"
:
"fa fa-pie-chart fa-2x"
,
"path"
:
"templates/reports.html"
});
menuItems
.
push
({
"menu"
:
"Manage Employees"
,
"icon"
:
"fa fa-user-plus fa-2x"
,
"path"
:
"templates/roles.html"
});
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"
:
"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"
:
"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"
:
"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"
:
"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 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 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"
:
"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"
});
menuItems
.
push
({
"menu"
:
"Import Data"
,
"icon"
:
"fa fa-upload fa-2x"
,
"path"
:
"templates/exportData.html"
});
}
else
if
(
role
==
"Manager"
){
}
else
if
(
role
==
"Manager"
){
menuItems
.
push
({
"menu"
:
"My Details"
,
"icon"
:
"fa fa-indent fa-2x"
,
"path"
:
"templates/employee.html"
});
menuItems
.
push
({
"menu"
:
"Reportee Details"
,
"icon"
:
"fa fa-users fa-2x"
,
"path"
:
"templates/reportees.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"
:
"View Projects"
,
"icon"
:
"fa fa-tasks fa-2x"
,
"path"
:
"templates/viewProjects.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"
});
menuItems
.
push
({
"menu"
:
"My Project Allocations"
,
"icon"
:
"fa fa-life-ring fa-2x"
,
"path"
:
"templates/myProjectAllocations.html"
});
menuItems
.
push
({
"menu"
:
"My Project Allocations"
,
"icon"
:
"fa fa-life-ring 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 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"
:
"My Profile"
,
"icon"
:
"fa fa-address-book-o fa-2x"
,
"path"
:
"templates/profile.html"
});
}
else
if
(
role
==
"HR Manager"
){
}
else
if
(
role
==
"HR Manager"
){
menuItems
.
push
({
"menu"
:
"My Details"
,
"icon"
:
"fa fa-indent fa-2x"
,
"path"
:
"templates/employee.html"
});
menuItems
.
push
({
"menu"
:
"Employee Login Details"
,
"icon"
:
"fa fa-users fa-2x"
,
"path"
:
"templates/employees.html"
});
menuItems
.
push
({
"menu"
:
"Reports"
,
"icon"
:
"fa fa-pie-chart fa-2x"
,
"path"
:
"templates/reports.html"
});
menuItems
.
push
({
"menu"
:
"Manage Employees"
,
"icon"
:
"fa fa-user-plus fa-2x"
,
"path"
:
"templates/roles.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 Projects"
,
"icon"
:
"fa fa-tasks fa-2x"
,
"path"
:
"templates/projects.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"
:
"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"
});
menuItems
.
push
({
"menu"
:
"Login Reports"
,
"icon"
:
"fa fa-pie-chart fa-2x"
,
"path"
:
"templates/reports.html"
});
menuItems
.
push
({
"menu"
:
"Shift Details"
,
"icon"
:
"fa fa-superpowers fa-2x"
,
"path"
:
"templates/shiftdetails.html"
});
menuItems
.
push
({
"menu"
:
"Shift Details"
,
"icon"
:
"fa fa-superpowers fa-2x"
,
"path"
:
"templates/shiftdetails.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-life-ring fa-2x"
,
"path"
:
"templates/myProjectAllocations.html"
});
menuItems
.
push
({
"menu"
:
"My Project Allocations"
,
"icon"
:
"fa fa-life-ring 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 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"
:
"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"
});
menuItems
.
push
({
"menu"
:
"Import Data"
,
"icon"
:
"fa fa-upload fa-2x"
,
"path"
:
"templates/exportData.html"
});
}
else
if
(
role
==
"Lead"
){
}
else
if
(
role
==
"Lead"
){
menuItems
.
push
({
"menu"
:
"My Details"
,
"icon"
:
"fa fa-indent fa-2x"
,
"path"
:
"templates/employee.html"
});
menuItems
.
push
({
"menu"
:
"Reportee Details"
,
"icon"
:
"fa fa-users fa-2x"
,
"path"
:
"templates/reportees.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"
:
"Reportee Login 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"
});
menuItems
.
push
({
"menu"
:
"My Project Allocations"
,
"icon"
:
"fa fa-life-ring fa-2x"
,
"path"
:
"templates/myProjectAllocations.html"
});
menuItems
.
push
({
"menu"
:
"My Project Allocations"
,
"icon"
:
"fa fa-life-ring 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 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"
:
"My Profile"
,
"icon"
:
"fa fa-address-book-o fa-2x"
,
"path"
:
"templates/profile.html"
});
}
else
if
(
role
==
"Delivery Manager"
||
role
==
"Director"
){
}
else
if
(
role
==
"Delivery Manager"
||
role
==
"Director"
){
menuItems
.
push
({
"menu"
:
"My Details"
,
"icon"
:
"fa fa-indent fa-2x"
,
"path"
:
"templates/employee.html"
});
menuItems
.
push
({
"menu"
:
"Employee Login Details"
,
"icon"
:
"fa fa-users fa-2x"
,
"path"
:
"templates/employees.html"
});
menuItems
.
push
({
"menu"
:
"Reports"
,
"icon"
:
"fa fa-pie-chart fa-2x"
,
"path"
:
"templates/reports.html"
});
menuItems
.
push
({
"menu"
:
"Manage Employees"
,
"icon"
:
"fa fa-user-plus fa-2x"
,
"path"
:
"templates/roles.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 Projects"
,
"icon"
:
"fa fa-tasks fa-2x"
,
"path"
:
"templates/projects.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"
});
menuItems
.
push
({
"menu"
:
"Manage Visa"
,
"icon"
:
"fa fa-tasks fa-2x"
,
"path"
:
"templates/visaList.html"
});
menuItems
.
push
({
"menu"
:
"Manage Travels"
,
"icon"
:
"fa fa-tasks fa-2x"
,
"path"
:
"templates/onsiteTravelsList.html"
});
menuItems
.
push
({
"menu"
:
"Manage Travels"
,
"icon"
:
"fa fa-tasks fa-2x"
,
"path"
:
"templates/onsiteTravelsList.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"
:
"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"
:
"Shift Details"
,
"icon"
:
"fa fa-superpowers fa-2x"
,
"path"
:
"templates/shiftdetails.html"
});
menuItems
.
push
({
"menu"
:
"Dashboard"
,
"icon"
:
"fa fa-television fa-2x"
,
"path"
:
"templates/dashboard.html"
});
menuItems
.
push
({
"menu"
:
"Dashboard"
,
"icon"
:
"fa fa-television fa-2x"
,
"path"
:
"templates/dashboard.html"
});
menuItems
.
push
({
"menu"
:
"Charts"
,
"icon"
:
"fa fa-television fa-2x"
,
"path"
:
"templates/charts.html"
});
menuItems
.
push
({
"menu"
:
"Import Data"
,
"icon"
:
"fa fa-upload fa-2x"
,
"path"
:
"templates/exportData.html"
});
menuItems
.
push
({
"menu"
:
"Utilization Report"
,
"icon"
:
"fa fa-television fa-2x"
,
"path"
:
"templates/charts3.html"
});
//menuItems.push({"menu" : "Charts","icon" : "fa fa-television fa-2x","path" : "templates/charts.html"});
//menuItems.push({"menu" : "Utilization Report","icon" : "fa fa-television fa-2x","path" : "templates/charts3.html"});
menuItems
.
push
({
"menu"
:
"Utilization Report"
,
"icon"
:
"fa fa-address-book-o fa-2x"
,
"path"
:
"templates/charts.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-life-ring fa-2x"
,
"path"
:
"templates/myProjectAllocations.html"
});
menuItems
.
push
({
"menu"
:
"My Project Allocations"
,
"icon"
:
"fa fa-life-ring 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 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"
:
"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"
});
menuItems
.
push
({
"menu"
:
"Reports"
,
"icon"
:
"fa fa-address-book-o fa-2x"
,
"path"
:
"templates/charts.html"
});
}
else
{
}
else
{
menuItems
.
push
({
"menu"
:
"My Details"
,
"icon"
:
"fa fa-indent fa-2x"
,
"path"
:
"templates/employee.html"
});
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 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"
});
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"
:
"My Profile"
,
"icon"
:
"fa fa-address-book-o fa-2x"
,
"path"
:
"templates/profile.html"
});
}
}
...
...
src/main/webapp/WEB-INF/controllers/MyProjectAllocations.js
View file @
3573c278
...
@@ -28,6 +28,8 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
...
@@ -28,6 +28,8 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
{
field
:
'account'
,
displayName
:
'Account'
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'account'
,
displayName
:
'Account'
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'managerName'
,
displayName
:
'Manager Name'
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'managerName'
,
displayName
:
'Manager Name'
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'billableStatus'
,
displayName
:
'Billability'
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'billableStatus'
,
displayName
:
'Billability'
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'startDate'
,
displayName
:
'Start Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
cellFilter
:
'date:"dd-MMM-yyyy"'
},
{
field
:
'endDate'
,
displayName
:
'End Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
cellFilter
:
'date:"dd-MMM-yyyy"'
},
{
field
:
'shift'
,
displayName
:
'Shift'
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'shift'
,
displayName
:
'Shift'
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'active'
,
displayName
:
'Active'
,
enableColumnMenu
:
false
,
cellTemplate
:
getCellActiveTemplate
,
enableSorting
:
false
}
{
field
:
'active'
,
displayName
:
'Active'
,
enableColumnMenu
:
false
,
cellTemplate
:
getCellActiveTemplate
,
enableSorting
:
false
}
]
]
...
...
src/main/webapp/WEB-INF/controllers/ProjectTeamController.js
View file @
3573c278
...
@@ -36,12 +36,12 @@ myApp.controller("projectTeamController",function($scope, myFactory, $mdDialog,
...
@@ -36,12 +36,12 @@ myApp.controller("projectTeamController",function($scope, myFactory, $mdDialog,
pageNumber
:
1
,
pageNumber
:
1
,
pageSize
:
10
,
pageSize
:
10
,
enableCellEdit
:
false
,
enableCellEdit
:
false
,
enableCellEditOnFocus
:
tru
e
,
enableCellEditOnFocus
:
fals
e
,
enableFiltering
:
true
,
enableFiltering
:
true
,
cellEditableCondition
:
function
(
$scope
)
{
cellEditableCondition
:
function
(
$scope
)
{
// put your enable-edit code here, using values from $scope.row.entity and/or $scope.col.colDef as you desire
// put your enable-edit code here, using values from $scope.row.entity and/or $scope.col.colDef as you desire
return
tru
e
;
// in this example, we'll only allow active rows to be edited
return
fals
e
;
// in this example, we'll only allow active rows to be edited
},
},
columnDefs
:
[
columnDefs
:
[
...
@@ -53,6 +53,9 @@ myApp.controller("projectTeamController",function($scope, myFactory, $mdDialog,
...
@@ -53,6 +53,9 @@ myApp.controller("projectTeamController",function($scope, myFactory, $mdDialog,
return
row
.
entity
.
projectName
;
return
row
.
entity
.
projectName
;
}},
}},
{
field
:
'startDate'
,
displayName
:
'Start Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
cellFilter
:
'date:"dd-MMM-yyyy"'
},
{
field
:
'endDate'
,
displayName
:
'End Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
cellFilter
:
'date:"dd-MMM-yyyy"'
},
{
field
:
'role'
,
displayName
:
'Role'
,
cellTemplate
:
getCellTemplate1
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
{
field
:
'role'
,
displayName
:
'Role'
,
cellTemplate
:
getCellTemplate1
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
{
field
:
'active'
,
displayName
:
'Active'
,
enableColumnMenu
:
false
,
cellTemplate
:
getCellActiveTemplate
,
enableSorting
:
true
,
width
:
60
,
enableFiltering
:
false
},
{
field
:
'active'
,
displayName
:
'Active'
,
enableColumnMenu
:
false
,
cellTemplate
:
getCellActiveTemplate
,
enableSorting
:
true
,
width
:
60
,
enableFiltering
:
false
},
{
name
:
'Actions'
,
displayName
:
'Actions'
,
cellTemplate
:
getCellTemplate
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
width
:
100
,
enableFiltering
:
false
}
{
name
:
'Actions'
,
displayName
:
'Actions'
,
cellTemplate
:
getCellTemplate
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
width
:
100
,
enableFiltering
:
false
}
...
...
src/main/webapp/WEB-INF/images/ProjectReports.png
0 → 100644
View file @
3573c278
142 KB
src/main/webapp/WEB-INF/images/chartsReport.jpg
0 → 100644
View file @
3573c278
122 KB
src/main/webapp/WEB-INF/images/project-management.gif
0 → 100644
View file @
3573c278
87.6 KB
src/main/webapp/WEB-INF/images/projectManagement.png
0 → 100644
View file @
3573c278
1.21 MB
src/main/webapp/WEB-INF/images/teamManagement.jpg
0 → 100644
View file @
3573c278
395 KB
src/main/webapp/WEB-INF/js/reports.js
0 → 100644
View file @
3573c278
Highcharts
.
chart
(
'companyfunctionalGroupReport'
,
{
title
:
{
text
:
'Solar Employment Growth by Sector, 2010-2016'
},
subtitle
:
{
text
:
'Source: thesolarfoundation.com'
},
yAxis
:
{
title
:
{
text
:
'Number of Employees'
}
},
legend
:
{
layout
:
'vertical'
,
align
:
'right'
,
verticalAlign
:
'middle'
},
plotOptions
:
{
series
:
{
label
:
{
connectorAllowed
:
false
},
pointStart
:
2010
}
},
series
:
[{
name
:
'Installation'
,
data
:
[
43934
,
52503
,
57177
,
69658
,
97031
,
119931
,
137133
,
154175
]
},
{
name
:
'Manufacturing'
,
data
:
[
24916
,
24064
,
29742
,
29851
,
32490
,
30282
,
38121
,
40434
]
},
{
name
:
'Sales & Distribution'
,
data
:
[
11744
,
17722
,
16005
,
19771
,
20185
,
24377
,
32147
,
39387
]
},
{
name
:
'Project Development'
,
data
:
[
null
,
null
,
7988
,
12169
,
15112
,
22452
,
34400
,
34227
]
},
{
name
:
'Other'
,
data
:
[
12908
,
5948
,
8105
,
11248
,
8989
,
11816
,
18274
,
18111
]
}],
responsive
:
{
rules
:
[{
condition
:
{
maxWidth
:
500
},
chartOptions
:
{
legend
:
{
layout
:
'horizontal'
,
align
:
'center'
,
verticalAlign
:
'bottom'
}
}
}]
}
});
src/main/webapp/WEB-INF/templates/registerEmployee.html
View file @
3573c278
...
@@ -14,30 +14,14 @@
...
@@ -14,30 +14,14 @@
<md-dialog-content>
<md-dialog-content>
<div
class=
"md-dialog-content"
>
<div
class=
"md-dialog-content"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<input
type=
"text"
class=
"form-control"
id=
"empId"
name=
"empId"
ng-model=
"empId"
placeholder=
"Employee ID"
ng-blur=
"validateEmpId()"
/>
<br>
<input
type=
"text"
class=
"form-control"
id=
"empName"
name=
"empName"
ng-model=
"empName"
placeholder=
"Employee Name"
/><br>
<input
type=
"text"
class=
"form-control"
id=
"empEmail"
name=
"empEmail"
ng-model=
"empEmail"
placeholder=
"Email ID"
ng-disabled=
"true"
/><br>
<input
type=
"text"
class=
"form-control"
id=
"mobileNumber"
name=
"mobileNumber"
ng-model=
"mobileNumber"
placeholder=
"Mobile No"
/>
<md-select
ng-model=
"empShift"
md-selected-text=
"getSelectedShift()"
id=
"empShift"
>
<md-optgroup
label=
"skills"
>
<md-option
ng-value=
"shift"
ng-repeat=
"shift in shifts"
>
{{shift}}
</md-option>
</md-optgroup>
</md-select>
<md-select
ng-model=
"empLocation"
md-selected-text=
"getSelectedLocation()"
id=
"empLocation"
>
<md-optgroup
label=
"locations"
>
<md-option
ng-value=
"location"
ng-repeat=
"location in locations"
>
{{location}}
</md-option>
</md-optgroup>
</md-select>
<div
role=
"alert"
>
<div
role=
"alert"
>
<span
class=
"error"
style=
"color: red;"
>
{{alertMsg}}
</span>
<span
class=
"error"
style=
"color: red;"
>
Please contact HR to provide access to application
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</md-dialog-content>
</md-dialog-content>
<md-dialog-actions
layout=
"row"
>
<md-button
<md-dialog-actions
layout=
"row"
>
<md-button
class=
"md-raised"
ng-click=
"showRegAlert()"
style=
"width:120px;background: cadetblue;color:white;"
>
class=
"md-raised"
data-ng-click=
"validateFields()"
style=
"width:120px;background: cadetblue;color:white;"
>
Home
</md-button>
</md-dialog-actions>
Register
</md-button>
<md-button
class=
"md-raised"
ng-click=
"cancel()"
style=
"width:120px;background: cadetblue;color:white;"
>
Cancel
</md-button>
</md-dialog-actions>
</form>
</form>
</md-dialog>
</md-dialog>
src/main/webapp/WEB-INF/templates/registerEmployee1.html
0 → 100644
View file @
3573c278
<md-dialog
aria-label=
"Registration Template"
style=
"width:440px;height:500px;"
>
<form
ng-cloak
name=
"myForm"
>
<md-toolbar
style=
"height:40px"
>
<div
class=
"md-toolbar-tools"
style=
"background: cadetblue;"
>
<h2>
Employee Registration
</h2>
<span
flex
></span>
<md-button
class=
"md-icon-button"
ng-click=
"cancel()"
>
<i
class=
"fa fa-times fa-2x"
style=
"margin-top: 5px; font-size: 1.5em; float: left"
></i>
</md-button>
</div>
</md-toolbar>
<md-dialog-content>
<div
class=
"md-dialog-content"
>
<div
class=
"form-group"
>
<input
type=
"text"
class=
"form-control"
id=
"empId"
name=
"empId"
ng-model=
"empId"
placeholder=
"Employee ID"
ng-blur=
"validateEmpId()"
/>
<br>
<input
type=
"text"
class=
"form-control"
id=
"empName"
name=
"empName"
ng-model=
"empName"
placeholder=
"Employee Name"
/><br>
<input
type=
"text"
class=
"form-control"
id=
"empEmail"
name=
"empEmail"
ng-model=
"empEmail"
placeholder=
"Email ID"
ng-disabled=
"true"
/><br>
<input
type=
"text"
class=
"form-control"
id=
"mobileNumber"
name=
"mobileNumber"
ng-model=
"mobileNumber"
placeholder=
"Mobile No"
/>
<md-select
ng-model=
"empShift"
md-selected-text=
"getSelectedShift()"
id=
"empShift"
>
<md-optgroup
label=
"skills"
>
<md-option
ng-value=
"shift"
ng-repeat=
"shift in shifts"
>
{{shift}}
</md-option>
</md-optgroup>
</md-select>
<md-select
ng-model=
"empLocation"
md-selected-text=
"getSelectedLocation()"
id=
"empLocation"
>
<md-optgroup
label=
"locations"
>
<md-option
ng-value=
"location"
ng-repeat=
"location in locations"
>
{{location}}
</md-option>
</md-optgroup>
</md-select>
<div
role=
"alert"
>
<span
class=
"error"
style=
"color: red;"
>
{{alertMsg}}
</span>
</div>
</div>
</div>
</md-dialog-content>
<md-dialog-actions
layout=
"row"
>
<md-button
class=
"md-raised"
data-ng-click=
"validateFields()"
style=
"width:120px;background: cadetblue;color:white;"
>
Register
</md-button>
<md-button
class=
"md-raised"
ng-click=
"cancel()"
style=
"width:120px;background: cadetblue;color:white;"
>
Cancel
</md-button>
</md-dialog-actions>
</form>
</md-dialog>
src/main/webapp/WEB-INF/templates/reports.html
View file @
3573c278
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<div
class=
"col-lg-12"
>
<p
align=
"center"
class=
"col-xs-11"
<p
align=
"center"
class=
"col-xs-11"
style=
"vertical-align: middle; font-weight: bold; font-size: 30px;"
>
Reports
</p>
style=
"vertical-align: middle; font-weight: bold; font-size: 30px;"
>
Login
Reports
</p>
<p
align=
"right"
class=
"col-xs-1"
<p
align=
"right"
class=
"col-xs-1"
style=
"vertical-align: middle; font-weight: bold; font-size: 1.5em; margin-top: 8px; cursor: pointer;"
>
style=
"vertical-align: middle; font-weight: bold; font-size: 1.5em; margin-top: 8px; cursor: pointer;"
>
<i
class=
"fa fa-refresh"
aria-hidden=
"true"
<i
class=
"fa fa-refresh"
aria-hidden=
"true"
...
...
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