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
2da1f9e2
Commit
2da1f9e2
authored
Aug 06, 2018
by
dgoud-nisum-com
Committed by
rbonthala-nisum-com
Aug 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disabled Pagination control for less than specified max limit per page (#117)
parent
938b5a72
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
58 additions
and
7 deletions
+58
-7
AssignRolesController.js
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
+6
-3
AttendanceReportController.js
.../webapp/WEB-INF/controllers/AttendanceReportController.js
+6
-0
DashboardController.js
src/main/webapp/WEB-INF/controllers/DashboardController.js
+6
-0
MyDetailsController.js
src/main/webapp/WEB-INF/controllers/MyDetailsController.js
+6
-0
MyProjectAllocations.js
src/main/webapp/WEB-INF/controllers/MyProjectAllocations.js
+6
-0
ReporteesController.js
src/main/webapp/WEB-INF/controllers/ReporteesController.js
+6
-0
ShiftDetailsController.js
...main/webapp/WEB-INF/controllers/ShiftDetailsController.js
+6
-0
TravelController.js
src/main/webapp/WEB-INF/controllers/TravelController.js
+6
-0
VisaController.js
src/main/webapp/WEB-INF/controllers/VisaController.js
+6
-0
assignAccountsController.js
...in/webapp/WEB-INF/controllers/assignAccountsController.js
+4
-4
No files found.
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
View file @
2da1f9e2
...
...
@@ -66,9 +66,6 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
$scope
.
parentData
.
hasB1
=
row
.
entity
.
hasB1
;
$scope
.
parentData
.
passportExpiryDate
=
row
.
entity
.
passportExpiryDate
;
$scope
.
parentData
.
b1ExpiryDate
=
row
.
entity
.
b1ExpiryDate
;
if
(
action
==
"Update"
)
$scope
.
assignRole
(
action
,
$scope
.
parentData
);
else
if
(
action
==
"Delete"
)
...
...
@@ -124,6 +121,12 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
url
:
appConfig
.
appUri
+
"user/getUserRoles"
}).
then
(
function
mySuccess
(
response
)
{
$scope
.
gridOptionsOrgView
.
data
=
response
.
data
;
if
(
response
.
data
.
length
>
10
){
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"visible"
;
}
else
{
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"hidden"
;
}
},
function
myError
(
response
)
{
showAlert
(
"Something went wrong while fetching data!!!"
);
$scope
.
gridOptionsOrgView
.
data
=
[];
...
...
src/main/webapp/WEB-INF/controllers/AttendanceReportController.js
View file @
2da1f9e2
...
...
@@ -101,6 +101,12 @@ myApp.controller("attendanceReportController", function($scope, $http, myFactory
$scope
.
totalAbsent
=
$scope
.
absentArray
.
length
;
}
if
(
response
.
data
.
length
>
10
){
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"visible"
;
}
else
{
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"hidden"
;
}
},
function
myError
(
response
)
{
showAlert
(
"Something went wrong while fetching data!!!"
);
$scope
.
refreshPage
();
...
...
src/main/webapp/WEB-INF/controllers/DashboardController.js
View file @
2da1f9e2
...
...
@@ -127,6 +127,12 @@ myApp.controller("dashboardController", function($scope, $http, myFactory,export
}).
then
(
function
mySuccess
(
response
)
{
//alert("response"+response);
// alert("response"+response.data);
if
(
response
.
data
.
length
>
10
){
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"visible"
;
}
else
{
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"hidden"
;
}
$scope
.
gridOptions
.
data
=
response
.
data
;
},
function
myError
(
response
)
{
showAlert
(
"Something went wrong while fetching data!!!"
);
...
...
src/main/webapp/WEB-INF/controllers/MyDetailsController.js
View file @
2da1f9e2
...
...
@@ -38,6 +38,12 @@ myApp.controller("employeeController", function($scope, $http, myFactory, $mdDia
if
(
response
.
data
.
length
>
0
){
$scope
.
avgLoginHrs
=
response
.
data
[
0
].
totalAvgTime
+
" Hrs"
;
}
if
(
response
.
data
.
length
>
10
){
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"visible"
;
}
else
{
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"hidden"
;
}
},
function
myError
(
response
)
{
showAlert
(
"Something went wrong while fetching data!!!"
);
$scope
.
gridOptions
.
data
=
[];
...
...
src/main/webapp/WEB-INF/controllers/MyProjectAllocations.js
View file @
2da1f9e2
...
...
@@ -66,6 +66,12 @@ myApp.controller("myProjectAllocationsController",function($scope, myFactory, $m
url
:
appConfig
.
appUri
+
"/projectTeam/getMyProjectAllocations?employeeId="
+
myFactory
.
getEmpId
()
}).
then
(
function
mySuccess
(
response
)
{
$scope
.
gridOptions
.
data
=
response
.
data
;
if
(
response
.
data
.
length
>
10
){
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"visible"
;
}
else
{
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"hidden"
;
}
},
function
myError
(
response
)
{
showAlert
(
"Something went wrong while fetching data!!!"
);
$scope
.
gridOptions
.
data
=
[];
...
...
src/main/webapp/WEB-INF/controllers/ReporteesController.js
View file @
2da1f9e2
...
...
@@ -187,6 +187,12 @@ myApp.controller("employeesController", function($scope, $http, myFactory, $mdDi
}
}
if
(
response
.
data
.
length
>
10
){
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"visible"
;
}
else
{
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"hidden"
;
}
},
function
myError
(
response
)
{
showAlert
(
"Something went wrong while fetching data!!!"
);
$scope
.
gridOptions
.
data
=
[];
...
...
src/main/webapp/WEB-INF/controllers/ShiftDetailsController.js
View file @
2da1f9e2
...
...
@@ -84,6 +84,12 @@ myApp.controller("shiftDetailsController",function($scope, myFactory,exportUiGri
}).
then
(
function
mySuccess
(
response
)
{
$scope
.
gridOptions
.
data
=
response
.
data
;
$scope
.
shiftCount
=
response
.
data
.
length
;
if
(
response
.
data
.
length
>
10
){
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"visible"
;
}
else
{
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"hidden"
;
}
},
function
myError
(
response
)
{
showAlert
(
"Something went wrong while fetching data!!!"
);
$scope
.
gridOptions
.
data
=
[];
...
...
src/main/webapp/WEB-INF/controllers/TravelController.js
View file @
2da1f9e2
...
...
@@ -109,6 +109,12 @@ myApp.controller("travelController",function($scope, myFactory, $mdDialog, $http
url
:
appConfig
.
appUri
+
"/visa/getAllTravelRequests"
}).
then
(
function
mySuccess
(
response
)
{
$scope
.
gridOptions
.
data
=
response
.
data
;
if
(
response
.
data
.
length
>
10
){
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"visible"
;
}
else
{
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"hidden"
;
}
},
function
myError
(
response
)
{
showAlert
(
"Something went wrong while fetching data!!!"
);
$scope
.
gridOptions
.
data
=
[];
...
...
src/main/webapp/WEB-INF/controllers/VisaController.js
View file @
2da1f9e2
...
...
@@ -101,6 +101,12 @@ myApp.controller("visaController",function($scope, myFactory, $mdDialog, $http,
url
:
appConfig
.
appUri
+
"/visa/getAllEmployeeVisas"
}).
then
(
function
mySuccess
(
response
)
{
$scope
.
gridOptions
.
data
=
response
.
data
;
if
(
response
.
data
.
length
>
10
){
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"visible"
;
}
else
{
document
.
getElementsByClassName
(
"ui-grid-pager-panel"
)[
0
].
style
.
visibility
=
"hidden"
;
}
},
function
myError
(
response
)
{
showAlert
(
"Something went wrong while fetching data!!!"
);
$scope
.
gridOptions
.
data
=
[];
...
...
src/main/webapp/WEB-INF/controllers/assignAccountsController.js
View file @
2da1f9e2
...
...
@@ -12,15 +12,15 @@ myApp.controller("assignAccountsController",function($scope, myFactory, $mdDialo
var
getCellTemplate
=
'<p class="col-lg-12"><p class="col-lg-4"><i class="fa fa-pencil-square-o fa-2x" ng-show="row.entity.status ==
\'
Active
\'
" aria-hidden="true" style="font-size:1.5em;margin-top:3px;cursor:pointer;" data-placement="center" title="Edit" onmouseenter="$(this).tooltip(
\'
show
\'
)" ng-click="grid.appScope.getRowData(row,
\'
Update
\'
)"></i></p>'
+
'<p class="col-lg-4"><i class="fa fa-minus-circle fa-2x" aria-hidden="true" style="font-size:1.5em;margin-top:3px;cursor:pointer;" data-placement="left" title="Delete" onmouseenter="$(this).tooltip(
\'
show
\'
)" ng-click="grid.appScope.getRowData(row,
\'
Delete
\'
)"></i></p></p>'
;
$scope
.
gridOptions
=
{
paginationPageSizes
:
[
10
,
20
,
30
,
40
,
50
,
100
],
paginationPageSizes
:
[
10
,
20
,
30
,
40
,
50
,
100
],
paginationPageSize
:
10
,
pageNumber
:
1
,
pageSize
:
10
,
enableFiltering
:
true
,
rowHeight
:
22
,
columnDefs
:
[
{
field
:
'accountName'
,
displayName
:
'Account Name'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
true
,
cellClass
:
'grid-align'
},
{
field
:
'industryType'
,
displayName
:
'Industry Type'
,
enableColumnMenu
:
false
,
enableSorting
:
true
,
enableFiltering
:
true
,
cellClass
:
'grid-align'
},
{
field
:
'accountName'
,
displayName
:
'Account Name'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
true
,
cellClass
:
'grid-align'
,
rowHeight
:
22
},
{
field
:
'industryType'
,
displayName
:
'Industry Type'
,
enableColumnMenu
:
false
,
enableSorting
:
true
,
enableFiltering
:
true
,
cellClass
:
'grid-align'
,
rowHeight
:
68
},
{
field
:
'deliveryManagers'
,
displayName
:
'Delivery Managers'
,
cellTemplate
:
'<div ng-repeat= "item in row.entity[col.field]">{{item.employeeName}}<span ng-hide="$last">,</span></div>'
,
enableColumnMenu
:
false
,
enableSorting
:
true
,
enableFiltering
:
false
,
cellClass
:
'grid-align'
},
{
field
:
'status'
,
displayName
:
'Status'
,
enableColumnMenu
:
false
,
enableSorting
:
true
,
enableFiltering
:
true
,
cellClass
:
'grid-align'
},
{
name
:
'Actions'
,
displayName
:
'Actions'
,
cellTemplate
:
getCellTemplate
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
,
width
:
130
}
...
...
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