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
74aff0b5
Commit
74aff0b5
authored
May 13, 2019
by
NISUM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI Changes to myProjectAllocations
parent
fe57dccc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
MyProjectAllocationVO.java
...java/com/nisum/myteam/model/vo/MyProjectAllocationVO.java
+2
-1
ResourceAllocationService.java
.../nisum/myteam/service/impl/ResourceAllocationService.java
+2
-1
MyProjectAllocations.js
src/main/webapp/WEB-INF/controllers/MyProjectAllocations.js
+7
-7
No files found.
src/main/java/com/nisum/myteam/model/vo/MyProjectAllocationVO.java
View file @
74aff0b5
...
@@ -14,6 +14,7 @@ import java.util.List;
...
@@ -14,6 +14,7 @@ import java.util.List;
@NoArgsConstructor
@NoArgsConstructor
public
class
MyProjectAllocationVO
{
public
class
MyProjectAllocationVO
{
private
String
projectId
;
private
String
projectName
;
private
String
projectName
;
private
String
accountName
;
private
String
accountName
;
...
@@ -28,6 +29,6 @@ public class MyProjectAllocationVO {
...
@@ -28,6 +29,6 @@ public class MyProjectAllocationVO {
private
String
shift
;
private
String
shift
;
private
String
resourceStatus
;
private
String
resourceStatus
;
private
List
<
HashMap
<
String
,
String
>>
deliverLeadIds
;
private
List
<
HashMap
<
String
,
String
>>
deliver
y
LeadIds
;
}
}
src/main/java/com/nisum/myteam/service/impl/ResourceAllocationService.java
View file @
74aff0b5
...
@@ -288,6 +288,7 @@ public class ResourceAllocationService implements IResourceAllocationService {
...
@@ -288,6 +288,7 @@ public class ResourceAllocationService implements IResourceAllocationService {
employee
=
employeeService
.
getEmployeeById
(
resourceAlloc
.
getEmployeeId
());
employee
=
employeeService
.
getEmployeeById
(
resourceAlloc
.
getEmployeeId
());
MyProjectAllocationVO
myProject
=
new
MyProjectAllocationVO
();
MyProjectAllocationVO
myProject
=
new
MyProjectAllocationVO
();
myProject
.
setProjectId
(
project
.
getProjectId
());
myProject
.
setProjectName
(
project
.
getProjectName
());
myProject
.
setProjectName
(
project
.
getProjectName
());
myProject
.
setAccountName
(
account
.
getAccountName
());
myProject
.
setAccountName
(
account
.
getAccountName
());
...
@@ -302,7 +303,7 @@ public class ResourceAllocationService implements IResourceAllocationService {
...
@@ -302,7 +303,7 @@ public class ResourceAllocationService implements IResourceAllocationService {
}
}
if
(
project
.
getDeliveryLeadIds
()
!=
null
)
{
if
(
project
.
getDeliveryLeadIds
()
!=
null
)
{
myProject
.
setDeliverLeadIds
(
employeeService
.
getDeliveryManagerMap
(
project
.
getDeliveryLeadIds
()));
myProject
.
setDeliver
y
LeadIds
(
employeeService
.
getDeliveryManagerMap
(
project
.
getDeliveryLeadIds
()));
}
}
myProjectList
.
add
(
myProject
);
myProjectList
.
add
(
myProject
);
}
}
...
...
src/main/webapp/WEB-INF/controllers/MyProjectAllocations.js
View file @
74aff0b5
...
@@ -14,7 +14,7 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
...
@@ -14,7 +14,7 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
$scope
.
employees
=
[];
$scope
.
employees
=
[];
$scope
.
projects
=
[];
$scope
.
projects
=
[];
var
getCellTemplate
=
'<div class="ui-grid-cell-contents"><a href="#" ng-click="grid.appScope.getRowData(row,
\'
View
\'
)">{{COL_FIELD}}</a></div>'
;
var
getCellTemplate
=
'<div class="ui-grid-cell-contents"><a href="#" ng-click="grid.appScope.getRowData(row,
\'
View
\'
)">{{COL_FIELD}}</a></div>'
;
var
getCellActiveTemplate
=
'<div ng-show="COL_FIELD==true"><p class="col-lg-12">Active</P></div><div ng-show="COL_FIELD==false"><p class="col-lg-12">In Active</p></div>'
;
//
var getCellActiveTemplate='<div ng-show="COL_FIELD==true"><p class="col-lg-12">Active</P></div><div ng-show="COL_FIELD==false"><p class="col-lg-12">In Active</p></div>';
//var getCellTemplate = '<p class="col-lg-12"><i class="fa fa-2x" aria-hidden="true" style="font-size:1.5em;colormargin-top:3px;cursor:pointer;" ng-click="grid.appScope.getRowData(row,\'Update\')">{{COL_FIELD}}</i></i></p>';
//var getCellTemplate = '<p class="col-lg-12"><i class="fa fa-2x" aria-hidden="true" style="font-size:1.5em;colormargin-top:3px;cursor:pointer;" ng-click="grid.appScope.getRowData(row,\'Update\')">{{COL_FIELD}}</i></i></p>';
// var getCellActiveTemplate='<div >COL_FIELD<p class="col-lg-12">Y</P></div><div ng-show="COL_FIELD==false"><p class="col-lg-12">N</p></div>';
// var getCellActiveTemplate='<div >COL_FIELD<p class="col-lg-12">Y</P></div><div ng-show="COL_FIELD==false"><p class="col-lg-12">N</p></div>';
...
@@ -26,13 +26,13 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
...
@@ -26,13 +26,13 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
enableFiltering
:
true
,
enableFiltering
:
true
,
columnDefs
:
[
columnDefs
:
[
{
field
:
'projectName'
,
displayName
:
'Project'
,
cellTemplate
:
getCellTemplate
,
enableColumnMenu
:
true
,
enableSorting
:
true
,
enableFiltering
:
true
},
{
field
:
'projectName'
,
displayName
:
'Project'
,
cellTemplate
:
getCellTemplate
,
enableColumnMenu
:
true
,
enableSorting
:
true
,
enableFiltering
:
true
},
{
field
:
'account'
,
displayName
:
'Account'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
true
},
{
field
:
'account
Name
'
,
displayName
:
'Account'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
true
},
{
field
:
'deliveryLeadIds'
,
displayName
:
'Delivery Lead'
,
cellTemplate
:
'<div ng-repeat= "item in row.entity[col.field]">{{item.employeeName}}<span ng-hide="$last">,</span></div>'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
{
field
:
'deliveryLeadIds'
,
displayName
:
'Delivery Lead'
,
cellTemplate
:
'<div ng-repeat= "item in row.entity[col.field]">{{item.employeeName}}<span ng-hide="$last">,</span></div>'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
{
field
:
'billableStatus'
,
displayName
:
'Billability'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
{
field
:
'billableStatus'
,
displayName
:
'Billability'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
{
field
:
'
project
StartDate'
,
displayName
:
'Start Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
cellFilter
:
'date:"dd-MMM-yyyy"'
,
enableFiltering
:
false
},
{
field
:
'
billing
StartDate'
,
displayName
:
'Start Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
cellFilter
:
'date:"dd-MMM-yyyy"'
,
enableFiltering
:
false
},
{
field
:
'
project
EndDate'
,
displayName
:
'End Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
cellFilter
:
'date:"dd-MMM-yyyy"'
,
enableFiltering
:
false
},
{
field
:
'
billing
EndDate'
,
displayName
:
'End Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
cellFilter
:
'date:"dd-MMM-yyyy"'
,
enableFiltering
:
false
},
{
field
:
'shift'
,
displayName
:
'Shift'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
{
field
:
'shift'
,
displayName
:
'Shift'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
{
field
:
'
status'
,
displayName
:
'Status'
,
enableColumnMenu
:
false
,
cellTemplate
:
getCellActiveTemplat
e
,
enableSorting
:
false
,
enableFiltering
:
false
}
{
field
:
'
resourceStatus'
,
displayName
:
'Status'
,
enableColumnMenu
:
fals
e
,
enableSorting
:
false
,
enableFiltering
:
false
}
]
]
};
};
$scope
.
gridOptions
.
data
=
$scope
.
records
;
$scope
.
gridOptions
.
data
=
$scope
.
records
;
...
@@ -64,7 +64,7 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
...
@@ -64,7 +64,7 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
$scope
.
getMyProjectAllocations
=
function
(){
$scope
.
getMyProjectAllocations
=
function
(){
$http
({
$http
({
method
:
"GET"
,
method
:
"GET"
,
url
:
appConfig
.
appUri
+
"getMyProjectAllocations?employeeId="
+
myFactory
.
getEmpId
()
url
:
appConfig
.
appUri
+
"
resources/
getMyProjectAllocations?employeeId="
+
myFactory
.
getEmpId
()
}).
then
(
function
mySuccess
(
response
)
{
}).
then
(
function
mySuccess
(
response
)
{
$scope
.
gridOptions
.
data
=
response
.
data
.
records
;
$scope
.
gridOptions
.
data
=
response
.
data
.
records
;
if
(
response
.
data
.
records
.
length
>
10
){
if
(
response
.
data
.
records
.
length
>
10
){
...
@@ -117,7 +117,7 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
...
@@ -117,7 +117,7 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
columnDefs
:
[
columnDefs
:
[
{
field
:
'employeeId'
,
displayName
:
'Emp ID'
,
enableColumnMenu
:
true
,
enableSorting
:
true
,
width
:
100
},
{
field
:
'employeeId'
,
displayName
:
'Emp ID'
,
enableColumnMenu
:
true
,
enableSorting
:
true
,
width
:
100
},
{
field
:
'employeeName'
,
displayName
:
'Empl Name '
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'employeeName'
,
displayName
:
'Empl Name '
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'role'
,
displayName
:
'Role'
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'r
esourceR
ole'
,
displayName
:
'Role'
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
// {field : 'emailId',displayName: 'Email Id ', enableColumnMenu: false, enableSorting: false},
// {field : 'emailId',displayName: 'Email Id ', enableColumnMenu: false, enableSorting: false},
// {field : 'experience',displayName: 'Exp', enableColumnMenu: true, enableSorting: true,width:80},
// {field : 'experience',displayName: 'Exp', enableColumnMenu: true, enableSorting: true,width:80},
{
field
:
'designation'
,
displayName
:
'Designation '
,
enableColumnMenu
:
false
,
enableSorting
:
false
},
{
field
:
'designation'
,
displayName
:
'Designation '
,
enableColumnMenu
:
false
,
enableSorting
:
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