router changes
This commit is contained in:
commit
6c6009543c
@ -350,6 +350,4 @@ $route['getStudentUnivFeeCompareDetails'] = 'Receive_Enrolment_Fees_Univ_Control
|
|||||||
$route['formIDFeeCompareDetails'] = 'Receive_Enrolment_Fees_Univ_Controller/formIDFeeCompareDetails';
|
$route['formIDFeeCompareDetails'] = 'Receive_Enrolment_Fees_Univ_Controller/formIDFeeCompareDetails';
|
||||||
$route['getUnmatchedRecordDetails'] = 'Receive_Enrolment_Fees_Univ_Controller/getUnmatchedRecordDetails';
|
$route['getUnmatchedRecordDetails'] = 'Receive_Enrolment_Fees_Univ_Controller/getUnmatchedRecordDetails';
|
||||||
$route['getUniversitySessionDetails'] = 'Receive_Enrolment_Fees_Univ_Controller/getUniversitySessionDetails';
|
$route['getUniversitySessionDetails'] = 'Receive_Enrolment_Fees_Univ_Controller/getUniversitySessionDetails';
|
||||||
$route['getExistStudentEnrolmentDetails'] = 'Receive_Enrolment_Fees_Univ_Controller/getExistStudentEnrolmentDetails';
|
$route['getUnivCourseFromFileDetails'] = 'Receive_Enrolment_Fees_Univ_Controller/getUnivCourseFromFileDetails';
|
||||||
$route['addManualEnrolmentDetails'] = 'Receive_Enrolment_Fees_Univ_Controller/addManualEnrolmentDetails';
|
|
||||||
|
|
||||||
@ -257,4 +257,22 @@ class Receive_Enrolment_Fees_Univ_Controller extends REST_Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public function getUnivCourseFromFileDetails_post(){
|
||||||
|
// $reqData = $this->post('data');
|
||||||
|
// $reqBranch = $this->post('reqBranch');
|
||||||
|
$getUnivCourseFromFileDetails = $this->receive_model->getUnivCourseFromFileDetails(); // Check if the employee exist
|
||||||
|
if ($getUnivCourseFromFileDetails) {
|
||||||
|
$getUnivCourseFromFileDetails['status'] = REST_Controller::HTTP_OK;
|
||||||
|
// Set the response and exit
|
||||||
|
$this->response($getUnivCourseFromFileDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// Set the response and exit
|
||||||
|
$this->response(['message' => 'No list were found', 'status' => REST_Controller::HTTP_NOT_FOUND], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -280,4 +280,5 @@ class StatusUpdation_Controller extends REST_Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -15,6 +15,36 @@ class Receive_Enrolment_Fees_Univ_model extends CI_Model {
|
|||||||
* created by kms
|
* created by kms
|
||||||
* */
|
* */
|
||||||
|
|
||||||
|
public function getUnivCourseFromFileDetails(){
|
||||||
|
$selectQuery = "SELECT UniversityCode, UniversityName FROM T_Enrolment_Received_From_University GROUP BY UniversityCode";
|
||||||
|
$queryDetails = $this->db->query($selectQuery);
|
||||||
|
|
||||||
|
if($queryDetails->result()){
|
||||||
|
foreach ($queryDetails->result() as $formIdDetails){
|
||||||
|
|
||||||
|
$result['univCode'] = $formIdDetails->UniversityCode;
|
||||||
|
$result['univName'] = $formIdDetails->UniversityName;
|
||||||
|
|
||||||
|
$selectCourseQuery = "SELECT CourseCode, CourseName FROM T_Enrolment_Received_From_University WHERE UniversityCode = '$formIdDetails->UniversityCode' GROUP BY CourseCode";
|
||||||
|
$queryCourseDetails = $this->db->query($selectCourseQuery);
|
||||||
|
$result['univCourseDetails'] = $queryCourseDetails->result();
|
||||||
|
|
||||||
|
$selectSessionQuery = "SELECT SessionName FROM T_Enrolment_Received_From_University WHERE UniversityCode = '$formIdDetails->UniversityCode' GROUP BY CourseCode";
|
||||||
|
$querySessionDetails = $this->db->query($selectSessionQuery);
|
||||||
|
$result['univSessionDetails'] = $querySessionDetails->result();
|
||||||
|
|
||||||
|
}
|
||||||
|
$finalArray['status'] = true;
|
||||||
|
$finalArray['message'] = "Success.";
|
||||||
|
$finalArray['details'] = $result;
|
||||||
|
} else {
|
||||||
|
$finalArray['status'] = false;
|
||||||
|
$finalArray['message'] = "No record found.";
|
||||||
|
$finalArray['details'] = [];
|
||||||
|
}
|
||||||
|
return $finalArray;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -338,116 +368,110 @@ class Receive_Enrolment_Fees_Univ_model extends CI_Model {
|
|||||||
|
|
||||||
|
|
||||||
public function formIdFeeDetails($formFeeDetails=null,$local=null){
|
public function formIdFeeDetails($formFeeDetails=null,$local=null){
|
||||||
// print_r($formFeeDetails);exit();
|
$localBranchID = $local['localBranchID'];
|
||||||
// $this->db->select('*');
|
$localUserID = $local['localUserID'];
|
||||||
// $this->db->from('T_Enrolment_Received_From_University');
|
$time = date('Y-m-d H:i:s');
|
||||||
// $this->db->where('FormID', $formIdDetails['FormId']);
|
$CreatedOn = $time;
|
||||||
// $detailsList = $this->db->get();
|
|
||||||
// $datassss = $detailsList->result();
|
|
||||||
foreach ($formFeeDetails as $formIdDetails){
|
|
||||||
|
|
||||||
$formIds = $formIdDetails['FormId'];
|
|
||||||
$formType = $formIdDetails['Form Type'] ? $formIdDetails['Form Type'] : '';
|
|
||||||
$CentreCode = $formIdDetails['CentreCode'] ?: '';
|
|
||||||
$CourseCode = $formIdDetails['Course_Code'] ?: '';
|
|
||||||
$ActualCourseFee = $formIdDetails['Actual_Course_Fee'] ?: '';
|
|
||||||
$CourseFee = $formIdDetails['Course_Fee'] ?: '';
|
|
||||||
$ExamFee = $formIdDetails['Exam_Fee'] ?: '';
|
|
||||||
$EnrollmentFee = $formIdDetails['Enrollment_Fee'] ?: '';
|
|
||||||
$ProspectusFee = $formIdDetails['Prospectus_Fee'] ?: '';
|
|
||||||
$ReRegFee = $formIdDetails['Re_Reg_Fee'] ?: '';
|
|
||||||
$CreditTransferFee = $formIdDetails['Credit_Transfer_Fee'] ?: '';
|
|
||||||
$LateralEntryFee = $formIdDetails['Lateral_Entry_Fee'] ?: '';
|
|
||||||
$DualSpclFee = $formIdDetails['Dual_Spcl_Fee'] ?: '';
|
|
||||||
$OtherFee = $formIdDetails['Other_Fee'] ?: '';
|
|
||||||
$NRIFEE = $formIdDetails['NRI_FEE'] ?: '';
|
|
||||||
$ProvisionalFee = $formIdDetails['Provisional_Fee'] ?: '';
|
|
||||||
$MigrationFee = $formIdDetails['Migration_Fee'] ?: '';
|
|
||||||
$UrgentResultDMCFee = $formIdDetails['Urgent_Result_DMC_Fee'] ?: '';
|
|
||||||
$AdditionalFee = $formIdDetails['Additional_Fee'] ?: '';
|
|
||||||
$Amount = $formIdDetails['Amount'] ?: '';
|
|
||||||
|
|
||||||
|
foreach ($formFeeDetails as $formIdDetails){
|
||||||
$query = "INSERT INTO T_FormId_FeeDetails_Received_From_University
|
|
||||||
(FormID, FormType, CentreCode, CourseCode, ActualCourseFee, CourseFee, ExamFee, EnrollmentFee, ProspectusFee, ReRegFee, CreditTransferFee, LateralEntryFee, DualSpclFee, OtherFee, NRIFEE, ProvisionalFee, MigrationFee, UrgentResultDMCFee, AdditionalFee, Amount)
|
|
||||||
VALUES
|
|
||||||
( '$formIds', '$formType', '$CentreCode', '$CourseCode', '$ActualCourseFee', '$CourseFee', '$ExamFee', '$EnrollmentFee', '$ProspectusFee', '$ReRegFee', '$CreditTransferFee', '$LateralEntryFee', '$DualSpclFee', '$OtherFee', '$NRIFEE', '$ProvisionalFee', '$MigrationFee', '$UrgentResultDMCFee', '$AdditionalFee', '$Amount' )
|
|
||||||
ON DUPLICATE KEY UPDATE
|
|
||||||
FormType = '$formType',
|
|
||||||
CentreCode = '$CentreCode',
|
|
||||||
CourseCode = '$CourseCode',
|
|
||||||
ActualCourseFee = '$ActualCourseFee',
|
|
||||||
CourseFee = '$CourseFee',
|
|
||||||
ExamFee = '$ExamFee',
|
|
||||||
EnrollmentFee = '$EnrollmentFee',
|
|
||||||
ProspectusFee = '$ProspectusFee',
|
|
||||||
ReRegFee = '$ReRegFee',
|
|
||||||
CreditTransferFee = '$CreditTransferFee',
|
|
||||||
LateralEntryFee = '$LateralEntryFee',
|
|
||||||
DualSpclFee = '$DualSpclFee',
|
|
||||||
OtherFee = '$OtherFee',
|
|
||||||
NRIFEE = '$NRIFEE',
|
|
||||||
ProvisionalFee = '$ProvisionalFee',
|
|
||||||
MigrationFee = '$MigrationFee',
|
|
||||||
UrgentResultDMCFee = '$UrgentResultDMCFee',
|
|
||||||
AdditionalFee = '$AdditionalFee',
|
|
||||||
Amount = '$Amount'";
|
|
||||||
$queryDetails = $this->db->query($query);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// foreach ($formFeeDetails as $formIdDetails){
|
|
||||||
// // echo $formIdDetails['FormId'];
|
|
||||||
// $this->db->select('*');
|
|
||||||
// $this->db->from('T_Enrolment_Received_From_University');
|
|
||||||
// $this->db->where('FormID', $formIdDetails['FormId']);
|
|
||||||
// $detailsList = $this->db->get();
|
|
||||||
|
|
||||||
|
|
||||||
// if($detailsList->result() == 1){
|
|
||||||
// // $this->db->select('*');
|
|
||||||
// // $this->db->from('T_FormId_FeeDetails_Received_From_University');
|
|
||||||
// // $this->db->where('FormID', $formIdDetails['FormId']);
|
|
||||||
// // $FormIDdetailsList = $this->db->get();
|
|
||||||
// // $dbDetailsArr = array();
|
|
||||||
// // $dbDetailsArr['FormID'] = $formIdDetails['FormId'];
|
|
||||||
// // $dbDetailsArr['FormType'] = $formIdDetails['Form Type'];
|
|
||||||
// // $dbDetailsArr['CentreCode'] = $formIdDetails['CentreCode'];
|
|
||||||
// // $dbDetailsArr['CourseCode'] = $formIdDetails['Course_Code'];
|
|
||||||
// // $dbDetailsArr['ActualCourseFee'] = $formIdDetails['Actual_Course_Fee'];
|
|
||||||
// // $dbDetailsArr['CourseFee'] = $formIdDetails['Course_Fee'];
|
|
||||||
// // $dbDetailsArr['ExamFee'] = $formIdDetails['Exam_Fee'];
|
|
||||||
// // $dbDetailsArr['EnrollmentFee'] = $formIdDetails['Enrollment_Fee'];
|
|
||||||
// // $dbDetailsArr['ProspectusFee'] = $formIdDetails['Prospectus_Fee'];
|
|
||||||
// // $dbDetailsArr['ReRegFee'] = $formIdDetails['Re_Reg_Fee'];
|
|
||||||
// // $dbDetailsArr['CreditTransferFee'] = $formIdDetails['Credit_Transfer_Fee'];
|
|
||||||
// // $dbDetailsArr['LateralEntryFee'] = $formIdDetails['Lateral_Entry_Fee'];
|
|
||||||
// // $dbDetailsArr['DualSpclFee'] = $formIdDetails['Dual_Spcl_Fee'];
|
|
||||||
// // $dbDetailsArr['OtherFee'] = $formIdDetails['Other_Fee'];
|
|
||||||
// // $dbDetailsArr['NRIFEE'] = $formIdDetails['NRI_FEE'];
|
|
||||||
// // $dbDetailsArr['ProvisionalFee'] = $formIdDetails['Provisional_Fee'];
|
|
||||||
// // $dbDetailsArr['MigrationFee'] = $formIdDetails['Migration_Fee'];
|
|
||||||
// // $dbDetailsArr['UrgentResultDMCFee'] = $formIdDetails['Urgent_Result_DMC_Fee'];
|
|
||||||
// // $dbDetailsArr['AdditionalFee'] = $formIdDetails['Additional_Fee'];
|
|
||||||
// // $dbDetailsArr['Amount'] = $formIdDetails['Amount'];
|
|
||||||
// // // $dbDetailsArr['BranchCode'] = $formIdDetails['FormId'];
|
|
||||||
|
|
||||||
// // if($FormIDdetailsList->result()){
|
|
||||||
// // $ids = $FormIDdetailsList->result();
|
|
||||||
// // $this->db->where('ID', $ids['ID']);
|
|
||||||
// // $this->db->update('T_FormId_FeeDetails_Received_From_University', $dbDetailsArr);
|
|
||||||
// // } else {
|
|
||||||
// // print_r($dbDetailsArr);exit();
|
|
||||||
// // $this->db->insert('T_FormId_FeeDetails_Received_From_University', $dbDetailsArr);
|
|
||||||
// // $this->db->affected_rows();
|
|
||||||
// // }
|
|
||||||
|
|
||||||
// } else{
|
|
||||||
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
if(array_key_exists('FormId',$formIdDetails) && $formIdDetails['FormId'] != '' && $formIdDetails['FormId'] != null
|
||||||
|
&& array_key_exists('Form Type',$formIdDetails) && array_key_exists('CentreCode',$formIdDetails) && array_key_exists('Course_Code',$formIdDetails)
|
||||||
|
&& array_key_exists('Actual_Course_Fee',$formIdDetails) && array_key_exists('Course_Fee',$formIdDetails) && array_key_exists('Exam_Fee',$formIdDetails)
|
||||||
|
&& array_key_exists('Enrollment_Fee',$formIdDetails) && array_key_exists('Prospectus_Fee',$formIdDetails) && array_key_exists('Additional_Fee',$formIdDetails)
|
||||||
|
&& array_key_exists('Amount',$formIdDetails) && array_key_exists('Session',$formIdDetails) && array_key_exists('Year',$formIdDetails)
|
||||||
|
&& array_key_exists('Semester',$formIdDetails) && array_key_exists('Student_Name',$formIdDetails) && array_key_exists('Father_Name',$formIdDetails) ){
|
||||||
|
|
||||||
|
//select query for the check the fields are entered
|
||||||
|
//echo $formIdDetails['FormId']; echo '====';
|
||||||
|
|
||||||
|
$formIds = $formIdDetails['FormId'];
|
||||||
|
$formType = $formIdDetails['Form Type'] ? $formIdDetails['Form Type'] : '';
|
||||||
|
$CentreCode = $formIdDetails['CentreCode'] ?: '';
|
||||||
|
$Session = $formIdDetails['Session'] ?: '';
|
||||||
|
$Year = $formIdDetails['Year'] ?: '';
|
||||||
|
$Semester = $formIdDetails['Semester'] ?: '';
|
||||||
|
$Student_Name = $formIdDetails['Student_Name'] ?: '';
|
||||||
|
$Father_Name = $formIdDetails['Father_Name'] ?: '';
|
||||||
|
$CourseCode = $formIdDetails['Course_Code'] ?: '';
|
||||||
|
$ActualCourseFee = $formIdDetails['Actual_Course_Fee'] ?: '0';
|
||||||
|
$CourseFee = $formIdDetails['Course_Fee'] ?: '0';
|
||||||
|
$ExamFee = $formIdDetails['Exam_Fee'] ?: '0';
|
||||||
|
$EnrollmentFee = $formIdDetails['Enrollment_Fee'] ?: '0';
|
||||||
|
$ProspectusFee = $formIdDetails['Prospectus_Fee'] ?: '0';
|
||||||
|
$ReRegFee = $formIdDetails['Re_Reg_Fee'] ?: '0';
|
||||||
|
$CreditTransferFee = $formIdDetails['Credit_Transfer_Fee'] ?: '0';
|
||||||
|
$LateralEntryFee = $formIdDetails['Lateral_Entry_Fee'] ?: '0';
|
||||||
|
$DualSpclFee = $formIdDetails['Dual_Spcl_Fee'] ?: '0';
|
||||||
|
$OtherFee = $formIdDetails['Other_Fee'] ?: '0';
|
||||||
|
$NRIFEE = $formIdDetails['NRI_FEE'] ?: '0';
|
||||||
|
$ProvisionalFee = $formIdDetails['Provisional_Fee'] ?: '0';
|
||||||
|
$MigrationFee = $formIdDetails['Migration_Fee'] ?: '0';
|
||||||
|
$UrgentResultDMCFee = $formIdDetails['Urgent_Result_DMC_Fee'] ?: '0';
|
||||||
|
$AdditionalFee = $formIdDetails['Additional_Fee'] ?: '0';
|
||||||
|
$Amount = $formIdDetails['Amount'] ?: '0';
|
||||||
|
|
||||||
|
$selectQuery = "SELECT * FROM T_FormId_FeeDetails_Received_From_University WHERE
|
||||||
|
FormID = '$formIds' AND
|
||||||
|
FormType = '$formType' AND
|
||||||
|
CentreCode = '$CentreCode' AND
|
||||||
|
Session = '$Session' AND
|
||||||
|
Year = '$Year' AND
|
||||||
|
Semester = '$Semester' AND
|
||||||
|
Student_Name = '$Student_Name' AND
|
||||||
|
Father_Name = '$Father_Name' AND
|
||||||
|
CourseCode = '$CourseCode' AND
|
||||||
|
ActualCourseFee = '$ActualCourseFee' AND
|
||||||
|
CourseFee = '$CourseFee' AND
|
||||||
|
ExamFee = '$ExamFee' AND
|
||||||
|
EnrollmentFee = '$EnrollmentFee' AND
|
||||||
|
ProspectusFee = '$ProspectusFee' AND
|
||||||
|
ReRegFee = '$ReRegFee' AND
|
||||||
|
CreditTransferFee = '$CreditTransferFee' AND
|
||||||
|
LateralEntryFee = '$LateralEntryFee' AND
|
||||||
|
DualSpclFee = '$DualSpclFee' AND
|
||||||
|
OtherFee = '$OtherFee' AND
|
||||||
|
NRIFEE = '$NRIFEE' AND
|
||||||
|
ProvisionalFee = '$ProvisionalFee' AND
|
||||||
|
MigrationFee = '$MigrationFee' AND
|
||||||
|
UrgentResultDMCFee = '$UrgentResultDMCFee' AND
|
||||||
|
AdditionalFee = '$AdditionalFee' AND
|
||||||
|
Amount = '$Amount'";
|
||||||
|
$queryDetails = $this->db->query($selectQuery);
|
||||||
|
// echo count($queryDetails->result());exit();
|
||||||
|
|
||||||
|
if(count($queryDetails->result()) == 0){
|
||||||
|
$query = "INSERT INTO T_FormId_FeeDetails_Received_From_University
|
||||||
|
(FormID, FormType, CentreCode,Session,Year,Semester,Student_Name,Father_Name,CourseCode, ActualCourseFee, CourseFee, ExamFee, EnrollmentFee, ProspectusFee, ReRegFee, CreditTransferFee, LateralEntryFee, DualSpclFee, OtherFee, NRIFEE, ProvisionalFee, MigrationFee, UrgentResultDMCFee, AdditionalFee, Amount, CreatedBy, CreatedOn, BranchCode)
|
||||||
|
VALUES
|
||||||
|
( '$formIds', '$formType', '$CentreCode','$Session','$Year','$Semester','$Student_Name','$Father_Name', '$CourseCode', '$ActualCourseFee', '$CourseFee', '$ExamFee', '$EnrollmentFee', '$ProspectusFee', '$ReRegFee', '$CreditTransferFee', '$LateralEntryFee', '$DualSpclFee', '$OtherFee', '$NRIFEE', '$ProvisionalFee', '$MigrationFee', '$UrgentResultDMCFee', '$AdditionalFee', '$Amount', '$localUserID', '$CreatedOn', '$localBranchID' )";
|
||||||
|
$queryDetails = $this->db->query($query);
|
||||||
|
} else {
|
||||||
|
echo 'else con';
|
||||||
|
}
|
||||||
|
// -- ON DUPLICATE KEY UPDATE
|
||||||
|
// -- FormType = '$formType',
|
||||||
|
// -- CentreCode = '$CentreCode',
|
||||||
|
// -- CourseCode = '$CourseCode',
|
||||||
|
// -- ActualCourseFee = '$ActualCourseFee',
|
||||||
|
// -- CourseFee = '$CourseFee',
|
||||||
|
// -- ExamFee = '$ExamFee',
|
||||||
|
// -- EnrollmentFee = '$EnrollmentFee',
|
||||||
|
// -- ProspectusFee = '$ProspectusFee',
|
||||||
|
// -- ReRegFee = '$ReRegFee',
|
||||||
|
// -- CreditTransferFee = '$CreditTransferFee',
|
||||||
|
// -- LateralEntryFee = '$LateralEntryFee',
|
||||||
|
// -- DualSpclFee = '$DualSpclFee',
|
||||||
|
// -- OtherFee = '$OtherFee',
|
||||||
|
// -- NRIFEE = '$NRIFEE',
|
||||||
|
// -- ProvisionalFee = '$ProvisionalFee',
|
||||||
|
// -- MigrationFee = '$MigrationFee',
|
||||||
|
// -- UrgentResultDMCFee = '$UrgentResultDMCFee',
|
||||||
|
// -- AdditionalFee = '$AdditionalFee',
|
||||||
|
// -- Amount = '$Amount'";
|
||||||
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$results['stuFeeList'] = true;
|
$results['stuFeeList'] = true;
|
||||||
$results['stuFeeList_details'] = "details updated successfully.";
|
$results['stuFeeList_details'] = "details updated successfully.";
|
||||||
return $results;
|
return $results;
|
||||||
|
|||||||
@ -444,7 +444,8 @@ left join BalFees bal on bal.student=sms.sid and bal.feestype=sms.cid and bal.se
|
|||||||
}
|
}
|
||||||
public function app_pending($bat=null,$br=null,$u=null){
|
public function app_pending($bat=null,$br=null,$u=null){
|
||||||
|
|
||||||
$sql = "SELECT * FROM (SELECT
|
$sql = "SELECT
|
||||||
|
APFS.ID as id,
|
||||||
APFS.Registration_Details_ID AS regid,
|
APFS.Registration_Details_ID AS regid,
|
||||||
APFS.ListCode as StatusCode,
|
APFS.ListCode as StatusCode,
|
||||||
APFS.AppFormDate as StatusUpdationOn,
|
APFS.AppFormDate as StatusUpdationOn,
|
||||||
@ -463,14 +464,18 @@ left join BalFees bal on bal.student=sms.sid and bal.feestype=sms.cid and bal.se
|
|||||||
CFD.Sem_Year as Sem_Year,
|
CFD.Sem_Year as Sem_Year,
|
||||||
RD.RegistrationType as FormType,
|
RD.RegistrationType as FormType,
|
||||||
STU.StudentID as Student_id
|
STU.StudentID as Student_id
|
||||||
FROM T_ApplicationFormStatus AS APFS LEFT JOIN T_Registration_Details AS RD ON RD.ID = APFS.Registration_Details_ID
|
FROM T_ApplicationFormStatus AS APFS
|
||||||
LEFT JOIN T_PickListDetails AS PKL ON PKL.ListCode = APFS.ListCode LEFT JOIN T_StudentDetails AS STU ON STU.StudentID = RD.StudentID LEFT JOIN T_CourseMaster AS COUR ON COUR.CourseID = RD.CourseID LEFT JOIN T_Student_CourseDetails AS STU_COUR ON STU_COUR.StudentID = RD.StudentID AND STU_COUR.CourseID = RD.CourseID
|
LEFT JOIN T_Registration_Details AS RD ON RD.ID = APFS.Registration_Details_ID
|
||||||
|
LEFT JOIN T_PickListDetails AS PKL ON PKL.ListCode = APFS.ListCode
|
||||||
|
LEFT JOIN T_StudentDetails AS STU ON STU.StudentID = RD.StudentID
|
||||||
|
LEFT JOIN T_CourseMaster AS COUR ON COUR.CourseID = RD.CourseID
|
||||||
|
LEFT JOIN T_Student_CourseDetails AS STU_COUR ON STU_COUR.StudentID = RD.StudentID AND STU_COUR.CourseID = RD.CourseID
|
||||||
LEFT JOIN T_Course_Fees_Details AS CFD ON CFD.ID = RD.FeeType
|
LEFT JOIN T_Course_Fees_Details AS CFD ON CFD.ID = RD.FeeType
|
||||||
LEFT JOIN T_UniversityMaster AS UNIV ON UNIV.UniversityID = COUR.UniversityID
|
LEFT JOIN T_UniversityMaster AS UNIV ON UNIV.UniversityID = COUR.UniversityID
|
||||||
LEFT JOIN (SELECT FeesId AS FeeID, min(CreatedOn), BillDate AS BILL FROM T_Students_Fees_PaidDetails GROUP BY FeesId) AS sfpd ON sfpd.FeeID = RD.Student_Fee_Status_Id
|
LEFT JOIN (SELECT FeesId AS FeeID, min(CreatedOn), BillDate AS BILL FROM T_Students_Fees_PaidDetails GROUP BY FeesId) AS sfpd ON sfpd.FeeID = RD.Student_Fee_Status_Id
|
||||||
where COUR.UniversityID = '$u' and RD.BatchCode = '$bat'and STU_COUR.BranchID = '$br' and STU.IsActive = '1'
|
where STU.IsActive = '1' and APFS.ID in (select max(ID) from T_ApplicationFormStatus group by Registration_Details_ID)
|
||||||
ORDER BY StatusUpdationOn DESC) x
|
|
||||||
GROUP BY x.regid";
|
";
|
||||||
|
|
||||||
// SELECT * FROM (SELECT APFS.Registration_Details_ID AS regid, APFS.ListCode AS StatusCode, APFS.AppFormDate AS StatusUpdationOn, APFS.Comments AS StatusComments, PKL.ListName AS StatusName, concat(STU.Firstname,' ', STU.Lastname) AS StudentName, STU.Fathername AS FatherName, STU.MobileNumber AS Phone_number, COUR.CourseName AS CourseName, UNIV.UniversityName AS UniversityName, sfpd.BILL AS InitialPayDate, RD.Student_Fee_Status_Id AS FeesStatusID, STU_COUR.EnrollmentID AS EnrollmentNumber, CFD.Sem_Year AS Sem_Year, RD.RegistrationType AS FormType, STU.StudentID
|
// SELECT * FROM (SELECT APFS.Registration_Details_ID AS regid, APFS.ListCode AS StatusCode, APFS.AppFormDate AS StatusUpdationOn, APFS.Comments AS StatusComments, PKL.ListName AS StatusName, concat(STU.Firstname,' ', STU.Lastname) AS StudentName, STU.Fathername AS FatherName, STU.MobileNumber AS Phone_number, COUR.CourseName AS CourseName, UNIV.UniversityName AS UniversityName, sfpd.BILL AS InitialPayDate, RD.Student_Fee_Status_Id AS FeesStatusID, STU_COUR.EnrollmentID AS EnrollmentNumber, CFD.Sem_Year AS Sem_Year, RD.RegistrationType AS FormType, STU.StudentID
|
||||||
// FROM T_ApplicationFormStatus AS APFS LEFT JOIN T_Registration_Details AS RD ON RD.ID = APFS.Registration_Details_ID
|
// FROM T_ApplicationFormStatus AS APFS LEFT JOIN T_Registration_Details AS RD ON RD.ID = APFS.Registration_Details_ID
|
||||||
@ -510,6 +515,20 @@ GROUP BY x.regid";
|
|||||||
// LEFT JOIN (Select FeesId as FeeID, min(CreatedOn), BillDate as BILL FROM T_Students_Fees_PaidDetails group by FeesId) as sfpd on sfpd.FeeID = RD.Student_Fee_Status_Id
|
// LEFT JOIN (Select FeesId as FeeID, min(CreatedOn), BillDate as BILL FROM T_Students_Fees_PaidDetails group by FeesId) as sfpd on sfpd.FeeID = RD.Student_Fee_Status_Id
|
||||||
// where COUR.UniversityID = '$u' and RD.BatchCode = '$bat'and STU_COUR.BranchID = '$br' and STU.IsActive = '1'
|
// where COUR.UniversityID = '$u' and RD.BatchCode = '$bat'and STU_COUR.BranchID = '$br' and STU.IsActive = '1'
|
||||||
// group by APFS.Registration_Details_ID";
|
// group by APFS.Registration_Details_ID";
|
||||||
|
|
||||||
|
if ($bat!= ''){
|
||||||
|
|
||||||
|
$sql.=" and RD.BatchCode = '".$bat."'";
|
||||||
|
|
||||||
|
}
|
||||||
|
if ($u!= ''){
|
||||||
|
|
||||||
|
$sql.=" and COUR.UniversityID = '".$u."'";
|
||||||
|
|
||||||
|
}
|
||||||
|
$sql.=" group by regid,Student_id ";
|
||||||
|
$sql.=" ORDER BY StatusUpdationOn DESC ";
|
||||||
|
|
||||||
$leadDet=$this->db->query($sql);
|
$leadDet=$this->db->query($sql);
|
||||||
$answer = $leadDet->result();
|
$answer = $leadDet->result();
|
||||||
if (count($answer) > 0) {
|
if (count($answer) > 0) {
|
||||||
|
|||||||
@ -106,6 +106,7 @@
|
|||||||
"STUDENTDETAILS": "Manage",
|
"STUDENTDETAILS": "Manage",
|
||||||
"STUDENTDETAILSADDEDIT": "Manage Details",
|
"STUDENTDETAILSADDEDIT": "Manage Details",
|
||||||
"STUDENTFEEDETAILCOMPARE": "Student University Fee",
|
"STUDENTFEEDETAILCOMPARE": "Student University Fee",
|
||||||
|
"STUDENTFROMIDFEEDETAILS": "Student FormId Fee Details",
|
||||||
"status" : {
|
"status" : {
|
||||||
"MAIN": "Update Status",
|
"MAIN": "Update Status",
|
||||||
"STUDYMATERIAL": "Study Material",
|
"STUDYMATERIAL": "Study Material",
|
||||||
|
|||||||
@ -238,7 +238,7 @@ app.constant('JS_REQUIRES', {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
'student_university_fee_compareCtrl':'assets/js/controllers/student_university_fee_compare.js',
|
'student_university_fee_compareCtrl':'assets/js/controllers/student_university_fee_compare.js',
|
||||||
|
'studentUnivFormIdFeeDetailsCtrl': 'assets/js/controllers/studentUnivFormIdFeeDetailsCtrl.js',
|
||||||
|
|
||||||
},
|
},
|
||||||
//*** angularJS Modules
|
//*** angularJS Modules
|
||||||
|
|||||||
@ -315,6 +315,14 @@ app.config(['$stateProvider', '$urlRouterProvider', '$controllerProvider', '$com
|
|||||||
ncyBreadcrumb: {
|
ncyBreadcrumb: {
|
||||||
label: 'Student University Fee Compare'
|
label: 'Student University Fee Compare'
|
||||||
}
|
}
|
||||||
|
}).state('app.student.studentUnivFormIdFeeDetails', {
|
||||||
|
url: '/studentUnivFormIdFeeDetails',
|
||||||
|
templateUrl: "assets/views/student/studentUnivFormIdFeeDetails.html",
|
||||||
|
resolve: loadSequence('ui.select', 'spin', 'ui.mask', 'monospaced.elastic', 'ladda', 'touchspin-plugin', 'angular-ladda', 'studentUnivFormIdFeeDetailsCtrl', 'ngTable'),
|
||||||
|
title: 'Student FormId Fees Details',
|
||||||
|
ncyBreadcrumb: {
|
||||||
|
label: 'Student FormId Fees Details'
|
||||||
|
}
|
||||||
}).state('app.student.status', {
|
}).state('app.student.status', {
|
||||||
url: '/status',
|
url: '/status',
|
||||||
template: '<div ui-view class="fade-in-up"> <div style="margin: auto; width: 50%;padding: 10px;"> STUDENT STATUS UPDATE </div> </div>',
|
template: '<div ui-view class="fade-in-up"> <div style="margin: auto; width: 50%;padding: 10px;"> STUDENT STATUS UPDATE </div> </div>',
|
||||||
|
|||||||
@ -98,22 +98,11 @@ app.controller('report_examfeeCtrl', ["$scope", "$filter","$rootScope","$modal",
|
|||||||
|
|
||||||
$scope.show = false;
|
$scope.show = false;
|
||||||
$scope.onSubmit = function (form) {
|
$scope.onSubmit = function (form) {
|
||||||
var firstError = null;
|
if($scope.univModel.university !== null && $scope.univModel.university !== '' ){
|
||||||
if (form.$invalid) {
|
$scope.filterUniv = angular.fromJson($scope.univModel.university);
|
||||||
var field = null, firstError = null;
|
|
||||||
$scope.show = true;
|
|
||||||
for (field in form) {
|
|
||||||
if (field[0] != '$') {
|
|
||||||
if (firstError === null && !form[field].$valid) {
|
|
||||||
firstError = form[field].$batch;
|
|
||||||
}
|
|
||||||
if (form[field].$pristine) {
|
|
||||||
form[field].$dirty = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
angular.element('.ng-invalid[batch=' + firstError + ']').focus();
|
|
||||||
}else {
|
}else {
|
||||||
|
$scope.filterUniv = '';
|
||||||
|
}
|
||||||
//alert($scope.batch.name);
|
//alert($scope.batch.name);
|
||||||
$scope.examfee_data = '';
|
$scope.examfee_data = '';
|
||||||
$scope.message = '';
|
$scope.message = '';
|
||||||
@ -125,7 +114,7 @@ app.controller('report_examfeeCtrl', ["$scope", "$filter","$rootScope","$modal",
|
|||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
branch: JSON.parse(localStorage.getItem('localObj')).localBranchID,
|
branch: JSON.parse(localStorage.getItem('localObj')).localBranchID,
|
||||||
university: $scope.univModel.university.universityID,
|
university: $scope.filterUniv.universityID,
|
||||||
batch: $scope.univModel.batch
|
batch: $scope.univModel.batch
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -150,7 +139,7 @@ app.controller('report_examfeeCtrl', ["$scope", "$filter","$rootScope","$modal",
|
|||||||
totalf += parseFloat(item.Amount);
|
totalf += parseFloat(item.Amount);
|
||||||
}
|
}
|
||||||
return totalf; }
|
return totalf; }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
var mystyle = {
|
var mystyle = {
|
||||||
sheetid: 'EXAM WRITING FEE REPORT',
|
sheetid: 'EXAM WRITING FEE REPORT',
|
||||||
|
|||||||
374
Apollo/assets/js/controllers/studentUnivFormIdFeeDetailsCtrl.js
Normal file
374
Apollo/assets/js/controllers/studentUnivFormIdFeeDetailsCtrl.js
Normal file
@ -0,0 +1,374 @@
|
|||||||
|
'use strict';
|
||||||
|
/**
|
||||||
|
* controllers for ng-table
|
||||||
|
* Simple table with sorting and filtering on AngularJS
|
||||||
|
*/
|
||||||
|
|
||||||
|
app.controller('studentUnivFormIdFeeDetailsCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "$http", "API_POINTS", "$state", '$rootScope', '$cookies', 'md5', 'ipCookie', '$timeout', '$window', "flowFactory", "$interval", 'SweetAlert', function ($scope, toaster, $filter, ngTableParams, $http, apiPoint, $state, $rootScope, $cookies, md5, ipCookie, $timeout, $window, flowFactory, $interval, SweetAlert) {
|
||||||
|
/**
|
||||||
|
* student university fee details compare
|
||||||
|
*/
|
||||||
|
|
||||||
|
// get local client details
|
||||||
|
var localDetail = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
var localDetails = ipCookie('cookiechk');
|
||||||
|
|
||||||
|
// load when html page load
|
||||||
|
$scope.init = function () {
|
||||||
|
|
||||||
|
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||||
|
|
||||||
|
const LOCALTYPE = logcheck.localType;
|
||||||
|
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' || LOCALTYPE == 'R002' || LOCALTYPE == 'R005')) {
|
||||||
|
console.log("if");
|
||||||
|
}else {
|
||||||
|
if(logcheck != null && LOCALTYPE !='R001') {
|
||||||
|
console.log("else if");
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
} else {
|
||||||
|
console.log("else else");
|
||||||
|
window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (localDetail != null) {
|
||||||
|
if (localDetails.localType === 'R004') {
|
||||||
|
// $scope.getUniversityList();
|
||||||
|
$scope.getUniversitySearchList();
|
||||||
|
} else {
|
||||||
|
ipCookie.remove('cookiechk');
|
||||||
|
$window.localStorage.clear();
|
||||||
|
$state.go('login.signin');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*$scope.universityData = '';
|
||||||
|
$scope.getUniversityList = function () {
|
||||||
|
var empListreq = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'getStudentUniversity/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
data: localDetails
|
||||||
|
}
|
||||||
|
};
|
||||||
|
$http(empListreq).then(function (response) {
|
||||||
|
if (response.data.univList) {
|
||||||
|
$scope.universityData = response.data.university_details;
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}*/
|
||||||
|
// get University List
|
||||||
|
$scope.universitySearchData = '';
|
||||||
|
$scope.getUniversitySearchList = function () {
|
||||||
|
var empListreq = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'getUniversitySessionDetails/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
data: localDetails
|
||||||
|
}
|
||||||
|
};
|
||||||
|
$http(empListreq).then(function (response) {
|
||||||
|
if (response.data.status) {
|
||||||
|
$scope.universitySearchData = response.data.details;
|
||||||
|
} else {
|
||||||
|
$scope.universitySearchData="";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
$scope.searchData = {
|
||||||
|
"University": "",
|
||||||
|
"Session": "",
|
||||||
|
"Status": ""
|
||||||
|
}
|
||||||
|
$scope.myUnivSearch = "";
|
||||||
|
$scope.sessionData="";
|
||||||
|
$scope.getUniveId = function (univ) {
|
||||||
|
$scope.sessionData="";
|
||||||
|
if (univ === '') {
|
||||||
|
$scope.myUnivSearch = "";
|
||||||
|
$scope.searchData.University = '';
|
||||||
|
// $scope.searchData.Course = '';
|
||||||
|
// $scope.searchData.Batch = '';
|
||||||
|
// $scope.courseData = name.Course;
|
||||||
|
// $scope.batchData = name.Batch;
|
||||||
|
$scope.searchData.Session = '';
|
||||||
|
|
||||||
|
$scope.OpenWindowStatus = false;
|
||||||
|
} else {
|
||||||
|
let name = JSON.parse(univ);
|
||||||
|
$scope.searchData.University = name.UniversityID;
|
||||||
|
// $scope.searchData.Course = '';
|
||||||
|
// $scope.searchData.Batch = '';
|
||||||
|
// $scope.courseData = name.Course;
|
||||||
|
// $scope.batchData = name.Batch;
|
||||||
|
$scope.searchData.Session = '';
|
||||||
|
$scope.sessionData = name.SessionDetails;
|
||||||
|
$scope.OpenWindowStatus = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
//For session dropdown
|
||||||
|
$scope.filterSessionDetails="";
|
||||||
|
$scope.$watch('searchData.University', function (newValue,oldValue) {
|
||||||
|
if(newValue==undefined || newValue==''){
|
||||||
|
$scope.filterSessionDetails="";
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
if(angular.isString(newValue)){
|
||||||
|
$scope.filterSessionDetails=angular.fromJson(newValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$scope.Searchloader = false;
|
||||||
|
$scope.studentData = false;
|
||||||
|
|
||||||
|
$scope.onSubmit = function(){
|
||||||
|
$scope.Searchloader = true;
|
||||||
|
if($scope.searchData.University !== '' && $scope.searchData.Session !==''){
|
||||||
|
$scope.Searchloader = true;
|
||||||
|
var empListreq = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'getStudentUnivFeeCompareDetails/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
data: localDetails,
|
||||||
|
search: $scope.searchData,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
$http(empListreq).then(function (response) {
|
||||||
|
if (response.data.formTypeStatus) {
|
||||||
|
$scope.Searchloader = false;
|
||||||
|
$scope.studentData = true;
|
||||||
|
$scope.data = response.data.studentFeeCompareDetails;
|
||||||
|
$scope.studentListLength = $scope.data.length;
|
||||||
|
// $scope.statusMessage = $scope.data.message;
|
||||||
|
} else {
|
||||||
|
$scope.Searchloader = false;
|
||||||
|
$scope.studentData = false;
|
||||||
|
$scope.statusMessage = $scope.data.message;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}else {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$scope.editId = -1;
|
||||||
|
$scope.setEditId=function(id){
|
||||||
|
$scope.editId = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*upload model*/
|
||||||
|
$scope.uploadModel = {
|
||||||
|
university: "",
|
||||||
|
uploadFor: "",
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
* upload options json
|
||||||
|
* */
|
||||||
|
$scope.uploadOptions=[{
|
||||||
|
id: 1,
|
||||||
|
name: 'Received Enrolment From University',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
name: 'Received Fees From University'
|
||||||
|
},
|
||||||
|
];
|
||||||
|
/*
|
||||||
|
watch upload model for enable upload options
|
||||||
|
*/
|
||||||
|
$scope.showFile="0";
|
||||||
|
$scope.$watchCollection('uploadModel', function (newValue,oldValue) {
|
||||||
|
|
||||||
|
if(newValue.university!='' && newValue.university!=null && newValue.uploadFor!='' && newValue.uploadFor=='1'){
|
||||||
|
$scope.showFile="1";
|
||||||
|
|
||||||
|
}
|
||||||
|
else if(newValue.university!='' && newValue.university!=null && newValue.uploadFor!='' && newValue.uploadFor=='2'){
|
||||||
|
$scope.showFile="2";
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$scope.showFile="0";
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
/* update received enrolment from university
|
||||||
|
* created by kms
|
||||||
|
* */
|
||||||
|
$scope.extractDetails="";
|
||||||
|
$scope.readXlsxDetails = function (workbook) {
|
||||||
|
/* DO SOMETHING WITH workbook HERE */
|
||||||
|
for (var sheetName in workbook.Sheets) {
|
||||||
|
var jsonData = XLSX.utils.sheet_to_json(workbook.Sheets[sheetName]);
|
||||||
|
if(jsonData.length!=0){
|
||||||
|
$scope.extractDetails=jsonData;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
$scope.error = function (e) {
|
||||||
|
/* DO SOMETHING WHEN ERROR IS THROWN */
|
||||||
|
//console.log(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$scope.receiveEnrolmentDetails = function (details,uploadForDetails) {
|
||||||
|
var updateUniversityEnrolment = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'receiveEnrolmentFromUniv/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
localDetails: localDetail,
|
||||||
|
details: details,
|
||||||
|
universityID: angular.fromJson(uploadForDetails.university).UniversityID,
|
||||||
|
universityName: angular.fromJson(uploadForDetails.university).UniversityName,
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$http(updateUniversityEnrolment).then(function (response) {
|
||||||
|
if (response.data.status == true) {
|
||||||
|
swal("", "Updated Successfully", "success");
|
||||||
|
$state.go($state.current, {}, {reload: true});
|
||||||
|
} else {
|
||||||
|
swal("", "Failed", "error");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// end
|
||||||
|
|
||||||
|
$scope.extractFormIDDetails="";
|
||||||
|
$scope.readXlsxFormDetails = function (workbook) {
|
||||||
|
$scope.extractFormIDDetails="";
|
||||||
|
/* DO SOMETHING WITH workbook HERE */
|
||||||
|
for (var sheetName in workbook.Sheets) {
|
||||||
|
var jsonData = XLSX.utils.sheet_to_json(workbook.Sheets[sheetName]);
|
||||||
|
if(jsonData.length!=0){
|
||||||
|
$scope.extractFormIDDetails=jsonData;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
$scope.error = function (e) {
|
||||||
|
/* DO SOMETHING WHEN ERROR IS THROWN */
|
||||||
|
//console.log(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$scope.receiveFormIdFeeDetails = function(details) {
|
||||||
|
console.log(details);
|
||||||
|
|
||||||
|
var updateUniversityEnrolment = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'insertFormIdUnivFeeDetails/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
localDetails: localDetail,
|
||||||
|
details: details
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$http(updateUniversityEnrolment).then(function (response) {
|
||||||
|
if (response.data.stuFeeList == true) {
|
||||||
|
swal("", "Updated Successfully", "success");
|
||||||
|
$state.go($state.current, {}, {reload: true});
|
||||||
|
} else {
|
||||||
|
swal("", "Failed", "error");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$scope.popupLoad = false;
|
||||||
|
$scope.popupLoadData = false;
|
||||||
|
$scope.formPaymentDetails="";
|
||||||
|
|
||||||
|
// Fee compare details get
|
||||||
|
|
||||||
|
$scope.getFeeCompareDetails = function(formId, enrolmentId){
|
||||||
|
$scope.popupLoadData = false;
|
||||||
|
$scope.formPaymentDetails="";
|
||||||
|
$scope.popupLoad = true;
|
||||||
|
var getFeeCompareDetailsList = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'formIDFeeCompareDetails/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
localDetails: localDetail,
|
||||||
|
formId: formId,
|
||||||
|
enrolmentId: enrolmentId
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$http(getFeeCompareDetailsList).then(function (response) {
|
||||||
|
if (response.data.status == true) {
|
||||||
|
$scope.popupLoad = false;
|
||||||
|
$scope.popupLoadData = true;
|
||||||
|
$scope.formPaymentDetails=response.data;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$scope.popupLoad = false;
|
||||||
|
$scope.popupLoadData = true;
|
||||||
|
$scope.formPaymentDetails=response.data;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$scope.unMatchedLoadingStatus = false;
|
||||||
|
// Get unmached details
|
||||||
|
$scope.getUnmatchedRecord = function(ss){
|
||||||
|
$scope.unMatchedRecordDetails = '';
|
||||||
|
$scope.unMatchedNoRecordFound = false;
|
||||||
|
$scope.unMatchedLoadingStatus = true;
|
||||||
|
var getDetailsFor = ss == 1 ? 'EnrolmentIDFile' : 'FormIDFile';
|
||||||
|
var getFeeCompareDetailsList = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'getUnmatchedRecordDetails/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
localDetails: localDetail,
|
||||||
|
getDetailsFor: getDetailsFor
|
||||||
|
}
|
||||||
|
};
|
||||||
|
$http(getFeeCompareDetailsList).then(function (response) {
|
||||||
|
if (response.data.unMatchedRecordStatus == true) {
|
||||||
|
$scope.unMatchedLoadingStatus = false;
|
||||||
|
$scope.unMatchedNoRecordFound = false;
|
||||||
|
$scope.unMatchedRecordDetails=response.data.unMatchedRecordDetails;
|
||||||
|
$scope.unMatchedRecordDetailsType= response.data.unMatchedRecordFor;
|
||||||
|
} else {
|
||||||
|
$scope.unMatchedLoadingStatus = false;
|
||||||
|
$scope.unMatchedNoRecordFound = true;
|
||||||
|
$scope.unMatchedRecordDetails=response.data.unMatchedRecordDetails;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}]);
|
||||||
@ -221,6 +221,11 @@
|
|||||||
<span class="title" translate="sidebar.nav.student.STUDENTFEEDETAILCOMPARE"> STUDENT UNIV FEE COMPARE DETAILS </span>
|
<span class="title" translate="sidebar.nav.student.STUDENTFEEDETAILCOMPARE"> STUDENT UNIV FEE COMPARE DETAILS </span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li ui-sref-active="active">
|
||||||
|
<a ui-sref="app.student.studentUnivFormIdFeeDetails" ng-click="checkSuperAdmin()">
|
||||||
|
<span class="title" translate="sidebar.nav.student.STUDENTFROMIDFEEDETAILS"> STUDENT FORMID FEE DETAILS </span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<!--<li ng-class="{'active open':$state.includes('app.call')}">
|
<!--<li ng-class="{'active open':$state.includes('app.call')}">
|
||||||
|
|||||||
@ -168,7 +168,7 @@ td,th {
|
|||||||
<td>{{p.Sem_year}}</td>
|
<td>{{p.Sem_year}}</td>
|
||||||
<td>{{p.Certificate_name}}</td>
|
<td>{{p.Certificate_name}}</td>
|
||||||
<td>{{p.rstatus}}</td>
|
<td>{{p.rstatus}}</td>
|
||||||
<td>{{p.rcvedate}}</td>
|
<td>{{p.rdate}}</td>
|
||||||
<td>{{p.istatus}}</td>
|
<td>{{p.istatus}}</td>
|
||||||
<td>{{p.issuedate}}</td>
|
<td>{{p.issuedate}}</td>
|
||||||
<td>{{p.acmts}}</td>
|
<td>{{p.acmts}}</td>
|
||||||
|
|||||||
334
Apollo/assets/views/student/studentUnivFormIdFeeDetails.html
Normal file
334
Apollo/assets/views/student/studentUnivFormIdFeeDetails.html
Normal file
@ -0,0 +1,334 @@
|
|||||||
|
<!-- start: STUDENT TITLE -->
|
||||||
|
<section id="page-title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<h1 class="mainTitle" translate="Student FormId Fees Details">{{ mainTitle }}</h1>
|
||||||
|
<span class="mainDescription">Student University FormId Fees Details. </span>
|
||||||
|
</div>
|
||||||
|
<div ncy-breadcrumb></div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<!-- end: STUDENT TITLE -->
|
||||||
|
<!-- start: LIST GROUP -->
|
||||||
|
<div ng-controller="studentUnivFormIdFeeDetailsCtrl" class="container-fluid container-fullw bg-white">
|
||||||
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
$("#selectBranch").focus();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#containersPara {
|
||||||
|
width: 180px;
|
||||||
|
height: 75px;
|
||||||
|
overflow: auto;
|
||||||
|
white-space: pre;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style>
|
||||||
|
.listCoutShow {
|
||||||
|
margin: 12px;
|
||||||
|
padding: 4px;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
border: 1px solid #59b176;
|
||||||
|
border-radius: 7px;
|
||||||
|
color: #FFF;
|
||||||
|
background-color: #5fba7d;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<div class="row" ng-init="init()">
|
||||||
|
<tabset id="here" class="tabbable">
|
||||||
|
<tab tabindex="1" active="tabactive1" ng-click="tabActive('tabactive1')" heading="View Details" id="viewDetails">
|
||||||
|
<script>
|
||||||
|
$("#selectBranch").change(function () {
|
||||||
|
$("#searchIn").focus();
|
||||||
|
}); $("#selectBranch").click(function () {
|
||||||
|
$("#searchIn").focus();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div class="container-fluid container-fullw">
|
||||||
|
<form name="Form" id="form" novalidate ng-submit="onSubmit()" method="post">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-3">
|
||||||
|
<label for="form-field-select-2">
|
||||||
|
University
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<select class="form-control" tabindex="3" class="cs-select cs-skin-elastic" name="university" ng-model="myUnivSearch" ng-change="getUniveId(myUnivSearch)">
|
||||||
|
<option value="" disabled selected>Select University</option>
|
||||||
|
<option ng-repeat="item in universitySearchData" value="{{item}}">{{item.UniversityName}}</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
<label for="form-field-select-2">
|
||||||
|
Session
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<select ui-select2 class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="session" ng-model="searchData.Session">
|
||||||
|
<option value="" selected>Select Session</option>
|
||||||
|
<option ng-repeat="itemSession in sessionData" value="{{itemSession.SessionID}}">{{itemSession.SessionName}}</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2" style="padding-top: 2.3%;">
|
||||||
|
<div class="pull-right">
|
||||||
|
|
||||||
|
<button ng-disabled="searchData.Session == '' || searchData.University == ''" type="submit" class="btn btn-success btn-o" tabindex="8">
|
||||||
|
Submit
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<!--{{data | json}}-->
|
||||||
|
<div ng-if="Searchloader">
|
||||||
|
<div align="center" >
|
||||||
|
<h3 style="color: blue;">Loading...</h3></div>
|
||||||
|
<h2> {{statusMessage}} </h2>
|
||||||
|
</div>
|
||||||
|
<div class="table-responsive" ng-if="studentData">
|
||||||
|
<table class="table table-hover" >
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th> FormID
|
||||||
|
</th>
|
||||||
|
<th> Form Type
|
||||||
|
</th>
|
||||||
|
<th> Student Name
|
||||||
|
</th>
|
||||||
|
<th> Father Name
|
||||||
|
</th>
|
||||||
|
<th> University
|
||||||
|
</th>
|
||||||
|
<th> Course
|
||||||
|
</th>
|
||||||
|
<th> Sem/Year
|
||||||
|
</th>
|
||||||
|
<th> Enrolment ID
|
||||||
|
</th>
|
||||||
|
<th> University Paid
|
||||||
|
</th>
|
||||||
|
<th> Student Paid
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody dir-paginate="p in data|orderBy:sortKey:reverse|filter:search:strict|itemsPerPage:10| filter:query as results">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
{{p.FormID}}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{{p.FormType}}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<a class="text-dark">
|
||||||
|
{{p.Firstname}} {{p.Lastname}}
|
||||||
|
</a>
|
||||||
|
<!--tooltip="View Student" ng-click="open(p);"-->
|
||||||
|
</td>
|
||||||
|
<td>{{p.Fathername}}</td>
|
||||||
|
<td>{{p.UniversityName}}</td>
|
||||||
|
<td>{{p.CourseName}}</td>
|
||||||
|
<td>{{p.SemesterYear}}</td>
|
||||||
|
<td>{{p.EnrolmentNo}}</td>
|
||||||
|
<td>{{p.UniversityPaidAmount}}</td>
|
||||||
|
<td>{{p.StudentPaidAmount}}</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" ng-if="formPaymentDetails!=''">
|
||||||
|
<div class="container" align="center">
|
||||||
|
<table class="table table-border">
|
||||||
|
<thead>
|
||||||
|
<th>University Fee Paid Details</th>
|
||||||
|
<th>Student Fee Paid Details</th>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>{{formPaymentDetails.UniversityPaidAmount}}</td>
|
||||||
|
<td>{{formPaymentDetails.StudentPaidAmount}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<button class="btn btn-warning pull-right" ng-click="setEditId(-1);">Cancel</button>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>-->
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<dir-pagination-controls max-size="10" direction-links="true" boundary-links="true">
|
||||||
|
</dir-pagination-controls>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</tab>
|
||||||
|
<tab tabindex="2" active="tabactive2" ng-click="tabActive('tabactive2')" heading="Upload Files" id="uploadFiles">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4 form-group">
|
||||||
|
<label>
|
||||||
|
University <span class="symbol required"></span>
|
||||||
|
</label>
|
||||||
|
<select class="form-control" tabindex="1" name="formUniversity" ng-model="uploadModel.university" required>
|
||||||
|
<option value="" selected>Select University</option>
|
||||||
|
<option ng-repeat="univ in universitySearchData" value="{{univ}}">{{univ.UniversityName}}</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 form-group">
|
||||||
|
<label>
|
||||||
|
Upload For <span class="symbol required"></span>
|
||||||
|
</label>
|
||||||
|
<select class="form-control" name="uploadFor" tabindex="2" id="uploadFor"
|
||||||
|
ng-model="uploadModel.uploadFor"
|
||||||
|
ng-options="upload.id as upload.name for upload in uploadOptions"
|
||||||
|
required>
|
||||||
|
<option value=""> Select</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3 form-group" ng-if="showFile=='1'">
|
||||||
|
<fieldset>
|
||||||
|
<js-xls onread="readXlsxDetails" onerror="error"></js-xls>
|
||||||
|
<button type="button" class="btn btn-success btn-o" style="float: right" ng-click="receiveEnrolmentDetails(extractDetails,uploadModel)"> Submit</button>
|
||||||
|
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3 form-group" ng-if="showFile=='2'">
|
||||||
|
<fieldset>
|
||||||
|
<js-xls onread="readXlsxFormDetails" onerror="error"></js-xls>
|
||||||
|
<button type="button" class="btn btn-success btn-o" style="float: right" ng-click="receiveFormIdFeeDetails(extractFormIDDetails)"> Submit</button>
|
||||||
|
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</tab>
|
||||||
|
<tab tabindex="3" active="tabactive3" ng-click="tabActive('tabactive3')" heading="Unmatched Records" id="unmatchedRecord">
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4 form-group">
|
||||||
|
<label>
|
||||||
|
Upload For <span class="symbol required"></span>
|
||||||
|
</label>
|
||||||
|
<select class="form-control" name="uploadFor" tabindex="2" id="uploadFor"
|
||||||
|
ng-model="getUnmatchedDetailsFor"
|
||||||
|
ng-options="upload.id as upload.name for upload in uploadOptions"
|
||||||
|
required>
|
||||||
|
<option value=""> Select</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
<button class="btn btn-success" ng-disabled="!getUnmatchedDetailsFor" ng-click="getUnmatchedRecord(getUnmatchedDetailsFor)">Get Record</button>
|
||||||
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
<div ng-if="unMatchedLoadingStatus">
|
||||||
|
<div style="color: blue; align: center;" align="center"> Loading...</div>
|
||||||
|
</div>
|
||||||
|
<div ng-if="unMatchedNoRecordFound">
|
||||||
|
<div style="color: red; align: center;" align="center"> No Record Found ...</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="container table-responsive" ng-if="!unMatchedNoRecordFound && unMatchedRecordDetails">
|
||||||
|
<div ng-if="unMatchedRecordDetailsType == 'EnrolmentIDFile'">
|
||||||
|
<table class="table table-border table-hover" >
|
||||||
|
<thead>
|
||||||
|
<th>FormID</th>
|
||||||
|
<th>EnrolmentNo</th>
|
||||||
|
<th>RollNo</th>
|
||||||
|
<th>CentreCode</th>
|
||||||
|
<th>CentreState</th>
|
||||||
|
<th>MobileNumber</th>
|
||||||
|
<th>StudentName</th>
|
||||||
|
<th>FatherName</th>
|
||||||
|
<th>MotherName</th>
|
||||||
|
<th>EmailID</th>
|
||||||
|
<th>UniversityCode</th>
|
||||||
|
<th>UniversityName</th>
|
||||||
|
<th>CourseCode</th>
|
||||||
|
<th>CourseName</th>
|
||||||
|
<th>SemesterYear</th>
|
||||||
|
</thead>
|
||||||
|
<tbody dir-paginate="p in unMatchedRecordDetails|orderBy:sortKey:reverse|filter:search:strict|itemsPerPage:10| filter:query as results">
|
||||||
|
<tr>
|
||||||
|
<td>{{p.FormID}}</td>
|
||||||
|
<td>{{p.EnrolmentNo}}</td>
|
||||||
|
<td>{{p.RollNo}}</td>
|
||||||
|
<td>{{p.CentreCode}}</td>
|
||||||
|
<td>{{p.CentreState}}</td>
|
||||||
|
<td>{{p.MobileNumber}}</td>
|
||||||
|
<td>{{p.StudentName}}</td>
|
||||||
|
<td>{{p.FatherName}}</td>
|
||||||
|
<td>{{p.MotherName}}</td>
|
||||||
|
<td>{{p.EmailID}}</td>
|
||||||
|
<td>{{p.UniversityCode}}</td>
|
||||||
|
<td>{{p.UniversityName}}</td>
|
||||||
|
<td>{{p.CourseCode}}</td>
|
||||||
|
<td>{{p.CourseName}}</td>
|
||||||
|
<td>{{p.SemesterYear}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<dir-pagination-controls max-size="10" direction-links="true" boundary-links="true">
|
||||||
|
</dir-pagination-controls>
|
||||||
|
</div>
|
||||||
|
<div ng-if="unMatchedRecordDetailsType == 'FormIDFile'">
|
||||||
|
<table class="table table-border table-hover" >
|
||||||
|
<thead>
|
||||||
|
<th>FormID</th>
|
||||||
|
<th>FormType</th>
|
||||||
|
<th>CentreCode</th>
|
||||||
|
<th>CourseCode</th>
|
||||||
|
<th>ActualCourseFee</th>
|
||||||
|
<th>CourseFee</th>
|
||||||
|
<th>Amount</th>
|
||||||
|
</thead>
|
||||||
|
<tbody dir-paginate="p in unMatchedRecordDetails|orderBy:sortKey:reverse|filter:search:strict|itemsPerPage:10| filter:query as results">
|
||||||
|
<tr>
|
||||||
|
<td>{{p.FormID}}</td>
|
||||||
|
<td>{{p.FormType}}</td>
|
||||||
|
<td>{{p.CentreCode}}</td>
|
||||||
|
<td>{{p.CourseCode}}</td>
|
||||||
|
<td>{{p.ActualCourseFee}}</td>
|
||||||
|
<td>{{p.CourseFee}}</td>
|
||||||
|
<td>{{p.Amount}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<dir-pagination-controls max-size="10" direction-links="true" boundary-links="true">
|
||||||
|
</dir-pagination-controls>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</tab>
|
||||||
|
|
||||||
|
</tabset>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- end: LIST GROUP -->
|
||||||
Loading…
Reference in New Issue
Block a user