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
fc48b286
Commit
fc48b286
authored
Jun 18, 2019
by
Prayas Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated validation in employee substatus dates
parent
bcf385b7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
AssignRolesController.js
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
+3
-4
ProjectController.js
src/main/webapp/WEB-INF/controllers/ProjectController.js
+3
-3
No files found.
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
View file @
fc48b286
...
...
@@ -441,7 +441,6 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
}
$scope
.
validateFields
=
function
(){
console
.
log
(
$scope
.
subStatusStartDate
)
var
today
=
new
Date
();
if
(
$scope
.
templateTitle
==
"Add"
){
...
...
@@ -495,11 +494,11 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
$scope
.
alertMsg
=
"Please select a Date Of Joining"
;
document
.
getElementById
(
'dateOfJoining'
).
focus
();
}
else
if
(
subStatusStartDate
==
undefined
){
else
if
(
$scope
.
templateTitle
!=
"Add"
&&
subStatusStartDate
==
undefined
&&
empSubStatus
!=
null
&&
empSubStatus
!=
''
){
$scope
.
alertMsg
=
"Please select a SubStatus start Date"
;
document
.
getElementById
(
'subStatusStartDate'
).
focus
();
}
else
if
(
subStatusEndDate
==
undefined
){
else
if
(
$scope
.
templateTitle
!=
"Add"
&&
subStatusStartDate
==
undefined
&&
empSubStatus
!=
null
&&
empSubStatus
!=
''
){
$scope
.
alertMsg
=
"Please select a SubStatus end Date"
;
document
.
getElementById
(
'subStatusEndDate'
).
focus
();
}
...
...
@@ -556,7 +555,7 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
$scope
.
alertMsg
=
"Please select the exit date less than or equal to current date"
;
document
.
getElementById
(
'hasB1'
).
focus
();
}
else
if
(
subStatusStartDate
>=
subStatusEndDate
){
else
if
(
subStatusStartDate
>=
subStatusEndDate
&&
empSubStatus
!=
null
&&
empSubStatus
!=
''
){
$scope
.
alertMsg
=
"Start date should not be greater than end date"
;
}
else
{
$scope
.
alertMsg
=
""
;
...
...
src/main/webapp/WEB-INF/controllers/ProjectController.js
View file @
fc48b286
...
...
@@ -605,7 +605,7 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
};
$scope
.
status
=
"Active"
;
var
employeeModel
=
$scope
.
employeeModel
;
var
getCellTemplate1
=
'<p class="col-lg-12"><i ng-show="
!row.entity.editrow
" class="fa fa-pencil-square-o fa-2x" data-placement="center" title="Edit" onmouseenter="$(this).tooltip(
\'
show
\'
)" aria-hidden="true" style="font-size:1.5em;margin-top:3px;cursor:pointer;" ng-click="grid.appScope.edit(row)"></i>'
+
var
getCellTemplate1
=
'<p class="col-lg-12"><i ng-show="
grid.appScope.showEditIcon(row.entity)
" class="fa fa-pencil-square-o fa-2x" data-placement="center" title="Edit" onmouseenter="$(this).tooltip(
\'
show
\'
)" aria-hidden="true" style="font-size:1.5em;margin-top:3px;cursor:pointer;" ng-click="grid.appScope.edit(row)"></i>'
+
'<i ng-show="row.entity.editrow" class="fa fa-save fa-2x" aria-hidden="true" style="font-size:1.5em;margin-top:3px;cursor:pointer;" data-placement="center" title="Save" onmouseenter="$(this).tooltip(
\'
show
\'
)" ng-click="grid.appScope.saveRow(row.entity,
\'
Update
\'
)"></i>'
+
' <i ng-show="row.entity.editrow" id="cancelEdit" class="fa fa-times fa-2x" aria-hidden="true" style="font-size:1.5em;margin-top:3px;cursor:pointer;" data-placement="center" title="Cancel" onmouseenter="$(this).tooltip(
\'
show
\'
)" ng-click="grid.appScope.cancelEdit(row.entity)"></i>'
+
'<i ng-show="grid.appScope.showMoveToBenchIcon(row.entity) && !row.entity.editrow" id="moveResource" class="fa fa-arrow-circle-right fa-2x" aria-hidden="true" style="font-size:1.8em;margin-top:3px;cursor:pointer;" data-placement="center" title="Release" onmouseenter="$(this).tooltip(
\'
show
\'
)" ng-click="grid.appScope.moveToBench(row.entity)"></i>'
+
...
...
@@ -689,12 +689,12 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
});
$scope
.
showMoveToBenchIcon
=
function
(
row
){
if
(
$scope
.
status
==
'InActive'
&&
row
.
status
==
'Engaged'
){
if
(
row
.
billingEndDate
<
new
Date
()
&&
row
.
status
==
'Engaged'
){
return
true
;
}
}
$scope
.
showEditIcon
=
function
(
row
)
{
if
(
row
.
status
==
"Engag
ed"
&&
!
row
.
editrow
)
{
if
(
row
.
status
!=
"Releas
ed"
&&
!
row
.
editrow
)
{
return
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