course details changes done
This commit is contained in:
parent
7febba704f
commit
73208a8e0e
@ -8,6 +8,8 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
||||
$scope.myModel = {
|
||||
"studentName": "",
|
||||
"mobileNumber": "",
|
||||
"universityName":"",
|
||||
"courseName":""
|
||||
};
|
||||
|
||||
/*
|
||||
@ -53,12 +55,45 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
||||
$scope.reverse = !$scope.reverse; //if true make it false and vice versa
|
||||
}
|
||||
|
||||
/*
|
||||
* init function
|
||||
* created by kms
|
||||
* */
|
||||
$scope.init = function () {
|
||||
var getUniv = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'getUniversityCourseForFees/',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
data: {
|
||||
requestedBy: JSON.parse(localStorage.getItem('localObj')).localUserID
|
||||
}
|
||||
};
|
||||
$http(getUniv).then(function (response) {
|
||||
if (response.data.status==200 && response.data.universityStatus) {
|
||||
$scope.university=response.data.univerSityDetails;
|
||||
|
||||
|
||||
} else {
|
||||
$scope.university="";
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
* get student details
|
||||
* created by kms
|
||||
* */
|
||||
$scope.studentInfo="";
|
||||
$scope.getStudentDetails = function (form,myModel) {
|
||||
if(myModel.universityName == null || myModel.universityName == '' || myModel.universityName == undefined){
|
||||
$scope.univId = "";
|
||||
}
|
||||
else{
|
||||
$scope.univId = myModel.universityName.universityID;
|
||||
}
|
||||
var firstError = null;
|
||||
if (form.$invalid) {
|
||||
|
||||
@ -85,6 +120,8 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
||||
data: {
|
||||
studentName: myModel.studentName,
|
||||
mobileNumber: myModel.mobileNumber,
|
||||
university: $scope.univId,
|
||||
course:myModel.courseName,
|
||||
requestedtBy: JSON.parse(localStorage.getItem('localObj')).localUserID
|
||||
}
|
||||
};
|
||||
@ -249,7 +286,6 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
||||
$http(updateFees).then(function (response) {
|
||||
if (response.data.status==200 && response.data.paidStatus) {
|
||||
$scope.ldloading[loading.replace('-', '_')] = false;
|
||||
// $rootScope.init();
|
||||
swal("Success!", response.data.message, "success");
|
||||
|
||||
$scope.getStudentFeesStructure(myModel.ID,myModel.CourseID,myModel.StudentID);
|
||||
@ -271,7 +307,6 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
||||
|
||||
} else {
|
||||
$scope.ldloading[loading.replace('-', '_')] = false;
|
||||
//$rootScope.init();
|
||||
swal("Failed!", response.data.message, "error");
|
||||
$scope.getStudentFeesStructure(myModel.ID,myModel.CourseID,myModel.StudentID);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user