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
067cc325
Commit
067cc325
authored
Jun 07, 2019
by
Prayas Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated Reserved report
parent
2150ab95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
ProjectController.js
src/main/webapp/WEB-INF/controllers/ProjectController.js
+7
-4
ReservedReportController.js
...in/webapp/WEB-INF/controllers/ReservedReportController.js
+3
-2
No files found.
src/main/webapp/WEB-INF/controllers/ProjectController.js
View file @
067cc325
...
@@ -1358,7 +1358,8 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
...
@@ -1358,7 +1358,8 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
}
}
else
if
(
!
((
$scope
.
newBillingStartDate
>=
$scope
.
parentData
.
newBillingStartDate
)
&&
(
$scope
.
newBillingStartDate
<=
$scope
.
endDate
))
&&
action
==
"Update"
){
else
if
(
!
((
$scope
.
newBillingStartDate
>=
$scope
.
parentData
.
newBillingStartDate
)
&&
(
$scope
.
newBillingStartDate
<=
$scope
.
endDate
))
&&
action
==
"Update"
){
$scope
.
alertMsg
=
$scope
.
empBillableStatus
+
" start date should be in between previous Billing start date and end date"
;
$scope
.
alertMsg
=
$scope
.
empBillableStatus
+
" start date should be in between previous Billing start date and end date"
;
}
else
if
(
$scope
.
endDate
>
new
Date
(
dataToPass
.
projectEndDate
)){
}
else
if
(
$scope
.
endDate
>
new
Date
(
dataToPass
.
projectEndDate
)){
$scope
.
alertMsg
=
"End date should not exceed project end date"
;
$scope
.
alertMsg
=
"End date should not exceed project end date"
;
}
}
else
{
else
{
...
@@ -1506,13 +1507,15 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
...
@@ -1506,13 +1507,15 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
};
};
$scope
.
DataUpdate
=
function
()
{
$scope
.
DataUpdate
=
function
()
{
var
data
=
$scope
.
parentData
;
var
data
=
$scope
.
parentData
;
/* if (data.role == "Individual Contributor") {
if
(
data
.
role
==
"Individual Contributor"
)
{
var
roleselected
=
"Employee"
;
var
roleselected
=
"Employee"
;
}
else
{
}
else
{
roleselected
=
data
.
role
;
roleselected
=
data
.
role
;
}
*/
}
$scope
.
previousData
=
{
$scope
.
previousData
=
{
Role
:
data
.
role
,
Role
:
roleselected
,
//Shift: data.shift,
//Shift: data.shift,
Billabilitystatus
:
data
.
billableStatus
,
Billabilitystatus
:
data
.
billableStatus
,
newBilligStartDate
:
new
Date
(
data
.
newBillingStartDate
),
newBilligStartDate
:
new
Date
(
data
.
newBillingStartDate
),
...
...
src/main/webapp/WEB-INF/controllers/ReservedReportController.js
View file @
067cc325
myApp
.
controller
(
"reservedReportsController"
,
function
(
$scope
,
exportUiGridService
,
myFactory
,
$mdDialog
,
$http
,
appConfig
,
$timeout
,
$element
,
$window
){
myApp
.
controller
(
"reservedReportsController"
,
function
(
$scope
,
exportUiGridService
,
myFactory
,
$mdDialog
,
$http
,
appConfig
,
$timeout
,
$element
,
$window
){
$scope
.
records
=
[];
$scope
.
records
=
[];
var
today
=
new
Date
();
$scope
.
gridOptions
=
{
$scope
.
gridOptions
=
{
paginationPageSizes
:
[
10
,
20
,
30
,
40
,
50
,
100
],
paginationPageSizes
:
[
10
,
20
,
30
,
40
,
50
,
100
],
paginationPageSize
:
10
,
paginationPageSize
:
10
,
...
@@ -9,8 +10,8 @@ myApp.controller("reservedReportsController",function($scope,exportUiGridService
...
@@ -9,8 +10,8 @@ myApp.controller("reservedReportsController",function($scope,exportUiGridService
columnDefs
:
[
columnDefs
:
[
{
field
:
'employeeId'
,
displayName
:
'Employee Id'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
true
},
{
field
:
'employeeId'
,
displayName
:
'Employee Id'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
true
},
{
field
:
'employeeName'
,
displayName
:
'Employee Name'
,
enableColumnMenu
:
false
,
enableSorting
:
true
,
enableFiltering
:
true
,
cellClass
:
function
(
grid
,
row
,
col
){
{
field
:
'employeeName'
,
displayName
:
'Employee Name'
,
enableColumnMenu
:
false
,
enableSorting
:
true
,
enableFiltering
:
true
,
cellClass
:
function
(
grid
,
row
,
col
){
if
(
daysBetween
(
row
.
entity
.
billingStartDate
,
row
.
entity
.
billingEndDate
)
>
'14'
)
{
if
(
daysBetween
(
row
.
entity
.
billingStartDate
,
today
)
>
'14'
)
{
return
'red'
;
return
'red'
;
}
}
}},
}},
{
name
:
'accountName'
,
displayName
:
'Client'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
{
name
:
'accountName'
,
displayName
:
'Client'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
...
...
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