From eaed01de700ed05df47eb6e134ba8b3245dd7b19 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 21 Aug 2018 20:22:40 +0530 Subject: [PATCH 1/6] report changes --- .../js/controllers/report_certificateCtrl.js | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/Apollo/assets/js/controllers/report_certificateCtrl.js b/Apollo/assets/js/controllers/report_certificateCtrl.js index e3ca57f2..ab4cd9c0 100755 --- a/Apollo/assets/js/controllers/report_certificateCtrl.js +++ b/Apollo/assets/js/controllers/report_certificateCtrl.js @@ -2,7 +2,6 @@ /*** controller***/ app.controller('report_certificateCtrl', ["$scope", "$filter","$rootScope","$modal", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', '$window',"dateListDescService", function ($scope, $filter,$rootScope,$modal, apiPoint, $http, SweetAlert, $state, md5, ipCookie, $window, dateListDescService) { - /* * auto call tracking */ @@ -83,6 +82,32 @@ app.controller('report_certificateCtrl', ["$scope", "$filter","$rootScope","$mod } }); } + /* watch university model for bind batch objects*/ + + $scope.$watchCollection('univModel.university', function (newValue,oldValue) { + if(newValue==undefined || newValue==''){ + $scope.filterBatchDetails=""; + $scope.disableSubmit=true; + } + else{ + if(angular.isString(newValue)){ + $scope.filterBatchDetails=angular.fromJson(newValue); + $scope.disableSubmit=false; + } + } + + }); + // disable submit + $scope.$watchCollection('filters.from_date', function (newValue,oldValue) { + if(newValue==undefined || newValue=='' || newValue==null){ + $scope.disableSubmit=true; + } + else{ + $scope.disableSubmit=false; + + } + + }); $scope.onSubmit = function () { //alert($scope.batch.name); From ea6b2e7f627270910a8e1eb15432cba80fd0749c Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 21 Aug 2018 20:22:52 +0530 Subject: [PATCH 2/6] report changes --- .../views/report_certificate_status.html | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/Apollo/assets/views/report_certificate_status.html b/Apollo/assets/views/report_certificate_status.html index 14a8818b..0a235be4 100755 --- a/Apollo/assets/views/report_certificate_status.html +++ b/Apollo/assets/views/report_certificate_status.html @@ -35,24 +35,32 @@ td,th {
- +
- - + + + + + Please select University.
+
- - + + + + Please select Batch.
@@ -94,13 +102,10 @@ td,th {
-->
-
- - -
From d936c49ce0bc499fb114868bac3ebaa86885b662 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 21 Aug 2018 20:23:03 +0530 Subject: [PATCH 3/6] report changes --- .../views/report_studymaterialstatus.html | 30 ++++++++----------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/Apollo/assets/views/report_studymaterialstatus.html b/Apollo/assets/views/report_studymaterialstatus.html index 854dabe2..8b550c93 100755 --- a/Apollo/assets/views/report_studymaterialstatus.html +++ b/Apollo/assets/views/report_studymaterialstatus.html @@ -23,37 +23,33 @@
- +
- - - Please select University. + + + + + Please select University.
+
- - - Please select Batch. + + + + Please select Batch.
-
From d9936a4e27b7490e1429d3142de295534316ace4 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 21 Aug 2018 20:23:19 +0530 Subject: [PATCH 4/6] report changes --- .../report_study_material_statusCtrl.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Apollo/assets/js/controllers/report_study_material_statusCtrl.js b/Apollo/assets/js/controllers/report_study_material_statusCtrl.js index 3172f0e0..ff76c9af 100755 --- a/Apollo/assets/js/controllers/report_study_material_statusCtrl.js +++ b/Apollo/assets/js/controllers/report_study_material_statusCtrl.js @@ -71,7 +71,20 @@ app.controller('report_study_material_statusCtrl', ["$scope", "$filter","$rootSc } else { } }); - } + } + /* watch university model for bind batch objects*/ + + $scope.$watch('univModel.university', function (newValue,oldValue) { + if(newValue==undefined || newValue==''){ + $scope.filterBatchDetails=""; + } + else{ + if(angular.isString(newValue)){ + $scope.filterBatchDetails=angular.fromJson(newValue); + } + } + + }); $scope.show = false; From 7a9173a82f552e25e0c32ff621b821dd2fa56197 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 21 Aug 2018 20:23:38 +0530 Subject: [PATCH 5/6] report changes --- .../js/controllers/report_markcard_statusCtrl.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Apollo/assets/js/controllers/report_markcard_statusCtrl.js b/Apollo/assets/js/controllers/report_markcard_statusCtrl.js index 7792ce41..93bf760d 100755 --- a/Apollo/assets/js/controllers/report_markcard_statusCtrl.js +++ b/Apollo/assets/js/controllers/report_markcard_statusCtrl.js @@ -2,7 +2,6 @@ /*** controller***/ app.controller('report_markcard_statusCtrl', ["$scope", "$filter","$rootScope", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', '$window',"dateListDescService","$modal", function ($scope, $filter,$rootScope, apiPoint, $http, SweetAlert, $state, md5, ipCookie, $window, dateListDescService,$modal,$log) { - /** * auto call tracking */ @@ -47,7 +46,7 @@ app.controller('report_markcard_statusCtrl', ["$scope", "$filter","$rootScope", }; $scope.filters = function () { - var filterlist = { + var filterlist = { method: 'POST', url: apiPoint.url + 'report_filters/', headers: { @@ -82,6 +81,19 @@ app.controller('report_markcard_statusCtrl', ["$scope", "$filter","$rootScope", } }); } + /* watch university model for bind batch objects*/ + + $scope.$watch('univModel.university', function (newValue,oldValue) { + if(newValue==undefined || newValue==''){ + $scope.filterBatchDetails=""; + } + else{ + if(angular.isString(newValue)){ + $scope.filterBatchDetails=angular.fromJson(newValue); + } + } + + }); $scope.show = false; $scope.onSubmit = function (form) { From 54473733e0d63d38846429f6ef46631b6756e750 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 21 Aug 2018 20:23:54 +0530 Subject: [PATCH 6/6] report changes --- .../assets/views/report_markcardstatus.html | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Apollo/assets/views/report_markcardstatus.html b/Apollo/assets/views/report_markcardstatus.html index f9ac019a..8f26dba0 100755 --- a/Apollo/assets/views/report_markcardstatus.html +++ b/Apollo/assets/views/report_markcardstatus.html @@ -15,9 +15,6 @@ } .table>tbody>tr>td { padding: 2px; } - - -
@@ -26,26 +23,32 @@
- +
- - - Please select University. + + + + + Please select University.
+
- - - Please select Batch. + + + + Please select Batch.