data correction
This commit is contained in:
parent
c07a29843a
commit
4250a1ce48
@ -136,7 +136,12 @@ group by Student_id,cid";
|
|||||||
|
|
||||||
$coursearr['IsActive'] = $search['IsActive'];
|
$coursearr['IsActive'] = $search['IsActive'];
|
||||||
$coursearr['DeactiveComments'] =$search['Reason'];
|
$coursearr['DeactiveComments'] =$search['Reason'];
|
||||||
|
|
||||||
|
if( $search['IsActive'] ==0)
|
||||||
|
{
|
||||||
$coursearr['Deactive'] = '0';
|
$coursearr['Deactive'] = '0';
|
||||||
|
}
|
||||||
|
|
||||||
$this->db->where('StudentID', $search['studentId']);
|
$this->db->where('StudentID', $search['studentId']);
|
||||||
$this->db->where('UniversityID', $search['University']);
|
$this->db->where('UniversityID', $search['University']);
|
||||||
$this->db->where('CourseID', $search['courseId']);
|
$this->db->where('CourseID', $search['courseId']);
|
||||||
|
|||||||
@ -76,6 +76,8 @@ $scope.universitySearchData = '';
|
|||||||
|
|
||||||
|
|
||||||
$scope.studentInfo="";
|
$scope.studentInfo="";
|
||||||
|
$scope.mobileNo='';
|
||||||
|
$scope.student_Name='';
|
||||||
$scope.getStudentDetails = function (form,myModel)
|
$scope.getStudentDetails = function (form,myModel)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -85,6 +87,8 @@ $scope.universitySearchData = '';
|
|||||||
var studentName = myModel.studentName;
|
var studentName = myModel.studentName;
|
||||||
var receipt = myModel.receipt;
|
var receipt = myModel.receipt;
|
||||||
$scope.universityId = myModel.myUnivSearch;
|
$scope.universityId = myModel.myUnivSearch;
|
||||||
|
$scope.mobileNo=myModel.mobileNumber;
|
||||||
|
$scope.student_Name=myModel.studentName;
|
||||||
// console.log($scope.universityId);
|
// console.log($scope.universityId);
|
||||||
// return false;
|
// return false;
|
||||||
|
|
||||||
@ -249,7 +253,44 @@ $scope.universitySearchData = '';
|
|||||||
$http(updatecourse).then(function (response) {
|
$http(updatecourse).then(function (response) {
|
||||||
swal('Change Saved Successfully', response.data.message, "success");
|
swal('Change Saved Successfully', response.data.message, "success");
|
||||||
$scope.close();
|
$scope.close();
|
||||||
$scope.getStudentDetails(form,myModel);
|
// $scope.getStudentDetails(form,myModel);
|
||||||
|
|
||||||
|
$scope.isLoaderShow= false
|
||||||
|
|
||||||
|
var getdetail = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'getAllstudentcoursedetail/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data :{
|
||||||
|
studentName: $scope.student_Name,
|
||||||
|
mobileNumber: $scope.mobileNo,
|
||||||
|
receipt: myModel.receipt,
|
||||||
|
University:$scope.universityId,
|
||||||
|
requestedtBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
|
||||||
|
branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID,
|
||||||
|
requestedDept: JSON.parse(localStorage.getItem('localObj')).localType,
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
$http(getdetail).then(function (response) {
|
||||||
|
|
||||||
|
//console.log(response)
|
||||||
|
if (response.data.status==200 && response.data.studentStatus) {
|
||||||
|
$scope.studentInfo=response.data.details;
|
||||||
|
console.log($scope.studentInfo);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$scope.studentInfo="";
|
||||||
|
|
||||||
|
$scope.isLoaderShow = true;
|
||||||
|
$scope.load = "No Records Found";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user