fee id capture details changes : kdk
This commit is contained in:
parent
525232c197
commit
22afde7cb2
@ -277,7 +277,9 @@ class Receive_Enrolment_Fees_Univ_Controller extends REST_Controller {
|
|||||||
// kdk
|
// kdk
|
||||||
public function getForFormIdDraftDetails_post(){
|
public function getForFormIdDraftDetails_post(){
|
||||||
$reqBranch = $this->post('localDetails');
|
$reqBranch = $this->post('localDetails');
|
||||||
$getForFormIdDraftDetails = $this->receive_model->getForFormIdDraftDetails(); // Check if the employee exist
|
$getDetailsFor = $this->post('getDetailsFor');
|
||||||
|
|
||||||
|
$getForFormIdDraftDetails = $this->receive_model->getForFormIdDraftDetails($getDetailsFor); // Check if the employee exist
|
||||||
if ($getForFormIdDraftDetails) {
|
if ($getForFormIdDraftDetails) {
|
||||||
$getForFormIdDraftDetails['status'] = REST_Controller::HTTP_OK;
|
$getForFormIdDraftDetails['status'] = REST_Controller::HTTP_OK;
|
||||||
// Set the response and exit
|
// Set the response and exit
|
||||||
|
|||||||
@ -893,8 +893,10 @@ class Receive_Enrolment_Fees_Univ_model extends CI_Model {
|
|||||||
|
|
||||||
// get formid draft mode list details
|
// get formid draft mode list details
|
||||||
// kdk
|
// kdk
|
||||||
public function getForFormIdDraftDetails(){
|
public function getForFormIdDraftDetails($getUnivDetails){
|
||||||
$selectQuery = "SELECT * FROM T_FormId_FeeDetails_Received_From_University WHERE DraftStatus = 1";
|
$selectUniv = $getUnivDetails['univCode'];
|
||||||
|
|
||||||
|
$selectQuery = "SELECT * FROM T_FormId_FeeDetails_Received_From_University WHERE UniversityID = '$selectUniv' AND DraftStatus = 1";
|
||||||
$details = $this->db->query($selectQuery);
|
$details = $this->db->query($selectQuery);
|
||||||
$detailsList = $details->result();
|
$detailsList = $details->result();
|
||||||
if($detailsList) {
|
if($detailsList) {
|
||||||
@ -1100,7 +1102,8 @@ $result['updatedraftStatus'] = false;
|
|||||||
|
|
||||||
$this->db->select('FUD.*, concat(ST.FirstName," ", ST.Lastname) as app_StudentName, IF(concat(ST.FirstName," " , ST.Lastname) = FUD.Student_Name, "YES", "NO") as StudentNameStatus ,
|
$this->db->select('FUD.*, concat(ST.FirstName," ", ST.Lastname) as app_StudentName, IF(concat(ST.FirstName," " , ST.Lastname) = FUD.Student_Name, "YES", "NO") as StudentNameStatus ,
|
||||||
ST.Fathername as app_FatherName, IF(ST.Fathername = FUD.Father_Name, "YES", "NO") as FathernameStatus,
|
ST.Fathername as app_FatherName, IF(ST.Fathername = FUD.Father_Name, "YES", "NO") as FathernameStatus,
|
||||||
CM.CourseCode as app_CourseCode, IF(CM.CourseCode = FUD.CourseCode, "YES", "NO" ) as CourseCodeStatus');
|
CM.CourseCode as app_CourseCode, IF(CM.CourseCode = FUD.CourseCode, "YES", "NO" ) as CourseCodeStatus,
|
||||||
|
IF(ENU.SemesterYear = FUD.Semester, "YES", "NO" ) as SemesterStatus');
|
||||||
$this->db->from('T_FormId_FeeDetails_Received_From_University as FUD');
|
$this->db->from('T_FormId_FeeDetails_Received_From_University as FUD');
|
||||||
$this->db->join(ENROLMENTRECEIVEDFROMUNIV.' as ENU', 'FUD.FormID = ENU.FormID' );
|
$this->db->join(ENROLMENTRECEIVEDFROMUNIV.' as ENU', 'FUD.FormID = ENU.FormID' );
|
||||||
$this->db->join(STUDENTCOURSE.' as STC', 'STC.EnrollmentID = ENU.EnrolmentNo');
|
$this->db->join(STUDENTCOURSE.' as STC', 'STC.EnrollmentID = ENU.EnrolmentNo');
|
||||||
|
|||||||
@ -129,9 +129,10 @@ app.controller('studentUnivFormIdFeeDetailsCtrl', ["$scope", "toaster", "$filter
|
|||||||
|
|
||||||
$scope.Searchloader = false;
|
$scope.Searchloader = false;
|
||||||
$scope.studentData = false;
|
$scope.studentData = false;
|
||||||
|
$scope.formIdListNoRecordFound = false;
|
||||||
$scope.onSubmit = function () {
|
$scope.onSubmit = function () {
|
||||||
$scope.Searchloader = true;
|
$scope.Searchloader = true;
|
||||||
|
$scope.formIdListNoRecordFound = false;
|
||||||
if ($scope.searchData.University !== '' && $scope.searchData.Course !== '') {
|
if ($scope.searchData.University !== '' && $scope.searchData.Course !== '') {
|
||||||
$scope.Searchloader = true;
|
$scope.Searchloader = true;
|
||||||
var empListreq = {
|
var empListreq = {
|
||||||
@ -151,11 +152,13 @@ app.controller('studentUnivFormIdFeeDetailsCtrl', ["$scope", "toaster", "$filter
|
|||||||
$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.formIdListNoRecordFound = false;
|
||||||
// $scope.statusMessage = $scope.data.message;
|
// $scope.statusMessage = $scope.data.message;
|
||||||
} else {
|
} else {
|
||||||
|
$scope.formIdListNoRecordFound = true;
|
||||||
$scope.Searchloader = false;
|
$scope.Searchloader = false;
|
||||||
$scope.studentData = false;
|
$scope.studentData = false;
|
||||||
$scope.statusMessage = $scope.data.message;
|
$scope.statusMessage = response.data.message;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -169,9 +172,8 @@ app.controller('studentUnivFormIdFeeDetailsCtrl', ["$scope", "toaster", "$filter
|
|||||||
}
|
}
|
||||||
|
|
||||||
$scope.myObjErr = {
|
$scope.myObjErr = {
|
||||||
"text-decoration": "underline",
|
"color": "red",
|
||||||
"text-decoration-color": "red",
|
"font-size": "inherit",
|
||||||
"font-size": "inherit"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.editId = -1;
|
$scope.editId = -1;
|
||||||
@ -334,6 +336,7 @@ app.controller('studentUnivFormIdFeeDetailsCtrl', ["$scope", "toaster", "$filter
|
|||||||
// get subtab details for the formid fee details get form the university
|
// get subtab details for the formid fee details get form the university
|
||||||
|
|
||||||
$scope.subTabActive = function (tab) {
|
$scope.subTabActive = function (tab) {
|
||||||
|
$scope.subTabactive = tab;
|
||||||
if (tab == 'subTabactive2') {
|
if (tab == 'subTabactive2') {
|
||||||
getDraftFormIdDetails();
|
getDraftFormIdDetails();
|
||||||
}
|
}
|
||||||
@ -369,6 +372,7 @@ app.controller('studentUnivFormIdFeeDetailsCtrl', ["$scope", "toaster", "$filter
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$scope.draftListDetails = '';
|
$scope.draftListDetails = '';
|
||||||
$scope.draftListDetailsNoRecordFound = false;
|
$scope.draftListDetailsNoRecordFound = false;
|
||||||
$scope.draftListDetailsLoading = false;
|
$scope.draftListDetailsLoading = false;
|
||||||
@ -384,7 +388,8 @@ app.controller('studentUnivFormIdFeeDetailsCtrl', ["$scope", "toaster", "$filter
|
|||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
localDetails: localDetail
|
localDetails: localDetail,
|
||||||
|
getDetailsFor: $scope.formUploadUnivSelectID
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
$http(getFormIdDraftDetailsList).then(function (response) {
|
$http(getFormIdDraftDetailsList).then(function (response) {
|
||||||
|
|||||||
@ -101,6 +101,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<h2> {{statusMessage}} </h2>
|
<h2> {{statusMessage}} </h2>
|
||||||
</div>
|
</div>
|
||||||
|
<div ng-if="formIdListNoRecordFound" align="center">
|
||||||
|
<div style="color: red; align: center;" align="center"> No Record Found ...</div>
|
||||||
|
</div>
|
||||||
<div class="table-responsive" ng-if="studentData">
|
<div class="table-responsive" ng-if="studentData">
|
||||||
<table class="table table-hover">
|
<table class="table table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
@ -181,16 +184,16 @@
|
|||||||
{{p.Year}}
|
{{p.Year}}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{p.Semester}}
|
<div ng-style="p.SemesterStatus == 'YES' ? myObj: myObjErr"> {{p.Semester}} </div>
|
||||||
</td>
|
</td>
|
||||||
<td ng-style="p.StudentNameStatus == 'YES' ? myObj: myObjErr">
|
<td>
|
||||||
{{p.Student_Name}}
|
<div ng-style="p.StudentNameStatus == 'YES' ? myObj: myObjErr">{{p.Student_Name}}<div>
|
||||||
</td>
|
</td>
|
||||||
<td ng-style="p.FathernameStatus == 'YES' ? myObj: myObjErr">
|
<td>
|
||||||
{{p.Father_Name}}
|
<div ng-style="p.FathernameStatus == 'YES' ? myObj: myObjErr"> {{p.Father_Name}}</div>
|
||||||
</td>
|
</td>
|
||||||
<td ng-style="p.CourseCodeStatus == 'YES' ? myObj: myObjErr">
|
<td>
|
||||||
{{p.CourseCode}}
|
<div ng-style="p.CourseCodeStatus == 'YES' ? myObj: myObjErr"> {{p.CourseCode}} </div>
|
||||||
</td>
|
</td>
|
||||||
<td>{{p.ActualCourseFee}}</td>
|
<td>{{p.ActualCourseFee}}</td>
|
||||||
<td>{{p.CourseFee}}</td>
|
<td>{{p.CourseFee}}</td>
|
||||||
@ -312,7 +315,7 @@
|
|||||||
<label>
|
<label>
|
||||||
University <span class="symbol required"></span>
|
University <span class="symbol required"></span>
|
||||||
</label>
|
</label>
|
||||||
<select class="form-control" tabindex="1" name="formUniversity" ng-model="formUploadUnivSelectID.univCode" required>
|
<select class="form-control" tabindex="1" name="formUniversity" ng-model="formUploadUnivSelectID.univCode" ng-change="subTabActive('subTabactive1');" required>
|
||||||
<option value="" selected>Select University</option>
|
<option value="" selected>Select University</option>
|
||||||
<option ng-repeat="univ in universityData" value="{{univ.UniversityID}}">{{univ.UniversityName}}</option>
|
<option ng-repeat="univ in universityData" value="{{univ.UniversityID}}">{{univ.UniversityName}}</option>
|
||||||
</select>
|
</select>
|
||||||
@ -321,7 +324,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<tabset ng-if="formUploadUnivSelectID.univCode" id="uploadDetails" class="tabbable">
|
<tabset ng-if="formUploadUnivSelectID.univCode" id="uploadDetails" class="tabbable">
|
||||||
<tab tabindex="1" active="subTabactive1" ng-click="subTabActive('subTabactive1')" heading="Upload File" id="uploadFiles">
|
<tab tabindex="1" active="subTabactive == 'subTabactive1'" ng-click="subTabActive('subTabactive1')" heading="Upload File" id="uploadFiles">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
@ -336,7 +339,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</tab>
|
</tab>
|
||||||
<tab tabindex="2" active="subTabactive2" ng-click="subTabActive('subTabactive2')" heading="Upload Data Manualy" id="uploadDataManualy">
|
<tab tabindex="2" active="subTabactive == 'subTabactive2'" ng-click="subTabActive('subTabactive2')" heading="Upload Data Manualy" id="uploadDataManualy">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
@ -417,6 +420,9 @@
|
|||||||
Loading...
|
Loading...
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
<div ng-if="draftListDetailsNoRecordFound" style="color: red; align: center;" align="center"> No Record Found ...</div>
|
||||||
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div ng-if="draftListDetails && !draftListDetailsLoading" class="table-responsive">
|
<div ng-if="draftListDetails && !draftListDetailsLoading" class="table-responsive">
|
||||||
<table class="table table-border table-hover">
|
<table class="table table-border table-hover">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user