This commit is contained in:
dineshkumarkannan 2018-09-11 12:06:50 +05:30
commit c55ffdeaa2
5 changed files with 41 additions and 4 deletions

View File

@ -146,6 +146,10 @@ $scope.universitySearchData = '';
$scope.OpenWindowStatus = false; $scope.OpenWindowStatus = false;
$scope.editId = -1; $scope.editId = -1;
$scope.courselist ='';
$scope.loadfee='';
$scope.feecheck=false;
$scope.setEditId = function (P) $scope.setEditId = function (P)
{ //alert(JSON.stringify(P)); { //alert(JSON.stringify(P));
@ -173,11 +177,16 @@ $scope.universitySearchData = '';
$scope.feeInfo=response.data.details; $scope.feeInfo=response.data.details;
console.log($scope.feeInfo); console.log($scope.feeInfo);
$scope.editId = P.ID; $scope.editId = P.ID;
$scope.courselist =true;
$scope.feecheck=false;
} else { } else {
$scope.feeInfo=""; $scope.feeInfo="";
$scope.loadfee = "No Records Found"; $scope.loadfee = "No Records Found";
$scope.courselist =false;
$scope.feecheck=true;
$scope.editId = P.ID;
} }
}); });

View File

@ -721,12 +721,15 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
$scope.editId = -1; $scope.editId = -1;
$scope.editCourseId = -1; $scope.editCourseId = -1;
$scope.setEditId = function (unique_id, id) { $scope.setEditId = function (unique_id, id) {
// alert()
$scope.editId = unique_id; $scope.editId = unique_id;
$scope.editCourseId = -1; $scope.editCourseId = -1;
$scope.studentViewPage = -1; $scope.studentViewPage = -1;
} }
$scope.setEditCourseId = function (unique_id,id) { $scope.setEditCourseId = function (unique_id,id) {
$scope.list = false; $scope.list = false;
$scope.getStudentCourseList(id); $scope.getStudentCourseList(id);
$scope.currentStudentId = id; $scope.currentStudentId = id;
@ -837,6 +840,8 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
// get Student Course List // get Student Course List
$scope.getStudentCourseList = function (studentId) { $scope.getStudentCourseList = function (studentId) {
console.log('in')
$scope.courseEditLoading = true; $scope.courseEditLoading = true;
$scope.list = true; $scope.list = true;
$scope.courseEdit = false; $scope.courseEdit = false;
@ -1740,11 +1745,15 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
$scope.editId = -1; $scope.editId = -1;
$scope.editCourseId = -1; $scope.editCourseId = -1;
$scope.setEditId = function (uniqe_id ,id) { $scope.setEditId = function (uniqe_id ,id) {
// alert()
$scope.editId = uniqe_id; $scope.editId = uniqe_id;
$scope.editCourseId = -1; $scope.editCourseId = -1;
} }
$scope.setEditCourseId = function (uniqe_id ,id) { $scope.setEditCourseId = function (uniqe_id ,id) {
//alert('1');
$scope.list = false; $scope.list = false;
$scope.getStudentCourseList(id); $scope.getStudentCourseList(id);
$scope.currentStudentId = id; $scope.currentStudentId = id;
@ -1752,6 +1761,7 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
$scope.editCourseId = uniqe_id; $scope.editCourseId = uniqe_id;
$scope.editId = -1; $scope.editId = -1;
$scope.courseEditLoading = true; $scope.courseEditLoading = true;
$scope.courselist = true;
} }
@ -1879,6 +1889,9 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
$scope.studentCourseList = response.data.course_details; $scope.studentCourseList = response.data.course_details;
// $scope.stucour = $scope.studentCourse[0]; // $scope.stucour = $scope.studentCourse[0];
} else { } else {
$scope.courselist = false;
$scope.courseEditLoading='';
} }
}); });
} }

View File

@ -1,6 +1,8 @@
<form name="Form" id="form" novalidate> <form name="Form" id="form" novalidate>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="col-md-12"> <div class="col-md-12">
<fieldset> <fieldset>
@ -26,7 +28,15 @@
<!-- {{feeInfo}} --> <!-- {{feeInfo}} -->
<div class="col-md-12"> <!-- <div ng-if="feecheck==true">
<div align="center" style="font-weight: bold; font-size:20 ">
{{loadfee}}
</div>
</div> -->
<div ng-if="courselist == false" class="text-center">
<h3>No Records Found</h3>
</div>
<div class="col-md-12" ng-if="courselist == true">
<!-- {{feeInfo}} --> <!-- {{feeInfo}} -->
<div class="table-responsive"> <div class="table-responsive">
<table id="datatable" class="table table-hover"> <table id="datatable" class="table table-hover">

View File

@ -167,6 +167,8 @@
<tr ng-show="editId === p.ID" ng-if="editId === p.ID"> <tr ng-show="editId === p.ID" ng-if="editId === p.ID">
<td colspan="12" ng-include src="'assets/views/edit_course.html'"></td> <td colspan="12" ng-include src="'assets/views/edit_course.html'"></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>

View File

@ -6,12 +6,15 @@
}) })
</script> </script>
<div ng-if="courseEditLoading == true" class="text-center"> <div ng-if="courseEditLoading == true" class="text-center">
<!--<img src="assets/images/ajax_loader_blue.gif" style="width: 5%; height: 30%">--> <!-- <img src="assets/images/ajax_loader_blue.gif" style="width: 5%; height: 30%"> -->
<h3>Fetching ...</h3> <h3>Fetching ...</h3>
</div> </div>
<div ng-if="courselist == false" class="text-center">
<h3>No Records Found</h3>
</div>
<div class="col-md-12"> <div class="col-md-12">
<fieldset ng-if="courseEditLoading == false"> <fieldset ng-if="courseEditLoading == false && courselist == true">
<legend> <legend>
Course Details Course Details
</legend> </legend>