Commit 413e9de8 authored by Soumya Gouri's avatar Soumya Gouri

loader_added

parent 8af003c8
Manifest-Version: 1.0
Class-Path:
<?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>
...@@ -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;
......
<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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment