course details changes done
This commit is contained in:
parent
47ce0da619
commit
aa78d52b95
@ -182,6 +182,7 @@ $scope.studentListLength = 0;
|
||||
$scope.setEditId = function (id) {
|
||||
$scope.editId = id;
|
||||
$scope.editCourseId = -1;
|
||||
$scope.studentViewPage=-1;
|
||||
}
|
||||
|
||||
$scope.setEditCourseId = function (id) {
|
||||
@ -191,6 +192,20 @@ $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;
|
||||
}
|
||||
|
||||
@ -198,6 +213,7 @@ $scope.studentListLength = 0;
|
||||
$scope.getStudentList();
|
||||
$scope.editId = -1;
|
||||
$scope.editCourseId = -1;
|
||||
$scope.studentViewPage=-1;
|
||||
}
|
||||
|
||||
$scope.cancelCourseDetails = function () {
|
||||
@ -836,6 +852,40 @@ $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