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
3a248931
Commit
3a248931
authored
May 03, 2019
by
Venkatesh M
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Passport and visa validations updated
parent
924fb285
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
AssignRolesController.js
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
+5
-3
No files found.
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
View file @
3a248931
...
...
@@ -483,15 +483,15 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
$scope
.
alertMsg
=
"Please select the Future Date for passport Expiry"
;
document
.
getElementById
(
'passportExpiryDate'
).
focus
();
}
else
if
(
hasB1
==
undefined
){
else
if
(
has
Passort
==
"Yes"
&&
hasPassort
!==
undefined
&&
has
B1
==
undefined
){
$scope
.
alertMsg
=
"Please select a Visa"
;
document
.
getElementById
(
'hasB1'
).
focus
();
}
else
if
(
hasB1
==
"Yes"
&&
(
b1ExpiryDate
==
undefined
||
b1ExpiryDate
==
""
)){
else
if
(
has
Passort
==
"Yes"
&&
hasPassort
!==
undefined
&&
has
B1
==
"Yes"
&&
(
b1ExpiryDate
==
undefined
||
b1ExpiryDate
==
""
)){
$scope
.
alertMsg
=
"Please select the B1 Expiry Date "
;
document
.
getElementById
(
'b1ExpiryDate'
).
focus
();
}
else
if
(
hasB1
==
"Yes"
&&
(
b1ExpiryDate
<
today
)){
else
if
(
has
Passort
==
"Yes"
&&
hasPassort
!==
undefined
&&
has
B1
==
"Yes"
&&
(
b1ExpiryDate
<
today
)){
$scope
.
alertMsg
=
"Please select the Future Date for B1 Expiry"
;
document
.
getElementById
(
'b1ExpiryDate'
).
focus
();
}
...
...
@@ -548,6 +548,8 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
if
(
obj
.
hasPassort
!=
"Yes"
){
delete
obj
[
'passportExpiryDate'
];
delete
obj
[
'hasB1'
];
delete
obj
[
'b1ExpiryDate'
];
}
if
(
obj
.
empStatus
==
"Active"
){
delete
obj
[
'endDate'
];
...
...
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