Merge branch 'master' of https://bitbucket.org/venbainformationtechnology/apollodec
This commit is contained in:
commit
00df0cfb80
@ -647,7 +647,6 @@ class Receive_Enrolment_Fees_Univ_model extends CI_Model {
|
|||||||
foreach ($formFeeDetails as $formIdDetails){
|
foreach ($formFeeDetails as $formIdDetails){
|
||||||
|
|
||||||
$formIds = $formIdDetails['FormId'];
|
$formIds = $formIdDetails['FormId'];
|
||||||
// $bar ? $bar : $baz;
|
|
||||||
$formType = $formIdDetails['Form Type'] ? $formIdDetails['Form Type'] : '';
|
$formType = $formIdDetails['Form Type'] ? $formIdDetails['Form Type'] : '';
|
||||||
$CentreCode = $formIdDetails['CentreCode'] ?: '';
|
$CentreCode = $formIdDetails['CentreCode'] ?: '';
|
||||||
$CourseCode = $formIdDetails['Course_Code'] ?: '';
|
$CourseCode = $formIdDetails['Course_Code'] ?: '';
|
||||||
@ -757,14 +756,14 @@ class Receive_Enrolment_Fees_Univ_model extends CI_Model {
|
|||||||
public function getStudentUnivFeeCompareDetails($univCode=null,$courseCode=null){
|
public function getStudentUnivFeeCompareDetails($univCode=null,$courseCode=null){
|
||||||
// echo $univID, $courseID;exit();
|
// echo $univID, $courseID;exit();
|
||||||
|
|
||||||
$this->db->select('t1.*,t2.EnrolmentNo,t2.CourseName, t4.*,t5.UniversityID, t5.UniversityName');
|
$this->db->select('t1.FormID, t1.FormType, t2.SemesterYear, t2.EnrolmentNo,t2.CourseName,t2.RollNo, t4.*,t5.UniversityID, t5.UniversityName');
|
||||||
$this->db->from('T_FormId_FeeDetails_Received_From_University as t1');
|
$this->db->from('T_FormId_FeeDetails_Received_From_University as t1');
|
||||||
$this->db->join('T_Enrolment_Received_From_University as t2', 't2.FormID = t1.FormID');
|
$this->db->join('T_Enrolment_Received_From_University as t2', 't2.FormID = t1.FormID');
|
||||||
$this->db->join('T_Student_CourseDetails as t3', 't3.EnrollmentID = t2.EnrolmentNo');
|
$this->db->join('T_Student_CourseDetails as t3', 't3.EnrollmentID = t2.EnrolmentNo');
|
||||||
$this->db->join('T_StudentDetails as t4', 't4.StudentID = t3.StudentID');
|
$this->db->join('T_StudentDetails as t4', 't4.StudentID = t3.StudentID');
|
||||||
$this->db->join('T_UniversityMaster as t5', 't5.UniversityID = t3.UniversityID');
|
$this->db->join('T_UniversityMaster as t5', 't5.UniversityID = t3.UniversityID');
|
||||||
// $this->db->where('t2.CourseCode', $courseID);
|
$this->db->where('t2.CourseCode', $courseCode);
|
||||||
// $this->db->where('t2.UniversityCode', $univCode);
|
$this->db->where('t2.UniversityCode', $univCode);
|
||||||
$details = $this->db->get();
|
$details = $this->db->get();
|
||||||
$detailsList = $details->result();
|
$detailsList = $details->result();
|
||||||
|
|
||||||
|
|||||||
@ -115,7 +115,12 @@ app.controller('student_university_fee_compareCtrl', ["$scope", "toaster", "$fil
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
$scope.Searchloader = false;
|
||||||
|
$scope.studentData = false;
|
||||||
|
|
||||||
$scope.onSubmit = function(){
|
$scope.onSubmit = function(){
|
||||||
|
$scope.Searchloader = true;
|
||||||
if($scope.searchData.University !== '' && $scope.searchData.Course !==''){
|
if($scope.searchData.University !== '' && $scope.searchData.Course !==''){
|
||||||
$scope.Searchloader = true;
|
$scope.Searchloader = true;
|
||||||
var empListreq = {
|
var empListreq = {
|
||||||
@ -135,9 +140,11 @@ app.controller('student_university_fee_compareCtrl', ["$scope", "toaster", "$fil
|
|||||||
$scope.studentData = true;
|
$scope.studentData = true;
|
||||||
$scope.data = response.data.studentFeeCompareDetails;
|
$scope.data = response.data.studentFeeCompareDetails;
|
||||||
$scope.studentListLength = $scope.data.length;
|
$scope.studentListLength = $scope.data.length;
|
||||||
|
// $scope.statusMessage = $scope.data.message;
|
||||||
} else {
|
} else {
|
||||||
$scope.Searchloader = false;
|
$scope.Searchloader = false;
|
||||||
$scope.studentData = false;
|
$scope.studentData = false;
|
||||||
|
$scope.statusMessage = $scope.data.message;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else {
|
}else {
|
||||||
@ -145,6 +152,11 @@ app.controller('student_university_fee_compareCtrl', ["$scope", "toaster", "$fil
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.editId = -1;
|
||||||
|
$scope.setEditId=function(id){
|
||||||
|
$scope.editId = id;
|
||||||
|
}
|
||||||
|
|
||||||
/*upload model*/
|
/*upload model*/
|
||||||
$scope.uploadModel = {
|
$scope.uploadModel = {
|
||||||
university: "",
|
university: "",
|
||||||
@ -263,7 +275,7 @@ app.controller('student_university_fee_compareCtrl', ["$scope", "toaster", "$fil
|
|||||||
};
|
};
|
||||||
|
|
||||||
$http(updateUniversityEnrolment).then(function (response) {
|
$http(updateUniversityEnrolment).then(function (response) {
|
||||||
if (response.data.branchListStatus == true) {
|
if (response.data.stuFeeList == true) {
|
||||||
swal("", "Updated Successfully", "success");
|
swal("", "Updated Successfully", "success");
|
||||||
} else {
|
} else {
|
||||||
swal("", "Failed", "error");
|
swal("", "Failed", "error");
|
||||||
@ -271,4 +283,32 @@ app.controller('student_university_fee_compareCtrl', ["$scope", "toaster", "$fil
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.popupLoad = false;
|
||||||
|
$scope.popupLoadData = false;
|
||||||
|
$scope.getFeeCompareDetails = function(formId, enrolmentId){
|
||||||
|
$scope.popupLoad = true;
|
||||||
|
var getFeeCompareDetailsList = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'getjsldkfjalkjlkkjf/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
localDetails: localDetail,
|
||||||
|
formId: formId,
|
||||||
|
enrolmentId: enrolmentId
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$http(getFeeCompareDetailsList).then(function (response) {
|
||||||
|
if (response.data.stuFeeList == true) {
|
||||||
|
$scope.popupLoad = false;
|
||||||
|
$scope.popupLoadData = true;
|
||||||
|
} else {
|
||||||
|
$scope.popupLoad = false;
|
||||||
|
$scope.popupLoadData = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
|
|||||||
@ -160,6 +160,8 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
<dir-pagination-controls direction-links="true" boundary-links="true">
|
||||||
|
</dir-pagination-controls>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@ -82,7 +82,7 @@
|
|||||||
<div class="col-md-2" style="padding-top: 2.3%;">
|
<div class="col-md-2" style="padding-top: 2.3%;">
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
<button type="submit" class="btn btn-success btn-o" tabindex="8">
|
<button ng-disabled="searchData.Course == '' || searchData.University == ''" type="submit" class="btn btn-success btn-o" tabindex="8">
|
||||||
Submit
|
Submit
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@ -94,13 +94,19 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<!--{{data | json}}-->
|
<!--{{data | json}}-->
|
||||||
|
<div ng-if="Searchloader">
|
||||||
<div class="table-responsive">
|
<div align="center" >
|
||||||
<table class="table table-hover">
|
<h3 style="color: blue;">Loading...</h3></div>
|
||||||
|
<h2> {{statusMessage}} </h2>
|
||||||
|
</div>
|
||||||
|
<div class="table-responsive" ng-if="studentData">
|
||||||
|
<table class="table table-hover" >
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th> FormID
|
<th> FormID
|
||||||
</th>
|
</th>
|
||||||
|
<th> Form Type
|
||||||
|
</th>
|
||||||
<th> Student Name
|
<th> Student Name
|
||||||
</th>
|
</th>
|
||||||
<th> Father Name
|
<th> Father Name
|
||||||
@ -108,9 +114,13 @@
|
|||||||
<th> University
|
<th> University
|
||||||
</th>
|
</th>
|
||||||
<th> Course
|
<th> Course
|
||||||
|
</th>
|
||||||
|
<th> Sem/Year
|
||||||
</th>
|
</th>
|
||||||
<th> Enrolment ID
|
<th> Enrolment ID
|
||||||
</th>
|
</th>
|
||||||
|
<th> Action
|
||||||
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody dir-paginate="p in data|orderBy:sortKey:reverse|filter:search:strict|itemsPerPage:10| filter:query as results">
|
<tbody dir-paginate="p in data|orderBy:sortKey:reverse|filter:search:strict|itemsPerPage:10| filter:query as results">
|
||||||
@ -118,6 +128,9 @@
|
|||||||
<td>
|
<td>
|
||||||
{{p.FormID}}
|
{{p.FormID}}
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
{{p.FormType}}
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a tooltip="View Student" ng-click="open(p);" class="text-dark">
|
<a tooltip="View Student" ng-click="open(p);" class="text-dark">
|
||||||
{{p.Firstname}} {{p.Lastname}}
|
{{p.Firstname}} {{p.Lastname}}
|
||||||
@ -126,7 +139,37 @@
|
|||||||
<td>{{p.Fathername}}</td>
|
<td>{{p.Fathername}}</td>
|
||||||
<td>{{p.UniversityName}}</td>
|
<td>{{p.UniversityName}}</td>
|
||||||
<td>{{p.CourseName}}</td>
|
<td>{{p.CourseName}}</td>
|
||||||
|
<td>{{p.SemesterYear}}</td>
|
||||||
<td>{{p.EnrolmentNo}}</td>
|
<td>{{p.EnrolmentNo}}</td>
|
||||||
|
<td>
|
||||||
|
<i class="ti-write" tooltip="View Fee Details" id="personalDetailButton" ng-click="setEditId(p.FormID);getFeeCompareDetails(p.FormID, p.EnrolmentNo)"></i>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr ng-show="editId === p.FormID" ng-if="editId === p.FormID">
|
||||||
|
<td colspan="9">
|
||||||
|
<div ng-if="popupLoad">
|
||||||
|
<div align="center" >
|
||||||
|
<h3 style="color: blue;">Loading...</h3></div>
|
||||||
|
<h2> {{statusMessage}} </h2>
|
||||||
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
<div class="container" align="center">
|
||||||
|
<table class="table table-border">
|
||||||
|
<thead>
|
||||||
|
<th>University Fee Details</th>
|
||||||
|
<th>Student Fee Paid Details</th>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<button class="btn btn-warning pull-right" ng-click="setEditId(-1);">Cancel</button>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user