bugs fixed in all reports and balance fee report added
This commit is contained in:
parent
ce976d8cb0
commit
b1f2a99060
@ -9,7 +9,7 @@ class Reports_model extends CI_Model
|
|||||||
{
|
{
|
||||||
public function status($bat=null,$br=null,$u=null){
|
public function status($bat=null,$br=null,$u=null){
|
||||||
|
|
||||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,sfp.fid,std.name,std.father,std.phone,sms.cid as scid,sms.lcode,sms.date as sdate,cfd.syear,sms.sem as sem,sfs.batch as fbatch,cm.course,cm.uname,list.status,sfs.cid as fcid,sfs.cf as crsfee,sfs.stf as stf,sfs.others as others,(sfs.cf + sfs.stf + sfs.others) as total,sum(sfp.bamount) as bamount,sfp.bdate as bdate,sfp.billno,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as balance
|
$sql = "select @s:=@s+1 SL_NO,sms.sid as Student_id,scd.eid as Enrollment_id,std.name as Student_name,std.father as Father_name,std.phone as Phone_number,sms.cid as Course_id,sms.branch as Branch,sms.date as Date,cfd.syear as Sem_year,sms.sem as Sem,sfs.batch as Batch_Code,cm.course as Course_name,cm.uname as University,list.Status,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as Balance_fee,sfp.bdate as Initial_paid_date
|
||||||
from (SELECT @s:= 0) AS s,
|
from (SELECT @s:= 0) AS s,
|
||||||
(SELECT ID,StudentID as sid,CourseID as cid,ListCode as lcode,BranchCode as branch,SDate as date,Sem as sem FROM T_StudyMaterialStatus where ID in (SELECT max(ID) FROM T_StudyMaterialStatus group by StudentID,CourseID,BranchCode,Sem)
|
(SELECT ID,StudentID as sid,CourseID as cid,ListCode as lcode,BranchCode as branch,SDate as date,Sem as sem FROM T_StudyMaterialStatus where ID in (SELECT max(ID) FROM T_StudyMaterialStatus group by StudentID,CourseID,BranchCode,Sem)
|
||||||
group by sid,sem,cid,branch) as sms
|
group by sid,sem,cid,branch) as sms
|
||||||
@ -18,6 +18,7 @@ class Reports_model extends CI_Model
|
|||||||
group by sid,fid,cid,batch) as sfs on sfs.sid=sms.sid and sms.cid=sfs.ftype
|
group by sid,fid,cid,batch) as sfs on sfs.sid=sms.sid and sms.cid=sfs.ftype
|
||||||
left join
|
left join
|
||||||
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
||||||
|
where IsActive = 1
|
||||||
group by sid,fid,billno) as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
group by sid,fid,billno) as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
||||||
left join
|
left join
|
||||||
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd
|
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd
|
||||||
@ -32,7 +33,8 @@ group by cid
|
|||||||
order by CourseID) as cm
|
order by CourseID) as cm
|
||||||
on cm.cid=cfd.ccid
|
on cm.cid=cfd.ccid
|
||||||
left join
|
left join
|
||||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails where IsActive = 1) as std on std.sid=sms.sid
|
||||||
|
left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sms.cid and scd.branch=sms.branch
|
||||||
where sms.sid != 'null'
|
where sms.sid != 'null'
|
||||||
";
|
";
|
||||||
if ($br!= ''){
|
if ($br!= ''){
|
||||||
@ -50,8 +52,8 @@ order by CourseID) as cm
|
|||||||
$sql.=" and cm.uid = '".$u."'";
|
$sql.=" and cm.uid = '".$u."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
$sql.=" group by ssid,scid,fbatch,lcode,fbatch,fid,sem";
|
$sql.=" group by Student_id,Course_id,Branch,Batch_code,Sem";
|
||||||
$sql.=" order by sl";
|
$sql.=" order by SL_NO";
|
||||||
$leadDet=$this->db->query($sql);
|
$leadDet=$this->db->query($sql);
|
||||||
$statusDetails = $leadDet->result();
|
$statusDetails = $leadDet->result();
|
||||||
if (count($statusDetails) > 0) {
|
if (count($statusDetails) > 0) {
|
||||||
@ -102,16 +104,17 @@ order by CourseID) as cm
|
|||||||
}
|
}
|
||||||
public function markcard($bat=null,$br=null,$u=null){
|
public function markcard($bat=null,$br=null,$u=null){
|
||||||
|
|
||||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,sfp.fid,std.name,sms.ctype,std.father,std.phone,sms.cid as scid,sms.lcode,sms.cdate as sdate,cfd.syear,sms.sem as sem,sfs.batch as fbatch,cm.course,cm.uname,list.status,sfs.cid as fcid,sfs.cf as crsfee,sfs.stf as stf,sfs.others as others,(sfs.cf + sfs.stf + sfs.others) as total,sum(sfp.bamount) as bamount,sfp.bdate as bdate,sfp.billno,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as balance
|
$sql = "select @s:=@s+1 SL_NO,sms.sid as Student_id,ifnull(scd.eid,'-') as Enrollment_id,sfs.rollno as Roll_NO,std.name as Student_name,std.father as Father_name,std.phone as Phone_number,sms.cid as Course_id,ifnull(sms.cdate,'-') as Date,cfd.syear as Sem_year,sms.sem as Sem,sfs.batch as Batch_code,sms.branch as Branch_code,cm.course as Course_name,cm.uname as University,list.status as Status,sfp.bdate as Initial_paid_date,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as Balance_Fee
|
||||||
from (SELECT @s:= 0) AS s,
|
from (SELECT @s:= 0) AS s,
|
||||||
(SELECT ID,StudentID as sid,CourseID as cid,BranchCode as branch,ListCode as lcode,CertificationType as ctype,CDate as cdate,Sem as sem FROM T_CertificationStatus
|
(SELECT ID,StudentID as sid,CourseID as cid,BranchCode as branch,ListCode as lcode,CertificationType as ctype,CDate as cdate,Sem as sem FROM T_CertificationStatus
|
||||||
WHERE ID IN (SELECT max(ID) FROM T_CertificationStatus group by StudentID,CourseID,BranchCode,Sem)
|
WHERE ID IN (SELECT max(ID) FROM T_CertificationStatus group by StudentID,CourseID,BranchCode,Sem)
|
||||||
group by sid,sem,cid,lcode,branch) as sms
|
group by sid,sem,cid,lcode,branch) as sms
|
||||||
left join
|
left join
|
||||||
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype,sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others FROM T_Students_Fees_Status
|
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,RollNO as rollno,CourseID as cid,FeesType as ftype,sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others FROM T_Students_Fees_Status
|
||||||
group by sid,fid,cid,batch) as sfs on sfs.sid=sms.sid and sms.cid=sfs.ftype
|
group by sid,fid,cid,batch) as sfs on sfs.sid=sms.sid and sms.cid=sfs.ftype
|
||||||
left join
|
left join
|
||||||
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
||||||
|
where IsActive = 1
|
||||||
group by sid,fid,billno) as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
group by sid,fid,billno) as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
||||||
left join
|
left join
|
||||||
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd
|
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd
|
||||||
@ -126,8 +129,9 @@ group by cid
|
|||||||
order by CourseID) as cm
|
order by CourseID) as cm
|
||||||
on cm.cid=cfd.ccid
|
on cm.cid=cfd.ccid
|
||||||
left join
|
left join
|
||||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||||
where sms.sid != 'null'
|
left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sms.cid and scd.branch=sms.branch
|
||||||
|
where std.active = 1
|
||||||
";
|
";
|
||||||
if ($br!= ''){
|
if ($br!= ''){
|
||||||
|
|
||||||
@ -144,8 +148,8 @@ order by CourseID) as cm
|
|||||||
$sql.=" and u.uid = '".$u."'";
|
$sql.=" and u.uid = '".$u."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
$sql.=" group by ssid,scid,fbatch,lcode,fbatch,fid,sem";
|
$sql.=" group by Student_id,Course_id,Batch_code,Branch_code,Sem";
|
||||||
$sql.=" order by sl";
|
$sql.=" order by SL_NO";
|
||||||
$leadDet=$this->db->query($sql);
|
$leadDet=$this->db->query($sql);
|
||||||
$mstatusDetails = $leadDet->result();
|
$mstatusDetails = $leadDet->result();
|
||||||
if (count($mstatusDetails) > 0) {
|
if (count($mstatusDetails) > 0) {
|
||||||
@ -161,7 +165,7 @@ order by CourseID) as cm
|
|||||||
}
|
}
|
||||||
public function certificate_status($bat=null,$br=null,$u=null){
|
public function certificate_status($bat=null,$br=null,$u=null){
|
||||||
|
|
||||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,sfp.fid,std.name,sms.certname,std.father,std.phone,sms.cid as scid,sms.lcode,sms.adate as adate,cfd.syear,sfs.batch as fbatch,cm.course,cm.uname,list.status,sfs.cid as fcid,sfs.cf as crsfee,sfs.stf as stf,sfs.others as others,(sfs.cf + sfs.stf + sfs.others) as total,sum(sfp.bamount) as bamount,sfp.bdate as bdate,sfp.billno,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as balance
|
$sql = "select @s:=@s+1 SL_NO,sms.sid as Student_id,ifnull(scd.eid,0) as Enrollment_id,std.name as Student_name,sms.certname as Certificate_name,std.father as Father,std.phone as Phone_number,sms.cid as Course_id,sms.adate as Date,cfd.syear as Sem_year,sfs.batch as Batch_code,sms.branch as Branch_code,cm.course as Course_name,cm.uname as University,list.status as Status,sfp.bdate as Document_fee_paid_date,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as Balance_fee
|
||||||
from (SELECT @s:= 0) AS s,
|
from (SELECT @s:= 0) AS s,
|
||||||
(SELECT ID,StudentID as sid,CourseID as cid,app.BranchCode as branch,ListCode as lcode,AppDate as adate,Comments as acmts,CertificationType as ctype,CertificateName as certname FROM T_ApplicationStatus as app
|
(SELECT ID,StudentID as sid,CourseID as cid,app.BranchCode as branch,ListCode as lcode,AppDate as adate,Comments as acmts,CertificationType as ctype,CertificateName as certname FROM T_ApplicationStatus as app
|
||||||
left join T_CertificationMaster cm on cm.CertificationID=app.CertificationType
|
left join T_CertificationMaster cm on cm.CertificationID=app.CertificationType
|
||||||
@ -172,6 +176,7 @@ group by sid,cid,lcode,branch) as sms
|
|||||||
group by sid,fid,cid,batch) as sfs on sfs.sid=sms.sid and sms.cid=sfs.cid
|
group by sid,fid,cid,batch) as sfs on sfs.sid=sms.sid and sms.cid=sfs.cid
|
||||||
left join
|
left join
|
||||||
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
||||||
|
where IsActive = 1
|
||||||
group by sid,fid,billno) as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
group by sid,fid,billno) as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
||||||
left join
|
left join
|
||||||
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd
|
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd
|
||||||
@ -186,8 +191,9 @@ group by cid
|
|||||||
order by CourseID) as cm
|
order by CourseID) as cm
|
||||||
on cm.cid=cfd.ccid
|
on cm.cid=cfd.ccid
|
||||||
left join
|
left join
|
||||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||||
where sms.sid != 'null'
|
left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sms.cid and scd.branch=sms.branch
|
||||||
|
where std.active = 1
|
||||||
";
|
";
|
||||||
if ($br!= ''){
|
if ($br!= ''){
|
||||||
|
|
||||||
@ -201,11 +207,11 @@ order by CourseID) as cm
|
|||||||
}
|
}
|
||||||
if ($u!= ''){
|
if ($u!= ''){
|
||||||
|
|
||||||
$sql.=" and u.uid = '".$u."'";
|
$sql.=" and cm.uid = '".$u."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
$sql.=" group by ssid,scid,fbatch,lcode,fbatch,fid";
|
$sql.=" group by Student_id,Course_id,Batch_code,Branch_code";
|
||||||
$sql.=" order by sl";
|
$sql.=" order by SL_NO";
|
||||||
$leadDet=$this->db->query($sql);
|
$leadDet=$this->db->query($sql);
|
||||||
$cert_statusDetails = $leadDet->result();
|
$cert_statusDetails = $leadDet->result();
|
||||||
if (count($cert_statusDetails) > 0) {
|
if (count($cert_statusDetails) > 0) {
|
||||||
@ -221,10 +227,10 @@ order by CourseID) as cm
|
|||||||
}
|
}
|
||||||
public function mark_cert_status($bat=null,$br=null,$u=null,$from=null,$to=null){
|
public function mark_cert_status($bat=null,$br=null,$u=null,$from=null,$to=null){
|
||||||
|
|
||||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,sfp.fid,std.name,ams.certname,sms.ccmts,ams.acmts,std.father,std.phone,sms.cid as scid,sms.lcode,sms.cdate,ams.adate as adate,cfd.syear,sfs.batch as fbatch,cm.course,cm.uname,sms.sem,list.status,alist.astatus,sfs.cid as fcid,sfs.cf as crsfee,sfs.stf as stf,sfs.others as others,(sfs.cf + sfs.stf + sfs.others) as total,sfp.bamount as bamount,sfp.bdate as bdate,sfp.billno,((sfs.cf + sfs.stf + sfs.others)-sfp.bamount) as balance
|
$sql = "select @s:=@s+1 SL_NO,sms.sid as Student_id,scd.eid as Enrollment_id,std.name as Student_name,std.father as Father_name,std.phone as Phone_number,sms.cid as Course_id,sfs.batch as Batch_code,sms.branch as Branch_code,cm.course as course_name,cm.uname as University,sfp.bdate as Document_fee_paid_date,((sfs.cf + sfs.stf + sfs.others)-sfp.bamount) as Balance_fee,cfd.syear as Sem_year,sms.sem as Sem,list.status as Markcard_status,sms.mdate as Markcard_date,sms.mcmts as Markcard_comments,ams.certname as Certificate_name,alist.astatus as Certificate_status,ams.adate as Certificate_date,ams.acmts as Certificate_comments
|
||||||
from (SELECT @s:= 0) AS s,
|
from (SELECT @s:= 0) AS s,
|
||||||
(SELECT ID,StudentID as sid,CourseID as cid,BranchCode as branch,ListCode as lcode,
|
(SELECT ID,StudentID as sid,CourseID as cid,BranchCode as branch,ListCode as lcode,
|
||||||
CertificationType as ctype,CDate as cdate,Sem as sem,Comments as ccmts
|
CertificationType as ctype,CDate as mdate,Sem as sem,Comments as mcmts
|
||||||
FROM T_CertificationStatus
|
FROM T_CertificationStatus
|
||||||
WHERE ID IN (SELECT max(ID) FROM T_CertificationStatus group by StudentID,CourseID,BranchCode,Sem)
|
WHERE ID IN (SELECT max(ID) FROM T_CertificationStatus group by StudentID,CourseID,BranchCode,Sem)
|
||||||
group by sid,sem,cid,lcode,branch) as sms
|
group by sid,sem,cid,lcode,branch) as sms
|
||||||
@ -242,6 +248,7 @@ left join
|
|||||||
as sfs on sfs.sid=sms.sid and sms.cid=sfs.ftype
|
as sfs on sfs.sid=sms.sid and sms.cid=sfs.ftype
|
||||||
left join
|
left join
|
||||||
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
||||||
|
where IsActive = 1
|
||||||
group by sid,fid,billno)
|
group by sid,fid,billno)
|
||||||
as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
||||||
left join
|
left join
|
||||||
@ -260,9 +267,9 @@ left join
|
|||||||
order by CourseID)
|
order by CourseID)
|
||||||
as cm on cm.cid=cfd.ccid
|
as cm on cm.cid=cfd.ccid
|
||||||
left join
|
left join
|
||||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father
|
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||||
FROM T_StudentDetails) as std on std.sid=sms.sid
|
left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sms.cid and scd.branch=sms.branch
|
||||||
where sms.sid != 'null'
|
where std.active = 1
|
||||||
";
|
";
|
||||||
if ($br!= ''){
|
if ($br!= ''){
|
||||||
|
|
||||||
@ -283,12 +290,12 @@ left join
|
|||||||
$fromd= date("Y-m-d",strtotime($from));
|
$fromd= date("Y-m-d",strtotime($from));
|
||||||
$tod=date("Y-m-d",strtotime($to));
|
$tod=date("Y-m-d",strtotime($to));
|
||||||
|
|
||||||
$sql.="and sms.cdate >= '".$fromd."'
|
$sql.="and sfp.bdate >= '".$fromd."'
|
||||||
and sms.cdate <= '".$tod."'";
|
and sfp.bdate <= '".$tod."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
$sql.=" group by ssid,scid,fbatch,fbatch,fid,sem";
|
$sql.=" group by Student_id,Course_id,Batch_code,Branch_code,Sem";
|
||||||
$sql.=" order by sl";
|
$sql.=" order by SL_NO";
|
||||||
|
|
||||||
$leadDet=$this->db->query($sql);
|
$leadDet=$this->db->query($sql);
|
||||||
$mcert_statusDetails = $leadDet->result();
|
$mcert_statusDetails = $leadDet->result();
|
||||||
@ -305,7 +312,7 @@ left join
|
|||||||
}
|
}
|
||||||
public function expense($from=null,$to=null){
|
public function expense($from=null,$to=null){
|
||||||
|
|
||||||
$sql = "SELECT dbm.Date as date,exp.TypeName as exp_name,sum(dbm.Amount) as amount FROM T_Income_Outcome_Master exp
|
$sql = "SELECT dbm.Date as date,exp.TypeName as Expense_name,sum(dbm.Amount) as Amount FROM T_Income_Outcome_Master exp
|
||||||
join T_DayBookMaster dbm on dbm.Type=exp.ID
|
join T_DayBookMaster dbm on dbm.Type=exp.ID
|
||||||
where dbm.Name = 'I001' and dbm.Status = 'Approved'
|
where dbm.Name = 'I001' and dbm.Status = 'Approved'
|
||||||
";
|
";
|
||||||
@ -318,7 +325,7 @@ left join
|
|||||||
and dbm.Date <= '".$tod."'";
|
and dbm.Date <= '".$tod."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
$sql.=" group by exp_name";
|
$sql.=" group by Expense_name";
|
||||||
|
|
||||||
|
|
||||||
$leadDet=$this->db->query($sql);
|
$leadDet=$this->db->query($sql);
|
||||||
@ -336,7 +343,7 @@ left join
|
|||||||
}
|
}
|
||||||
public function answer_booklet($bat=null,$br=null,$u=null){
|
public function answer_booklet($bat=null,$br=null,$u=null){
|
||||||
|
|
||||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,sfp.fid,std.name,std.father,std.phone,sms.cid as scid,sms.sem,sms.lcode,sms.adate as adate,cfd.syear,sfs.batch as fbatch,cm.course,cm.uname,list.status,sfs.cid as fcid,sfs.cf as crsfee,sfs.stf as stf,sfs.others as others,(sfs.cf + sfs.stf + sfs.others) as total,sum(sfp.bamount) as bamount,sfp.bdate as bdate,sfp.billno,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as balance
|
$sql = "select @s:=@s+1 SL_NO,sms.sid as Student_id,scd.eid as Enrollment_id,std.name as Student_name,std.father as Father_name,std.phone as Phone_number,sms.cid as Course_id,sfs.batch as Batch_code,sms.branch as Branch_code,sms.adate as Date,cfd.syear as Sem_year,sms.sem as Sem,cm.course as Course_name,cm.uname as University,list.status as Status
|
||||||
from (SELECT @s:= 0) AS s,
|
from (SELECT @s:= 0) AS s,
|
||||||
(SELECT ID,StudentID as sid,CourseID as cid,BranchCode as branch,ListCode as lcode,AnsDate as
|
(SELECT ID,StudentID as sid,CourseID as cid,BranchCode as branch,ListCode as lcode,AnsDate as
|
||||||
adate,Sem as sem FROM T_AnswerBookletStatus
|
adate,Sem as sem FROM T_AnswerBookletStatus
|
||||||
@ -349,6 +356,7 @@ left join
|
|||||||
as sfs on sfs.sid=sms.sid and sms.cid=sfs.ftype
|
as sfs on sfs.sid=sms.sid and sms.cid=sfs.ftype
|
||||||
left join
|
left join
|
||||||
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
||||||
|
where IsActive = 1
|
||||||
group by sid,fid,billno)
|
group by sid,fid,billno)
|
||||||
as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
||||||
left join
|
left join
|
||||||
@ -364,9 +372,9 @@ left join
|
|||||||
order by CourseID)
|
order by CourseID)
|
||||||
as cm on cm.cid=cfd.ccid
|
as cm on cm.cid=cfd.ccid
|
||||||
left join
|
left join
|
||||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father
|
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||||
FROM T_StudentDetails) as std on std.sid=sms.sid
|
left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sms.cid and scd.branch=sms.branch
|
||||||
where sms.sid != 'null'
|
where std.active = 1
|
||||||
";
|
";
|
||||||
|
|
||||||
if ($br!= ''){
|
if ($br!= ''){
|
||||||
@ -384,8 +392,8 @@ left join
|
|||||||
$sql.=" and cm.uid = '".$u."'";
|
$sql.=" and cm.uid = '".$u."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
$sql.=" group by ssid,scid,fbatch,lcode,fbatch,fid,sem";
|
$sql.=" group by Student_id,Course_id,Batch_code,Branch_code,Sem";
|
||||||
$sql.=" order by sl";
|
$sql.=" order by SL_NO";
|
||||||
|
|
||||||
|
|
||||||
$leadDet=$this->db->query($sql);
|
$leadDet=$this->db->query($sql);
|
||||||
@ -403,7 +411,7 @@ left join
|
|||||||
}
|
}
|
||||||
public function app_pending($bat=null,$br=null,$u=null){
|
public function app_pending($bat=null,$br=null,$u=null){
|
||||||
|
|
||||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,sfp.fid,std.name,std.father,std.phone,sms.cid as scid,sms.lcode,sms.adate as adate,cfd.syear,sfs.batch as fbatch,cm.course,cm.uname,list.status,sfs.cid as fcid,sfs.cf as crsfee,sfs.stf as stf,sfs.others as others,(sfs.cf + sfs.stf + sfs.others) as total,sum(sfp.bamount) as bamount,sfp.bdate as bdate,sfp.billno,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as balance
|
$sql = "select @s:=@s+1 SL_NO,sms.sid as Student_id,scd.eid as Enrollment_id,std.name as Student_name,std.father as Father_name,std.phone as Phone_number,sms.cid as Course_id,cfd.syear as Sem_year,sfs.batch as Batch_code,sms.branch as Branch_code,cm.course as Course_name,cm.uname as University,list.status as Status,sfp.bdate as Admission_date
|
||||||
from (SELECT @s:= 0) AS s,
|
from (SELECT @s:= 0) AS s,
|
||||||
(SELECT ID,StudentID as sid,CourseID as cid,app.BranchCode as branch,ListCode as lcode,AppDate as adate,Comments as acmts,CertificationType as ctype,CertificateName as certname FROM T_ApplicationStatus as app
|
(SELECT ID,StudentID as sid,CourseID as cid,app.BranchCode as branch,ListCode as lcode,AppDate as adate,Comments as acmts,CertificationType as ctype,CertificateName as certname FROM T_ApplicationStatus as app
|
||||||
left join T_CertificationMaster cm on cm.CertificationID=app.CertificationType
|
left join T_CertificationMaster cm on cm.CertificationID=app.CertificationType
|
||||||
@ -416,7 +424,7 @@ left join
|
|||||||
as sfs on sfs.sid=sms.sid and sms.cid=sfs.cid
|
as sfs on sfs.sid=sms.sid and sms.cid=sfs.cid
|
||||||
left join
|
left join
|
||||||
(SELECT ID,StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
(SELECT ID,StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
||||||
WHERE ID IN (SELECT min(ID) FROM T_Students_Fees_PaidDetails group by StudentID,FeesID)
|
WHERE IsActive = 1 and ID IN (SELECT min(ID) FROM T_Students_Fees_PaidDetails group by StudentID,FeesID)
|
||||||
group by sid,fid,billno)
|
group by sid,fid,billno)
|
||||||
as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
||||||
left join
|
left join
|
||||||
@ -432,9 +440,9 @@ left join
|
|||||||
order by CourseID)
|
order by CourseID)
|
||||||
as cm on cm.cid=cfd.ccid
|
as cm on cm.cid=cfd.ccid
|
||||||
left join
|
left join
|
||||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father
|
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||||
FROM T_StudentDetails) as std on std.sid=sms.sid
|
left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sms.cid and scd.branch=sms.branch
|
||||||
where sms.sid != 'null'
|
where std.active = 1
|
||||||
";
|
";
|
||||||
|
|
||||||
if ($br!= ''){
|
if ($br!= ''){
|
||||||
@ -452,8 +460,8 @@ left join
|
|||||||
$sql.=" and cm.uid = '".$u."'";
|
$sql.=" and cm.uid = '".$u."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
$sql.=" group by ssid,scid,fbatch,lcode,fbatch,fid";
|
$sql.=" group by Student_id,Course_id,Batch_code,Branch_code";
|
||||||
$sql.=" order by sl";
|
$sql.=" order by SL_NO";
|
||||||
|
|
||||||
|
|
||||||
$leadDet=$this->db->query($sql);
|
$leadDet=$this->db->query($sql);
|
||||||
@ -471,57 +479,50 @@ left join
|
|||||||
}
|
}
|
||||||
public function doc_pending($bat=null,$br=null,$u=null){
|
public function doc_pending($bat=null,$br=null,$u=null){
|
||||||
|
|
||||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,sfp.fid,std.name,std.father,std.phone,sms.cid as scid,sms.lcode,sms.adate as adate,cfd.syear,sfs.batch as fbatch,cm.course,cm.uname,list.status,sfs.cid as fcid,sfs.cf as crsfee,sfs.stf as stf,sfs.others as others,(sfs.cf + sfs.stf + sfs.others) as total,sum(sfp.bamount) as bamount,sfp.bdate as bdate,sfp.billno,((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)) as balance
|
$sql = "SELECT @s:=@s+1 SL_NO,sdt.StudentID as Student_id,scd.eid as Enrollment_id,sfb.bdate as Admission_date,std.name Student_name,std.father as Father_name,std.phone as Phone_number,lt.CreatedBranch as Branch_code,sfb.batch as Batch_code,lt.Course as Course_name,lt.University as University,uc.cid as Course_id,cfd.syear as Sem_year,sdt.StatusName as Status
|
||||||
from (SELECT @s:= 0) AS s,
|
FROM (SELECT @s:= 0) AS s,T_Student_DocumentTrack_Details as sdt
|
||||||
(SELECT ID,StudentID as sid,CourseID as cid,app.BranchCode as branch,ListCode as lcode,AppDate as adate,Comments as acmts,CertificationType as ctype,CertificateName as certname FROM T_ApplicationStatus as app
|
join T_Lead_Tracking as lt on lt.PendingDocStatus=sdt.ID
|
||||||
left join T_CertificationMaster cm on cm.CertificationID=app.CertificationType
|
left join
|
||||||
where CertificateName != 'APPLICATION' and ID IN (SELECT max(ID) FROM T_ApplicationStatus group by StudentID,CourseID,BranchCode)
|
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sdt.StudentID
|
||||||
group by sid,cid,lcode,branch) as sms
|
left join
|
||||||
left join
|
|
||||||
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype, sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others
|
|
||||||
FROM T_Students_Fees_Status
|
|
||||||
group by sid,fid,cid,batch)
|
|
||||||
as sfs on sfs.sid=sms.sid and sms.cid=sfs.cid
|
|
||||||
left join
|
|
||||||
(SELECT ID,StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
|
||||||
WHERE ID IN (SELECT min(ID) FROM T_Students_Fees_PaidDetails group by StudentID,FeesID)
|
|
||||||
group by sid,fid,billno)
|
|
||||||
as sfp on sfp.sid=sfs.sid and sfp.fid=sfs.fid
|
|
||||||
left join
|
|
||||||
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd on cfd.ccid=sfs.cid and cfd.cid=sfs.ftype
|
|
||||||
left join
|
|
||||||
(SELECT ListCode as lcode,ListName as status FROM T_PickListDetails)
|
|
||||||
as list on list.lcode=sms.lcode
|
|
||||||
left join
|
|
||||||
(SELECT CourseID as cid,cm.UniversityID as cuid,u.UniversityID as uid,CourseName as course,
|
(SELECT CourseID as cid,cm.UniversityID as cuid,u.UniversityID as uid,CourseName as course,
|
||||||
UniversityName as uname,cm.BranchCode as branch FROM T_CourseMaster as cm
|
UniversityName as uname,cm.BranchCode as branch FROM T_CourseMaster as cm
|
||||||
left join T_UniversityMaster as u on u.UniversityID=cm.UniversityID
|
left join T_UniversityMaster as u on u.UniversityID=cm.UniversityID
|
||||||
group by cid
|
group by cid
|
||||||
order by CourseID)
|
order by CourseID) as uc on uc.course=lt.Course
|
||||||
as cm on cm.cid=cfd.ccid
|
left join
|
||||||
left join
|
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd on cfd.ccid=uc.cid
|
||||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father
|
left join
|
||||||
FROM T_StudentDetails) as std on std.sid=sms.sid
|
(select sfp.sid,sfp.bdate,sfs.batch,sfs.cid from (SELECT ID,StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount,BillNO as billno FROM T_Students_Fees_PaidDetails
|
||||||
where sms.sid != 'null'
|
WHERE IsActive = 1 and ID IN (SELECT min(ID) FROM T_Students_Fees_PaidDetails group by StudentID,FeesID)
|
||||||
|
group by sid,fid,billno) as sfp
|
||||||
|
join
|
||||||
|
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype,sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others
|
||||||
|
FROM T_Students_Fees_Status
|
||||||
|
group by sid,fid,cid,batch) as sfs on sfs.fid=sfp.fid and sfs.sid=sfp.sid
|
||||||
|
group by sfs.sid,sfs.cid) as sfb on sfb.sid=sdt.StudentID and sfb.cid=uc.cid
|
||||||
|
left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sdt.StudentID and scd.cid=uc.cid and scd.branch=uc.branch
|
||||||
|
where std.active = 1
|
||||||
|
|
||||||
";
|
";
|
||||||
|
|
||||||
if ($br!= ''){
|
if ($br!= ''){
|
||||||
|
|
||||||
$sql.=" and sms.branch = '".$br."'";
|
$sql.=" and lt.CreatedBranch = '".$br."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($bat!= ''){
|
if ($bat!= ''){
|
||||||
|
|
||||||
$sql.=" and b.bcode = '".$bat."'";
|
$sql.=" and sfb.batch = '".$bat."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($u!= ''){
|
if ($u!= ''){
|
||||||
|
|
||||||
$sql.=" and cm.uid = '".$u."'";
|
$sql.=" and uc.cuid = '".$u."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
$sql.=" group by ssid,scid,fbatch,lcode,fbatch,fid";
|
$sql.="group by Student_id,Course_id,Batch_code,Branch_code ";
|
||||||
$sql.=" order by sl";
|
$sql.=" order by SL_NO";
|
||||||
|
|
||||||
|
|
||||||
$leadDet=$this->db->query($sql);
|
$leadDet=$this->db->query($sql);
|
||||||
@ -539,19 +540,20 @@ left join
|
|||||||
}
|
}
|
||||||
public function wav_ref($bat=null,$br=null,$u=null){
|
public function wav_ref($bat=null,$br=null,$u=null){
|
||||||
|
|
||||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,std.name,std.father,std.phone,cfd.syear,sfs.batch as fbatch,cm.course,cm.uname,sfs.cid as scid,sms.waiver_bill,sms.waiver,sms.referal_bill,sms.referal,sms.cmts
|
$sql = "select @s:=@s+1 SL_NO,sms.sid as Student_id,scd.eid as Enrollment_id,std.name as Student_name,std.father as Father_name,std.phone as Phone_number,cfd.syear as Sem_year,sfs.batch as Batch_code,scd.branch as Branch_code,sfs.cid as Course_id,cm.course as Course_name,cm.uname as University,sms.waiver_bill as Waiver_bill,sms.waiver as Waiver_amount,sms.referal_bill as Referal_bill,sms.referal as Referal_amount,sms.cmts as Comments
|
||||||
from (SELECT @s:= 0) AS s,
|
from (SELECT @s:= 0) AS s,
|
||||||
(SELECT StudentID as sid,CommentsForStudent as cmts,FeesId as fid,
|
(SELECT StudentID as sid,CommentsForStudent as cmts,FeesId as fid,
|
||||||
IF(ModeOfPayment = 'WAIVER', BillNO,0) AS waiver_bill,
|
IF(ModeOfPayment = 'WAIVER', BillNO,0) AS waiver_bill,
|
||||||
IF(ModeOfPayment = 'WAIVER', sum(BillAmount), 0) AS waiver,
|
IF(ModeOfPayment = 'WAIVER', sum(BillAmount), 0) AS waiver,
|
||||||
IF(ModeOfPayment = 'REFERRAL', BillNO, 0) AS referal_bill,
|
IF(ModeOfPayment = 'REFERRAL', BillNO, 0) AS referal_bill,
|
||||||
IF(ModeOfPayment = 'REFERRAL', sum(BillAmount), 0) AS referal FROM T_Students_Fees_PaidDetails
|
IF(ModeOfPayment = 'REFERRAL', sum(BillAmount), 0) AS referal FROM T_Students_Fees_PaidDetails
|
||||||
|
where IsActive = 1
|
||||||
group by waiver_bill,referal_bill) as sms
|
group by waiver_bill,referal_bill) as sms
|
||||||
left join
|
left join
|
||||||
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype FROM T_Students_Fees_Status
|
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype FROM T_Students_Fees_Status
|
||||||
group by sid,cid,batch) as sfs on sfs.sid=sms.sid and sfs.fid=sms.fid
|
group by sid,cid,batch) as sfs on sfs.sid=sms.sid and sfs.fid=sms.fid
|
||||||
left join
|
left join
|
||||||
(SELECT StudentID as sid,UniversityID as uid,CourseID as cid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sfs.cid
|
(SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sfs.cid
|
||||||
|
|
||||||
left join
|
left join
|
||||||
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd on cfd.ccid=scd.cid and cfd.cid=sfs.ftype
|
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd on cfd.ccid=scd.cid and cfd.cid=sfs.ftype
|
||||||
@ -563,9 +565,8 @@ left join
|
|||||||
order by CourseID)
|
order by CourseID)
|
||||||
as cm on cm.cid=cfd.ccid
|
as cm on cm.cid=cfd.ccid
|
||||||
left join
|
left join
|
||||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father
|
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||||
FROM T_StudentDetails) as std on std.sid=sms.sid
|
where std.active = 1
|
||||||
where sms.sid != 'null'
|
|
||||||
|
|
||||||
";
|
";
|
||||||
|
|
||||||
@ -584,8 +585,8 @@ left join
|
|||||||
$sql.=" and cm.uid = '".$u."'";
|
$sql.=" and cm.uid = '".$u."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
$sql.=" group by ssid,scid,fbatch,fbatch,waiver_bill,referal_bill";
|
$sql.=" group by Student_id,Course_id,Batch_code,Branch_code,Waiver_bill,Referal_bill";
|
||||||
$sql.=" order by sl";
|
$sql.=" order by SL_NO";
|
||||||
|
|
||||||
|
|
||||||
$leadDet=$this->db->query($sql);
|
$leadDet=$this->db->query($sql);
|
||||||
@ -603,7 +604,7 @@ left join
|
|||||||
}
|
}
|
||||||
public function examfee($bat=null,$br=null,$u=null){
|
public function examfee($bat=null,$br=null,$u=null){
|
||||||
|
|
||||||
$sql = "select @s:=@s+1 sl,sms.sid as ssid,std.name,std.father,std.phone,cfd.syear,sfs.batch as fbatch,cm.course,cm.uname,sfs.cid as scid,sms.cmts,sms.stf,sms.branch
|
$sql = "select @s:=@s+1 SL_NO,sms.sid as Student_id,scd.eid as Enrollment_id,std.name as Student_name,std.father as Father_name,std.phone as Phone_number,cfd.syear as Sem_year,sfs.batch as Batch_code,cm.course as Course_name,cm.uname as University,sfs.cid as Course_id,sms.cmts as Comments,sms.stf as Amount,sms.branch as Branch_code
|
||||||
from (SELECT @s:= 0) AS s,
|
from (SELECT @s:= 0) AS s,
|
||||||
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype,sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others,Comments as cmts,BranchCode as branch FROM T_Students_Fees_Status
|
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype,sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others,Comments as cmts,BranchCode as branch FROM T_Students_Fees_Status
|
||||||
where STFOrWR != ''
|
where STFOrWR != ''
|
||||||
@ -612,7 +613,7 @@ left join
|
|||||||
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype FROM T_Students_Fees_Status
|
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype FROM T_Students_Fees_Status
|
||||||
group by sid,cid,batch) as sfs on sfs.sid=sms.sid and sfs.fid=sms.fid
|
group by sid,cid,batch) as sfs on sfs.sid=sms.sid and sfs.fid=sms.fid
|
||||||
left join
|
left join
|
||||||
(SELECT StudentID as sid,UniversityID as uid,CourseID as cid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sfs.cid
|
(SELECT StudentID as sid,UniversityID as uid,CourseID as cid,EnrollmentID as eid,BranchID as branch FROM T_Student_CourseDetails) as scd on scd.sid=sms.sid and scd.cid=sfs.cid
|
||||||
|
|
||||||
left join
|
left join
|
||||||
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd on cfd.ccid=scd.cid and cfd.cid=sfs.ftype
|
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd on cfd.ccid=scd.cid and cfd.cid=sfs.ftype
|
||||||
@ -624,9 +625,9 @@ left join
|
|||||||
order by CourseID)
|
order by CourseID)
|
||||||
as cm on cm.cid=cfd.ccid
|
as cm on cm.cid=cfd.ccid
|
||||||
left join
|
left join
|
||||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father
|
(SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sms.sid
|
||||||
FROM T_StudentDetails) as std on std.sid=sms.sid
|
where std.active = 1
|
||||||
where sms.sid != 'null'
|
|
||||||
";
|
";
|
||||||
|
|
||||||
if ($br!= ''){
|
if ($br!= ''){
|
||||||
@ -644,8 +645,8 @@ left join
|
|||||||
$sql.=" and cm.uid = '".$u."'";
|
$sql.=" and cm.uid = '".$u."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
$sql.=" group by ssid,scid,fbatch,fbatch";
|
$sql.=" group by Student_id,Course_id,Batch_code,Branch_code";
|
||||||
$sql.=" order by sl";
|
$sql.=" order by SL_NO";
|
||||||
|
|
||||||
|
|
||||||
$leadDet=$this->db->query($sql);
|
$leadDet=$this->db->query($sql);
|
||||||
@ -662,61 +663,54 @@ left join
|
|||||||
|
|
||||||
}
|
}
|
||||||
public function balfee($bat=null,$br=null,$u=null){
|
public function balfee($bat=null,$br=null,$u=null){
|
||||||
$count="SELECT distinct StudentID as sid FROM T_Students_Fees_PaidDetails";
|
|
||||||
$sc=$this->db->query($count);
|
$sql = "SELECT sfp.StudentID as Student_id,std.name as Student_name,std.father as Father_name,std.phone as Phone_number,sfs.batch as Batch_code,sfs.cid as Course_id,cm.course as Course_name,u.uname as University,sfs.branch as Branch_code,cfd.syear as Sem_year,(sfs.cf + sfs.stf + sfs.others) as Total,(sfb.bamount) as Paid_fee,((sfs.cf + sfs.stf + sfs.others) - (sfb.bamount)) as balance,
|
||||||
$ct = $sc->result();
|
MAX(CASE WHEN Installment = 1 THEN sfp.BillNO END) as billno1,
|
||||||
$results=array();
|
MAX(CASE WHEN Installment = 1 THEN sfp.BillAmount END) as billamt1,
|
||||||
$answer=array();
|
MAX(CASE WHEN Installment = 2 THEN sfp.BillNO END) as billno2,
|
||||||
$sid= array();
|
MAX(CASE WHEN Installment = 2 THEN sfp.BillAmount END) as billamt2,
|
||||||
|
MAX(CASE WHEN Installment = 3 THEN sfp.BillNO END) as billno3,
|
||||||
$yy = new RecursiveIteratorIterator(new RecursiveArrayIterator($ct));
|
MAX(CASE WHEN Installment = 3 THEN sfp.BillAmount END) as billamt3,
|
||||||
foreach($yy as $t) {
|
MAX(CASE WHEN Installment = 4 THEN sfp.BillNO END) as billno4,
|
||||||
$sid[]=$t;
|
MAX(CASE WHEN Installment = 4 THEN sfp.BillAmount END) as billamt4,
|
||||||
}
|
MAX(CASE WHEN Installment = 5 THEN sfp.BillNO END) as billno5,
|
||||||
$s=count($sid);
|
MAX(CASE WHEN Installment = 5 THEN sfp.BillAmount END) as billamt5,
|
||||||
// echo $sid;
|
MAX(CASE WHEN Installment = 6 THEN sfp.BillNO END) as billno6,
|
||||||
// print_r($s);die();
|
MAX(CASE WHEN Installment = 6 THEN sfp.BillAmount END) as billamt6,
|
||||||
|
MAX(CASE WHEN Installment = 7 THEN sfp.BillNO END) as billno7,
|
||||||
// while($sid<=$s){
|
MAX(CASE WHEN Installment = 7 THEN sfp.BillAmount END) as billamt7,
|
||||||
for($i=0;$i<$s;$i++){
|
MAX(CASE WHEN Installment = 8 THEN sfp.BillNO END) as billno8,
|
||||||
$sql = " SELECT @s:=@s+1 sl,ID,StudentID as sid,std.name as name,std.father as father,std.phone as phone,b.batch as batch,br.bname as bname,sfs.cid as cid,u.uname as uname,cm.course as course,cfd.syear as syear,sum(BillAmount) as bamount,sum(sfs.cf) as crsfee,sum(sfs.stf) as stf,sum(sfs.others) as others,(sum(sfs.cf) + sum(sfs.stf) + sum(sfs.others)) as total,(sum(sfs.cf) + (sum(sfs.stf) + sum(sfs.others)) - ifnull(sfp.BillAmount,0)) as balance,InternalComments as cmts,
|
MAX(CASE WHEN Installment = 8 THEN sfp.BillAmount END) as billamt8,
|
||||||
(SELECT BillNO as billno FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 0,1) AS 1billno,
|
MAX(CASE WHEN Installment = 9 THEN sfp.BillNO END) as billno9,
|
||||||
(SELECT BillAmount as billamt FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 0,1) AS 1billamt,
|
MAX(CASE WHEN Installment = 9 THEN sfp.BillAmount END) as billamt9,
|
||||||
(SELECT BillNO as billno FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 1,1) AS 2billno,
|
MAX(CASE WHEN Installment = 10 THEN sfp.BillNO END) as billno10,
|
||||||
(SELECT BillAmount as billamt FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 1,1) AS 2billamt,
|
MAX(CASE WHEN Installment = 10 THEN sfp.BillAmount END) as billamt10
|
||||||
(SELECT BillNO as billno FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 2,1) AS 3billno,
|
FROM T_Students_Fees_PaidDetails as sfp
|
||||||
(SELECT BillAmount as billamt FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 2,1) AS 3billamt,
|
left join (SELECT FeesID as fid,BatchCode as batch,BranchCode as branch,StudentID as sid,CourseID as cid,FeesType as ftype,sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others,Comments as cmts FROM T_Students_Fees_Status
|
||||||
(SELECT BillNO as billno FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 3,1) AS 4billno,
|
group by fid,sid,batch,branch) as sfs on sfs.fid=sfp.FeesID and sfs.sid=sfp.StudentID
|
||||||
(SELECT BillAmount as billamt FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 3,1) AS 4billamt,
|
left join
|
||||||
(SELECT BillNO as billno FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 4,1) AS 5billno,
|
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details) as cfd
|
||||||
(SELECT BillAmount as billamt FROM T_Students_Fees_PaidDetails WHERE StudentID = '".$sid[$i]."' limit 4,1) AS 5billamt
|
on cfd.ccid=sfs.cid
|
||||||
FROM T_Students_Fees_PaidDetails as sfp
|
left join
|
||||||
left join
|
(SELECT CourseID as cid,UniversityID as uid,CourseName as course FROM T_CourseMaster) as cm
|
||||||
(SELECT FeesID as fid,BatchCode as batch,StudentID as sid,CourseID as cid,FeesType as ftype,sum(CourseFees) as cf,Sum(STFOrWR) as stf,sum(Others) as others,Comments as cmts FROM T_Students_Fees_Status
|
on cm.cid=sfs.cid
|
||||||
group by sid,batch) as sfs on sfs.sid=sfp.StudentID
|
|
||||||
left join
|
|
||||||
(SELECT ID as cid,CourseID as ccid,FeesType as ftype,Sem_Year as syear FROM T_Course_Fees_Details, (SELECT @s:= 0) AS s) as cfd
|
|
||||||
on cfd.cid=sfs.cid
|
|
||||||
left join
|
|
||||||
(SELECT CourseID as cid,UniversityID as uid,CourseName as course FROM T_CourseMaster) as cm
|
|
||||||
on cm.cid=sfs.cid
|
|
||||||
left join
|
|
||||||
(SELECT UniversityID as uid,UniversityName as uname FROM T_UniversityMaster) as u
|
|
||||||
on u.uid=cm.uid
|
|
||||||
left join
|
|
||||||
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father FROM T_StudentDetails) as std on std.sid=sfp.StudentID
|
|
||||||
left join
|
left join
|
||||||
(SELECT BatchCode as bcode,BatchName as batch FROM T_BatchMaster) as b on b.bcode=sfs.batch
|
(SELECT UniversityID as uid,UniversityName as uname FROM T_UniversityMaster) as u
|
||||||
left join
|
on u.uid=cm.uid
|
||||||
(SELECT StudentID as sid,UniversityID as uid,CourseID as cid,BranchID as bid FROM T_Student_CourseDetails) as scd on scd.sid=sfp.StudentID
|
left join
|
||||||
left join
|
(SELECT StudentID as sid,MobileNumber as phone,FirstName as name,Fathername as father,IsActive as active FROM T_StudentDetails where IsActive = 1) as std on std.sid=sfp.StudentID
|
||||||
(SELECT BranchCode as brcode,BranchName as bname FROM T_BranchMaster) as br on br.brcode=scd.bid
|
left join
|
||||||
where StudentID = '".$sid[$i]."'
|
(SELECT BatchCode as bcode,BatchName as batchname FROM T_BatchMaster) as b on b.bcode=sfs.batch
|
||||||
";
|
left join
|
||||||
|
(SELECT BranchCode as brcode,BranchName as bname FROM T_BranchMaster) as br on br.brcode=sfp.UpdatedBy
|
||||||
|
left join
|
||||||
|
(SELECT StudentID as sid,FeesID as fid,BillNo as billno,sum(BillAmount) as bamount FROM T_Students_Fees_PaidDetails
|
||||||
|
group by sid,fid) as sfb on sfb.sid=sfp.StudentID and sfb.fid=sfp.FeesID
|
||||||
|
where sfp.IsActive = 1 ";
|
||||||
|
|
||||||
if ($br!= ''){
|
if ($br!= ''){
|
||||||
|
|
||||||
$sql.=" and sms.branch = '".$br."'";
|
$sql.=" and br.brcode = '".$br."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($bat!= ''){
|
if ($bat!= ''){
|
||||||
@ -729,13 +723,14 @@ left join
|
|||||||
$sql.=" and u.uid = '".$u."'";
|
$sql.=" and u.uid = '".$u."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
$sql.=" group by sid,cid,batch";
|
$sql.=" group by Student_id,Batch_code,Course_id,Branch_code";
|
||||||
$sql.=" order by sl";
|
|
||||||
|
|
||||||
|
|
||||||
$leadDet=$this->db->query($sql);
|
$leadDet=$this->db->query($sql);
|
||||||
$answer[] = $leadDet->result();
|
$answer = $leadDet->result();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (count($answer) > 0) {
|
if (count($answer) > 0) {
|
||||||
$results['balfeeList'] = true;
|
$results['balfeeList'] = true;
|
||||||
@ -744,7 +739,7 @@ left join
|
|||||||
$results['balfeeList'] = false;
|
$results['balfeeList'] = false;
|
||||||
$results['message'] = 'No record found';
|
$results['message'] = 'No record found';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return $results;
|
return $results;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -64,7 +64,26 @@ app.controller('report_ans_bookletCtrl', ["$scope", "API_POINTS", "$http", "Swee
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
var mystyle = {
|
||||||
|
sheetid: 'ANSWER BOOKLET STATUS REPORT',
|
||||||
|
headers: true,
|
||||||
|
caption: {
|
||||||
|
title:'ANSWER BOOKLET STATUS REPORT',
|
||||||
|
width: '300px',
|
||||||
|
style:'font-size:50px;'
|
||||||
|
},
|
||||||
|
// style:'background:#00FF00',
|
||||||
|
column: {
|
||||||
|
style:'font-size:10px'
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$scope.exportData = function () {
|
||||||
|
alasql('SELECT * INTO XLS("Answer_booklet_status.xls",?) FROM ?',[mystyle,$scope.ans_book_data]);
|
||||||
|
};
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -64,7 +64,26 @@ app.controller('report_app_pendingCtrl', ["$scope", "API_POINTS", "$http", "Swee
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
var mystyle = {
|
||||||
|
sheetid: 'APPLICAITON PENDING STUDENT LIST REPORT',
|
||||||
|
headers: true,
|
||||||
|
caption: {
|
||||||
|
title:'APPLICAITON PENDING STUDENT LIST REPORT',
|
||||||
|
width: '300px',
|
||||||
|
style:'font-size:50px;'
|
||||||
|
},
|
||||||
|
// style:'background:#00FF00',
|
||||||
|
column: {
|
||||||
|
style:'font-size:10px'
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$scope.exportData = function () {
|
||||||
|
alasql('SELECT * INTO XLS("Application_pending_student_list.xls",?) FROM ?',[mystyle,$scope.app_pending_data]);
|
||||||
|
};
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -3,9 +3,14 @@
|
|||||||
app.controller('report_balfeeCtrl', ["$scope", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', '$window',
|
app.controller('report_balfeeCtrl', ["$scope", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', '$window',
|
||||||
function ($scope, apiPoint, $http, SweetAlert, $state, md5, ipCookie, $window) {
|
function ($scope, apiPoint, $http, SweetAlert, $state, md5, ipCookie, $window) {
|
||||||
|
|
||||||
// DataTables configurable options
|
// to generate serial number
|
||||||
|
// $scope.serial = 1;
|
||||||
|
// $scope.itemPerPage=10
|
||||||
|
// $scope.indexCount = function(newPageNumber){
|
||||||
|
|
||||||
|
// $scope.serial = newPageNumber * $scope.itemPerPage - ($scope.itemPerPage-1);
|
||||||
|
// }
|
||||||
|
//to filter labels
|
||||||
$scope.filters = {
|
$scope.filters = {
|
||||||
"branch": "",
|
"branch": "",
|
||||||
"university": "",
|
"university": "",
|
||||||
@ -33,9 +38,9 @@ app.controller('report_balfeeCtrl', ["$scope", "API_POINTS", "$http", "SweetAler
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// response data
|
||||||
$scope.onSubmit = function () {
|
$scope.onSubmit = function () {
|
||||||
//alert($scope.batch.name);
|
|
||||||
$scope.balfee_data = '';
|
$scope.balfee_data = '';
|
||||||
$scope.message = '';
|
$scope.message = '';
|
||||||
var response_data = {
|
var response_data = {
|
||||||
@ -64,6 +69,26 @@ app.controller('report_balfeeCtrl', ["$scope", "API_POINTS", "$http", "SweetAler
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
var mystyle = {
|
||||||
|
sheetid: 'BALANCE FEE STATUS REPORT',
|
||||||
|
headers: true,
|
||||||
|
caption: {
|
||||||
|
title:'BALANCE FEE STATUS REPORT',
|
||||||
|
width: '300px',
|
||||||
|
style:'font-size:50px;'
|
||||||
|
},
|
||||||
|
// style:'background:#00FF00',
|
||||||
|
column: {
|
||||||
|
style:'font-size:10px'
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$scope.exportData = function () {
|
||||||
|
alasql('SELECT * INTO XLS("Balancefee_status.xls",?) FROM ?',[mystyle,$scope.balfee_data]);
|
||||||
|
};
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|||||||
@ -62,6 +62,26 @@ app.controller('report_certificateCtrl', ["$scope", "API_POINTS", "$http", "Swee
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
var mystyle = {
|
||||||
|
sheetid: 'CERTIFICATE STATUS REPORT',
|
||||||
|
headers: true,
|
||||||
|
caption: {
|
||||||
|
title:'CERTIFICATE STATUS REPORT',
|
||||||
|
width: '300px',
|
||||||
|
style:'font-size:50px;'
|
||||||
|
},
|
||||||
|
// style:'background:#00FF00',
|
||||||
|
column: {
|
||||||
|
style:'font-size:10px'
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$scope.exportData = function () {
|
||||||
|
alasql('SELECT * INTO XLS("Certificate_status.xls",?) FROM ?',[mystyle,$scope.cert_data]);
|
||||||
|
};
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|||||||
@ -64,7 +64,26 @@ app.controller('report_doc_pendingCtrl', ["$scope", "API_POINTS", "$http", "Swee
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
var mystyle = {
|
||||||
|
sheetid: 'DOCUMENT PENDING STUDENT LIST REPORT',
|
||||||
|
headers: true,
|
||||||
|
caption: {
|
||||||
|
title:'DOCUMENT PENDING STUDENT LIST REPORT',
|
||||||
|
width: '300px',
|
||||||
|
style:'font-size:50px;'
|
||||||
|
},
|
||||||
|
// style:'background:#00FF00',
|
||||||
|
column: {
|
||||||
|
style:'font-size:10px'
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$scope.exportData = function () {
|
||||||
|
alasql('SELECT * INTO XLS("Document_pending_student_list.xls",?) FROM ?',[mystyle,$scope.doc_pending_data]);
|
||||||
|
};
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -62,9 +62,41 @@ app.controller('report_examfeeCtrl', ["$scope", "API_POINTS", "$http", "SweetAle
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
$scope.getstf = function(){
|
||||||
|
var totalf = 0;
|
||||||
|
for(var i = 0; i < $scope.examfee_data.length; i++){
|
||||||
|
var item = $scope.examfee_data[i];
|
||||||
|
totalf += parseFloat(item.Amount);
|
||||||
|
}
|
||||||
|
return totalf; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
var mystyle = {
|
||||||
|
sheetid: 'EXAM WRITING FEE REPORT',
|
||||||
|
headers: true,
|
||||||
|
caption: {
|
||||||
|
title:'EXAM WRITING FEE REPORT',
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
// style:'background:#00FF00',
|
||||||
|
column: {
|
||||||
|
style:'font-size:12px'
|
||||||
|
},
|
||||||
|
|
||||||
|
// column: {style:{Font:{Bold:"1"}}},
|
||||||
|
// rows: {1:{style:{Font:{Color:"#FF0077"}}}},
|
||||||
|
// cells: {1:{1:{
|
||||||
|
// style: {Font:{Color:"#00FFFF"}}
|
||||||
|
// }}}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$scope.exportData = function () {
|
||||||
|
alasql('SELECT * INTO XLS("Exam_writing_fee_report.xls",?) FROM ?',[mystyle,$scope.examfee_data]);
|
||||||
|
};
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -62,7 +62,27 @@ app.controller('report_expenseCtrl', ["$scope", "API_POINTS", "$http", "SweetAle
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var mystyle = {
|
||||||
|
sheetid: 'EXPENSE REPORT',
|
||||||
|
headers: true,
|
||||||
|
caption: {
|
||||||
|
title:'EXPENSE REPORT',
|
||||||
|
width: '300px',
|
||||||
|
style:'font-size:50px;'
|
||||||
|
},
|
||||||
|
// style:'background:#00FF00',
|
||||||
|
column: {
|
||||||
|
style:'font-size:10px'
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$scope.exportData = function () {
|
||||||
|
alasql('SELECT * INTO XLS("Expense_report.xls",?) FROM ?',[mystyle,$scope.expense_data]);
|
||||||
|
};
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -66,7 +66,26 @@ app.controller('report_markcard_certificateCtrl', ["$scope", "API_POINTS", "$htt
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
var mystyle = {
|
||||||
|
sheetid: 'MARKCARD/CERTIFICATE STATUS REPORT',
|
||||||
|
headers: true,
|
||||||
|
caption: {
|
||||||
|
title:'MARKCARD/CERTIFICATE STATUS REPORT',
|
||||||
|
width: '300px',
|
||||||
|
style:'font-size:50px;'
|
||||||
|
},
|
||||||
|
// style:'background:#00FF00',
|
||||||
|
column: {
|
||||||
|
style:'font-size:10px'
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$scope.exportData = function () {
|
||||||
|
alasql('SELECT * INTO XLS("Markcard/Certificate_status.xls",?) FROM ?',[mystyle,$scope.mark_cert_data]);
|
||||||
|
};
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -62,7 +62,30 @@ app.controller('report_markcard_statusCtrl', ["$scope", "API_POINTS", "$http", "
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
var mystyle = {
|
||||||
|
sheetid: 'MARKCARD STATUS REPORT',
|
||||||
|
headers: true,
|
||||||
|
caption: {
|
||||||
|
title:'MARKCARD STATUS REPORT',
|
||||||
|
width: '300px',
|
||||||
|
style:'font-size:50px;'
|
||||||
|
},
|
||||||
|
// style:'background:#00FF00',
|
||||||
|
column: {
|
||||||
|
style:'font-size:10px'
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$scope.exportData = function () {
|
||||||
|
alasql('SELECT * INTO XLS("Markcard_status.xls",?) FROM ?',[mystyle,$scope.markcard_data]);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
/*** controller***/
|
/*** controller***/
|
||||||
app.controller('report_study_material_statusCtrl', ["$scope", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', '$window',
|
app.controller('report_study_material_statusCtrl', ["$scope", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', '$window',
|
||||||
function ($scope, apiPoint, $http, SweetAlert, $state, md5, ipCookie, $window) {
|
function ($scope,apiPoint, $http, SweetAlert, $state, md5, ipCookie, $window, DTOptionsBuilder, DTColumnBuilder) {
|
||||||
|
|
||||||
// DataTables configurable options
|
// DataTables configurable options
|
||||||
|
|
||||||
|
|
||||||
$scope.filters = {
|
$scope.filters = {
|
||||||
@ -27,7 +27,7 @@ app.controller('report_study_material_statusCtrl', ["$scope", "API_POINTS", "$ht
|
|||||||
$scope.batch = response.data.batch;
|
$scope.batch = response.data.batch;
|
||||||
$scope.branch = response.data.branch;
|
$scope.branch = response.data.branch;
|
||||||
$scope.university = response.data.university;
|
$scope.university = response.data.university;
|
||||||
console.log($scope.branch);
|
//console.log($scope.branch);
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -62,6 +62,65 @@ app.controller('report_study_material_statusCtrl', ["$scope", "API_POINTS", "$ht
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
var mystyle = {
|
||||||
|
sheetid: 'STUDY MATERIAL STATUS REPORT',
|
||||||
|
headers: true,
|
||||||
|
caption: {
|
||||||
|
title:'STUDY MATERIAL STATUS REPORT',
|
||||||
|
width: '300px',
|
||||||
|
style:'font-size:50px;'
|
||||||
|
},
|
||||||
|
// style:'background:#00FF00',
|
||||||
|
column: {
|
||||||
|
style:'font-size:10px;'
|
||||||
|
},
|
||||||
|
// row: {
|
||||||
|
// style:'border:1px solid black; padding-left:5px; padding-right:5px'
|
||||||
|
// },
|
||||||
|
// columns: [
|
||||||
|
// {columnid:'email'},
|
||||||
|
// {columnid:'dob', title: 'Birthday', width:300},
|
||||||
|
// {columnid:'name'},
|
||||||
|
// {
|
||||||
|
// columnid:'name',
|
||||||
|
// title: 'Number of letters in name',
|
||||||
|
// width: '300px',
|
||||||
|
// cell: {
|
||||||
|
// value: function(value){return value.length}
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// row: {
|
||||||
|
// style: function(sheet,row,rowidx){
|
||||||
|
// return 'background:'+(rowidx%2?'red':'yellow');
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
// rows: {
|
||||||
|
// 'border:1px black dotted; padding-left:5px; padding-right:5px'
|
||||||
|
// 4:{cell:{style:'background:blue'}}
|
||||||
|
// },
|
||||||
|
// cells: {
|
||||||
|
// 2:{
|
||||||
|
// 2:{
|
||||||
|
// style: 'font-size:45px;background:pink',
|
||||||
|
// value: function(value){return value.substr(1,3);}
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$scope.exportData = function () {
|
||||||
|
alasql('SELECT * INTO XLS("Study_material_status.xls",?) FROM ?',[mystyle,$scope.study_mat_data]);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$scope.exportExcel= function () {
|
||||||
|
alasql('SELECT * INTO XLSX("Study_material_status.xlsx",{headers:true}) \
|
||||||
|
FROM HTML("#data",{headers:true})');
|
||||||
|
}
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|||||||
@ -63,9 +63,45 @@ app.controller('report_waiver_referalCtrl', ["$scope", "API_POINTS", "$http", "S
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
$scope.getwaiver = function(){
|
||||||
|
var total = 0;
|
||||||
|
for(var i = 0; i < $scope.waiver_referal_data.length; i++){
|
||||||
|
var item = $scope.waiver_referal_data[i];
|
||||||
|
total += parseFloat(item.Waiver_amount);
|
||||||
|
}
|
||||||
|
return total; }
|
||||||
|
$scope.getref = function(){
|
||||||
|
var totalf = 0;
|
||||||
|
for(var i = 0; i < $scope.waiver_referal_data.length; i++){
|
||||||
|
var item = $scope.waiver_referal_data[i];
|
||||||
|
totalf += parseFloat(item.Referal_amount);
|
||||||
|
}
|
||||||
|
return totalf; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var mystyle = {
|
||||||
|
sheetid: 'WAIVER AND REFERAL REPORT',
|
||||||
|
headers: true,
|
||||||
|
caption: {
|
||||||
|
title:'WAIVER AND REFERAL REPORT',
|
||||||
|
width: '300px',
|
||||||
|
style:'font-size:50px;'
|
||||||
|
},
|
||||||
|
// style:'background:#00FF00',
|
||||||
|
column: {
|
||||||
|
style:'font-size:10px'
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$scope.exportData = function () {
|
||||||
|
alasql('SELECT * INTO XLS("Waiver_referal_report.xls",?) FROM ?',[mystyle,$scope.waiver_referal_data]);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -385,6 +385,11 @@
|
|||||||
<span class="title" translate="sidebar.nav.report.examfee">Exam Writing Fee Report</span>
|
<span class="title" translate="sidebar.nav.report.examfee">Exam Writing Fee Report</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li ui-sref-active="active">
|
||||||
|
<a ui-sref="app.reports.balfee" ng-click="checkSuperAdmin()">
|
||||||
|
<span class="title" translate="sidebar.nav.report.balfee">Balance Fee Report</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -75,13 +75,11 @@
|
|||||||
</form>
|
</form>
|
||||||
<!-- <pre>{{statusr | json}}</pre> -->
|
<!-- <pre>{{statusr | json}}</pre> -->
|
||||||
<div style="text-align: right;">
|
<div style="text-align: right;">
|
||||||
<a download="Answer_booklets_report.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Answer_booklets');">
|
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="datatable" class="table table-hover">
|
<table id="datatable" class="table table-hover" style="font-size:0.9em;">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -89,7 +87,7 @@
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>SL.No</th>
|
<th>SL.No</th>
|
||||||
<th>Student ID</th>
|
<th>Enrollment ID</th>
|
||||||
<th>Student Name</th>
|
<th>Student Name</th>
|
||||||
<th>Father Name</th>
|
<th>Father Name</th>
|
||||||
<th>Course</th>
|
<th>Course</th>
|
||||||
@ -104,16 +102,16 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody dir-paginate="p in ans_book_data|filter:search:strict|itemsPerPage:10">
|
<tbody dir-paginate="p in ans_book_data|filter:search:strict|itemsPerPage:10">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{p.sl}}</td>
|
<td>{{p.SL_NO}}</td>
|
||||||
<td>{{p.ssid}}</td>
|
<td>{{p.Enrollment_id}}</td>
|
||||||
<td>{{p.name}}</td>
|
<td>{{p.Student_id}}</td>
|
||||||
<td>{{p.father}}</td>
|
<td>{{p.Father_name}}</td>
|
||||||
<td>{{p.course}}</td>
|
<td>{{p.Course_name}}</td>
|
||||||
<td>{{p.syear}}({{p.sem}})</td>
|
<td>{{p.Sem_year}}({{p.Sem}})</td>
|
||||||
<td>{{p.phone}}</td>
|
<td>{{p.Phone_number}}</td>
|
||||||
<td>{{p.uname}}</td>
|
<td>{{p.University}}</td>
|
||||||
<td>{{p.status}}</td>
|
<td>{{p.Status}}</td>
|
||||||
<td>{{p.adate}}</td>
|
<td>{{p.Date}}</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|||||||
@ -75,13 +75,11 @@
|
|||||||
</form>
|
</form>
|
||||||
<!-- <pre>{{statusr | json}}</pre> -->
|
<!-- <pre>{{statusr | json}}</pre> -->
|
||||||
<div style="text-align: right;">
|
<div style="text-align: right;">
|
||||||
<a download="Application_pending_report.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Application_pending');">
|
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="datatable" class="table table-hover">
|
<table id="datatable" class="table table-hover" style="font-size:0.9em;">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -90,7 +88,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>SL.No</th>
|
<th>SL.No</th>
|
||||||
<th>Admission Date</th>
|
<th>Admission Date</th>
|
||||||
<th>Student ID</th>
|
<th>Enrollment ID</th>
|
||||||
<th>Student Name</th>
|
<th>Student Name</th>
|
||||||
<th>Father Name</th>
|
<th>Father Name</th>
|
||||||
<th>Course</th>
|
<th>Course</th>
|
||||||
@ -105,16 +103,16 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody dir-paginate="p in app_pending_data|filter:search:strict|itemsPerPage:10">
|
<tbody dir-paginate="p in app_pending_data|filter:search:strict|itemsPerPage:10">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{p.sl}}</td>
|
<td>{{p.SL_NO}}</td>
|
||||||
<td>{{p.adate}}</td>
|
<td>{{p.Admission_date}}</td>
|
||||||
<td>{{p.ssid}}</td>
|
<td>{{p.Enrollment_id}}</td>
|
||||||
<td>{{p.name}}</td>
|
<td>{{p.Student_id}}</td>
|
||||||
<td>{{p.father}}</td>
|
<td>{{p.Father_name}}</td>
|
||||||
<td>{{p.course}}</td>
|
<td>{{p.Course_name}}</td>
|
||||||
<td>{{p.syear}}</td>
|
<td>{{p.Sem_year}}</td>
|
||||||
<td>{{p.phone}}</td>
|
<td>{{p.Phone_number}}</td>
|
||||||
<td>{{p.uname}}</td>
|
<td>{{p.University}}</td>
|
||||||
<td>{{p.status}}</td>
|
<td>{{p.Status}}</td>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
th {
|
th {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
} */
|
} */
|
||||||
</style>
|
</style>
|
||||||
<script type="text/javascript" src="bower_components/ng-table-excel-export/ng-table-excel-export.min.js">
|
<script type="text/javascript" src="bower_components/ng-table-excel-export/ng-table-excel-export.min.js">
|
||||||
@ -75,28 +75,33 @@
|
|||||||
</form>
|
</form>
|
||||||
<!-- <pre>{{statusr | json}}</pre> -->
|
<!-- <pre>{{statusr | json}}</pre> -->
|
||||||
<div style="text-align: right;">
|
<div style="text-align: right;">
|
||||||
<a download="Balance_fee_report.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Balance_fee');">
|
<!-- <a download="Balance_fee_report.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Balance_fee');">
|
||||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
||||||
</a>
|
</a> -->
|
||||||
|
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="datatable" class="table table-hover">
|
<table id="datatable" class="table table-hover" style="font-size:0.8em;">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="9"></th>
|
<th colspan="8"></th>
|
||||||
<th>Sum of Total Fee</th>
|
<th></th>
|
||||||
<th>Sum of Fees Paid</th>
|
<th></th>
|
||||||
<th>Sum of Balance Fee</th>
|
<th></th>
|
||||||
<th colspan="2">1st payment</th>
|
<th colspan="2">1st payment</th>
|
||||||
<th colspan="2">2nd payment</th>
|
<th colspan="2">2nd payment</th>
|
||||||
<th colspan="2">3rd payment</th>
|
<th colspan="2">3rd payment</th>
|
||||||
<th colspan="2">4th payment</th>
|
<th colspan="2">4th payment</th>
|
||||||
<th colspan="2">5th payment</th>
|
<th colspan="2">5th payment</th>
|
||||||
<th>Comments</th>
|
<th colspan="2">6th payment</th>
|
||||||
|
<th colspan="2">7th payment</th>
|
||||||
|
<th colspan="2">8th payment</th>
|
||||||
|
<th colspan="2">9th payment</th>
|
||||||
|
<th colspan="2">10th payment</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@ -122,7 +127,17 @@
|
|||||||
<th>Amount</th>
|
<th>Amount</th>
|
||||||
<th>Bill No</th>
|
<th>Bill No</th>
|
||||||
<th>Amount</th>
|
<th>Amount</th>
|
||||||
<th>Comments</th>
|
<th>Bill No</th>
|
||||||
|
<th>Amount</th>
|
||||||
|
<th>Bill No</th>
|
||||||
|
<th>Amount</th>
|
||||||
|
<th>Bill No</th>
|
||||||
|
<th>Amount</th>
|
||||||
|
<th>Bill No</th>
|
||||||
|
<th>Amount</th>
|
||||||
|
<th>Bill No</th>
|
||||||
|
<th>Amount</th>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -130,29 +145,99 @@
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody ng-repeat="b in balfee_data">
|
<tbody dir-paginate="p in balfee_data|filter:search:strict|itemsPerPage:10">
|
||||||
<tr ng-repeat="p in b">
|
<tr>
|
||||||
<td>{{p.sl}}</td>
|
<td>{{$index + 1}}</td>
|
||||||
<td>{{p.ssid}}</td>
|
<td>{{p.Student_id}}</td>
|
||||||
<td>{{p.name}}</td>
|
<td>{{p.Student_name}}</td>
|
||||||
<td>{{p.father}}</td>
|
<td>{{p.Father_name}}</td>
|
||||||
<td>{{p.course}}</td>
|
<td>{{p.Course_name}}</td>
|
||||||
<td>{{p.syear}}</td>
|
<td>{{p.Sem_year}}</td>
|
||||||
<td>{{p.phone}}</td>
|
<td>{{p.Phone_number}}</td>
|
||||||
<td>{{p.uname}}</td>
|
<td>{{p.University}}</td>
|
||||||
<td>{{p.total}}</td>
|
<td>{{p.Total}}</td>
|
||||||
<td>{{p.bamount}}</td>
|
<td>{{p.Paid_fee}}</td>
|
||||||
<td>{{p.balance}}</td>
|
<td>{{p.balance}}</td>
|
||||||
<td>{{p.1billno}}</td>
|
<td>
|
||||||
<td>{{p.1billamt}}</td>
|
<span ng-if="p.billno1">{{p.billno1}}</span>
|
||||||
<td>{{p.2billno}}</td>
|
<span ng-if="!p.billno1"> - </span>
|
||||||
<td>{{p.2billamt}}</td>
|
</td>
|
||||||
<td>{{p.3billno}}</td>
|
<td>
|
||||||
<td>{{p.3billamt}}</td>
|
<span ng-if="p.billamt1">{{p.billamt1}}</span>
|
||||||
<td>{{p.4billno}}</td>
|
<span ng-if="!p.billamt1"> 0 </span>
|
||||||
<td>{{p.4billamt}}</td>
|
</td>
|
||||||
<td>{{p.5billno}}</td>
|
<td>
|
||||||
<td>{{p.5billamt}}</td>
|
<span ng-if="p.billno2">{{p.billno2}}</span>
|
||||||
|
<span ng-if="!p.billno2"> - </span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span ng-if="p.billamt2">{{p.billamt2}}</span>
|
||||||
|
<span ng-if="!p.billamt2"> 0 </span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span ng-if="p.billno3">{{p.billno3}}</span>
|
||||||
|
<span ng-if="!p.billno3"> - </span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span ng-if="p.billamt3">{{p.billamt3}}</span>
|
||||||
|
<span ng-if="!p.billamt3"> 0 </span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span ng-if="p.billno4">{{p.billno4}}</span>
|
||||||
|
<span ng-if="!p.billno4"> - </span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span ng-if="p.billamt4">{{p.billamt4}}</span>
|
||||||
|
<span ng-if="!p.billamt4"> 0 </span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span ng-if="p.billno5">{{p.billno5}}</span>
|
||||||
|
<span ng-if="!p.billno5"> - </span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span ng-if="p.billamt5">{{p.billamt5}}</span>
|
||||||
|
<span ng-if="!p.billamt5"> 0 </span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span ng-if="p.billno6">{{p.billno6}}</span>
|
||||||
|
<span ng-if="!p.billno6"> - </span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span ng-if="p.billamt6">{{p.billamt6}}</span>
|
||||||
|
<span ng-if="!p.billamt6"> 0 </span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span ng-if="p.billno7">{{p.billno7}}</span>
|
||||||
|
<span ng-if="!p.billno7"> - </span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span ng-if="p.billamt7">{{p.billamt7}}</span>
|
||||||
|
<span ng-if="!p.billamt7"> 0 </span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span ng-if="p.billno8">{{p.billno8}}</span>
|
||||||
|
<span ng-if="!p.billno8"> - </span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span ng-if="p.billamt8">{{p.billamt8}}</span>
|
||||||
|
<span ng-if="!p.billamt8"> 0 </span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span ng-if="p.billno9">{{p.billno9}}</span>
|
||||||
|
<span ng-if="!p.billno9"> - </span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span ng-if="p.billamt9">{{p.billamt9}}</span>
|
||||||
|
<span ng-if="!p.billamt9"> 0 </span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span ng-if="p.billno10">{{p.billno10}}</span>
|
||||||
|
<span ng-if="!p.billno10"> - </span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span ng-if="p.billamt10">{{p.billamt10}}</span>
|
||||||
|
<span ng-if="!p.billamt10"> 0 </span>
|
||||||
|
</td>
|
||||||
<td>{{p.cmts}}</td>
|
<td>{{p.cmts}}</td>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -58,16 +58,7 @@
|
|||||||
<option ng-repeat="b in batch" value="{{b.batch}}"> {{b.batch_code}}</option>
|
<option ng-repeat="b in batch" value="{{b.batch}}"> {{b.batch_code}}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="col-md-3">
|
|
||||||
<label for="form-field-select-2">
|
|
||||||
Batch
|
|
||||||
</label>
|
|
||||||
|
|
||||||
<select class="form-control" tabindex="3" class="cs-select cs-skin-elastic" name="batch" ng-model="searchData.Batch" ng-change="getValueChange()">
|
|
||||||
<option value="" selected>Select Batch</option>
|
|
||||||
<option ng-repeat="itemBatch in batchData" value="{{itemBatch.BatchCode}}">{{itemBatch.BatchName}}</option>
|
|
||||||
</select>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
<div class="col-md-2" style="padding-top: 2.3%;">
|
<div class="col-md-2" style="padding-top: 2.3%;">
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
@ -89,13 +80,11 @@
|
|||||||
</form>
|
</form>
|
||||||
<!-- <pre>{{statusr | json}}</pre> -->
|
<!-- <pre>{{statusr | json}}</pre> -->
|
||||||
<div style="text-align: right;">
|
<div style="text-align: right;">
|
||||||
<a download="certificate_status.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Certificate Status');">
|
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="datatable" class="table table-hover">
|
<table id="datatable" class="table table-hover" style="font-size:0.9em;">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -104,7 +93,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>SL.No</th>
|
<th>SL.No</th>
|
||||||
<th>Document Fee Paid Date</th>
|
<th>Document Fee Paid Date</th>
|
||||||
<th>Student ID</th>
|
<th>Enrollment ID</th>
|
||||||
<th>Student Name</th>
|
<th>Student Name</th>
|
||||||
<th>Father Name</th>
|
<th>Father Name</th>
|
||||||
<th>Course</th>
|
<th>Course</th>
|
||||||
@ -120,19 +109,19 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody dir-paginate="p in cert_data|filter:search:strict|itemsPerPage:10">
|
<tbody dir-paginate="p in cert_data|filter:search:strict|itemsPerPage:10">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{p.sl}}</td>
|
<td>{{p.SL_NO}}</td>
|
||||||
<td>{{p.bdate}}</td>
|
<td>{{p.Document_fee_paid_date}}</td>
|
||||||
<td>{{p.ssid}}</td>
|
<td>{{p.Enrollment_id}}</td>
|
||||||
<td>{{p.name}}</td>
|
<td>{{p.Student_name}}</td>
|
||||||
<td>{{p.father}}</td>
|
<td>{{p.Father_name}}</td>
|
||||||
<td>{{p.course}}</td>
|
<td>{{p.Course_name}}</td>
|
||||||
<td>{{p.syear}}</td>
|
<td>{{p.Sem_year}}</td>
|
||||||
<td>{{p.phone}}</td>
|
<td>{{p.Phone_number}}</td>
|
||||||
<td>{{p.uname}}</td>
|
<td>{{p.University}}</td>
|
||||||
<td>{{p.balance}}</td>
|
<td>{{p.Balance_fee}}</td>
|
||||||
<td>{{p.certname}}</td>
|
<td>{{p.Certificate_name}}</td>
|
||||||
<td>{{p.status}}</td>
|
<td>{{p.Status}}</td>
|
||||||
<td>{{p.adate}}</td>
|
<td>{{p.Date}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@ -75,13 +75,11 @@
|
|||||||
</form>
|
</form>
|
||||||
<!-- <pre>{{statusr | json}}</pre> -->
|
<!-- <pre>{{statusr | json}}</pre> -->
|
||||||
<div style="text-align: right;">
|
<div style="text-align: right;">
|
||||||
<a download="Document_pending_report.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Document_pending');">
|
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="datatable" class="table table-hover">
|
<table id="datatable" class="table table-hover" style="font-size:0.9em;">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -90,7 +88,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>SL.No</th>
|
<th>SL.No</th>
|
||||||
<th>Admission Date</th>
|
<th>Admission Date</th>
|
||||||
<th>Student ID</th>
|
<th>Enrollment ID</th>
|
||||||
<th>Student Name</th>
|
<th>Student Name</th>
|
||||||
<th>Father Name</th>
|
<th>Father Name</th>
|
||||||
<th>Course</th>
|
<th>Course</th>
|
||||||
@ -105,16 +103,16 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody dir-paginate="p in doc_pending_data|filter:search:strict|itemsPerPage:10">
|
<tbody dir-paginate="p in doc_pending_data|filter:search:strict|itemsPerPage:10">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{p.sl}}</td>
|
<td>{{p.SL_NO}}</td>
|
||||||
<td>{{p.adate}}</td>
|
<td>{{p.Admission_date}}</td>
|
||||||
<td>{{p.ssid}}</td>
|
<td>{{p.Enrollment_id}}</td>
|
||||||
<td>{{p.name}}</td>
|
<td>{{p.Student_name}}</td>
|
||||||
<td>{{p.father}}</td>
|
<td>{{p.Father_name}}</td>
|
||||||
<td>{{p.course}}</td>
|
<td>{{p.Course_name}}</td>
|
||||||
<td>{{p.syear}}</td>
|
<td>{{p.Sem_year}}</td>
|
||||||
<td>{{p.phone}}</td>
|
<td>{{p.Phone_number}}</td>
|
||||||
<td>{{p.uname}}</td>
|
<td>{{p.University}}</td>
|
||||||
<td>{{p.status}}</td>
|
<td>{{p.Status}}</td>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -75,26 +75,24 @@
|
|||||||
</form>
|
</form>
|
||||||
<!-- <pre>{{statusr | json}}</pre> -->
|
<!-- <pre>{{statusr | json}}</pre> -->
|
||||||
<div style="text-align: right;">
|
<div style="text-align: right;">
|
||||||
<a download="Exam_writingfee_report.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Exam Writing Fee');">
|
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="datatable" class="table table-hover">
|
<table id="datatable" class="table table-hover" style="font-size:0.9em;">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<!-- <tr>
|
||||||
<th colspan="8"></th>
|
<th colspan="8"></th>
|
||||||
<th>Sum of Exam Writing Fee</th>
|
<th>Sum of Exam Writing Fee</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr> -->
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>SL.No</th>
|
<th>SL.No</th>
|
||||||
<th>Student ID</th>
|
<th>Enrollment ID</th>
|
||||||
<th>Student Name</th>
|
<th>Student Name</th>
|
||||||
<th>Father Name</th>
|
<th>Father Name</th>
|
||||||
<th>Course</th>
|
<th>Course</th>
|
||||||
@ -111,22 +109,34 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody dir-paginate="p in examfee_data|filter:search:strict|itemsPerPage:10">
|
<tbody dir-paginate="p in examfee_data|filter:search:strict|itemsPerPage:10">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{p.sl}}</td>
|
<td>{{p.SL_NO}}</td>
|
||||||
<td>{{p.ssid}}</td>
|
<td>{{p.Enrollment_id}}</td>
|
||||||
<td>{{p.name}}</td>
|
<td>{{p.Student_id}}</td>
|
||||||
<td>{{p.father}}</td>
|
<td>{{p.Father_name}}</td>
|
||||||
<td>{{p.course}}</td>
|
<td>{{p.Course_name}}</td>
|
||||||
<td>{{p.syear}}</td>
|
<td>{{p.Sem_year}}</td>
|
||||||
<td>{{p.phone}}</td>
|
<td>{{p.Phone_number}}</td>
|
||||||
<td>{{p.uname}}</td>
|
<td>{{p.University}}</td>
|
||||||
<td>{{p.stf}}</td>
|
<td>{{p.Amount}}</td>
|
||||||
<td>{{p.cmts}}</td>
|
<td>{{p.Comments}}</td>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
<tfoot>
|
||||||
|
<td>Total</td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td>{{ getstf() }}</td>
|
||||||
|
<td></td>
|
||||||
|
|
||||||
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
<h3 style="text-align:center;">{{message}}</h3>
|
<h3 style="text-align:center;">{{message}}</h3>
|
||||||
|
|
||||||
|
|||||||
@ -77,9 +77,7 @@
|
|||||||
</form>
|
</form>
|
||||||
<!-- <pre>{{statusr | json}}</pre> -->
|
<!-- <pre>{{statusr | json}}</pre> -->
|
||||||
<div style="text-align: right;">
|
<div style="text-align: right;">
|
||||||
<a download="Expense_report.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Expense_Report');">
|
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
@ -100,8 +98,8 @@
|
|||||||
<tbody dir-paginate="p in expense_data|filter:search:strict|itemsPerPage:10">
|
<tbody dir-paginate="p in expense_data|filter:search:strict|itemsPerPage:10">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{$index + 1}}</td>
|
<td>{{$index + 1}}</td>
|
||||||
<td>{{p.exp_name}}</td>
|
<td>{{p.Expense_name}}</td>
|
||||||
<td style ="text-align:right;">{{p.amount}}</td>
|
<td style ="text-align:right;">{{p.Amount}}</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|||||||
@ -117,13 +117,11 @@
|
|||||||
</form>
|
</form>
|
||||||
<!-- <pre>{{statusr | json}}</pre> -->
|
<!-- <pre>{{statusr | json}}</pre> -->
|
||||||
<div style="text-align: right;">
|
<div style="text-align: right;">
|
||||||
<a download="Mark_Card_certificate_status.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Markcard/Certificate Status');">
|
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="datatable" class="table table-hover">
|
<table id="datatable" class="table table-hover" style="font-size:0.9em;">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -132,7 +130,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>SL.No</th>
|
<th>SL.No</th>
|
||||||
<th>Document Fee Paid Date</th>
|
<th>Document Fee Paid Date</th>
|
||||||
<th>Student ID</th>
|
<th>Enrollment ID</th>
|
||||||
<th>Student Name</th>
|
<th>Student Name</th>
|
||||||
<th>Father Name</th>
|
<th>Father Name</th>
|
||||||
<th>Course</th>
|
<th>Course</th>
|
||||||
@ -152,29 +150,29 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody dir-paginate="p in mark_cert_data|filter:search:strict|itemsPerPage:10">
|
<tbody dir-paginate="p in mark_cert_data|filter:search:strict|itemsPerPage:10">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{p.sl}}</td>
|
<td>{{p.SL_NO}}</td>
|
||||||
<td>{{p.bdate}}</td>
|
<td>{{p.Document_fee_paid_date}}</td>
|
||||||
<td>{{p.ssid}}</td>
|
<td>{{p.Enrollment_id}}</td>
|
||||||
<td>{{p.name}}</td>
|
<td>{{p.Student_name}}</td>
|
||||||
<td>{{p.father}}</td>
|
<td>{{p.Father_name}}</td>
|
||||||
<td>{{p.course}}</td>
|
<td>{{p.Course_name}}</td>
|
||||||
<td>{{p.syear}}</td>
|
<td>{{p.Sem_year}}</td>
|
||||||
<td>{{p.phone}}</td>
|
<td>{{p.Phone_number}}</td>
|
||||||
<td>{{p.uname}}</td>
|
<td>{{p.University}}</td>
|
||||||
<td>{{p.balance}}</td>
|
<td>{{p.Balance_fee}}</td>
|
||||||
<td>{{p.status}}</td>
|
<td>{{p.Markcard_status}}</td>
|
||||||
<td>{{p.cdate}}</td>
|
<td>{{p.Markcard_date}}</td>
|
||||||
<td>{{p.ccmts}}</td>
|
<td>{{p.Markcard_comments}}</td>
|
||||||
<td>{{p.certname}}</td>
|
<td>{{p.Certificate_name}}</td>
|
||||||
<td>{{p.astatus}}</td>
|
<td>{{p.Certificate_status}}</td>
|
||||||
<td>{{p.adate}}</td>
|
<td>{{p.Certificate_date}}</td>
|
||||||
<td>{{p.acmts}}</td>
|
<td>{{p.Certificate_comments}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
<h3 style="text-align:center;">{{markcert_message}}</h3>
|
<h3 style="text-align:center;">{{message}}</h3>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -10,17 +10,6 @@
|
|||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!-- datatables -->
|
|
||||||
<!-- <link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script> -->
|
|
||||||
<!-- <script type="text/javascript" src="bower_components/ng-table-excel-export/ng-table-excel-export.min.js"> -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<div class="container-fluid container-fullw bg-white">
|
<div class="container-fluid container-fullw bg-white">
|
||||||
@ -92,21 +81,20 @@
|
|||||||
</form>
|
</form>
|
||||||
<!-- <pre>{{statusr | json}}</pre> -->
|
<!-- <pre>{{statusr | json}}</pre> -->
|
||||||
<div style="text-align: right;">
|
<div style="text-align: right;">
|
||||||
<a download="Mark_Card_status.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Mark Card Status');">
|
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table datatable="ng" dt-options="dtOptions" class="table table-hover">
|
|
||||||
<!-- <table id="datatable" class="table table-hover"> -->
|
<table id="datatable" class="table table-hover" style="font-size:0.9em;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>SL.No</th>
|
<th>SL.No</th>
|
||||||
<th>Intial Payment Paid Date</th>
|
<th>Intial Payment Paid Date</th>
|
||||||
<th>Student ID</th>
|
<th>Enrollment ID</th>
|
||||||
<th>Student Name</th>
|
<th>Student Name</th>
|
||||||
|
<th>Roll NO</th>
|
||||||
<th>Father Name</th>
|
<th>Father Name</th>
|
||||||
<th>Course</th>
|
<th>Course</th>
|
||||||
<th>Sem/Year</th>
|
<th>Sem/Year</th>
|
||||||
@ -120,18 +108,19 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody dir-paginate="p in markcard_data|filter:search:strict|itemsPerPage:10">
|
<tbody dir-paginate="p in markcard_data|filter:search:strict|itemsPerPage:10">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{p.sl}}</td>
|
<td>{{p.SL_NO}}</td>
|
||||||
<td>{{p.bdate}}</td>
|
<td>{{p.Initial_paid_date}}</td>
|
||||||
<td>{{p.ssid}}</td>
|
<td>{{p.Enrollment_id}}</td>
|
||||||
<td>{{p.name}}</td>
|
<td>{{p.Student_id}}</td>
|
||||||
<td>{{p.father}}</td>
|
<td>{{p.Roll_NO}}</td>
|
||||||
<td>{{p.course}}</td>
|
<td>{{p.Father_name}}</td>
|
||||||
<td>{{p.syear}}({{p.sem}})</td>
|
<td>{{p.Course_name}}</td>
|
||||||
<td>{{p.phone}}</td>
|
<td>{{p.Sem_year}}({{p.Sem}})</td>
|
||||||
<td>{{p.uname}}</td>
|
<td>{{p.Phone_number}}</td>
|
||||||
<td>{{p.balance}}</td>
|
<td>{{p.University}}</td>
|
||||||
<td>{{p.status}}</td>
|
<td>{{p.Balance_Fee}}</td>
|
||||||
<td>{{p.cdate}}</td>
|
<td>{{p.Status}}</td>
|
||||||
|
<td>{{p.Date}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@ -16,17 +16,13 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
} */
|
} */
|
||||||
</style>
|
</style>
|
||||||
<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 class="container-fluid container-fullw bg-white">
|
||||||
<div ng-controller="report_study_material_statusCtrl" ng-init="filters()">
|
<div ng-controller="report_study_material_statusCtrl" ng-init="filters()">
|
||||||
<form name="Form" id="form" novalidate ng-submit="onSubmit()" method="post">
|
<form name="Form" id="form" novalidate ng-submit="onSubmit()" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<label for="form-field-select-2">
|
<label for="form-field-select-2">
|
||||||
@ -89,44 +85,45 @@
|
|||||||
</form>
|
</form>
|
||||||
<!-- <pre>{{statusr | json}}</pre> -->
|
<!-- <pre>{{statusr | json}}</pre> -->
|
||||||
<div style="text-align: right;">
|
<div style="text-align: right;">
|
||||||
<a download="Study_material_status.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Study Material Status');">
|
<!-- <a download="Study_material_status.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Study Material Status');">
|
||||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
||||||
</a>
|
</a> -->
|
||||||
|
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div id="data" class="table-responsive">
|
||||||
<table id="datatable" class="table table-hover">
|
<table class="table table-hover" style="font-size:0.9em;">
|
||||||
|
<!-- <table datatable="" class="table table-hover">-->
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>SL.No</th>
|
<th>SL.No</th>
|
||||||
<th>Initial Payment Paid Date</th>
|
<th>Initial Payment Paid Date</th>
|
||||||
<th>Student ID</th>
|
<th>Enrollment ID</th>
|
||||||
<th>Student Name</th>
|
<th>Student Name</th>
|
||||||
<th>Father Name</th>
|
<th>Father Name</th>
|
||||||
<th>Course</th>
|
<th>Course</th>
|
||||||
<th>Sem/Year</th>
|
<th>Sem/Year</th>
|
||||||
<th>Phone No</th>
|
<th>Phone No</th>
|
||||||
<th>University</th>
|
<th>University</th>
|
||||||
<th>Balance Fee</th>
|
|
||||||
<th>Study Material Status</th>
|
<th>Study Material Status</th>
|
||||||
|
<th>Balance Fee</th>
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody dir-paginate="p in study_mat_data|filter:search:strict|itemsPerPage:10">
|
<tbody dir-paginate="p in study_mat_data|filter:search:strict|itemsPerPage:10">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{p.sl}}</td>
|
<td>{{p.SL_NO}}</td>
|
||||||
<td>{{p.bdate}}</td>
|
<td>{{p.Initial_paid_date}}</td>
|
||||||
<td>{{p.ssid}}</td>
|
<td>{{p.Enrollment_id}}</td>
|
||||||
<td>{{p.name}}</td>
|
<td>{{p.Student_name}}</td>
|
||||||
<td>{{p.father}}</td>
|
<td>{{p.Father_name}}</td>
|
||||||
<td>{{p.course}}</td>
|
<td>{{p.Course_name}}</td>
|
||||||
<td>{{p.syear}}({{p.sem}})</td>
|
<td>{{p.Sem_year}}({{p.Sem}})</td>
|
||||||
<td>{{p.phone}}</td>
|
<td>{{p.Phone_number}}</td>
|
||||||
<td>{{p.uname}}</td>
|
<td>{{p.University}}</td>
|
||||||
<td>{{p.balance}}</td>
|
<td>{{p.Balance_fee}}</td>
|
||||||
<td>{{p.status}}</td>
|
<td>{{p.Status}}</td>
|
||||||
<td>{{p.date}}</td>
|
<td>{{p.Date}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@ -16,8 +16,6 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
} */
|
} */
|
||||||
</style>
|
</style>
|
||||||
<script type="text/javascript" src="bower_components/ng-table-excel-export/ng-table-excel-export.min.js">
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<div class="container-fluid container-fullw bg-white">
|
<div class="container-fluid container-fullw bg-white">
|
||||||
@ -75,19 +73,23 @@
|
|||||||
</form>
|
</form>
|
||||||
<!-- <pre>{{statusr | json}}</pre> -->
|
<!-- <pre>{{statusr | json}}</pre> -->
|
||||||
<div style="text-align: right;">
|
<div style="text-align: right;">
|
||||||
<a download="Waiver_referal_report.xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Waiver Referal');">
|
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||||
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="datatable" class="table table-hover">
|
<table id="datatable" class="table table-hover" style="font-size:0.9em;">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="8"></th>
|
<th></th>
|
||||||
|
<th></th>
|
||||||
|
<th></th>
|
||||||
|
<th></th>
|
||||||
|
<th></th>
|
||||||
|
<th></th>
|
||||||
|
<th></th>
|
||||||
<th colspan="2">Sum of Waiver Fee</th>
|
<th colspan="2">Sum of Waiver Fee</th>
|
||||||
<th colspan="2">Sum of Referal Fee</th>
|
<th colspan="2">Sum of Referal Fee</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
@ -95,7 +97,7 @@
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>SL.No</th>
|
<th>SL.No</th>
|
||||||
<th>Student ID</th>
|
<th>Enrollment ID</th>
|
||||||
<th>Student Name</th>
|
<th>Student Name</th>
|
||||||
<th>Father Name</th>
|
<th>Father Name</th>
|
||||||
<th>Course</th>
|
<th>Course</th>
|
||||||
@ -112,26 +114,39 @@
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody dir-paginate="p in waiver_referal_data|filter:search:strict|itemsPerPage:10">
|
<tbody ng-init="total = 0">
|
||||||
<tr>
|
<tr dir-paginate="p in waiver_referal_data|filter:search:strict|itemsPerPage:10">
|
||||||
<td>{{p.sl}}</td>
|
<td>{{p.SL_NO}}</td>
|
||||||
<td>{{p.ssid}}</td>
|
<td>{{p.Enrollment_id}}</td>
|
||||||
<td>{{p.name}}</td>
|
<td>{{p.Student_name}}</td>
|
||||||
<td>{{p.father}}</td>
|
<td>{{p.Father_name}}</td>
|
||||||
<td>{{p.course}}</td>
|
<td>{{p.Course_name}}</td>
|
||||||
<td>{{p.syear}}</td>
|
<td>{{p.Sem_year}}</td>
|
||||||
<td>{{p.phone}}</td>
|
<td>{{p.Phone_number}}</td>
|
||||||
<td>{{p.waiver_bill}}</td>
|
<td>{{p.Waiver_bill}}</td>
|
||||||
<td>{{p.waiver}}</td>
|
<td>{{p.Waiver_amount}}</td>
|
||||||
<td>{{p.referal_bill}}</td>
|
<td>{{p.Referal_bill}}</td>
|
||||||
<td>{{p.referal}}</td>
|
<td>{{p.Referal_amount}}</td>
|
||||||
<td>{{p.cmts}}</td>
|
<td>{{p.Comments}}</td>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
<tfoot>
|
||||||
|
<td>Total</td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td>{{ getwaiver() }}</td>
|
||||||
|
<td></td>
|
||||||
|
<td>{{ getref() }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
<h3 style="text-align:center;">{{message}}</h3>
|
<h3 style="text-align:center;">{{message}}</h3>
|
||||||
|
|
||||||
|
|||||||
@ -116,6 +116,9 @@
|
|||||||
<!--<script src="bower_components/generate-PDF/pdfmake.min.js"></script>
|
<!--<script src="bower_components/generate-PDF/pdfmake.min.js"></script>
|
||||||
<script src="bower_components/generate-PDF/html2canvas.min.js"></script>-->
|
<script src="bower_components/generate-PDF/html2canvas.min.js"></script>-->
|
||||||
<script src="bower_components/generate-PDF/kendo.all.min.js"></script>
|
<script src="bower_components/generate-PDF/kendo.all.min.js"></script>
|
||||||
|
<!--Export Excel for reports-->
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/alasql/0.4.2/alasql.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.9.2/xlsx.core.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user