dashboard changes
This commit is contained in:
parent
336691571b
commit
5e6b6ed9db
@ -10,7 +10,7 @@ app.controller('dashboardCtrl', ["$scope","$rootScope", "toaster", "$filter", "n
|
|||||||
* this method called from view ng-init directive
|
* this method called from view ng-init directive
|
||||||
* created by kms
|
* created by kms
|
||||||
* */
|
* */
|
||||||
|
$scope.getLoginType=JSON.parse(localStorage.getItem('localObj')).localType;
|
||||||
$scope.initCallTracking = function () {
|
$scope.initCallTracking = function () {
|
||||||
$rootScope.pendingFolloupDetails = [];
|
$rootScope.pendingFolloupDetails = [];
|
||||||
var getCallTrack = {
|
var getCallTrack = {
|
||||||
@ -184,10 +184,11 @@ app.controller('OnotherCtrl', ["$scope", "toaster", "$filter", "$http", "API_POI
|
|||||||
var localDetails = ipCookie('cookiechk');
|
var localDetails = ipCookie('cookiechk');
|
||||||
|
|
||||||
$scope.init = function () {
|
$scope.init = function () {
|
||||||
$scope.this_Student = 0;
|
// $scope.this_Student = 0;
|
||||||
$scope.this_Staff = 0;
|
// $scope.this_Staff = 0;
|
||||||
$scope.this_TotalUser = 0;
|
// $scope.this_TotalUser = 0;
|
||||||
$scope.getTotalUsers();
|
// $scope.getTotalUsers();
|
||||||
|
$scope.getUniversityRegisteredDetails();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -284,6 +285,34 @@ app.controller('OnotherCtrl', ["$scope", "toaster", "$filter", "$http", "API_POI
|
|||||||
legendTemplate: '<ul class="tc-chart-js-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>'
|
legendTemplate: '<ul class="tc-chart-js-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>'
|
||||||
|
|
||||||
};
|
};
|
||||||
|
/*
|
||||||
|
* get university based student registration details
|
||||||
|
* created by kms
|
||||||
|
* */
|
||||||
|
$scope.getUniversityRegisteredDetails = function () {
|
||||||
|
$scope.registerdStudentDetails="";
|
||||||
|
$scope.notEmptyRegistration=true;
|
||||||
|
var req = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'getUniversityRegisteredStudent/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
data: localDetails
|
||||||
|
}
|
||||||
|
};
|
||||||
|
$http(req).then(function (response) {
|
||||||
|
if (response.data) {
|
||||||
|
$scope.notEmptyRegistration=response.data.resultStatus;
|
||||||
|
$scope.registerdStudentDetails=response.data.details;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$scope.registerdStudentDetails="";
|
||||||
|
$scope.notEmptyRegistration=false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
app.filter('unique', function() {
|
app.filter('unique', function() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user