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
817dadbe
Commit
817dadbe
authored
Jun 07, 2019
by
Prayas Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated Allocation Change screen
parent
66ba5d97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
18 deletions
+21
-18
AllocationChangeController.js
.../webapp/WEB-INF/controllers/AllocationChangeController.js
+19
-16
allocationChangeReport.html
...main/webapp/WEB-INF/templates/allocationChangeReport.html
+2
-2
No files found.
src/main/webapp/WEB-INF/controllers/AllocationChangeController.js
View file @
817dadbe
...
@@ -15,18 +15,21 @@ myApp.controller("allocationChangeReportController",function($scope,exportUiGrid
...
@@ -15,18 +15,21 @@ myApp.controller("allocationChangeReportController",function($scope,exportUiGrid
paginationPageSize
:
10
,
paginationPageSize
:
10
,
pageNumber
:
1
,
pageNumber
:
1
,
pageSize
:
10
,
pageSize
:
10
,
enableFiltering
:
true
,
enableFiltering
:
true
,
enableHorizontalScrollbar
:
1
,
columnDefs
:
[
columnDefs
:
[
{
field
:
'employeeId'
,
displayName
:
'Employee Id'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
true
},
{
field
:
'employeeId'
,
displayName
:
'Employee Id'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
true
,
width
:
100
},
{
field
:
'employeeName'
,
displayName
:
'Employee Name'
,
enableColumnMenu
:
false
,
enableSorting
:
true
,
enableFiltering
:
true
},
{
field
:
'employeeName'
,
displayName
:
'Employee Name'
,
enableColumnMenu
:
false
,
enableSorting
:
true
,
enableFiltering
:
true
,
width
:
200
},
{
name
:
' prevClient'
,
displayName
:
'Previous Client'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
{
name
:
' prevAccountName'
,
displayName
:
'Previous Client'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
,
width
:
100
},
{
field
:
'prevProjectName'
,
displayName
:
'Previous Project'
,
enableColumnMenu
:
false
,
enableSorting
:
true
,
enableFiltering
:
true
},
{
field
:
'prevProjectName'
,
displayName
:
'Previous Project'
,
enableColumnMenu
:
false
,
enableSorting
:
true
,
enableFiltering
:
true
,
width
:
150
},
{
name
:
'prevBillableStatus'
,
displayName
:
'Previous Billability'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
{
name
:
'prevBillableStatus'
,
displayName
:
'Previous Billability'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
,
width
:
100
},
{
name
:
'prevBillingStartDate'
,
displayName
:
'Previous Billing Start Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
{
name
:
'prevBillingStartDate'
,
displayName
:
'Previous Billing Start Date'
,
cellFilter
:
'date:"dd-MMM-yyyy"'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
,
width
:
150
},
{
name
:
'currentClient'
,
displayName
:
'Current Client'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
{
name
:
'prevBillingEndDate'
,
displayName
:
'Previous Billing Start Date'
,
cellFilter
:
'date:"dd-MMM-yyyy"'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
,
width
:
150
},
{
field
:
'currentProjectName'
,
displayName
:
'Current Project'
,
enableColumnMenu
:
false
,
enableSorting
:
true
,
enableFiltering
:
true
},
{
name
:
'currentAccountName'
,
displayName
:
'Current Client'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
,
width
:
100
},
{
name
:
'currentBillingStartDate'
,
displayName
:
'Current Billing Start Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
{
name
:
'currentBillableStatus'
,
displayName
:
'Current Billability'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
,
width
:
100
},
{
name
:
'currentBillingStartDate'
,
displayName
:
'Current Billing End Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
{
field
:
'currentProjectName'
,
displayName
:
'Current Project'
,
enableColumnMenu
:
false
,
enableSorting
:
true
,
enableFiltering
:
true
,
width
:
150
},
{
name
:
'currentBillingStartDate'
,
displayName
:
'Current Billing Start Date'
,
cellFilter
:
'date:"dd-MMM-yyyy"'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
,
width
:
150
},
{
name
:
'currentBillingEndDate'
,
displayName
:
'Current Billing End Date'
,
cellFilter
:
'date:"dd-MMM-yyyy"'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
,
width
:
150
},
],
],
enableGridMenu
:
true
,
enableGridMenu
:
true
,
...
@@ -72,15 +75,15 @@ myApp.controller("allocationChangeReportController",function($scope,exportUiGrid
...
@@ -72,15 +75,15 @@ myApp.controller("allocationChangeReportController",function($scope,exportUiGrid
};
};
$scope
.
gridOptions
.
data
=
[];
$scope
.
gridOptions
.
data
=
[];
/* $scope.getEmployeeEfforts
Data = function(){
$scope
.
getAllocationChange
Data
=
function
(){
var
fromDate
=
getFormattedDate
(
$scope
.
fromDate
);
var
fromDate
=
getFormattedDate
(
$scope
.
fromDate
);
var
toDate
=
getFormattedDate
(
$scope
.
toDate
);
var
toDate
=
getFormattedDate
(
$scope
.
toDate
);
$http
({
$http
({
method
:
"GET"
,
method
:
"GET"
,
url : appConfig.appUri + "
employeeEfforts/getWeeklyReport
?fromDate=" + fromDate + "&toDate=" +toDate
url
:
appConfig
.
appUri
+
"
resources/allocationReports
?fromDate="
+
fromDate
+
"&toDate="
+
toDate
}).
then
(
function
mySuccess
(
response
)
{
}).
then
(
function
mySuccess
(
response
)
{
$scope.gridOptions.data = response.data;
$scope
.
gridOptions
.
data
=
response
.
data
.
records
;
if(response.data.length > 10){
if
(
response
.
data
.
records
.
length
>
10
){
$scope
.
gridOptions
.
enablePaginationControls
=
true
;
$scope
.
gridOptions
.
enablePaginationControls
=
true
;
}
}
else
{
else
{
...
@@ -90,7 +93,7 @@ myApp.controller("allocationChangeReportController",function($scope,exportUiGrid
...
@@ -90,7 +93,7 @@ myApp.controller("allocationChangeReportController",function($scope,exportUiGrid
showAlert
(
"Something went wrong while fetching data!!!"
);
showAlert
(
"Something went wrong while fetching data!!!"
);
$scope
.
gridOptions
.
data
=
[];
$scope
.
gridOptions
.
data
=
[];
});
});
}
*/
}
$scope
.
validateDates
=
function
(
dateValue
,
from
)
{
$scope
.
validateDates
=
function
(
dateValue
,
from
)
{
if
(
from
==
"FromDate"
){
if
(
from
==
"FromDate"
){
...
...
src/main/webapp/WEB-INF/templates/allocationChangeReport.html
View file @
817dadbe
<div
class=
"md-padding"
id=
"popupContainer"
ng-controller=
"allocationChangeReportController"
>
<div
class=
"md-padding"
id=
"popupContainer"
ng-controller=
"allocationChangeReportController"
ng-init=
"getAllocationChangeData()"
>
<div
class=
"container-fluid mainDivHeaderClass"
>
<div
class=
"container-fluid mainDivHeaderClass"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<div
class=
"col-lg-12"
>
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"form-inline col-lg-12"
>
<div
class=
"form-inline col-lg-12"
>
<div
id=
"gridTest"
ui-grid=
"gridOptions"
ui-grid-pagination
ui-grid-exporter
<div
id=
"gridTest"
ui-grid=
"gridOptions"
ui-grid-pagination
ui-grid-exporter
class=
"mygrid
manage-employee-efforts
"
>
class=
"mygrid"
>
<div
class=
"watermark"
ng-show=
"!gridOptions.data.length"
>
No
<div
class=
"watermark"
ng-show=
"!gridOptions.data.length"
>
No
data available
</div>
data available
</div>
</div>
</div>
...
...
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