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
68a63202
Unverified
Commit
68a63202
authored
Aug 08, 2018
by
mshaik-nisum-com
Committed by
GitHub
Aug 08, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #135 from nisum-inc/FEATURE/NEW_UI_Change
New validation as per requirement
parents
df3921de
26f7fd1a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
20 deletions
+32
-20
MyProjectAllocations.js
src/main/webapp/WEB-INF/controllers/MyProjectAllocations.js
+3
-2
ProjectController.js
src/main/webapp/WEB-INF/controllers/ProjectController.js
+29
-18
No files found.
src/main/webapp/WEB-INF/controllers/MyProjectAllocations.js
View file @
68a63202
...
...
@@ -118,8 +118,9 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
columnDefs
:
[
{
field
:
'employeeId'
,
displayName
:
'Emp ID'
,
enableColumnMenu
:
true
,
enableSorting
:
true
,
width
:
100
},
{
field
:
'employeeName'
,
displayName
:
'Empl Name '
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'emailId'
,
displayName
:
'Email Id '
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'experience'
,
displayName
:
'Exp'
,
enableColumnMenu
:
true
,
enableSorting
:
true
,
width
:
80
},
{
field
:
'role'
,
displayName
:
'Role'
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
// {field : 'emailId',displayName: 'Email Id ', enableColumnMenu: false, enableSorting: false},
// {field : 'experience',displayName: 'Exp', enableColumnMenu: true, enableSorting: true,width:80},
{
field
:
'designation'
,
displayName
:
'Designation '
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'billableStatus'
,
displayName
:
'Billability '
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
]
...
...
src/main/webapp/WEB-INF/controllers/ProjectController.js
View file @
68a63202
...
...
@@ -352,8 +352,17 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
return
obj
;
};
var
today
=
new
Date
();
$scope
.
addTab
=
function
()
{
if
(
!
(
new
Date
(
dataToPass
.
projectEndDate
)
>
today
)
){
$mdDialog
.
show
(
$mdDialog
.
alert
({
skipHide
:
true
,
title
:
"Attention"
,
textContent
:
'Employee cannot be added to Completed Project'
,
ok
:
'ok'
}));
}
else
{
if
(
$scope
.
isSecondTab
===
false
){
$scope
.
templateTitle
=
"Add"
;
$scope
.
employeeRole
=
undefined
;
...
...
@@ -372,6 +381,8 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
$scope
.
selectedTab
=
1
;
$scope
.
searchTerm
=
""
;
}
}
};
var
removeTab
=
function
(
action
)
{
if
(
action
==
"Add"
){
...
...
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