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
d3d17a1b
Commit
d3d17a1b
authored
Aug 14, 2018
by
Manikanta SKPB Duppanapudi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ui changes related to Manage employee
parent
82a608fb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
114 additions
and
46 deletions
+114
-46
AssignRolesController.js
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
+54
-15
app.js
src/main/webapp/WEB-INF/js/app.js
+33
-4
newRoleTemplate.html
src/main/webapp/WEB-INF/templates/newRoleTemplate.html
+27
-27
No files found.
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
View file @
d3d17a1b
...
@@ -65,6 +65,7 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -65,6 +65,7 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
$scope
.
parentData
.
hasB1
=
row
.
entity
.
hasB1
;
$scope
.
parentData
.
hasB1
=
row
.
entity
.
hasB1
;
$scope
.
parentData
.
passportExpiryDate
=
row
.
entity
.
passportExpiryDate
;
$scope
.
parentData
.
passportExpiryDate
=
row
.
entity
.
passportExpiryDate
;
$scope
.
parentData
.
b1ExpiryDate
=
row
.
entity
.
b1ExpiryDate
;
$scope
.
parentData
.
b1ExpiryDate
=
row
.
entity
.
b1ExpiryDate
;
$scope
.
parentData
.
endDate
=
row
.
entity
.
endDate
;
if
(
action
==
"Update"
)
if
(
action
==
"Update"
)
$scope
.
assignRole
(
action
,
$scope
.
parentData
);
$scope
.
assignRole
(
action
,
$scope
.
parentData
);
else
if
(
action
==
"Delete"
)
else
if
(
action
==
"Delete"
)
...
@@ -235,13 +236,14 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -235,13 +236,14 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
$scope
.
employmentType
=
dataToPass
.
employmentType
;
$scope
.
employmentType
=
dataToPass
.
employmentType
;
$scope
.
domain
=
dataToPass
.
domain
;
$scope
.
domain
=
dataToPass
.
domain
;
$scope
.
designation
=
dataToPass
.
designation
;
$scope
.
designation
=
dataToPass
.
designation
;
$scope
.
dateOfJoining
=
new
Date
(
dataToPass
.
dateOfJoining
);
$scope
.
dateOfJoining
=
(
dataToPass
.
dateOfJoining
==
null
)
?
null
:
new
Date
(
dataToPass
.
dateOfJoining
);
$scope
.
dateOfBirth
=
new
Date
(
dataToPass
.
dateOfBirth
);
$scope
.
dateOfBirth
=
(
dataToPass
.
dateOfBirth
==
null
)
?
null
:
new
Date
(
dataToPass
.
dateOfBirth
);
$scope
.
isDisabled
=
true
;
$scope
.
isDisabled
=
true
;
$scope
.
hasPassort
=
dataToPass
.
hasPassort
;
$scope
.
hasPassort
=
dataToPass
.
hasPassort
;
$scope
.
hasB1
=
dataToPass
.
hasB1
;
$scope
.
hasB1
=
dataToPass
.
hasB1
;
$scope
.
passportExpiryDate
=
new
Date
(
dataToPass
.
passportExpiryDate
);
$scope
.
passportExpiryDate
=
(
dataToPass
.
passportExpiryDate
==
null
)
?
null
:
new
Date
(
dataToPass
.
passportExpiryDate
);
$scope
.
b1ExpiryDate
=
new
Date
(
dataToPass
.
b1ExpiryDate
);
$scope
.
b1ExpiryDate
=
(
dataToPass
.
b1ExpiryDate
==
null
)
?
null
:
new
Date
(
dataToPass
.
b1ExpiryDate
);
$scope
.
exitDate
=
(
dataToPass
.
endDate
==
null
)
?
null
:
new
Date
(
dataToPass
.
endDate
);
}
}
$scope
.
domains
=
myFactory
.
getDomains
();
$scope
.
domains
=
myFactory
.
getDomains
();
$scope
.
roles
=
myFactory
.
getRoles
();
$scope
.
roles
=
myFactory
.
getRoles
();
...
@@ -275,7 +277,7 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -275,7 +277,7 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
if
(
$scope
.
functionalGroup
!==
undefined
)
{
if
(
$scope
.
functionalGroup
!==
undefined
)
{
return
$scope
.
functionalGroup
;
return
$scope
.
functionalGroup
;
}
else
{
}
else
{
return
"Please select a Functional
Org
"
;
return
"Please select a Functional
Group
"
;
}
}
};
};
$scope
.
getSelectedEmploymentType
=
function
(){
$scope
.
getSelectedEmploymentType
=
function
(){
...
@@ -332,8 +334,23 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -332,8 +334,23 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
}
}
}
}
$scope
.
validateMessage
=
function
()
{
$scope
.
validateMessage
=
function
(
type
)
{
$scope
.
errorMessage
=
false
;
var
emailId
=
$scope
.
empEmail
;
if
(
type
===
'email'
)
{
if
(
emailId
!=
""
&&
!
validateEmail
(
emailId
))
{
// $scope.alertMsg = "Please enter a valid
// nisum email id";
$scope
.
alertMsg
=
""
;
document
.
getElementById
(
'empEmail'
).
focus
();
// $scope.errorMessage = true;
}
else
{
// $scope.alertMsg = "";
$scope
.
errorMessage
=
false
;
}
}
else
{
$scope
.
errorMessage
=
false
;
}
}
}
$scope
.
validateEmpName
=
function
(){
$scope
.
validateEmpName
=
function
(){
...
@@ -395,6 +412,8 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -395,6 +412,8 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
var
empStatus
=
$scope
.
empStatus
;
var
empStatus
=
$scope
.
empStatus
;
var
dateOfJoining
=
$scope
.
dateOfJoining
;
var
dateOfJoining
=
$scope
.
dateOfJoining
;
var
dateOfBirth
=
$scope
.
dateOfBirth
;
var
dateOfBirth
=
$scope
.
dateOfBirth
;
var
b1ExpiryDate
=
$scope
.
b1ExpiryDate
;
var
passportExpiryDate
=
$scope
.
passportExpiryDate
;
if
(
searchId
==
""
){
if
(
searchId
==
""
){
$scope
.
alertMsg
=
"Employee Id is mandatory"
;
$scope
.
alertMsg
=
"Employee Id is mandatory"
;
document
.
getElementById
(
'empId'
).
focus
();
document
.
getElementById
(
'empId'
).
focus
();
...
@@ -416,7 +435,11 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -416,7 +435,11 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
}
else
if
(
empEmail
==
""
)
{
}
else
if
(
empEmail
==
""
)
{
$scope
.
alertMsg
=
"Email ID is mandatory"
;
$scope
.
alertMsg
=
"Email ID is mandatory"
;
document
.
getElementById
(
'empEmail'
).
focus
();
document
.
getElementById
(
'empEmail'
).
focus
();
}
else
if
(
dateOfJoining
==
undefined
){
}
else
if
(
!
validateEmail
(
empEmail
)){
$scope
.
alertMsg
=
"Please enter a valid nisum email id"
;
document
.
getElementById
(
'empEmail'
).
focus
();
}
else
if
(
dateOfJoining
==
undefined
){
$scope
.
alertMsg
=
"Please select a Date Of Joining"
;
$scope
.
alertMsg
=
"Please select a Date Of Joining"
;
document
.
getElementById
(
'dateOfJoining'
).
focus
();
document
.
getElementById
(
'dateOfJoining'
).
focus
();
}
else
if
(
dateOfBirth
!=
undefined
&&
!
(
today
.
getFullYear
()
-
dateOfBirth
.
getFullYear
()
>
20
)){
}
else
if
(
dateOfBirth
!=
undefined
&&
!
(
today
.
getFullYear
()
-
dateOfBirth
.
getFullYear
()
>
20
)){
...
@@ -443,10 +466,19 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -443,10 +466,19 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
}
else
if
(
hasPassort
==
undefined
){
}
else
if
(
hasPassort
==
undefined
){
$scope
.
alertMsg
=
"Please select a Passport"
;
$scope
.
alertMsg
=
"Please select a Passport"
;
document
.
getElementById
(
'hasPassort'
).
focus
();
document
.
getElementById
(
'hasPassort'
).
focus
();
}
else
if
(
hasB1
==
undefined
){
}
else
if
(
hasPassort
==
"Yes"
&&
(
passportExpiryDate
==
undefined
||
passportExpiryDate
==
""
)){
$scope
.
alertMsg
=
"Please select the Passport Expiry Date:"
;
document
.
getElementById
(
'passportExpiryDate'
).
focus
();
}
else
if
(
hasB1
==
undefined
){
$scope
.
alertMsg
=
"Please select a Visa"
;
$scope
.
alertMsg
=
"Please select a Visa"
;
document
.
getElementById
(
'hasB1'
).
focus
();
document
.
getElementById
(
'hasB1'
).
focus
();
}
}
else
if
(
hasB1
==
"Yes"
&&
(
b1ExpiryDate
==
undefined
||
b1ExpiryDate
==
""
)){
$scope
.
alertMsg
=
"Please select the B1 Expiry Date"
;
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"
){
$scope
.
alertMsg
=
"Please select the exit date"
;
$scope
.
alertMsg
=
"Please select the exit date"
;
document
.
getElementById
(
'hasB1'
).
focus
();
document
.
getElementById
(
'hasB1'
).
focus
();
...
@@ -467,7 +499,12 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -467,7 +499,12 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
$timeout
(
function
(){
updateGrid
(
$scope
.
templateTitle
,
record
)},
500
);
$timeout
(
function
(){
updateGrid
(
$scope
.
templateTitle
,
record
)},
500
);
}
}
else
{
else
{
if
(
isDataUpdated
()
==
true
){
var
dbRecord
=
{
"employeeId"
:
dataToPass
.
employeeId
,
"employeeName"
:
dataToPass
.
employeeName
,
"gender"
:
dataToPass
.
gender
,
"emailId"
:
dataToPass
.
emailId
,
"role"
:
dataToPass
.
role
,
"empLocation"
:
dataToPass
.
empLocation
,
"designation"
:
dataToPass
.
designation
,
"functionalGroup"
:
dataToPass
.
functionalGroup
,
"empStatus"
:
dataToPass
.
empStatus
,
"employmentType"
:
dataToPass
.
employmentType
,
"dateOfJoining"
:
new
Date
(
dataToPass
.
dateOfJoining
),
"dateOfBirth"
:
new
Date
(
dataToPass
.
dateOfBirth
),
"hasPassort"
:
dataToPass
.
hasPassort
,
"hasB1"
:
dataToPass
.
hasB1
};
if
(
myFactory
.
updateFormDataCheck
(
$scope
.
myForm
,
dbRecord
)){
addOrUpdateRole
(
record
,
$scope
.
templateTitle
);
addOrUpdateRole
(
record
,
$scope
.
templateTitle
);
$timeout
(
function
(){
updateGrid
(
$scope
.
templateTitle
,
record
)},
500
);
$timeout
(
function
(){
updateGrid
(
$scope
.
templateTitle
,
record
)},
500
);
}
}
...
@@ -501,10 +538,10 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -501,10 +538,10 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
FunctionalGroup
:
dataToPass
.
functionalGroup
,
FunctionalGroup
:
dataToPass
.
functionalGroup
,
HasPassport
:
dataToPass
.
hasPassort
,
HasPassport
:
dataToPass
.
hasPassort
,
HasB1Visa
:
dataToPass
.
hasB1
,
HasB1Visa
:
dataToPass
.
hasB1
,
Dateofjoining
:
new
Date
(
dataToPass
.
dateOfJoining
),
Dateofjoining
:
(
dataToPass
.
dateOfJoining
==
null
)
?
null
:
new
Date
(
dataToPass
.
dateOfJoining
),
//DateofBirth:dataToPass.dateOfBirth ? new Date(dataToPass.dateOfBirth) : ''
DateofBirth
:
(
dataToPass
.
dateOfBirth
==
null
)
?
null
:
new
Date
(
dataToPass
.
dateOfBirth
),
DateofBirth
:
new
Date
(
dataToPass
.
dateOfBirth
)
passportExpiryDate
:
(
dataToPass
.
passportExpiryDate
==
null
)?
null
:
new
Date
(
dataToPass
.
passportExpiryDate
)
,
b1ExpiryDate
:
(
dataToPass
.
b1ExpiryDate
==
null
)?
null
:
new
Date
(
dataToPass
.
b1ExpiryDate
)
}
}
$scope
.
currentData
=
{
$scope
.
currentData
=
{
EmpId
:
$scope
.
empId
,
EmpId
:
$scope
.
empId
,
...
@@ -520,7 +557,9 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -520,7 +557,9 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
HasPassport
:
$scope
.
hasPassort
,
HasPassport
:
$scope
.
hasPassort
,
HasB1Visa
:
$scope
.
hasB1
,
HasB1Visa
:
$scope
.
hasB1
,
Dateofjoining
:
$scope
.
dateOfJoining
,
Dateofjoining
:
$scope
.
dateOfJoining
,
DateofBirth
:
$scope
.
dateOfBirth
DateofBirth
:
$scope
.
dateOfBirth
,
passportExpiryDate
:
$scope
.
passportExpiryDate
,
b1ExpiryDate
:
$scope
.
b1ExpiryDate
,
}
}
var
predata
=
JSON
.
stringify
(
$scope
.
previousData
);
var
predata
=
JSON
.
stringify
(
$scope
.
previousData
);
...
...
src/main/webapp/WEB-INF/js/app.js
View file @
d3d17a1b
...
@@ -19,7 +19,7 @@ myApp.constant('appConfig', {
...
@@ -19,7 +19,7 @@ myApp.constant('appConfig', {
appUri
:
"http://10.3.45.11:8080/myTeam/"
,
appUri
:
"http://10.3.45.11:8080/myTeam/"
,
version
:
"1.0"
,
version
:
"1.0"
,
empStartId
:
16001
,
empStartId
:
16001
,
empEndId
:
16
999
,
empEndId
:
99
999
,
sessionIdle
:
900
,
sessionIdle
:
900
,
timeOut
:
3
,
timeOut
:
3
,
keepAlive
:
5
keepAlive
:
5
...
@@ -170,11 +170,39 @@ myApp.factory('myFactory', function() {
...
@@ -170,11 +170,39 @@ myApp.factory('myFactory', function() {
return
false
;
return
false
;
}
}
// function addFormDataCheck(form){
// var obj = {};
// form.$$controls.forEach(function(field){
// if(field.$name != "" && field.$name != undefined && field.$viewValue != "" && field.$viewValue != undefined){
// obj[field.$name] = field.$viewValue ;
// }
// });
// return obj;
// }
function
sortObjectBasedOnKeys
(
unordered
){
var
ordered
=
{};
Object
.
keys
(
unordered
).
sort
().
forEach
(
function
(
key
)
{
ordered
[
key
]
=
unordered
[
key
];
});
console
.
log
(
ordered
);
return
ordered
;
}
function
addFormDataCheck
(
form
){
function
addFormDataCheck
(
form
){
var
obj
=
{};
var
obj
=
{};
var
managerIds
=
[];
form
.
$$controls
.
forEach
(
function
(
field
){
form
.
$$controls
.
forEach
(
function
(
field
){
if
(
field
.
$name
!=
""
&&
field
.
$name
!=
undefined
&&
field
.
$viewValue
!=
""
&&
field
.
$viewValue
!=
undefined
){
if
(
field
.
$name
!=
""
&&
field
.
$name
!=
undefined
&&
field
.
$viewValue
!=
""
&&
field
.
$viewValue
!=
undefined
){
obj
[
field
.
$name
]
=
field
.
$viewValue
;
if
(
Array
.
isArray
(
field
.
$viewValue
)){
field
.
$viewValue
.
forEach
(
function
(
manager
){
managerIds
.
push
(
manager
.
employeeId
);
})
obj
[
field
.
$name
]
=
managerIds
;
}
else
{
obj
[
field
.
$name
]
=
field
.
$viewValue
;
}
}
}
});
});
return
obj
;
return
obj
;
...
@@ -182,8 +210,9 @@ myApp.factory('myFactory', function() {
...
@@ -182,8 +210,9 @@ myApp.factory('myFactory', function() {
function
updateFormDataCheck
(
form
,
record
){
function
updateFormDataCheck
(
form
,
record
){
var
updatedForm
=
addFormDataCheck
(
form
);
var
updatedForm
=
addFormDataCheck
(
form
);
console
.
log
(
JSON
.
stringify
(
updatedForm
)
==
JSON
.
stringify
(
record
),
JSON
.
stringify
(
updatedForm
)
,
JSON
.
stringify
(
record
));
var
sortedUpdatedForm
=
sortObjectBasedOnKeys
(
updatedForm
);
if
(
JSON
.
stringify
(
updatedForm
)
==
JSON
.
stringify
(
record
)){
var
sortedRecord
=
sortObjectBasedOnKeys
(
record
);
if
(
JSON
.
stringify
(
sortedUpdatedForm
)
==
JSON
.
stringify
(
sortedRecord
)){
return
false
;
return
false
;
}
}
return
true
;
return
true
;
...
...
src/main/webapp/WEB-INF/templates/newRoleTemplate.html
View file @
d3d17a1b
...
@@ -22,19 +22,19 @@
...
@@ -22,19 +22,19 @@
<tr>
<tr>
<td
colspan=
"4"
><b>
Emp ID:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"4"
><b>
Emp ID:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"8"
><input
type=
"text"
class=
"form-control"
<td
colspan=
"8"
><input
type=
"text"
class=
"form-control"
id=
"empId"
name=
"empId"
ng-model=
"empId"
id=
"empId"
name=
"emp
loyee
Id"
ng-model=
"empId"
placeholder=
"Employee ID"
ng-blur=
"validateEmpId()"
placeholder=
"Employee ID"
ng-blur=
"validateEmpId()"
ng-disabled=
"isDisabled"
/></td>
<!-- ng-blur="validateEmpId()'' -->
ng-disabled=
"isDisabled"
/></td>
<!-- ng-blur="validateEmpId()'' -->
<tr>
<tr>
<tr>
<tr>
<td
colspan=
"4"
><b>
Employee Name:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"4"
><b>
Employee Name:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"8"
><input
type=
"text"
class=
"form-control"
<td
colspan=
"8"
><input
type=
"text"
class=
"form-control"
id=
"empName"
name=
"empName"
ng-model=
"empName"
id=
"empName"
name=
"emp
loyee
Name"
ng-model=
"empName"
placeholder=
"Employee Name"
ng-blur=
"validateEmpName()"
/></td>
<!-- ng-blur="validateEmpName()"-->
placeholder=
"Employee Name"
ng-blur=
"validateEmpName()"
/></td>
<!-- ng-blur="validateEmpName()"-->
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"-10"
><b>
Gender:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"-10"
><b>
Gender:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"8"
><md-select
ng-model=
"gender"
ng-blur=
"validateMessage()"
<td
colspan=
"8"
><md-select
ng-model=
"gender"
ng-blur=
"validateMessage()"
name=
"gender"
md-selected-text=
"getSelectedGender()"
id=
"gender"
>
md-selected-text=
"getSelectedGender()"
id=
"gender"
>
<md-option
ng-model=
"gender"
value=
"Male"
>
Male
</md-option>
<md-option
<md-option
ng-model=
"gender"
value=
"Male"
>
Male
</md-option>
<md-option
ng-model=
"gender"
value=
"Female"
>
Female
</md-option>
</md-select></td>
ng-model=
"gender"
value=
"Female"
>
Female
</md-option>
</md-select></td>
...
@@ -43,22 +43,22 @@
...
@@ -43,22 +43,22 @@
<tr>
<tr>
<td
colspan=
"4"
><b>
Email:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"4"
><b>
Email:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"8"
><input
type=
"text"
class=
"form-control"
<td
colspan=
"8"
><input
type=
"text"
class=
"form-control"
id=
"empEmail"
name=
"em
pEmail
"
ng-model=
"empEmail"
id=
"empEmail"
name=
"em
ailId
"
ng-model=
"empEmail"
placeholder=
"Email ID"
ng-blur=
"validate
EmailId(
)"
placeholder=
"Email ID"
ng-blur=
"validate
Message('email'
)"
ng-disabled=
"isDisabled"
style=
"text-transform: lowercase;"
/></td>
<!--ng-blur="validateEmailId()"-->
ng-disabled=
"isDisabled"
style=
"text-transform: lowercase;"
/></td>
<!--ng-blur="validateEmailId()"-->
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"4"
><b>
Date of Joining:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"4"
><b>
Date of Joining:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"8"
><md-datepicker
ng-model=
"dateOfJoining"
id=
"dateOfJoining"
<td
colspan=
"8"
><md-datepicker
ng-model=
"dateOfJoining"
id=
"dateOfJoining"
md-placeholder=
"Date of Joining"
md-min-date=
"minDate"
id=
"dateOfBirth
"
name=
"dateOfJoining"
md-placeholder=
"Date of Joining"
md-min-date=
"minDate
"
md-max-date=
"maxDate"
onkeydown=
"return false"
ng-blur=
"validateMessage()"
></md-datepicker>
md-max-date=
"maxDate"
onkeydown=
"return false"
ng-blur=
"validateMessage()"
></md-datepicker>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"4"
><b>
Date of Birth:
</b></td>
<td
colspan=
"4"
><b>
Date of Birth:
</b></td>
<td
colspan=
"8"
><md-datepicker
ng-model=
"dateOfBirth"
<td
colspan=
"8"
><md-datepicker
ng-model=
"dateOfBirth"
id=
"dateOfBirth"
name=
"dateOfBirth"
md-placeholder=
"Date of Birth"
md-min-date=
"minDate"
md-placeholder=
"Date of Birth"
md-min-date=
"minDate"
md-max-date=
"maxDate"
onkeydown=
"return false"
></md-datepicker>
md-max-date=
"maxDate"
onkeydown=
"return false"
></md-datepicker>
</td>
</td>
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
<tr
ng-show=
"templateTitle != 'Add'"
>
<tr
ng-show=
"templateTitle != 'Add'"
>
<td
colspan=
"4"
><b>
Employment Status {{templateTitle}}:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"4"
><b>
Employment Status {{templateTitle}}:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"8"
><md-select
ng-model=
"empStatus"
<td
colspan=
"8"
><md-select
ng-model=
"empStatus"
name =
"empStatus"
md-selected-text=
"getSelectedEmpStatus()"
id=
"empStatus"
>
md-selected-text=
"getSelectedEmpStatus()"
id=
"empStatus"
>
<md-optgroup
label=
"Employment Status"
>
<md-option
<md-optgroup
label=
"Employment Status"
>
<md-option
ng-value=
"status"
ng-repeat=
"status in empStatuses"
>
{{status}}
</md-option>
ng-value=
"status"
ng-repeat=
"status in empStatuses"
>
{{status}}
</md-option>
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
</tr>
</tr>
<tr
ng-show=
"empStatus == 'In Active'"
>
<tr
ng-show=
"empStatus == 'In Active'"
>
<td
colspan=
"4"
><b>
Employee Exit Date:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"4"
><b>
Employee Exit Date:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"8"
><md-datepicker
ng-model=
"exitDate"
<td
colspan=
"8"
><md-datepicker
ng-model=
"exitDate"
name=
"endDate"
md-placeholder=
"Exit Date"
md-min-date=
"minDate"
md-placeholder=
"Exit Date"
md-min-date=
"minDate"
md-max-date=
"maxDate"
onkeydown=
"return false"
></md-datepicker>
md-max-date=
"maxDate"
onkeydown=
"return false"
></md-datepicker>
</td>
</td>
...
@@ -102,9 +102,9 @@
...
@@ -102,9 +102,9 @@
<tr>
<tr>
<td
colspan=
"4"
><b>
Functional Group:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"4"
><b>
Functional Group:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"8"
><md-select
ng-blur=
"validateMessage()"
ng-model=
"functionalGroup"
<td
colspan=
"8"
><md-select
ng-blur=
"validateMessage()"
ng-model=
"functionalGroup"
md-selected-text=
"getSelectedFunctionalGroup()"
md-selected-text=
"getSelectedFunctionalGroup()"
name=
"functionalGroup"
id=
"functionalGroup"
>
<md-optgroup
id=
"functionalGroup"
>
<md-optgroup
label=
"Functional
Org
"
>
<md-option
label=
"Functional
Group
"
>
<md-option
ng-value=
"functionalGroup"
ng-value=
"functionalGroup"
ng-repeat=
"functionalGroup in functionalGroups"
>
{{functionalGroup}}
</md-option>
ng-repeat=
"functionalGroup in functionalGroups"
>
{{functionalGroup}}
</md-option>
</md-optgroup>
</md-select></td>
</md-optgroup>
</md-select></td>
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
<tr>
<tr>
<td
colspan=
"4"
><b>
Designation:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"4"
><b>
Designation:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"8"
><md-select
ng-model=
"designation"
ng-blur=
"validateMessage()"
<td
colspan=
"8"
><md-select
ng-model=
"designation"
ng-blur=
"validateMessage()"
name=
"designation"
md-selected-text=
"getDesignationText()"
id=
"designation"
>
md-selected-text=
"getDesignationText()"
id=
"designation"
>
<md-optgroup
label=
"designations"
>
<md-option
<md-optgroup
label=
"designations"
>
<md-option
ng-value=
"designation"
ng-repeat=
"designation in designations"
>
{{designation}}
</md-option>
ng-value=
"designation"
ng-repeat=
"designation in designations"
>
{{designation}}
</md-option>
...
@@ -121,8 +121,8 @@
...
@@ -121,8 +121,8 @@
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"4"
><b>
Work Location:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"4"
><b>
Work
Location:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"8"
><md-select
ng-model=
"empLocation"
ng-blur=
"validateMessage()"
<td
colspan=
"8"
><md-select
ng-model=
"empLocation"
ng-blur=
"validateMessage()"
name=
"empLocation"
md-selected-text=
"getSelectedLocation()"
id=
"empLocation"
>
md-selected-text=
"getSelectedLocation()"
id=
"empLocation"
>
<md-optgroup
label=
"locations"
>
<md-option
<md-optgroup
label=
"locations"
>
<md-option
ng-value=
"location"
ng-repeat=
"location in locations"
>
{{location}}
</md-option>
ng-value=
"location"
ng-repeat=
"location in locations"
>
{{location}}
</md-option>
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
<tr>
<tr>
<td
colspan=
"4"
><b>
Employment Type:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"4"
><b>
Employment Type:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"8"
><md-select
ng-model=
"employmentType"
ng-blur=
"validateMessage()"
<td
colspan=
"8"
><md-select
ng-model=
"employmentType"
ng-blur=
"validateMessage()"
name=
"employmentType"
md-selected-text=
"getSelectedEmploymentType()"
md-selected-text=
"getSelectedEmploymentType()"
id=
"employmentType"
>
<md-optgroup
id=
"employmentType"
>
<md-optgroup
label=
"Employment Type"
>
<md-option
label=
"Employment Type"
>
<md-option
...
@@ -161,7 +161,7 @@
...
@@ -161,7 +161,7 @@
<tr>
<tr>
<td
colspan=
"4"
><b>
Org Role:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"4"
><b>
Org Role:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"8"
><md-select
ng-model=
"empRole"
ng-blur=
"validateMessage()"
<td
colspan=
"8"
><md-select
ng-model=
"empRole"
ng-blur=
"validateMessage()"
md-selected-text=
"getSelectedRole()"
id=
"empRole"
>
<md-optgroup
md-selected-text=
"getSelectedRole()"
name=
"role"
id=
"empRole"
>
<md-optgroup
label=
"roles"
>
<md-option
ng-value=
"role"
label=
"roles"
>
<md-option
ng-value=
"role"
ng-repeat=
"role in roles"
>
{{role}}
</md-option>
</md-optgroup>
</md-select></td>
ng-repeat=
"role in roles"
>
{{role}}
</md-option>
</md-optgroup>
</md-select></td>
</tr>
</tr>
...
@@ -169,30 +169,30 @@
...
@@ -169,30 +169,30 @@
<tr>
<tr>
<td
colspan=
"1"
><b>
HasPassport:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"1"
><b>
HasPassport:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"8"
><md-select
ng-model=
"hasPassort"
ng-blur=
"validateMessage()"
<td
colspan=
"8"
><md-select
ng-model=
"hasPassort"
ng-blur=
"validateMessage()"
id=
"hasPassort"
>
<md-option
ng-model=
"hasPassort"
id=
"hasPassort"
>
<md-option
ng-model=
"hasPassort"
name=
"hasPassort"
value=
"Yes"
>
Yes
</md-option>
<md-option
ng-model=
"hasPassort"
value=
"Yes"
>
Yes
</md-option>
<md-option
ng-model=
"hasPassort"
value=
"No"
>
No
</md-option>
</md-select></td>
value=
"No"
>
No
</md-option>
</md-select></td>
</tr>
</tr>
<tr
ng-
if
=
"hasPassort == 'Yes'"
>
<tr
ng-
show
=
"hasPassort == 'Yes'"
>
<td
colspan=
"4"
><b>
Passport Expiry Date:
</b></td>
<td
colspan=
"4"
><b>
Passport Expiry Date:
</b><
span
class=
"mandatory"
></span><
/td>
<td
colspan=
"8"
><md-datepicker
ng-model=
"passportExpiryDate"
<td
colspan=
"8"
><md-datepicker
ng-model=
"passportExpiryDate"
md-placeholder=
"Passport Expiry Date"
md-min-date=
"minDate"
id=
"passportExpiryDate"
md-placeholder=
"Passport Expiry Date"
md-min-date=
"minDate"
md-max-date=
"maxDate"
onkeydown=
"return false"
></md-datepicker>
name=
"passportExpiryDate"
md-max-date=
"maxDate"
onkeydown=
"return false"
></md-datepicker>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"1"
><b>
Has B1 Visa:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"1"
><b>
Has B1 Visa:
</b><span
class=
"mandatory"
></span></td>
<td
colspan=
"8"
><md-select
ng-model=
"hasB1"
id=
"hasB1"
ng-blur=
"validateMessage()"
>
<td
colspan=
"8"
><md-select
ng-model=
"hasB1"
id=
"hasB1"
ng-blur=
"validateMessage()"
name=
"hasB1"
>
<md-option
ng-model=
"hasB1"
value=
"Yes"
>
Yes
</md-option>
<md-option
<md-option
ng-model=
"hasB1"
value=
"Yes"
>
Yes
</md-option>
<md-option
ng-model=
"hasB1"
value=
"No"
>
No
</md-option>
</md-select></td>
ng-model=
"hasB1"
value=
"No"
>
No
</md-option>
</md-select></td>
</tr>
</tr>
<tr
ng-
if
=
"hasB1 == 'Yes'"
>
<tr
ng-
show
=
"hasB1 == 'Yes'"
>
<td
colspan=
"4"
><b>
B1 Expiry Date:
</b></td>
<td
colspan=
"4"
><b>
B1 Expiry Date:
</b><
span
class=
"mandatory"
></span><
/td>
<td
colspan=
"8"
><md-datepicker
ng-model=
"b1ExpiryDate"
<td
colspan=
"8"
><md-datepicker
ng-model=
"b1ExpiryDate"
name=
"b1ExpiryDate"
md-placeholder=
"B1 Expiry Date"
md-min-date=
"minDate"
id=
"b1ExpiryDate"
md-placeholder=
"B1 Expiry Date"
md-min-date=
"minDate"
md-max-date=
"maxDate"
onkeydown=
"return false"
></md-datepicker>
md-max-date=
"maxDate"
onkeydown=
"return false"
></md-datepicker>
</td>
</td>
</tr>
</tr>
...
...
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