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
413e9de8
Commit
413e9de8
authored
May 23, 2019
by
Soumya Gouri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loader_added
parent
8af003c8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
2 deletions
+36
-2
MANIFEST.MF
WebContent/META-INF/MANIFEST.MF
+3
-0
web.xml
WebContent/WEB-INF/web.xml
+12
-0
DashboardController.js
src/main/webapp/WEB-INF/controllers/DashboardController.js
+20
-1
dashboard.html
src/main/webapp/WEB-INF/templates/dashboard.html
+1
-1
No files found.
WebContent/META-INF/MANIFEST.MF
0 → 100644
View file @
413e9de8
Manifest-Version: 1.0
Class-Path:
WebContent/WEB-INF/web.xml
0 → 100644
View file @
413e9de8
<?xml version="1.0" encoding="UTF-8"?>
<web-app
id=
"WebApp_ID"
version=
"2.4"
xmlns=
"http://java.sun.com/xml/ns/j2ee"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
>
<display-name>
mytime
</display-name>
<welcome-file-list>
<welcome-file>
index.html
</welcome-file>
<welcome-file>
index.htm
</welcome-file>
<welcome-file>
index.jsp
</welcome-file>
<welcome-file>
default.html
</welcome-file>
<welcome-file>
default.htm
</welcome-file>
<welcome-file>
default.jsp
</welcome-file>
</welcome-file-list>
</web-app>
src/main/webapp/WEB-INF/controllers/DashboardController.js
View file @
413e9de8
...
@@ -139,13 +139,18 @@ myApp.controller("dashboardController", function($scope, $http, myFactory,export
...
@@ -139,13 +139,18 @@ myApp.controller("dashboardController", function($scope, $http, myFactory,export
else showAlert('Manager assigning/updation failed!!!');
else showAlert('Manager assigning/updation failed!!!');
*/
});
*/
});
};
};
$scope
.
getEmployeesDashBoardData
=
function
(){
$scope
.
getEmployeesDashBoardData
=
function
(
type
){
if
(
type
==
"onload"
){
showProgressDialog
(
"Fetching data please wait..."
);
}
$http
({
$http
({
method
:
"GET"
,
method
:
"GET"
,
url
:
appConfig
.
appUri
+
"resources/getEmployeesDashBoard"
url
:
appConfig
.
appUri
+
"resources/getEmployeesDashBoard"
}).
then
(
function
mySuccess
(
response
)
{
}).
then
(
function
mySuccess
(
response
)
{
//alert("response"+response);
//alert("response"+response);
// alert("response"+response.data);
// alert("response"+response.data);
$mdDialog
.
hide
();
if
(
response
.
data
.
records
.
length
>
10
){
if
(
response
.
data
.
records
.
length
>
10
){
$scope
.
gridOptions
.
enablePaginationControls
=
true
;
$scope
.
gridOptions
.
enablePaginationControls
=
true
;
}
}
...
@@ -163,6 +168,20 @@ myApp.controller("dashboardController", function($scope, $http, myFactory,export
...
@@ -163,6 +168,20 @@ myApp.controller("dashboardController", function($scope, $http, myFactory,export
$scope
.
getEmployeesDashBoardData
();
$scope
.
getEmployeesDashBoardData
();
};
};
function
showProgressDialog
(
msg
){
$
(
'#home'
).
addClass
(
'md-scroll-mask'
);
$mdDialog
.
show
({
templateUrl
:
'templates/progressDialog.html'
,
controller
:
ProgressController
,
parent
:
angular
.
element
(
document
.
body
),
clickOutsideToClose
:
false
,
locals
:
{
dataToPass
:
msg
}
});
}
function
ProgressController
(
$scope
,
dataToPass
)
{
$scope
.
progressText
=
dataToPass
;
}
function
ViewEmpController
(
$scope
,
$mdDialog
,
dataToPass
)
{
function
ViewEmpController
(
$scope
,
$mdDialog
,
dataToPass
)
{
$scope
.
profile
=
dataToPass
;
$scope
.
profile
=
dataToPass
;
...
...
src/main/webapp/WEB-INF/templates/dashboard.html
View file @
413e9de8
<div
class=
"md-padding"
id=
"popupContainer"
ng-controller=
"dashboardController"
<div
class=
"md-padding"
id=
"popupContainer"
ng-controller=
"dashboardController"
ng-init=
"getEmployeesDashBoardData()"
>
ng-init=
"getEmployeesDashBoardData(
'onload'
)"
>
<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"
>
...
...
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