feetransfer
This commit is contained in:
parent
2b71627bfb
commit
4af8072068
@ -252,6 +252,16 @@ $route['getStudentAllInfo'] = 'DayBook_Controller/getStudentAllInfo';
|
||||
|
||||
$route['getCourse'] = 'Student_Controller/getCourse';
|
||||
|
||||
$route['getStudentCourseFeeDetails'] = 'DataCorrection_Controller/getStudentCourseFeeDetails';
|
||||
|
||||
$route['getAllCoursefeedetail'] = 'DataCorrection_Controller/getCoursefeedetail';
|
||||
|
||||
$route['getAllCoursefeepaiddetail'] = 'DataCorrection_Controller/getAllCoursefeepaiddetail';
|
||||
|
||||
$route['updatefeepaiddetail'] = 'DataCorrection_Controller/updatefeepaiddetail';
|
||||
|
||||
$route['getAllfeepaiddetail'] = 'DataCorrection_Controller/getAllfeepaiddetail';
|
||||
|
||||
|
||||
/*
|
||||
|
||||
|
||||
@ -188,6 +188,138 @@ class DataCorrection_Controller extends REST_Controller {
|
||||
|
||||
|
||||
|
||||
public function getStudentCourseFeeDetails_post()
|
||||
{
|
||||
|
||||
$search['Firstname'] = $this->post('studentName');
|
||||
$search['MobileNumber'] = $this->post('mobileNumber');
|
||||
$search['receipt'] = $this->post('receipt');
|
||||
$search['requestedtBy'] =$this->post('requestedtBy');
|
||||
$search['branchId']=$this->post('branchId');
|
||||
$search['requestedDept'] = $this->post('requestedDept');
|
||||
$search['University'] = $this->post('University');
|
||||
|
||||
$stucourse = $this->Data_correction->GetAllCoursefeeDetails($search);
|
||||
|
||||
if($stucourse)
|
||||
{
|
||||
$stucourse['status'] = REST_Controller::HTTP_OK;
|
||||
// Set the response and exit
|
||||
$this->response($stucourse, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response([
|
||||
'message' => 'No records found!',
|
||||
'status' => REST_Controller::HTTP_NOT_FOUND
|
||||
], REST_Controller::HTTP_NOT_FOUND);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function getCoursefeedetail_post()
|
||||
{
|
||||
$search['University'] = $this->post('University');
|
||||
$search['courseId'] = $this->post('courseId');
|
||||
$search['studentId'] =$this->post('studentId');
|
||||
$search['requestedtBy'] =$this->post('requestedtBy');
|
||||
$search['branchId']=$this->post('branchId');
|
||||
$search['requestedDept'] = $this->post('requestedDept');
|
||||
|
||||
$coursedetails = $this->Data_correction->GetCourseFeeDetails($search);
|
||||
|
||||
if($coursedetails)
|
||||
{
|
||||
$coursedetails['status'] = REST_Controller::HTTP_OK;
|
||||
// Set the response and exit
|
||||
$this->response($coursedetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response([
|
||||
'message' => 'No records found!',
|
||||
'status' => REST_Controller::HTTP_NOT_FOUND
|
||||
], REST_Controller::HTTP_NOT_FOUND);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function getAllCoursefeepaiddetail_post()
|
||||
{
|
||||
$search['studentId'] = $this->post('studentId');
|
||||
$search['CourseId'] = $this->post('courseId');
|
||||
|
||||
$coursefeedetails = $this->Data_correction->GetCourseFeePaidDetails($search);
|
||||
|
||||
if($coursefeedetails)
|
||||
{
|
||||
$coursefeedetails['status'] = REST_Controller::HTTP_OK;
|
||||
// Set the response and exit
|
||||
$this->response($coursefeedetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response([
|
||||
'message' => 'No records found!',
|
||||
'status' => REST_Controller::HTTP_NOT_FOUND
|
||||
], REST_Controller::HTTP_NOT_FOUND);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function updatefeepaiddetail_post()
|
||||
{
|
||||
|
||||
$search['studentId'] = $this->post('studentId');
|
||||
$search['Act_CourseId'] = $this->post('act_courseId');
|
||||
$search['DeAct_CourseId'] = $this->post('de_actcourseId');
|
||||
|
||||
$updatefeedetails['transferstatus'] = $this->Data_correction->UpdateFeePaidDetails($search);
|
||||
|
||||
if($updatefeedetails['transferstatus'])
|
||||
{
|
||||
$updatefeedetails['status'] = REST_Controller::HTTP_OK;
|
||||
// Set the response and exit
|
||||
$this->response($updatefeedetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response([
|
||||
'message' => 'No records found!',
|
||||
'status' => REST_Controller::HTTP_NOT_FOUND
|
||||
], REST_Controller::HTTP_NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function getAllfeepaiddetail_post()
|
||||
{
|
||||
$search['studentId'] = $this->post('studentId');
|
||||
$search['CourseID'] = $this->post('CourseID');
|
||||
|
||||
$paidfeedetails = $this->Data_correction->GetFeePaidDetails($search);
|
||||
|
||||
if($paidfeedetails)
|
||||
{
|
||||
$paidfeedetails['status'] = REST_Controller::HTTP_OK;
|
||||
// Set the response and exit
|
||||
$this->response($paidfeedetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response([
|
||||
'message' => 'No records found!',
|
||||
'status' => REST_Controller::HTTP_NOT_FOUND
|
||||
], REST_Controller::HTTP_NOT_FOUND);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -205,4 +205,225 @@ group by Student_id,cid";
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function GetAllCoursefeeDetails($search)
|
||||
{
|
||||
$this->db->select('sd.MobileNumber,sd.Firstname,sd.Lastname,CourseName,UniversityName,scd.CourseID,scd.ID,sd.StudentID,scd.IsActive as IsActive,scd.DeactiveComments as Reason,scd.UniversityID,sfs.FeesID,scd.Deactive');
|
||||
$this->db->from('T_StudentDetails sd');
|
||||
$this->db->join('T_Student_CourseDetails scd','scd.StudentID = sd.StudentID');
|
||||
$this->db->join('T_CourseMaster cm','cm.CourseID = scd.CourseID');
|
||||
$this->db->join('T_UniversityMaster um','um.UniversityID = scd.UniversityID');
|
||||
$this->db->join('T_Students_Fees_Status sfs','sfs.StudentID = scd.StudentID and sfs.CourseID=scd.CourseID');
|
||||
$this->db->join('T_Students_Fees_PaidDetails sfpd','sfpd.FeesId=sfs.FeesID','left');
|
||||
if($search['MobileNumber']!='')
|
||||
{
|
||||
$this->db->where('sd.MobileNumber',$search['MobileNumber']);
|
||||
}
|
||||
if($search['Firstname']!='')
|
||||
{
|
||||
// $this->db->like('ST.Firstname','%'.$search['Firstname'].'%');
|
||||
$this->db->like('sd.Firstname',$search['Firstname'],'both');
|
||||
}
|
||||
if($search['University']!='')
|
||||
{
|
||||
// $this->db->like('ST.Firstname','%'.$search['Firstname'].'%');
|
||||
$this->db->where('scd.UniversityID',$search['University']);
|
||||
}
|
||||
|
||||
|
||||
$this->db->where('sd.BranchCode',$search['branchId']);
|
||||
$this->db->group_by('sd.StudentID');
|
||||
|
||||
$searchDetails = $this->db->get();
|
||||
|
||||
if($searchDetails->result())
|
||||
{
|
||||
|
||||
//print_r($searchDetails->result());
|
||||
$result_array['studentStatus'] = true;
|
||||
$result_array['details'] = $searchDetails->result();
|
||||
}
|
||||
else
|
||||
{
|
||||
$result_array['studentStatus'] = false;
|
||||
$result_array['details'] = "No records found!";
|
||||
}
|
||||
// print_r($result_array);
|
||||
// die();
|
||||
|
||||
return $result_array;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function GetCourseFeeDetails($search)
|
||||
{
|
||||
|
||||
$this->db->select('StudentID,scd.UniversityID,scd.CourseID,CourseName,scd.IsActive,CourseCode');
|
||||
$this->db->from('T_Student_CourseDetails scd');
|
||||
$this->db->join('T_CourseMaster cm','cm.CourseID=scd.CourseID');
|
||||
$this->db->where('scd.StudentID',$search['studentId']);
|
||||
//$this->db->where('scd.IsActive','1');
|
||||
|
||||
// if($search['University']!='')
|
||||
// {
|
||||
|
||||
// $this->db->where('scd.UniversityID',$search['University']);
|
||||
// }
|
||||
|
||||
$activecoursesarray=$this->db->get();
|
||||
|
||||
if($activecoursesarray->result())
|
||||
{
|
||||
|
||||
$result_array['courseStatus'] = true;
|
||||
$result_array['details'] = $activecoursesarray->result();
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$result_array['courseStatus'] = false;
|
||||
$result_array['details'] = 'No Records Found';
|
||||
}
|
||||
|
||||
|
||||
return $result_array;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public function GetCourseFeePaidDetails($search)
|
||||
{
|
||||
// print_r($search);die();
|
||||
|
||||
$qry="select * from T_Students_Fees_PaidDetails where StudentID='".$search['studentId']."' and FeesId=(select FeesID from T_Students_Fees_Status where StudentID='".$search['studentId']."' and CourseID='".$search['CourseId']."')";
|
||||
|
||||
$fee=$this->db->query($qry);
|
||||
$feepaid = $fee->result();
|
||||
|
||||
|
||||
//print_r($feepaid);die();
|
||||
if($feepaid)
|
||||
{
|
||||
|
||||
$result_array['feeStatus'] = true;
|
||||
$result_array['feepaiddetails'] = $feepaid;
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$result_array['feeStatus'] = false;
|
||||
$result_array['feepaiddetails'] = 'No Records Found';
|
||||
}
|
||||
|
||||
// print_r($this->db->last_query());die();
|
||||
|
||||
return $result_array;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public function UpdateFeePaidDetails($search)
|
||||
{
|
||||
$this->db->select('FeesID');
|
||||
$this->db->from('T_Students_Fees_Status sfs');
|
||||
$this->db->where('sfs.StudentID',$search['studentId']);
|
||||
$this->db->where('sfs.CourseID',$search['Act_CourseId']);
|
||||
|
||||
$getAct_CourseFeeId = $this->db->get();
|
||||
|
||||
$getAct_CourseFeeId = $getAct_CourseFeeId->result();
|
||||
|
||||
$newfeeId = '';
|
||||
|
||||
foreach($getAct_CourseFeeId as $fi)
|
||||
{
|
||||
|
||||
$newfeeId = $fi->FeesID;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$this->db->select('FeesID');
|
||||
$this->db->from('T_Students_Fees_Status sfs');
|
||||
$this->db->where('sfs.StudentID',$search['studentId']);
|
||||
$this->db->where('sfs.CourseID',$search['DeAct_CourseId']);
|
||||
|
||||
$getDeAct_CourseFeeId = $this->db->get();
|
||||
|
||||
$getDeAct_CourseFeeId = $getDeAct_CourseFeeId->result();
|
||||
|
||||
$oldfeeId = '';
|
||||
|
||||
foreach($getDeAct_CourseFeeId as $fi)
|
||||
{
|
||||
|
||||
$oldfeeId = $fi->FeesID;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$time = date('Y-m-d H:i:s');
|
||||
$dateTime = $time;
|
||||
|
||||
|
||||
|
||||
$feearr['FeesId']= $newfeeId;
|
||||
$feearr['InternalComments'] = 'Fee Paid by Fee Transfer';
|
||||
$feearr['UpdatedOn'] = $dateTime;
|
||||
|
||||
|
||||
$this->db->where('StudentID',$search['studentId']);
|
||||
$this->db->where('FeesId',$oldfeeId);
|
||||
$this->db->update('T_Students_Fees_PaidDetails', $feearr);
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function GetFeePaidDetails($search)
|
||||
{
|
||||
$this->db->select('SUM(BillAmount) as Total_fee');
|
||||
$this->db->from('T_Students_Fees_PaidDetails sfp');
|
||||
$this->db->join('T_Students_Fees_Status sfs','sfs.FeesID= sfp.FeesId');
|
||||
$this->db->where('sfp.StudentID',$search['studentId']);
|
||||
$this->db->where('sfs.CourseID',$search['CourseID']);
|
||||
|
||||
$getAllFeeSum = $this->db->get();
|
||||
|
||||
$getAllFeeSum = $getAllFeeSum->result();
|
||||
|
||||
if($getAllFeeSum)
|
||||
{
|
||||
|
||||
$result_array['feepaiStatus'] = true;
|
||||
$result_array['totalpaiddetails'] = $getAllFeeSum;
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$result_array['feepaiStatus'] = false;
|
||||
$result_array['totalpaiddetails'] = 'No Records Found';
|
||||
}
|
||||
|
||||
// print_r($this->db->last_query());die();
|
||||
|
||||
return $result_array;
|
||||
}
|
||||
}
|
||||
@ -168,7 +168,8 @@
|
||||
"MAIN": "My Details",
|
||||
"coursecorrection": "Course Details",
|
||||
"stud_merge": "Student Merge",
|
||||
"DATACORRECTION" : "Bills Correction"
|
||||
"DATACORRECTION" : "Bills Correction",
|
||||
"FEETRANSFER" : "Fee Transfer"
|
||||
},
|
||||
"announcement": {
|
||||
"MAIN": "ANNOUNCEMENT",
|
||||
|
||||
@ -158,6 +158,10 @@ app.constant('JS_REQUIRES', {
|
||||
'entrycorrectionCtrl': 'assets/js/controllers/entrycorrectionCtrl.js',
|
||||
/*
|
||||
|
||||
**/
|
||||
'feetransferCtrl': 'assets/js/controllers/feetransferCtrl.js',
|
||||
/*
|
||||
|
||||
|
||||
* student status updation
|
||||
* */
|
||||
|
||||
@ -839,6 +839,15 @@ app.config(['$stateProvider', '$urlRouterProvider', '$controllerProvider', '$com
|
||||
label: 'coursecorrection'
|
||||
},
|
||||
|
||||
}).state('app.entry.feetransfer', {
|
||||
url: '/feetransfer',
|
||||
templateUrl: "assets/views/Feetransfer.html",
|
||||
resolve: loadSequence('feetransferCtrl','ngTable', 'ladda', 'angular-ladda'),
|
||||
title: 'feetransfer',
|
||||
ncyBreadcrumb: {
|
||||
label: 'feetransfer'
|
||||
},
|
||||
|
||||
}).state('app.entry.stud_merge', {
|
||||
url: '/studentMergeCtrl',
|
||||
templateUrl: "assets/views/StudentMerge.html",
|
||||
|
||||
398
Apollo/assets/js/controllers/feetransferCtrl.js
Normal file
398
Apollo/assets/js/controllers/feetransferCtrl.js
Normal file
@ -0,0 +1,398 @@
|
||||
app.controller('feetransferCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableParams", "API_POINTS", "$localStorage", "$http", "$state","$modal","$log",
|
||||
function ($scope,$rootScope,toaster, $filter, ngTableParams, apiPoint, $localStorage, $http, $state,$modal,$log){
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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");
|
||||
//ipCookie.remove('cookiechk');
|
||||
window.localStorage.clear();
|
||||
$state.go('login.signin');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$scope.universitySearchData = '';
|
||||
|
||||
$scope.init = function()
|
||||
{
|
||||
|
||||
// alert()
|
||||
var getuniv = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'AllgetUniversity/',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
|
||||
data: {
|
||||
|
||||
branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID,
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
$http(getuniv).then(function (response) {
|
||||
|
||||
if(response.status == 200)
|
||||
{
|
||||
$scope.universitySearchData=response.data.details;
|
||||
|
||||
//console.log($scope.universitySearchData);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$scope.studentInfo="";
|
||||
$scope.mobileNo='';
|
||||
$scope.student_Name='';
|
||||
$scope.getStudentDetails = function (form,myModel)
|
||||
{
|
||||
|
||||
if(myModel !=undefined)
|
||||
{
|
||||
var mobileNumber = myModel.mobileNumber;
|
||||
var studentName = myModel.studentName;
|
||||
var receipt = myModel.receipt;
|
||||
$scope.universityId = myModel.myUnivSearch;
|
||||
$scope.mobileNo=myModel.mobileNumber;
|
||||
$scope.student_Name=myModel.studentName;
|
||||
// console.log($scope.universityId);
|
||||
// return false;
|
||||
|
||||
$scope.isLoaderShow= false
|
||||
|
||||
var getdetail = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'getStudentCourseFeeDetails/',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
data :{
|
||||
studentName: myModel.studentName,
|
||||
mobileNumber: myModel.mobileNumber,
|
||||
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";
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
swal('Please Enter Any Field to Continue',"",'error');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$scope.OpenWindowStatus = false;
|
||||
$scope.editId = -1;
|
||||
$scope.courselist ='';
|
||||
$scope.loadfee='';
|
||||
$scope.feecheck=false;
|
||||
|
||||
$scope.setEditId = function (P)
|
||||
{ //alert(JSON.stringify(P));
|
||||
|
||||
var feedetails = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'getAllCoursefeedetail/',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
data :{
|
||||
studentId: P.StudentID,
|
||||
courseId:P.CourseID,
|
||||
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(feedetails).then(function (response) {
|
||||
|
||||
//console.log(response)
|
||||
if (response.data.status==200 && response.data.courseStatus) {
|
||||
$scope.feeInfo=response.data.details;
|
||||
// console.log($scope.feeInfo);
|
||||
$scope.editId = P.ID;
|
||||
$scope.courselist =true;
|
||||
$scope.feecheck=false;
|
||||
|
||||
|
||||
} else {
|
||||
$scope.feeInfo="";
|
||||
$scope.loadfee = "No Records Found";
|
||||
$scope.courselist =false;
|
||||
$scope.feecheck=true;
|
||||
$scope.editId = P.ID;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
$scope.close = function ()
|
||||
{
|
||||
$scope.editId = -1;
|
||||
}
|
||||
|
||||
|
||||
$scope.updateModel = {
|
||||
"transferamount": "",
|
||||
"totalpaidfee":'',
|
||||
|
||||
};
|
||||
|
||||
|
||||
$scope.FeePaidDetails ='';
|
||||
$scope.TransferAmt=0;
|
||||
$scope.feedetstatus=true;
|
||||
$scope.getpaidFeeDetails=function(m,q)
|
||||
{
|
||||
|
||||
|
||||
var studentId = q.StudentID;
|
||||
var CourseID = m.deActivecourse;
|
||||
|
||||
//console.log(CourseID);die();
|
||||
|
||||
var feepaiddetails = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'getAllCoursefeepaiddetail/',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
data :{
|
||||
studentId: studentId,
|
||||
courseId: CourseID,
|
||||
requestedtBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
|
||||
branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID,
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
$http(feepaiddetails).then(function (response) {
|
||||
|
||||
if (response.data.status==200 && response.data.feeStatus) {
|
||||
|
||||
$scope.FeePaidDetails = response.data.feepaiddetails;
|
||||
// console.log($scope.FeePaidDetails);
|
||||
|
||||
$scope.feedetstatus=true;
|
||||
|
||||
$scope.TransferAmt=0;
|
||||
angular.forEach(($scope.FeePaidDetails),function(Feedata,key)
|
||||
{
|
||||
$scope.TransferAmt = parseFloat($scope.TransferAmt)+parseFloat(Feedata.BillAmount);
|
||||
|
||||
});
|
||||
|
||||
$scope.updateModel.transferamount=$scope.TransferAmt;
|
||||
} else {
|
||||
|
||||
$scope.FeePaidDetails = '';
|
||||
$scope.updateModel.transferamount=0;
|
||||
$scope.feedetstatus=false;
|
||||
$scope.FeeDetailsText='No Details Available!!'
|
||||
|
||||
$scope.TotalAmt=0;
|
||||
$scope.updateModel.totalpaidfee=0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
$scope.getTransferFee=function(myModel,p,updateModel)
|
||||
{
|
||||
// console.log(myModel);
|
||||
// console.log(p);
|
||||
// console.log(updateModel);
|
||||
|
||||
// console.log(myModel.Activecourse);
|
||||
|
||||
if((updateModel.transferamount!='')&& (myModel.Activecourse != undefined) &&(updateModel.transferamount!=''))
|
||||
{
|
||||
|
||||
|
||||
// alert('im');die();
|
||||
var act_courseId = myModel.Activecourse;
|
||||
var deact_courseId = myModel.deActivecourse;
|
||||
var studentId = p.StudentID;
|
||||
|
||||
var updatefeedetails = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'updatefeepaiddetail/',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
data :{
|
||||
studentId: studentId,
|
||||
act_courseId: act_courseId,
|
||||
de_actcourseId: deact_courseId,
|
||||
requestedtBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
|
||||
branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID,
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
$http(updatefeedetails).then(function (response) {
|
||||
|
||||
if(response.data)
|
||||
{
|
||||
swal("Success ", response.data.message, "success");
|
||||
}
|
||||
|
||||
|
||||
else
|
||||
{
|
||||
swal("Failed ", response.data.message, "Error");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
swal("Please Select Values ", '', "warning");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
$scope.Totalfeepaid=0;
|
||||
$scope.TotalAmt=0;
|
||||
$scope.feedetstatus=true;
|
||||
$scope.getTotalFeePaid=function(myModel,p)
|
||||
{
|
||||
console.log(myModel)
|
||||
|
||||
var CourseID = myModel.Activecourse;
|
||||
var studentId = p.StudentID;
|
||||
$scope.Totalfeepaid=0;
|
||||
$scope.TotalAmt=0;
|
||||
$scope.updateModel.totalpaidfee=0;
|
||||
|
||||
|
||||
var getfeefeedetails = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'getAllfeepaiddetail/',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
data :{
|
||||
studentId: studentId,
|
||||
CourseID: CourseID,
|
||||
requestedtBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
|
||||
branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID,
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
$http(getfeefeedetails).then(function (response) {
|
||||
|
||||
if(response.data.status==200 && response.data.feepaiStatus)
|
||||
{
|
||||
//console.log('if');
|
||||
$scope.feedetstatus=true;
|
||||
$scope.Totalfeepaid=response.data.totalpaiddetails;
|
||||
|
||||
angular.forEach(($scope.Totalfeepaid),function(Feedata,key)
|
||||
{
|
||||
// console.log(Feedata.totalpaiddetails);
|
||||
$scope.TotalAmt= parseFloat($scope.TotalAmt)+parseFloat(Feedata.Total_fee);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
|
||||
// $scope.feedetstatus=false;
|
||||
// $scope.FeeDetailsText='No Details Available!!'
|
||||
|
||||
// $scope.TotalAmt=0;
|
||||
// $scope.updateModel.totalpaidfee=0;
|
||||
|
||||
//console.log('else');
|
||||
|
||||
}
|
||||
|
||||
$scope.updateModel.totalpaidfee=$scope.TotalAmt;
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}]);
|
||||
|
||||
146
Apollo/assets/views/Feetransfer.html
Normal file
146
Apollo/assets/views/Feetransfer.html
Normal file
@ -0,0 +1,146 @@
|
||||
<style type="text/css">
|
||||
.pad {
|
||||
background-color: #eee;
|
||||
padding: 4px;
|
||||
}
|
||||
.fif {
|
||||
/* background-color: #ddd;*/
|
||||
display: inline-block;
|
||||
margin: 0 175px 0 0;
|
||||
padding: 8px 8px;
|
||||
text-align: left;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
|
||||
.right {
|
||||
/* background-color: #ddd;*/
|
||||
display: inline-block;
|
||||
/*margin: 0 25px 0 0;*/
|
||||
padding: 1px 1px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
||||
.rightac {
|
||||
/* background-color: #ddd;*/
|
||||
display: inline-block;
|
||||
margin: 0 175px 0 0;
|
||||
padding: 8px 8px;
|
||||
text-align: left;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.a {
|
||||
word-spacing: 9cm;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<section id="page-title">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<h1 class="mainTitle">Fee Transfer</h1>
|
||||
</div>
|
||||
<!-- <div ncy-breadcrumb></div> -->
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript" src="bower_components/ng-table-excel-export/ng-table-excel-export.min.js"></script>
|
||||
|
||||
<div class="container-fluid container-fullw bg-white">
|
||||
<div ng-controller="feetransferCtrl" data-ng-init="init()">
|
||||
<form name="Form" id="form" novalidate method="post">
|
||||
<div class="row">
|
||||
<fieldset>
|
||||
<legend>Search</legend>
|
||||
<div class="row">
|
||||
<div class="col-md-3 form-group" ng-class="{'has-error':Form.mobilenumber.$dirty && Form.mobilenumber.$invalid}">
|
||||
<label>Mobile Number</label>
|
||||
|
||||
<input type="text" placeholder="Search Mobile Number" ladda="ldloading1.zoom_in" data-style="zoom-in" autofocus tabindex="1" class="form-control" name="mobilenumber" id="mobilenumber" ng-minlength="10" ng-maxlength="12" ng-model="myModel.mobileNumber" ng-pattern="/^[0-9]*$/"/>
|
||||
<span class="error text-small block"
|
||||
ng-if="Form.mobilenumber.$error.maxlength || Form.mobilenumber.$error.minlength || Form.mobilenumber.$error.pattern">Enter a valid mobile number</span>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Student First Name</label>
|
||||
|
||||
<input type="text" placeholder="Search Student Name" tabindex="2" class="form-control" name="studentname"
|
||||
ng-model="myModel.studentName" ng-pattern="/^[a-zA-Z.\s]*$/" />
|
||||
<span class="error text-small block" ng-if="Form.studentname.$dirty && Form.studentname.$error.pattern">Invalid student name </span>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 form-group">
|
||||
<label>University</label>
|
||||
<select class="form-control" tabindex="3" class="cs-select cs-skin-elastic" name="university" ng-model="myModel.myUnivSearch"
|
||||
ng-click="getEmployeeList()">
|
||||
|
||||
<option value="" selected>Select University</option>
|
||||
<option ng-repeat="item in universitySearchData" value="{{item.UniversityID}}">{{item.UniversityName}}</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-2" style="padding-top: 2.3%;">
|
||||
<div class="pull-right">
|
||||
<button type="submit" ng-click="getStudentDetails(Form,myModel);" class="btn btn-success btn-o" tabindex="8">
|
||||
Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div ng-if="isLoaderShow">
|
||||
<center> <h1>{{load}}</h1> </center>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="table-responsive">
|
||||
<table id="datatable" class="table table-hover">
|
||||
<thead>
|
||||
<tr >
|
||||
<th style="font-size: 12px;">Mobile</th>
|
||||
<th style="font-size: 12px;">Name</th>
|
||||
<!-- <th style="font-size: 12px">Course</th>
|
||||
<th style="font-size: 12px;">University</th> -->
|
||||
<th style="font-size: 12px;">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody dir-paginate="p in studentInfo|filter:search:strict|itemsPerPage:10">
|
||||
<tr>
|
||||
|
||||
<td>{{p.MobileNumber}}</td>
|
||||
<td>{{p.Firstname}} {{p.Lastname}}</td>
|
||||
<!-- <td>{{p.CourseName}}</td>
|
||||
<td>{{p.UniversityName}}</td> -->
|
||||
<td><span><a class="text-azure" id="editRowBtn{{p.ID}}" ng-click="setEditId(p);"><b class="glyphicon glyphicon-pencil" tooltip="Edit Details" aria-hidden="true"></b></a> </span></td>
|
||||
|
||||
</tr>
|
||||
<tr ng-show="editId === p.ID" ng-if="editId === p.ID">
|
||||
<td colspan="12" ng-include src="'assets/views/edit_transferfee.html'"></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<dir-pagination-controls direction-links="true" boundary-links="true">
|
||||
</dir-pagination-controls>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
123
Apollo/assets/views/edit_transferfee.html
Normal file
123
Apollo/assets/views/edit_transferfee.html
Normal file
@ -0,0 +1,123 @@
|
||||
<form name="Form" id="form" novalidate>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12">
|
||||
<fieldset>
|
||||
<legend>
|
||||
Course Fee Details
|
||||
</legend>
|
||||
|
||||
|
||||
<div class="col-md-3 form-group">
|
||||
<label>De-Active Courses</label>
|
||||
<select class="form-control" tabindex="3" class="cs-select cs-skin-elastic" name="university" ng-model="myModel.deActivecourse"
|
||||
ng-click="getpaidFeeDetails(myModel,p)">
|
||||
|
||||
<option value="" selected>Select</option>
|
||||
<option ng-repeat="item in feeInfo" ng-if="item.IsActive==0" value="{{item.CourseID}}">{{item.CourseName}}-{{item.CourseCode}}</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- <div ng-if="feedetstatus==false">
|
||||
<h4>{{FeeDetailsText}}</h4>
|
||||
|
||||
</div> -->
|
||||
|
||||
<!-- <div ng-if="feedetstatus==true"> -->
|
||||
<table id="datatable" class="table table-hover">
|
||||
<thead>
|
||||
<tr >
|
||||
<th style="font-size: 12px;">BillNO</th>
|
||||
<th style="font-size: 12px;">BillDate</th>
|
||||
<th style="font-size: 12px">ModeOfPayment</th>
|
||||
<th style="font-size: 12px;">BillAmount</th>
|
||||
<!-- <th style="font-size: 12px;">Action</th> -->
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody dir-paginate="p in FeePaidDetails|filter:search:strict|itemsPerPage:10">
|
||||
<tr>
|
||||
|
||||
<td>{{p.BillNO}}</td>
|
||||
<td>{{p.BillDate}}</td>
|
||||
<td>{{p.ModeOfPayment}}</td>
|
||||
<td>{{p.BillAmount}}</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!-- </div> -->
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Active Courses</label>
|
||||
<select class="form-control" tabindex="3" class="cs-select cs-skin-elastic" name="university" ng-model="myModel.Activecourse"
|
||||
ng-click="getTotalFeePaid(myModel,p)">
|
||||
|
||||
<option value="" selected>Select</option>
|
||||
<option ng-repeat="item in feeInfo" ng-if="item.IsActive==1" value="{{item.CourseID}}">{{item.CourseName}}-{{item.CourseCode}}</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Total Paid Fee</label>
|
||||
|
||||
<input type="text" tabindex="2" class="form-control" name="totalamount"
|
||||
ng-model="updateModel.totalpaidfee" value="Totalfeepaid" readonly="true" />
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Transfering Amount</label>
|
||||
|
||||
<input type="text" tabindex="2" class="form-control" name="transferamount"
|
||||
ng-model="updateModel.transferamount" value="TransferAmt" readonly="true" />
|
||||
<span class="error text-small block" ng-if="Form.transferamount.$dirty && Form.transferamount.$error.pattern">Invalid Amount </span>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="col-md-2" style="padding-top: 2.3%;">
|
||||
<div class="pull-right">
|
||||
<button type="submit" ng-click="getTransferFee(myModel,p,updateModel);" class="btn btn-success btn-o" tabindex="8">Transfer Fee</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</fieldset>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@ -603,6 +603,12 @@
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.entry.feetransfer" ng-click="checkSuperAdmin()">
|
||||
<span class="title" translate="sidebar.nav.entry.FEETRANSFER">Fee Transfer</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user