course details changes done
This commit is contained in:
parent
21b1f67b62
commit
4ee572d912
@ -204,28 +204,14 @@ $scope.studentListLength = 0;
|
||||
// $scope.getStudentCourseDetails(id);
|
||||
$scope.editCourseId = id;
|
||||
$scope.editId = -1;
|
||||
$scope.studentViewPage=-1;
|
||||
$scope.courseEditLoading = true;
|
||||
}
|
||||
/*
|
||||
* view student page
|
||||
* created by kms
|
||||
* */
|
||||
$scope.viewStudentPage = function (id) {
|
||||
$scope.list = false;
|
||||
$scope.getStudentPageDetails(id);
|
||||
$scope.currentStudentId = id;
|
||||
$scope.studentViewPage = id;
|
||||
$scope.editId = -1;
|
||||
$scope.editCourseId = -1;
|
||||
$scope.courseEditLoading = true;
|
||||
}
|
||||
|
||||
|
||||
$scope.cancel = function () {
|
||||
$scope.getStudentList();
|
||||
$scope.editId = -1;
|
||||
$scope.editCourseId = -1;
|
||||
$scope.studentViewPage=-1;
|
||||
}
|
||||
|
||||
$scope.cancelCourseDetails = function () {
|
||||
@ -864,40 +850,7 @@ $scope.studentListLength = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
* get student view details in management
|
||||
* created by kms
|
||||
*
|
||||
* */
|
||||
$scope.getStudentPageDetails = function (id) {
|
||||
var getcourse = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'getStudentBasicInfo/',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
data: {
|
||||
requestedBy :id,
|
||||
requestedFrom: 1
|
||||
}
|
||||
};
|
||||
$http(getcourse).then(function (response) {
|
||||
|
||||
if (response.data.status == 200 && response.data.studentStatus== true) {
|
||||
$scope.courseEditLoading = false;
|
||||
$scope.studentDetails = response.data.studentDetails;
|
||||
$scope.courseDetails = response.data.courseDetails;
|
||||
|
||||
|
||||
} else {
|
||||
$scope.courseEditLoading = false;
|
||||
$scope.studentDetails = "";
|
||||
$scope.courseDetails = "";
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
}]);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user