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
fb79795b
Commit
fb79795b
authored
Aug 27, 2018
by
Manikanta SKPB Duppanapudi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue fixes in shift details and manage Employee and error handling in Manage Projects
parent
5365ae60
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
11 deletions
+18
-11
ProjectServiceImpl.java
...ain/java/com/nisum/mytime/service/ProjectServiceImpl.java
+5
-1
UserServiceImpl.java
src/main/java/com/nisum/mytime/service/UserServiceImpl.java
+1
-6
AssignRolesController.js
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
+10
-2
ProjectController.js
src/main/webapp/WEB-INF/controllers/ProjectController.js
+1
-1
ShiftDetailsController.js
...main/webapp/WEB-INF/controllers/ShiftDetailsController.js
+1
-1
No files found.
src/main/java/com/nisum/mytime/service/ProjectServiceImpl.java
View file @
fb79795b
...
@@ -353,7 +353,11 @@ public class ProjectServiceImpl implements ProjectService {
...
@@ -353,7 +353,11 @@ public class ProjectServiceImpl implements ProjectService {
billings
.
setBillableStatus
(
pT
.
getBillableStatus
());
billings
.
setBillableStatus
(
pT
.
getBillableStatus
());
billings
.
setAccount
(
pT
.
getAccount
());
billings
.
setAccount
(
pT
.
getAccount
());
billings
.
setActive
(
pT
.
isActive
());
billings
.
setActive
(
pT
.
isActive
());
billings
.
setBillingStartDate
(
DateUtils
.
truncate
(
pT
.
getNewBillingStartDate
(),
Calendar
.
DATE
));
if
(!
projectTeamMate
.
getProjectId
().
equalsIgnoreCase
(
"Nisum0000"
))
{
billings
.
setBillingStartDate
(
DateUtils
.
truncate
(
pT
.
getNewBillingStartDate
(),
Calendar
.
DATE
));
}
else
{
billings
.
setBillingStartDate
(
DateUtils
.
truncate
(
pT
.
getStartDate
(),
Calendar
.
DATE
));
}
if
(
pT
.
getEndDate
()
!=
null
)
{
if
(
pT
.
getEndDate
()
!=
null
)
{
billings
.
setBillingEndDate
(
DateUtils
.
truncate
(
pT
.
getEndDate
(),
Calendar
.
DATE
));
billings
.
setBillingEndDate
(
DateUtils
.
truncate
(
pT
.
getEndDate
(),
Calendar
.
DATE
));
}
}
...
...
src/main/java/com/nisum/mytime/service/UserServiceImpl.java
View file @
fb79795b
...
@@ -152,18 +152,13 @@ public class UserServiceImpl implements UserService {
...
@@ -152,18 +152,13 @@ public class UserServiceImpl implements UserService {
newBenchAllocation
.
setEmployeeName
(
employeeRoles
.
getEmployeeName
());
newBenchAllocation
.
setEmployeeName
(
employeeRoles
.
getEmployeeName
());
newBenchAllocation
.
setProjectId
(
MyTimeUtils
.
BENCH_PROJECT_ID
);
newBenchAllocation
.
setProjectId
(
MyTimeUtils
.
BENCH_PROJECT_ID
);
newBenchAllocation
.
setStartDate
(
employeeRoles
.
getDateOfJoining
()
!=
null
newBenchAllocation
.
setStartDate
(
employeeRoles
.
getDateOfJoining
()
!=
null
?
employeeRoles
.
getDateOfJoining
()
:
new
Date
());
?
employeeRoles
.
getDateOfJoining
()
:
new
Date
());
Project
p
=
projectRepo
.
findByProjectId
(
MyTimeUtils
.
BENCH_PROJECT_ID
);
Project
p
=
projectRepo
.
findByProjectId
(
MyTimeUtils
.
BENCH_PROJECT_ID
);
newBenchAllocation
.
setProjectName
(
p
.
getProjectName
());
newBenchAllocation
.
setProjectName
(
p
.
getProjectName
());
newBenchAllocation
.
setAccountId
(
p
.
getAccountId
());
newBenchAllocation
.
setAccountId
(
p
.
getAccountId
());
newBenchAllocation
.
setDomainId
(
p
.
getDomainId
());
newBenchAllocation
.
setDomainId
(
p
.
getDomainId
());
newBenchAllocation
.
setShift
(
employeeRoles
.
getShift
());
newBenchAllocation
.
setShift
(
employeeRoles
.
getShift
());
newBenchAllocation
.
setRole
(
employeeRoles
.
getRole
());
newBenchAllocation
.
setRole
(
employeeRoles
.
getRole
());
// newBenchAllocation.setManagerId(p.getManagerId());
//newBenchAllocation.setManagerName(p.getManagerName());
if
(
employeeRoles
.
getEmpStatus
()
!=
null
if
(
employeeRoles
.
getEmpStatus
()
!=
null
&&
(
employeeRoles
.
getEmpStatus
().
trim
().
equalsIgnoreCase
(
"InActive"
)
&&
(
employeeRoles
.
getEmpStatus
().
trim
().
equalsIgnoreCase
(
"InActive"
)
...
...
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
View file @
fb79795b
...
@@ -476,7 +476,11 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -476,7 +476,11 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
document
.
getElementById
(
'hasPassort'
).
focus
();
document
.
getElementById
(
'hasPassort'
).
focus
();
}
}
else
if
(
hasPassort
==
"Yes"
&&
(
passportExpiryDate
==
undefined
||
passportExpiryDate
==
""
)){
else
if
(
hasPassort
==
"Yes"
&&
(
passportExpiryDate
==
undefined
||
passportExpiryDate
==
""
)){
$scope
.
alertMsg
=
"Please select the Passport Expiry Date:"
;
$scope
.
alertMsg
=
"Please select the Passport Expiry Date"
;
document
.
getElementById
(
'passportExpiryDate'
).
focus
();
}
else
if
(
hasPassort
==
"Yes"
&&
(
passportExpiryDate
<
today
)){
$scope
.
alertMsg
=
"Please select the Future Date for passport Expiry"
;
document
.
getElementById
(
'passportExpiryDate'
).
focus
();
document
.
getElementById
(
'passportExpiryDate'
).
focus
();
}
}
else
if
(
hasB1
==
undefined
){
else
if
(
hasB1
==
undefined
){
...
@@ -484,7 +488,11 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -484,7 +488,11 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
document
.
getElementById
(
'hasB1'
).
focus
();
document
.
getElementById
(
'hasB1'
).
focus
();
}
}
else
if
(
hasB1
==
"Yes"
&&
(
b1ExpiryDate
==
undefined
||
b1ExpiryDate
==
""
)){
else
if
(
hasB1
==
"Yes"
&&
(
b1ExpiryDate
==
undefined
||
b1ExpiryDate
==
""
)){
$scope
.
alertMsg
=
"Please select the B1 Expiry Date"
;
$scope
.
alertMsg
=
"Please select the B1 Expiry Date "
;
document
.
getElementById
(
'b1ExpiryDate'
).
focus
();
}
else
if
(
hasB1
==
"Yes"
&&
(
b1ExpiryDate
<
today
)){
$scope
.
alertMsg
=
"Please select the Future Date for B1 Expiry"
;
document
.
getElementById
(
'b1ExpiryDate'
).
focus
();
document
.
getElementById
(
'b1ExpiryDate'
).
focus
();
}
}
else
if
(
$scope
.
templateTitle
!=
"Add"
&&
$scope
.
exitDate
==
undefined
&&
$scope
.
empStatus
!=
"Active"
){
else
if
(
$scope
.
templateTitle
!=
"Add"
&&
$scope
.
exitDate
==
undefined
&&
$scope
.
empStatus
!=
"Active"
){
...
...
src/main/webapp/WEB-INF/controllers/ProjectController.js
View file @
fb79795b
...
@@ -1496,7 +1496,7 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
...
@@ -1496,7 +1496,7 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
}
}
$http
(
req
).
then
(
function
mySuccess
(
response
)
{
$http
(
req
).
then
(
function
mySuccess
(
response
)
{
$scope
.
result
=
"Success"
;
$scope
.
result
=
"Success"
;
if
(
response
.
data
==
"TeamMate updated successfuly"
){
if
(
response
.
data
==
"TeamMate updated successfuly"
||
response
.
data
.
includes
(
"Resource Successfully moved from"
)
){
$timeout
(
function
()
{
$timeout
(
function
()
{
getProjectDetails
(
$scope
.
projectId
,
$scope
.
status
);
getProjectDetails
(
$scope
.
projectId
,
$scope
.
status
);
removeTab
(
'Add'
);
removeTab
(
'Add'
);
...
...
src/main/webapp/WEB-INF/controllers/ShiftDetailsController.js
View file @
fb79795b
...
@@ -74,7 +74,7 @@ myApp.controller("shiftDetailsController",function($scope, myFactory,exportUiGri
...
@@ -74,7 +74,7 @@ myApp.controller("shiftDetailsController",function($scope, myFactory,exportUiGri
var
shiftV
=
$scope
.
shiftValue
;
var
shiftV
=
$scope
.
shiftValue
;
if
(
shiftV
==
undefined
||
shiftV
==
""
){
if
(
shiftV
==
undefined
||
shiftV
==
""
){
shiftV
=
"Shift 1(
09:00 AM - 0
6:00 PM)"
;
shiftV
=
"Shift 1(
9:00 AM -
6:00 PM)"
;
}
}
$scope
.
shiftValue
=
shiftV
;
$scope
.
shiftValue
=
shiftV
;
$scope
.
selectedshiftValue
=
shiftV
;
$scope
.
selectedshiftValue
=
shiftV
;
...
...
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