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
33d41f29
Commit
33d41f29
authored
Aug 07, 2018
by
mduppanapudi-nisum-com
Committed by
rbonthala-nisum-com
Aug 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ui changes as per services and bug fix (#126)
* Ui changes as per services and bug fix * Pagination hide
parent
6a8d2de6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
18 deletions
+27
-18
AssignRolesController.js
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
+4
-4
MyProjectAllocations.js
src/main/webapp/WEB-INF/controllers/MyProjectAllocations.js
+18
-9
ProjectController.js
src/main/webapp/WEB-INF/controllers/ProjectController.js
+2
-2
assignAccountsController.js
...in/webapp/WEB-INF/controllers/assignAccountsController.js
+2
-2
newProjectTeamDetails.html
src/main/webapp/WEB-INF/templates/newProjectTeamDetails.html
+1
-1
No files found.
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
View file @
33d41f29
...
@@ -12,8 +12,8 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -12,8 +12,8 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
};
};
var
getCellTemplate
=
'<p class="col-lg-12"><i class="fa fa-pencil-square-o fa-2x" aria-hidden="true" style="font-size:1.5em;margin-top:3px;cursor:pointer;" ng-click="grid.appScope.getRowData(row,
\'
Update
\'
)"></i>'
+
var
getCellTemplate
=
'<p class="col-lg-12"><i class="fa fa-pencil-square-o fa-2x" aria-hidden="true" style="font-size:1.5em;margin-top:3px;cursor:pointer;" ng-click="grid.appScope.getRowData(row,
\'
Update
\'
)"></i>'
+
'
<i class="fa fa-minus-circle fa-2x" aria-hidden="true" style="font-size:1.5em;margin-top:3px;cursor:pointer;" ng-click="grid.appScope.getRowData(row,
\'
Delete
\'
)"></i></p>
'
;
' '
;
// <i class="fa fa-minus-circle fa-2x" aria-hidden="true" style="font-size:1.5em;margin-top:3px;cursor:pointer;" ng-click="grid.appScope.getRowData(row,\'Delete\')"></i></p>
$scope
.
gridOptions
=
{
$scope
.
gridOptions
=
{
paginationPageSizes
:
[
10
,
20
,
30
,
40
,
50
,
100
],
paginationPageSizes
:
[
10
,
20
,
30
,
40
,
50
,
100
],
paginationPageSize
:
10
,
paginationPageSize
:
10
,
...
@@ -103,10 +103,10 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -103,10 +103,10 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
url
:
appConfig
.
appUri
+
"user/getEmployeeByStatus?status="
+
$scope
.
status
url
:
appConfig
.
appUri
+
"user/getEmployeeByStatus?status="
+
$scope
.
status
}).
then
(
function
mySuccess
(
response
)
{
}).
then
(
function
mySuccess
(
response
)
{
if
(
response
.
data
.
length
>
10
){
if
(
response
.
data
.
length
>
10
){
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"visible"
;
$scope
.
gridOptions
.
enablePaginationControls
=
true
;
}
}
else
{
else
{
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"hidden"
;
$scope
.
gridOptions
.
enablePaginationControls
=
false
;
}
}
$scope
.
gridOptions
.
data
=
response
.
data
;
$scope
.
gridOptions
.
data
=
response
.
data
;
},
function
myError
(
response
)
{
},
function
myError
(
response
)
{
...
...
src/main/webapp/WEB-INF/controllers/MyProjectAllocations.js
View file @
33d41f29
...
@@ -16,7 +16,7 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
...
@@ -16,7 +16,7 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
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 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 ng-show="COL_FIELD==true">
<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>';
$scope
.
gridOptions
=
{
$scope
.
gridOptions
=
{
paginationPageSizes
:
[
10
,
20
,
30
,
40
,
50
,
100
],
paginationPageSizes
:
[
10
,
20
,
30
,
40
,
50
,
100
],
...
@@ -27,12 +27,12 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
...
@@ -27,12 +27,12 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
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'
,
displayName
:
'Account'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
true
},
{
field
:
'
managerName'
,
displayName
:
'Manager Name
'
,
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
:
true
},
{
field
:
'billableStatus'
,
displayName
:
'Billability'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
{
field
:
'billableStatus'
,
displayName
:
'Billability'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
},
{
field
:
'
s
tartDate'
,
displayName
:
'Start Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
cellFilter
:
'date:"dd-MMM-yyyy"'
,
enableFiltering
:
false
},
{
field
:
'
projectS
tartDate'
,
displayName
:
'Start Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
cellFilter
:
'date:"dd-MMM-yyyy"'
,
enableFiltering
:
false
},
{
field
:
'
e
ndDate'
,
displayName
:
'End Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
cellFilter
:
'date:"dd-MMM-yyyy"'
,
enableFiltering
:
false
},
{
field
:
'
projectE
ndDate'
,
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
:
'
active'
,
displayName
:
'Active'
,
enableColumnMenu
:
false
,
cellTemplate
:
getCellActiveTemplat
e
,
enableSorting
:
false
,
enableFiltering
:
false
}
{
field
:
'
status'
,
displayName
:
'Active'
,
enableColumnMenu
:
fals
e
,
enableSorting
:
false
,
enableFiltering
:
false
}
]
]
};
};
$scope
.
gridOptions
.
data
=
$scope
.
records
;
$scope
.
gridOptions
.
data
=
$scope
.
records
;
...
@@ -49,6 +49,7 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
...
@@ -49,6 +49,7 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
$scope
.
parentData
.
managerName
=
row
.
entity
.
managerName
;
$scope
.
parentData
.
managerName
=
row
.
entity
.
managerName
;
$scope
.
parentData
.
experience
=
row
.
entity
.
experience
;
$scope
.
parentData
.
experience
=
row
.
entity
.
experience
;
$scope
.
parentData
.
designation
=
row
.
entity
.
designation
;
$scope
.
parentData
.
designation
=
row
.
entity
.
designation
;
$scope
.
parentData
.
deliveryLeadIds
=
row
.
entity
.
deliveryLeadIds
;
if
(
action
==
"View"
)
if
(
action
==
"View"
)
$scope
.
viewTeamDetails
(
action
,
$scope
.
parentData
);
$scope
.
viewTeamDetails
(
action
,
$scope
.
parentData
);
...
@@ -67,10 +68,10 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
...
@@ -67,10 +68,10 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
}).
then
(
function
mySuccess
(
response
)
{
}).
then
(
function
mySuccess
(
response
)
{
$scope
.
gridOptions
.
data
=
response
.
data
;
$scope
.
gridOptions
.
data
=
response
.
data
;
if
(
response
.
data
.
length
>
10
){
if
(
response
.
data
.
length
>
10
){
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"visible"
;
$scope
.
gridOptions
.
enablePaginationControls
=
true
;
}
}
else
{
else
{
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"hidden"
;
$scope
.
gridOptions
.
enablePaginationControls
=
false
;
}
}
},
function
myError
(
response
)
{
},
function
myError
(
response
)
{
showAlert
(
"Something went wrong while fetching data!!!"
);
showAlert
(
"Something went wrong while fetching data!!!"
);
...
@@ -94,6 +95,7 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
...
@@ -94,6 +95,7 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
$mdDialog
.
hide
();
$mdDialog
.
hide
();
};
};
function
ProjectDetailsController
(
$scope
,
$mdDialog
,
dataToPass
,
gridOptionsData
,
managers
)
{
function
ProjectDetailsController
(
$scope
,
$mdDialog
,
dataToPass
,
gridOptionsData
,
managers
)
{
console
.
log
(
dataToPass
);
$scope
.
templateTitle
=
dataToPass
.
action
;
$scope
.
templateTitle
=
dataToPass
.
action
;
$scope
.
alertMsg
=
""
;
$scope
.
alertMsg
=
""
;
$scope
.
isDisabled
=
false
;
$scope
.
isDisabled
=
false
;
...
@@ -104,8 +106,9 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
...
@@ -104,8 +106,9 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
if
(
dataToPass
.
action
==
"Assign"
){}
else
if
(
dataToPass
.
action
==
"Update"
){}
else
if
(
dataToPass
.
action
==
"View"
){
if
(
dataToPass
.
action
==
"Assign"
){}
else
if
(
dataToPass
.
action
==
"Update"
){}
else
if
(
dataToPass
.
action
==
"View"
){
$scope
.
projectId
=
dataToPass
.
projectId
;
$scope
.
projectId
=
dataToPass
.
projectId
;
$scope
.
projectName
=
dataToPass
.
projectName
;
$scope
.
projectName
=
dataToPass
.
projectName
;
$scope
.
managerId
=
dataToPass
.
managerId
;
// $scope.managerId = dataToPass.managerId;
$scope
.
managerName
=
dataToPass
.
managerName
;
// $scope.managerName = dataToPass.managerName;
$scope
.
deliveryLeads
=
dataToPass
.
deliveryLeadIds
;
$scope
.
projectStatus
=
dataToPass
.
status
;
$scope
.
projectStatus
=
dataToPass
.
status
;
$scope
.
gridOptions
=
{
$scope
.
gridOptions
=
{
paginationPageSizes
:
[
10
,
20
,
30
,
40
,
50
,
100
],
paginationPageSizes
:
[
10
,
20
,
30
,
40
,
50
,
100
],
...
@@ -126,6 +129,12 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
...
@@ -126,6 +129,12 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
method
:
"GET"
,
method
:
"GET"
,
url
:
appConfig
.
appUri
+
"/projectTeam/getProjectDetails?projectId="
+
$scope
.
projectId
url
:
appConfig
.
appUri
+
"/projectTeam/getProjectDetails?projectId="
+
$scope
.
projectId
}).
then
(
function
mySuccess
(
response
)
{
}).
then
(
function
mySuccess
(
response
)
{
if
(
response
.
data
.
length
>
10
){
$scope
.
gridOptions
.
enablePaginationControls
=
true
;
}
else
{
$scope
.
gridOptions
.
enablePaginationControls
=
false
;
}
$scope
.
gridOptions
.
data
=
response
.
data
;
$scope
.
gridOptions
.
data
=
response
.
data
;
},
function
myError
(
response
)
{
},
function
myError
(
response
)
{
showAlert
(
"Something went wrong while fetching data!!!"
);
showAlert
(
"Something went wrong while fetching data!!!"
);
...
...
src/main/webapp/WEB-INF/controllers/ProjectController.js
View file @
33d41f29
...
@@ -358,13 +358,13 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
...
@@ -358,13 +358,13 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
$scope
.
employeeRole
=
undefined
;
$scope
.
employeeRole
=
undefined
;
$scope
.
empBillableStatus
=
undefined
;
$scope
.
empBillableStatus
=
undefined
;
$scope
.
newBillingStartDate
=
undefined
;
$scope
.
newBillingStartDate
=
undefined
;
$scope
.
startDate
=
new
Date
(
dataToPass
.
projectStartDate
);
$scope
.
endDate
=
new
Date
(
dataToPass
.
projectEndDate
);
$scope
.
employeeShift
=
undefined
;
$scope
.
employeeShift
=
undefined
;
$scope
.
employeeModel
=
{};
$scope
.
employeeModel
=
{};
$
(
'.md-datepicker-input'
)[
0
].
value
=
null
;
$
(
'.md-datepicker-input'
)[
0
].
value
=
null
;
$
(
'.md-datepicker-input'
)[
1
].
value
=
null
;
$
(
'.md-datepicker-input'
)[
1
].
value
=
null
;
$
(
'.md-datepicker-input'
)[
2
].
value
=
null
;
$
(
'.md-datepicker-input'
)[
2
].
value
=
null
;
$scope
.
startDate
=
(
dataToPass
.
projectStartDate
==
null
)
?
null
:
new
Date
(
dataToPass
.
projectStartDate
);
$scope
.
endDate
=
(
dataToPass
.
projectStartDate
==
null
)
?
null
:
new
Date
(
dataToPass
.
projectEndDate
);
document
.
getElementsByClassName
(
"md-tab"
)[
1
].
style
.
visibility
=
"visible"
;
document
.
getElementsByClassName
(
"md-tab"
)[
1
].
style
.
visibility
=
"visible"
;
document
.
getElementsByClassName
(
"md-tab"
)[
2
].
style
.
visibility
=
"hidden"
;
document
.
getElementsByClassName
(
"md-tab"
)[
2
].
style
.
visibility
=
"hidden"
;
$scope
.
isSecondTab
=
true
;
$scope
.
isSecondTab
=
true
;
...
...
src/main/webapp/WEB-INF/controllers/assignAccountsController.js
View file @
33d41f29
...
@@ -50,10 +50,10 @@ myApp.controller("assignAccountsController",function($scope, myFactory, $mdDialo
...
@@ -50,10 +50,10 @@ myApp.controller("assignAccountsController",function($scope, myFactory, $mdDialo
url
:
appConfig
.
appUri
+
"account/accounts"
url
:
appConfig
.
appUri
+
"account/accounts"
}).
then
(
function
mySuccess
(
response
)
{
}).
then
(
function
mySuccess
(
response
)
{
if
(
response
.
data
.
length
>
10
){
if
(
response
.
data
.
length
>
10
){
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"visible"
;
$scope
.
gridOptions
.
enablePaginationControls
=
true
;
}
}
else
{
else
{
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"hidden"
;
$scope
.
gridOptions
.
enablePaginationControls
=
false
;
}
}
$scope
.
gridOptions
.
data
=
response
.
data
;
$scope
.
gridOptions
.
data
=
response
.
data
;
myFactory
.
setAccounts
(
response
.
data
);
myFactory
.
setAccounts
(
response
.
data
);
...
...
src/main/webapp/WEB-INF/templates/newProjectTeamDetails.html
View file @
33d41f29
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
</div>
</div>
<div
class=
"col-xs-6 text-right "
>
<div
class=
"col-xs-6 text-right "
>
<p>
<p>
<b>
Manager Name:
</b><span
ng-repeat=
"manager in managerIds"
>
{{manager
.employeeName}}
<span
ng-hide=
"$last"
>
,
</span></span>
<b>
Delivery Lead:
</b><span
ng-repeat=
"dl in deliveryLeads"
>
{{dl
.employeeName}}
<span
ng-hide=
"$last"
>
,
</span></span>
</p>
</p>
</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