drop down issues in report
This commit is contained in:
parent
68b114babe
commit
9067637d4d
@ -82,6 +82,19 @@ app.controller('report_ans_bookletCtrl', ["$scope", "$filter","$rootScope","$mod
|
||||
}
|
||||
});
|
||||
}
|
||||
//For batch dropdown
|
||||
$scope.$watch('univModel.university', function (newValue,oldValue) {
|
||||
if(newValue==undefined || newValue==''){
|
||||
$scope.filterBatchDetails="";
|
||||
console.log($scope.filterBatchDetails);
|
||||
}
|
||||
else{
|
||||
if(angular.isString(newValue)){
|
||||
$scope.filterBatchDetails=angular.fromJson(newValue);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
$scope.show = false;
|
||||
$scope.onSubmit = function (form) {
|
||||
var firstError = null;
|
||||
|
||||
@ -82,6 +82,20 @@ app.controller('report_app_pendingCtrl', ["$scope", "$filter","$rootScope","$mod
|
||||
}
|
||||
});
|
||||
}
|
||||
//For batch dropdown
|
||||
$scope.$watch('univModel.university', function (newValue,oldValue) {
|
||||
if(newValue==undefined || newValue==''){
|
||||
$scope.filterBatchDetails="";
|
||||
console.log($scope.filterBatchDetails);
|
||||
}
|
||||
else{
|
||||
if(angular.isString(newValue)){
|
||||
$scope.filterBatchDetails=angular.fromJson(newValue);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
//Response data
|
||||
$scope.show = false;
|
||||
$scope.onSubmit = function (form) {
|
||||
var firstError = null;
|
||||
|
||||
@ -90,6 +90,19 @@ app.controller('report_balfeeCtrl', ["$scope", "$filter","$rootScope","$modal",
|
||||
}
|
||||
});
|
||||
}
|
||||
//For batch dropdown
|
||||
$scope.$watch('univModel.university', function (newValue,oldValue) {
|
||||
if(newValue==undefined || newValue==''){
|
||||
$scope.filterBatchDetails="";
|
||||
console.log($scope.filterBatchDetails);
|
||||
}
|
||||
else{
|
||||
if(angular.isString(newValue)){
|
||||
$scope.filterBatchDetails=angular.fromJson(newValue);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
// response data
|
||||
$scope.show = false;
|
||||
$scope.returnResultData = [];
|
||||
|
||||
@ -82,6 +82,20 @@ app.controller('report_doc_pendingCtrl', ["$scope", "$filter","$rootScope","$mod
|
||||
}
|
||||
});
|
||||
}
|
||||
//For batch dropdown
|
||||
$scope.$watch('univModel.university', function (newValue,oldValue) {
|
||||
if(newValue==undefined || newValue==''){
|
||||
$scope.filterBatchDetails="";
|
||||
console.log($scope.filterBatchDetails);
|
||||
}
|
||||
else{
|
||||
if(angular.isString(newValue)){
|
||||
$scope.filterBatchDetails=angular.fromJson(newValue);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
//Response data
|
||||
$scope.show = false;
|
||||
$scope.onSubmit = function (form) {
|
||||
|
||||
|
||||
@ -82,6 +82,19 @@ app.controller('report_examfeeCtrl', ["$scope", "$filter","$rootScope","$modal",
|
||||
}
|
||||
});
|
||||
}
|
||||
//For batch dropdown
|
||||
$scope.$watch('univModel.university', function (newValue,oldValue) {
|
||||
if(newValue==undefined || newValue==''){
|
||||
$scope.filterBatchDetails="";
|
||||
console.log($scope.filterBatchDetails);
|
||||
}
|
||||
else{
|
||||
if(angular.isString(newValue)){
|
||||
$scope.filterBatchDetails=angular.fromJson(newValue);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$scope.show = false;
|
||||
$scope.onSubmit = function (form) {
|
||||
|
||||
@ -83,32 +83,6 @@ app.controller('report_markcard_certificateCtrl', ["$scope", "$filter","$rootSco
|
||||
}
|
||||
});
|
||||
}
|
||||
/* 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);
|
||||
|
||||
@ -49,7 +49,19 @@ app.controller('report_waiver_referalCtrl', ["$scope", "API_POINTS", "$http", "S
|
||||
}
|
||||
});
|
||||
}
|
||||
//For batch dropdown
|
||||
$scope.$watch('univModel.university', function (newValue,oldValue) {
|
||||
if(newValue==undefined || newValue==''){
|
||||
$scope.filterBatchDetails="";
|
||||
console.log($scope.filterBatchDetails);
|
||||
}
|
||||
else{
|
||||
if(angular.isString(newValue)){
|
||||
$scope.filterBatchDetails=angular.fromJson(newValue);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
$scope.show = false;
|
||||
$scope.onSubmit = function (form) {
|
||||
var firstError = null;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user