report issues fixes

This commit is contained in:
gandhimathi 2018-08-17 18:11:37 +05:30
parent e70d59af73
commit 0bb74f4d14
24 changed files with 347 additions and 219 deletions

View File

@ -91,7 +91,9 @@ class Report extends REST_Controller {
$bat = $this->post('batch'); $bat = $this->post('batch');
$br = $this->post('branch'); $br = $this->post('branch');
$u = $this->post('university'); $u = $this->post('university');
$getStatus = $this->report_model->certificate_status($bat,$br,$u); $from = $this->post('from');
$to = $this->post('to');
$getStatus = $this->report_model->certificate_status($bat,$br,$u,$from,$to);
//print_r($getStatus); //print_r($getStatus);
if ($getStatus) if ($getStatus)
{ {
@ -339,7 +341,30 @@ class Report extends REST_Controller {
public function filters_post() public function filters_post()
{ {
$br = $this->post('branch'); $br = $this->post('branch');
$getStatus = $this->report_model->filters($br); $getStatus = $this->report_model->getUniversity($br);
//print_r($getStatus);
if ($getStatus)
{
$getStatus['status'] = REST_Controller::HTTP_OK;
// Set the response and exit
$this->response($getStatus, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
}
else
{
// Set the response and exit
$this->response([
'message' => 'No records found!',
'status' => REST_Controller::HTTP_NOT_FOUND
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
}
}
public function BatchName_post()
{
$br = $this->post('branch');
$batch = $this->post('batch');
$getStatus = $this->report_model->BatchName($br,$batch);
//print_r($getStatus); //print_r($getStatus);
if ($getStatus) if ($getStatus)
{ {

View File

@ -34,7 +34,7 @@ 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,IsActive as active,FirstName as name,Fathername as father,AlternateNumber,PresentAddress as address FROM T_StudentDetails where IsActive = 1) as std on std.sid=sms.sid (SELECT StudentID as sid,MobileNumber as phone,IsActive as active,FirstName as name,Fathername as father,AlternateNumber,PresentAddress as address 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 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
where sms.branch = '".$br."' where sms.branch = '".$br."'
"; ";
@ -64,17 +64,7 @@ left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,Enrollmen
} }
public function filters($br){ public function filters($br){
$sql = "SELECT distinct BatchCode as batchcode,BatchName as batch,BatchDate FROM T_BatchMaster
where BranchCode = '".$br."'";
$b=$this->db->query($sql);
$batch = $b->result();
if (count($batch) > 0) {
$results['batchlist'] = true;
$results['batch'] = $batch;
} else {
$results['batchlist'] = false;
$results['message'] = 'No record found';
}
$sql = "SELECT distinct UniversityID as uid,UniversityName as university FROM T_UniversityMaster $sql = "SELECT distinct UniversityID as uid,UniversityName as university FROM T_UniversityMaster
where BranchCode = '".$br."'"; where BranchCode = '".$br."'";
@ -89,13 +79,30 @@ where BranchCode = '".$br."'";
} }
return $results; return $results;
}
public function BatchName($br,$batch){
$sql = "SELECT distinct BatchCode as batchcode,BatchName as batch,BatchDate FROM T_BatchMaster
where BranchCode = '".$br."' and BatchName = '".$batch."'";
$b=$this->db->query($sql);
$batch = $b->result();
if (count($batch) > 0) {
$results['batchlists'] = true;
$results['batchName'] = $batch;
} else {
$results['batchlists'] = false;
$results['message'] = 'No record found';
}
} }
public function markcard($bat=null,$br=null,$u=null){ public function markcard($bat=null,$br=null,$u=null){
$sql = "select ifnull(sms.sid,'-') as Student_id,ifnull(scd.eid,'-') as Enrollment_id,ifnull(sfs.rollno,'-') as Roll_NO,ifnull(std.name,'-') as Student_name,ifnull(std.father,'-') as Father_name,ifnull(std.phone,'-') as Phone_number,ifnull(sms.cid,'-') as Course_id,ifnull(sms.cdate,'-') as Date,ifnull(cfd.syear,'-') as Sem_year,ifnull(sms.sem,'-') as Sem,ifnull(sfs.batch,'-') as Batch_code,ifnull(sms.branch,'-') as Branch_code,ifnull(cm.course,'-') as Course_name,ifnull(cm.uname,'-') as University,ifnull(list.status,'-') as Status,ifnull(sfp.bdate,'-') as Initial_paid_date,ifnull(((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)),0) as Balance_Fee,ifnull(std.address,'-') as address,ifnull(std.AlternateNumber,'') as AlternateNumber,appdate,ansdate $sql = "select ifnull(sms.sid,'-') as Student_id,ifnull(scd.eid,'-') as Enrollment_id,ifnull(sfs.rollno,'-') as Roll_NO,ifnull(std.name,'-') as Student_name,ifnull(std.father,'-') as Father_name,ifnull(std.phone,'-') as Phone_number,ifnull(sms.cid,'-') as Course_id,ifnull(sms.cdate,'-') as Date,ifnull(cfd.syear,'-') as Sem_year,ifnull(sms.sem,'-') as Sem,ifnull(sfs.batch,'-') as Batch_code,ifnull(sms.branch,'-') as Branch_code,ifnull(cm.course,'-') as Course_name,ifnull(cm.uname,'-') as University,ifnull(list.status,'-') as Status,ifnull(sfp.bdate,'-') as Initial_paid_date,ifnull(((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)),0) as Balance_Fee,ifnull(std.address,'-') as address,ifnull(std.AlternateNumber,'') as AlternateNumber,appdate,ansdate
from from
(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 c.ID,StudentID as sid,c.CourseID as cid,c.BranchCode as branch,c.ListCode as lcode,p.ListName,c.CertificationType as ctype,c.CDate as cdate,c.Sem as sem FROM T_CertificationStatus c
WHERE ID IN (SELECT max(ID) FROM T_CertificationStatus group by StudentID,CourseID,BranchCode,Sem) left join T_PickListDetails p on p.ListCode=c.ListCode
WHERE c.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,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 (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
@ -161,7 +168,7 @@ group by sid,sem) as apdate on apdate.sid=sms.sid and apdate.sem=cfd.syear
return $results; return $results;
} }
public function certificate_status($bat=null,$br=null,$u=null){ public function certificate_status($bat=null,$br=null,$u=null,$from=null,$to=null){
$sql = "select ifnull(sms.sid,'-') as Student_id,ifnull(scd.eid,'-') as Enrollment_id,ifnull(std.name,'-') as Student_name,ifnull(std.father,'-') as Father_name,ifnull(std.phone,'-') as Phone_number,ifnull(sms.cid,'-') as Course_id,ifnull(sfs.batch,'-') as Batch_code,ifnull(sms.branch,'-') as Branch_code,ifnull(cm.course,'-') as Course_name,ifnull(cm.uname,'-') as University,ifnull(sfp.bdate,'-') as Document_fee_paid_date,ifnull(((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)),0) as Balance_fee,ifnull(cfd.syear,'-') as Sem_year,ifnull(sms.sem,'-') as Sem,ifnull(list.status,'-') as Markcard_status,ifnull(sms.mdate,'-') as Markcard_date,ifnull(sms.mcmts,'-') as Markcard_comments,ifnull(ams.certname,'-') as Certificate_name,ifnull(alist.astatus,'-') as Certificate_status,ifnull(ams.adate,'-') as Certificate_date,ifnull(ams.acmts,'-') as Certificate_comments,ifnull(std.address,'-') as address,ifnull(std.AlternateNumber,'') as AlternateNumber $sql = "select ifnull(sms.sid,'-') as Student_id,ifnull(scd.eid,'-') as Enrollment_id,ifnull(std.name,'-') as Student_name,ifnull(std.father,'-') as Father_name,ifnull(std.phone,'-') as Phone_number,ifnull(sms.cid,'-') as Course_id,ifnull(sfs.batch,'-') as Batch_code,ifnull(sms.branch,'-') as Branch_code,ifnull(cm.course,'-') as Course_name,ifnull(cm.uname,'-') as University,ifnull(sfp.bdate,'-') as Document_fee_paid_date,ifnull(((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)),0) as Balance_fee,ifnull(cfd.syear,'-') as Sem_year,ifnull(sms.sem,'-') as Sem,ifnull(list.status,'-') as Markcard_status,ifnull(sms.mdate,'-') as Markcard_date,ifnull(sms.mcmts,'-') as Markcard_comments,ifnull(ams.certname,'-') as Certificate_name,ifnull(alist.astatus,'-') as Certificate_status,ifnull(ams.adate,'-') as Certificate_date,ifnull(ams.acmts,'-') as Certificate_comments,ifnull(std.address,'-') as address,ifnull(std.AlternateNumber,'') as AlternateNumber
from from
@ -218,6 +225,14 @@ left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,Enrollmen
$sql.=" and cm.uid = '".$u."'"; $sql.=" and cm.uid = '".$u."'";
} }
if ($from != '' and $to != ''){
$fromd= date("Y-m-d",strtotime($from));
$tod=date("Y-m-d",strtotime($to));
$sql.="and STR_TO_DATE(ams.adate,'%d-%m-%Y') >= '".$fromd."'
and STR_TO_DATE(ams.adate,'%d-%m-%Y') <= '".$tod."'";
}
$sql.=" group by Student_id,Course_id,Batch_code,Branch_code"; $sql.=" group by Student_id,Course_id,Batch_code,Branch_code";
$leadDet=$this->db->query($sql); $leadDet=$this->db->query($sql);
@ -319,7 +334,7 @@ left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,Enrollmen
$sql = "SELECT ifnull(dbm.Date,'-') as date,ifnull(exp.TypeName,'-') as Expense_name,ifnull(sum(dbm.Amount),0) as Amount FROM (SELECT @s:= 0) AS s,T_Income_Outcome_Master exp $sql = "SELECT ifnull(dbm.Date,'-') as date,ifnull(exp.TypeName,'-') as Expense_name,ifnull(sum(dbm.Amount),0) as Amount FROM (SELECT @s:= 0) AS s,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' and exp.BranchCode = '".$br."' where dbm.Name = 'I001' and exp.TypeName not like 'FEES' and dbm.Status = 'Approved' and exp.BranchCode = '".$br."'
"; ";
if ($from and $to != ''){ if ($from and $to != ''){
@ -348,7 +363,7 @@ left join (SELECT StudentID as sid,UniversityID as uid,CourseID as cid,Enrollmen
} }
public function answer_booklet($bat=null,$br=null,$u=null){ public function answer_booklet($bat=null,$br=null,$u=null){
$sql = "select ifnull(sms.sid,'-') as Student_id,ifnull(scd.eid,'-') as Enrollment_id,ifnull(std.name,'-') as Student_name,ifnull(std.father,'-') as Father_name,ifnull(std.phone,'-') as Phone_number,ifnull(sms.cid,'-') as Course_id,ifnull(sfs.batch,'-') as Batch_code,ifnull(sms.branch,'-') as Branch_code,ifnull(sms.adate,'-') as Date,ifnull(cfd.syear,'-') as Sem_year,ifnull(sms.sem,'-') as Sem,ifnull(cm.course,'-') as Course_name,ifnull(cm.uname,'-') as University,ifnull(list.status,'-') as Status,ifnull(std.address,'-') as address,ifnull(std.AlternateNumber,'') as AlternateNumber,listdate.issuedate,listdate.rcvedate $sql = "select ifnull(sms.sid,'-') as Student_id,ifnull(scd.eid,'-') as Enrollment_id,ifnull(std.name,'-') as Student_name,ifnull(std.father,'-') as Father_name,ifnull(std.phone,'-') as Phone_number,ifnull(sms.cid,'-') as Course_id,ifnull(sfs.batch,'-') as Batch_code,ifnull(sms.branch,'-') as Branch_code,ifnull(sms.adate,'-') as Date,ifnull(cfd.syear,'-') as Sem_year,ifnull(sms.sem,'-') as Sem,ifnull(cm.course,'-') as Course_name,ifnull(cm.uname,'-') as University,ifnull(list.status,'-') as Status,ifnull(std.address,'-') as address,ifnull(std.AlternateNumber,'') as AlternateNumber,listdate.issuedate as issuedate,listdate.rcvedate as rcvedate,ifnull(((sfs.cf + sfs.stf + sfs.others)-sum(sfp.bamount)),0) as balance
from from
(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
@ -422,7 +437,7 @@ group by sid
public function app_pending($bat=null,$br=null,$u=null){ public function app_pending($bat=null,$br=null,$u=null){
$sql = "select ifnull(sms.sid,'-') as Student_id,ifnull(scd.eid,'-') as Enrollment_id,ifnull(std.name,'-') as Student_name,ifnull(std.father,'-') as Father_name,ifnull(std.phone,'-') as Phone_number,ifnull(sms.cid,'-') as Course_id,ifnull(cfd.syear,'-') as Sem_year,ifnull(sfs.batch,'-') as Batch_code,ifnull(sms.branch,'-') as Branch_code,ifnull(cm.course,'-') as Course_name,ifnull(cm.uname,'-') as University,ifnull(sms.status,'-') as Status,ifnull(sfp.bdate,'-') as Admission_date, $sql = "select ifnull(sms.sid,'-') as Student_id,ifnull(scd.eid,'-') as Enrollment_id,ifnull(std.name,'-') as Student_name,ifnull(std.father,'-') as Father_name,ifnull(std.phone,'-') as Phone_number,ifnull(sms.cid,'-') as Course_id,ifnull(cfd.syear,'-') as Sem_year,ifnull(sfs.batch,'-') as Batch_code,ifnull(sms.branch,'-') as Branch_code,ifnull(cm.course,'-') as Course_name,ifnull(cm.uname,'-') as University,ifnull(sms.status,'-') as Status,ifnull(sfp.bdate,'-') as Admission_date,
ifnull(std.address,'-') as address,ifnull(std.AlternateNumber,'') as AlternateNumber ifnull(std.address,'-') as address,ifnull(std.AlternateNumber,'') as AlternateNumber,sms.adate as appdate
from from
(SELECT ID,StudentID as sid,CourseID as cid,app.BranchCode as branch,list.ListName as status,app.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,list.ListName as status,app.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
@ -784,5 +799,49 @@ from T_Lead_Tracking_Followup as ltf
return $results; return $results;
} }
public function getUniversity($br=null)
{
$this->db->select('UniversityID,UniversityName');
$this->db->where('IsActive','1');
$this->db->where('BranchCode',$br);
$this->db->order_by('CreatedOn','DESC');
$university = $this->db->get(UNIVERSITY);
if($university->result()){
$result = array();
$result['univlist'] = true;
foreach ($university->result() as $row)
{
$university_array['universityID'] = $row->UniversityID;
$university_array['universityName'] = $row->UniversityName;
$university_array['batchDetails']= $this->getBatch($row->UniversityID,$br);
$result_array[]=$university_array;
}
$result['university']= $result_array;
}
else {
$result['univlist'] = false;
$result['message'] = "No records found!";
$result['universityID'] = "";
$result['universityName'] = "";
$result['batchDetails']= "";
}
return $result;
}
public function getBatch($universityID=null,$br=null)
{
$this->db->select('BatchCode,BatchName');
$this->db->where('UniversityID',$universityID);
$this->db->where('IsActive','1');
$this->db->where('BranchCode',$br);
$this->db->order_by('BatchCode','ASC');
$batchDetails = $this->db->get(BATCH);
return $batchDetails->result();
}
} }

View File

@ -81,14 +81,13 @@
"report": { "report": {
"TITLE": "REPORTS", "TITLE": "REPORTS",
"studmatstatus": "STUDY MATERIAL STATUS ", "studmatstatus": "STUDY MATERIAL STATUS ",
"unidataupload":"UNIVERSITY DATA UPLOAD",
"mstatus": "MARK CARD STATUS ", "mstatus": "MARK CARD STATUS ",
"certificate_status": "CERTIFICATE STATUS ", "certificate_status": "CERTIFICATE STATUS ",
"certificate_mark_status": "MARKCARD/CERTIFICATE ISSUED STATUS ", "certificate_mark_status": "MARKCARD/CERTIFICATE ISSUED STATUS ",
"expense": "EXPENSE REPORT ", "expense": "EXPENSE REPORT ",
"answer_booklets": "ANSWER BOOKLETS STATUS REPORT ", "answer_booklets": "ANSWER BOOKLETS STATUS REPORT ",
"app_pending": "APPLICATION PENDING STUDENT LIST REPORT", "app_pending": "APPLICATION PENDING STUDENT LIST REPORT",
"doc_pending": "DOCUMENT PENDING STUDENT LIST REPORT", "doc_pending": "STUDENT DOCUMENTS PENDING REPORT",
"wav_ref": "WAIVER AND REFERAL REPORT", "wav_ref": "WAIVER AND REFERAL REPORT",
"examfee": "EXAM WRITING FEE REPORT", "examfee": "EXAM WRITING FEE REPORT",
"balfee": "FEE BALANCE REPORT", "balfee": "FEE BALANCE REPORT",

View File

@ -39,7 +39,7 @@ app.controller('report_ans_bookletCtrl', ["$scope", "$filter","$rootScope","$mod
// DataTables configurable options // DataTables configurable options
$scope.filters = { $scope.univModel = {
"branch": "", "branch": "",
"university": "", "university": "",
"batch": "", "batch": "",
@ -95,8 +95,8 @@ app.controller('report_ans_bookletCtrl', ["$scope", "$filter","$rootScope","$mod
}, },
data: { data: {
branch: JSON.parse(localStorage.getItem('localObj')).localBranchID, branch: JSON.parse(localStorage.getItem('localObj')).localBranchID,
university: $scope.filters.university, university: $scope.univModel.university.universityID,
batch: $scope.filters.batch batch: $scope.univModel.batch
} }
@ -133,7 +133,7 @@ app.controller('report_ans_bookletCtrl', ["$scope", "$filter","$rootScope","$mod
$scope.exportData = function () { $scope.exportData = function () {
alasql('SELECT CAST(SL_NO AS NUMBER) as SLNO,Enrollment_id as EnrollmentID,Student_name as StudentName,Father_name as FatherName,Course_name as CourseName,Sem_year as SemYear,CAST(Phone_number AS NUMBER) as PhoneNumber,University as University,Status as AnswerBookletStatus,Date as Date INTO XLS("Answer_booklet_status.xls",?) FROM ?',[mystyle,$scope.ans_book_data]); alasql('SELECT CAST(SL_NO AS NUMBER) as SLNO,Enrollment_id as EnrollmentID,Student_name as StudentName,Father_name as FatherName,Course_name as CourseName,Sem_year as SemYear,CAST(Phone_number AS NUMBER) as PhoneNumber,University as University,CAST(balance AS NUMBER) as BalanceFee,issuedate as IssuedToStudentDate,rcvedate as ReceivedFromStudentDate,Status as AnswerBookletStatus,Date as Date INTO XLS("Answer_booklet_status.xls",?) FROM ?',[mystyle,$scope.ans_book_data]);
}; };
/*modal controller /*modal controller

View File

@ -39,7 +39,7 @@ app.controller('report_app_pendingCtrl', ["$scope", "$filter","$rootScope","$mod
// DataTables configurable options // DataTables configurable options
$scope.filters = { $scope.univModel = {
"branch": "", "branch": "",
"university": "", "university": "",
"batch": "", "batch": "",
@ -95,8 +95,8 @@ app.controller('report_app_pendingCtrl', ["$scope", "$filter","$rootScope","$mod
}, },
data: { data: {
branch: JSON.parse(localStorage.getItem('localObj')).localBranchID, branch: JSON.parse(localStorage.getItem('localObj')).localBranchID,
university: $scope.filters.university, university: $scope.univModel.university.universityID,
batch: $scope.filters.batch batch: $scope.univModel.batch
} }

View File

@ -47,7 +47,7 @@ app.controller('report_balfeeCtrl', ["$scope", "$filter","$rootScope","$modal",
// $scope.serial = newPageNumber * $scope.itemPerPage - ($scope.itemPerPage-1); // $scope.serial = newPageNumber * $scope.itemPerPage - ($scope.itemPerPage-1);
// } // }
//to filter labels //to filter labels
$scope.filters = { $scope.univModel = {
"branch": "", "branch": "",
"university": "", "university": "",
"batch": "", "batch": "",
@ -103,8 +103,8 @@ app.controller('report_balfeeCtrl', ["$scope", "$filter","$rootScope","$modal",
}, },
data: { data: {
branch: JSON.parse(localStorage.getItem('localObj')).localBranchID, branch: JSON.parse(localStorage.getItem('localObj')).localBranchID,
university: $scope.filters.university, university: $scope.univModel.university.universityID,
batch: $scope.filters.batch batch: $scope.univModel.batch
} }

View File

@ -39,10 +39,12 @@ app.controller('report_certificateCtrl', ["$scope", "$filter","$rootScope","$mod
// DataTables configurable options // DataTables configurable options
$scope.filters = { $scope.univModel = {
"branch": "", "branch": "",
"university": "", "university": "",
"batch": "", "batch": "",
"from_date": "",
"to_date": "",
}; };
@ -94,8 +96,10 @@ app.controller('report_certificateCtrl', ["$scope", "$filter","$rootScope","$mod
}, },
data: { data: {
branch: JSON.parse(localStorage.getItem('localObj')).localBranchID, branch: JSON.parse(localStorage.getItem('localObj')).localBranchID,
university: $scope.filters.university, university: $scope.univModel.university.universityID,
batch: $scope.filters.batch batch: $scope.univModel.batch,
from : $scope.univModel.from_date,
to : $scope.univModel.to_date
} }
}; };

View File

@ -39,7 +39,7 @@ app.controller('report_doc_pendingCtrl', ["$scope", "$filter","$rootScope","$mod
// DataTables configurable options // DataTables configurable options
$scope.filters = { $scope.univModel = {
"branch": "", "branch": "",
"university": "", "university": "",
"batch": "", "batch": "",
@ -95,8 +95,8 @@ app.controller('report_doc_pendingCtrl', ["$scope", "$filter","$rootScope","$mod
}, },
data: { data: {
branch: JSON.parse(localStorage.getItem('localObj')).localBranchID, branch: JSON.parse(localStorage.getItem('localObj')).localBranchID,
university: $scope.filters.university, university: $scope.univModel.university.universityID,
batch: $scope.filters.batch batch: $scope.univModel.batch
} }

View File

@ -39,7 +39,7 @@ app.controller('report_examfeeCtrl', ["$scope", "$filter","$rootScope","$modal",
// DataTables configurable options // DataTables configurable options
$scope.filters = { $scope.univModel = {
"branch": "", "branch": "",
"university": "", "university": "",
"batch": "", "batch": "",
@ -95,8 +95,8 @@ app.controller('report_examfeeCtrl', ["$scope", "$filter","$rootScope","$modal",
}, },
data: { data: {
branch: JSON.parse(localStorage.getItem('localObj')).localBranchID, branch: JSON.parse(localStorage.getItem('localObj')).localBranchID,
university: $scope.filters.university, university: $scope.univModel.university.universityID,
batch: $scope.filters.batch batch: $scope.univModel.batch
} }

View File

@ -39,7 +39,7 @@ app.controller('report_markcard_certificateCtrl', ["$scope", "$filter","$rootSco
// DataTables configurable options // DataTables configurable options
$scope.filters = { $scope.univModel = {
"branch": "", "branch": "",
"university": "", "university": "",
"batch": "", "batch": "",
@ -96,10 +96,10 @@ app.controller('report_markcard_certificateCtrl', ["$scope", "$filter","$rootSco
}, },
data: { data: {
branch: JSON.parse(localStorage.getItem('localObj')).localBranchID, branch: JSON.parse(localStorage.getItem('localObj')).localBranchID,
university: $scope.filters.university, university: $scope.univModel.university.universityID,
batch: $scope.filters.batch, batch: $scope.univModel.batch,
from : $scope.filters.from_date, from : $scope.univModel.from_date,
to : $scope.filters.to_date to : $scope.univModel.to_date
} }
}; };

View File

@ -39,7 +39,7 @@ app.controller('report_markcard_statusCtrl', ["$scope", "$filter","$rootScope",
// DataTables configurable options // DataTables configurable options
$scope.filters = { $scope.univModel = {
"branch": "", "branch": "",
"university": "", "university": "",
"batch": "", "batch": "",
@ -95,8 +95,8 @@ app.controller('report_markcard_statusCtrl', ["$scope", "$filter","$rootScope",
}, },
data: { data: {
branch: JSON.parse(localStorage.getItem('localObj')).localBranchID, branch: JSON.parse(localStorage.getItem('localObj')).localBranchID,
university: $scope.filters.university, university: $scope.univModel.university.universityID,
batch: $scope.filters.batch batch: $scope.univModel.batch
} }
}; };
@ -124,7 +124,7 @@ app.controller('report_markcard_statusCtrl', ["$scope", "$filter","$rootScope",
}, },
// style:'background:#00FF00', // style:'background:#00FF00',
column: { column: {
style:'font-size:10px' style:'font-size:16px'
}, },
}; };

View File

@ -1,7 +1,7 @@
'use strict'; 'use strict';
/*** controller***/ /*** controller***/
app.controller('report_study_material_statusCtrl', ["$scope", "$filter","$rootScope", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', '$window',"dateListDescService","$modal", app.controller('report_study_material_statusCtrl', ["$scope", "$filter","$rootScope", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', '$window',"dateListDescService","$modal","$timeout",
function ($scope, $filter,$rootScope,apiPoint, $http, SweetAlert, $state, md5, ipCookie, $window, dateListDescService,$modal,$log) { function ($scope, $filter,$rootScope,apiPoint, $http, SweetAlert, $state, md5, ipCookie, $window, dateListDescService,$modal,$timeout,$log) {
/** /**
* auto call tracking * auto call tracking
@ -39,7 +39,7 @@ app.controller('report_study_material_statusCtrl', ["$scope", "$filter","$rootSc
// DataTables configurable options // DataTables configurable options
$scope.filters = { $scope.univModel = {
"branch": "", "branch": "",
"university": "", "university": "",
"batch": "", "batch": "",
@ -61,27 +61,44 @@ app.controller('report_study_material_statusCtrl', ["$scope", "$filter","$rootSc
}; };
$http(filterlist).then(function (response) { $http(filterlist).then(function (response) {
if (response.data) { if (response.data) {
$scope.batch=[];
$scope.batchlist = response.data.batch;
$scope.university = response.data.university; $scope.university = response.data.university;
//Desc order Batchlist //Desc order Batchlist
angular.forEach($scope.batchlist,function (values,key) {
var parts = values.BatchDate.split("-");
$scope.batch.push({
"batchcode":values.batchcode,
"batch":values.batch + '('+ values.batchcode + ')',
"BatchDate":values.BatchDate,
"givenDateObject":new Date(parts[2], parts[1] - 1, parts[0])
})
});
// call service for make a list in desc order based on date // call service for make a list in desc order based on date
$scope.batch=dateListDescService.getOrderByList($scope.batch);
// console.log(response.data.batch); // console.log(response.data.batch);
// console.log($scope.batch); // console.log($scope.batch);
} else { } else {
} }
}); });
} }
//dropdown values for batch
$scope.getBatch = function(Form,filters){
$scope.batchValue= filters.university;
var filterBatch = {
method: 'POST',
url: apiPoint.url + 'report_BatchName/',
headers: {
'Content-Type': 'application/json'
},
data: {
branch : JSON.parse(localStorage.getItem('localObj')).localBranchID,
batch : $scope.batchValue
}
};
//console.log($scope.batchValue);
$scope.batchName = "";
$http(filterBatch).then(function (response) {
if (response.data) {
$scope.batchName = response.data.batchName;
console.log($scope.batchName);
} else {
}
});
}
$scope.onSubmit = function() { $scope.onSubmit = function() {
//alert($scope.batch.name); //alert($scope.batch.name);
@ -95,8 +112,8 @@ app.controller('report_study_material_statusCtrl', ["$scope", "$filter","$rootSc
}, },
data: { data: {
branch : JSON.parse(localStorage.getItem('localObj')).localBranchID, branch : JSON.parse(localStorage.getItem('localObj')).localBranchID,
university : $scope.filters.university, university : $scope.univModel.university.universityID,
batch : $scope.filters.batch batch : $scope.univModel.batch
} }
}; };

View File

@ -6,7 +6,7 @@ app.controller('report_waiver_referalCtrl', ["$scope", "API_POINTS", "$http", "S
// DataTables configurable options // DataTables configurable options
$scope.filters = { $scope.univModel = {
"branch": "", "branch": "",
"university": "", "university": "",
"batch": "", "batch": "",
@ -63,8 +63,8 @@ app.controller('report_waiver_referalCtrl', ["$scope", "API_POINTS", "$http", "S
}, },
data: { data: {
branch: JSON.parse(localStorage.getItem('localObj')).localBranchID, branch: JSON.parse(localStorage.getItem('localObj')).localBranchID,
university: $scope.filters.university, university: $scope.univModel.university.universityID,
batch: $scope.filters.batch batch: $scope.univModel.batch
} }

View File

@ -114,11 +114,11 @@
<ui-select multiple ng-model="selectedSubjetcsSem1ViewPage.list" tabindex="4" id="sem1" ng-change="modifySelectedSubjetcs(selectedSubjetcsSem1ViewPage.list);" on-remove="itemRemove($item);"> <ui-select multiple ng-model="selectedSubjetcsSem1ViewPage.list" tabindex="4" id="sem1" ng-change="modifySelectedSubjetcs(selectedSubjetcsSem1ViewPage.list);" on-remove="itemRemove($item);">
<ui-select-match placeholder="Select Subjetcs" > <ui-select-match placeholder="Select Subjetcs" >
{{$item.SubjectName}} {{$item.SubjectCode}}-{{$item.SubjectName}}
</ui-select-match> </ui-select-match>
<ui-select-choices <ui-select-choices
repeat="x in overAllSubjects | filter:$select.search"> repeat="x in overAllSubjects | filter:$select.search">
{{x.SubjectName}} {{x.SubjectCode}}-{{x.SubjectName}}
</ui-select-choices> </ui-select-choices>
</ui-select> </ui-select>
@ -132,11 +132,11 @@
<ui-select multiple ng-model="selectedSubjetcsSem2ViewPage.list" tabindex="5" ng-change="modifySelectedSubjetcs(selectedSubjetcsSem2ViewPage.list);" on-remove="itemRemove($item);"> <ui-select multiple ng-model="selectedSubjetcsSem2ViewPage.list" tabindex="5" ng-change="modifySelectedSubjetcs(selectedSubjetcsSem2ViewPage.list);" on-remove="itemRemove($item);">
<ui-select-match placeholder="Select Subjetcs" > <ui-select-match placeholder="Select Subjetcs" >
{{$item.SubjectName}} {{$item.SubjectCode}}-{{$item.SubjectName}}
</ui-select-match> </ui-select-match>
<ui-select-choices <ui-select-choices
repeat="x in overAllSubjects | filter:$select.search"> repeat="x in overAllSubjects | filter:$select.search">
{{x.SubjectName}} {{x.SubjectCode}}-{{x.SubjectName}}
</ui-select-choices> </ui-select-choices>
</ui-select> </ui-select>
<!-- <pre>{{selectedSubjetcsSem2C.list | json}}</pre> --> <!-- <pre>{{selectedSubjetcsSem2C.list | json}}</pre> -->
@ -156,11 +156,11 @@
<ui-select multiple ng-model="selectedSubjetcsSem3ViewPage.list" tabindex="6" ng-change="modifySelectedSubjetcs(selectedSubjetcsSem3ViewPage.list);" on-remove="itemRemove($item);"> <ui-select multiple ng-model="selectedSubjetcsSem3ViewPage.list" tabindex="6" ng-change="modifySelectedSubjetcs(selectedSubjetcsSem3ViewPage.list);" on-remove="itemRemove($item);">
<ui-select-match placeholder="Select Subjetcs" > <ui-select-match placeholder="Select Subjetcs" >
{{$item.SubjectName}} {{$item.SubjectCode}}-{{$item.SubjectName}}
</ui-select-match> </ui-select-match>
<ui-select-choices <ui-select-choices
repeat="x in overAllSubjects | filter:$select.search"> repeat="x in overAllSubjects | filter:$select.search">
{{x.SubjectName}} {{x.SubjectCode}}-{{x.SubjectName}}
</ui-select-choices> </ui-select-choices>
</ui-select> </ui-select>
<!-- <pre>{{selectedSubjetcsSem3C.list | json}}</pre> --> <!-- <pre>{{selectedSubjetcsSem3C.list | json}}</pre> -->
@ -179,11 +179,11 @@
<ui-select multiple ng-model="selectedSubjetcsSem4ViewPage.list" tabindex="7" ng-change="modifySelectedSubjetcs(selectedSubjetcsSem4ViewPage.list);" on-remove="itemRemove($item);"> <ui-select multiple ng-model="selectedSubjetcsSem4ViewPage.list" tabindex="7" ng-change="modifySelectedSubjetcs(selectedSubjetcsSem4ViewPage.list);" on-remove="itemRemove($item);">
<ui-select-match placeholder="Select Subjetcs" > <ui-select-match placeholder="Select Subjetcs" >
{{$item.SubjectName}} {{$item.SubjectCode}}-{{$item.SubjectName}}
</ui-select-match> </ui-select-match>
<ui-select-choices <ui-select-choices
repeat="x in overAllSubjects | filter:$select.search"> repeat="x in overAllSubjects | filter:$select.search">
{{x.SubjectName}} {{x.SubjectCode}}-{{x.SubjectName}}
</ui-select-choices> </ui-select-choices>
</ui-select> </ui-select>
<!-- <pre>{{selectedSubjetcsSem4C.list | json}}</pre> --> <!-- <pre>{{selectedSubjetcsSem4C.list | json}}</pre> -->
@ -203,11 +203,11 @@
<ui-select multiple ng-model="selectedSubjetcsSem5ViewPage.list" tabindex="8" ng-change="modifySelectedSubjetcs(selectedSubjetcsSem5ViewPage.list);" on-remove="itemRemove($item);"> <ui-select multiple ng-model="selectedSubjetcsSem5ViewPage.list" tabindex="8" ng-change="modifySelectedSubjetcs(selectedSubjetcsSem5ViewPage.list);" on-remove="itemRemove($item);">
<ui-select-match placeholder="Select Subjetcs" > <ui-select-match placeholder="Select Subjetcs" >
{{$item.SubjectName}} {{$item.SubjectCode}}-{{$item.SubjectName}}
</ui-select-match> </ui-select-match>
<ui-select-choices <ui-select-choices
repeat="x in overAllSubjects | filter:$select.search"> repeat="x in overAllSubjects | filter:$select.search">
{{x.SubjectName}} {{x.SubjectCode}}-{{x.SubjectName}}
</ui-select-choices> </ui-select-choices>
</ui-select> </ui-select>
<!-- <pre>{{selectedSubjetcsSem5C.list | json}}</pre> --> <!-- <pre>{{selectedSubjetcsSem5C.list | json}}</pre> -->
@ -221,11 +221,11 @@
<ui-select multiple ng-model="selectedSubjetcsSem6ViewPage.list" tabindex="9" ng-change="modifySelectedSubjetcs(selectedSubjetcsSem6ViewPage.list);" on-remove="itemRemove($item);"> <ui-select multiple ng-model="selectedSubjetcsSem6ViewPage.list" tabindex="9" ng-change="modifySelectedSubjetcs(selectedSubjetcsSem6ViewPage.list);" on-remove="itemRemove($item);">
<ui-select-match placeholder="Select Subjetcs" > <ui-select-match placeholder="Select Subjetcs" >
{{$item.SubjectName}} {{$item.SubjectCode}}-{{$item.SubjectName}}
</ui-select-match> </ui-select-match>
<ui-select-choices <ui-select-choices
repeat="x in overAllSubjects | filter:$select.search"> repeat="x in overAllSubjects | filter:$select.search">
{{x.SubjectName}} {{x.SubjectCode}}-{{x.SubjectName}}
</ui-select-choices> </ui-select-choices>
</ui-select> </ui-select>
<!-- <pre>{{selectedSubjetcsSem6C.list | json}}</pre> --> <!-- <pre>{{selectedSubjetcsSem6C.list | json}}</pre> -->
@ -245,11 +245,11 @@
<ui-select multiple ng-model="selectedSubjetcsSem7ViewPage.list" tabindex="10" ng-change="modifySelectedSubjetcs(selectedSubjetcsSem7ViewPage.list);" on-remove="itemRemove($item);"> <ui-select multiple ng-model="selectedSubjetcsSem7ViewPage.list" tabindex="10" ng-change="modifySelectedSubjetcs(selectedSubjetcsSem7ViewPage.list);" on-remove="itemRemove($item);">
<ui-select-match placeholder="Select Subjetcs" > <ui-select-match placeholder="Select Subjetcs" >
{{$item.SubjectName}} {{$item.SubjectCode}}-{{$item.SubjectName}}
</ui-select-match> </ui-select-match>
<ui-select-choices <ui-select-choices
repeat="x in overAllSubjects | filter:$select.search"> repeat="x in overAllSubjects | filter:$select.search">
{{x.SubjectName}} {{x.SubjectCode}}-{{x.SubjectName}}
</ui-select-choices> </ui-select-choices>
</ui-select> </ui-select>
<!-- <pre>{{viewPage.SubjectDetails[7] | json}}</pre> --> <!-- <pre>{{viewPage.SubjectDetails[7] | json}}</pre> -->
@ -263,11 +263,11 @@
<ui-select multiple ng-model="selectedSubjetcsSem8ViewPage.list" tabindex="11" ng-change="modifySelectedSubjetcs(selectedSubjetcsSem8ViewPage.list);" on-remove="itemRemove($item);"> <ui-select multiple ng-model="selectedSubjetcsSem8ViewPage.list" tabindex="11" ng-change="modifySelectedSubjetcs(selectedSubjetcsSem8ViewPage.list);" on-remove="itemRemove($item);">
<ui-select-match placeholder="Select Subjetcs" > <ui-select-match placeholder="Select Subjetcs" >
{{$item.SubjectName}} {{$item.SubjectCode}}-{{$item.SubjectName}}
</ui-select-match> </ui-select-match>
<ui-select-choices <ui-select-choices
repeat="x in overAllSubjects | filter:$select.search"> repeat="x in overAllSubjects | filter:$select.search">
{{x.SubjectName}} {{x.SubjectCode}}-{{x.SubjectName}}
</ui-select-choices> </ui-select-choices>
</ui-select> </ui-select>
<!-- <pre>{{selectedSubjetcsSem8C.list | json}}</pre> --> <!-- <pre>{{selectedSubjetcsSem8C.list | json}}</pre> -->
@ -367,11 +367,11 @@
<ui-select multiple ng-model="selectedSubjetcsSem1C.list" tabindex="4" id="sem1" ng-change="removeSelectedSubjetcs(selectedSubjetcsSem1C.list);"> <ui-select multiple ng-model="selectedSubjetcsSem1C.list" tabindex="4" id="sem1" ng-change="removeSelectedSubjetcs(selectedSubjetcsSem1C.list);">
<ui-select-match placeholder="Select Subjetcs" > <ui-select-match placeholder="Select Subjetcs" >
{{$item.SubjectName}} {{$item.SubjectCode}}-{{$item.SubjectName}}
</ui-select-match> </ui-select-match>
<ui-select-choices <ui-select-choices
repeat="x in subjects | filter:$select.search"> repeat="x in subjects | filter:$select.search">
{{x.SubjectName}} {{x.SubjectCode}}-{{x.SubjectName}}
</ui-select-choices> </ui-select-choices>
</ui-select> </ui-select>
<!-- <pre>{{selectedSubjetcsSem1C.list | json}}</pre> --> <!-- <pre>{{selectedSubjetcsSem1C.list | json}}</pre> -->
@ -385,11 +385,11 @@
<ui-select multiple ng-model="selectedSubjetcsSem2C.list" tabindex="5" ng-change="removeSelectedSubjetcs(selectedSubjetcsSem2C.list);"> <ui-select multiple ng-model="selectedSubjetcsSem2C.list" tabindex="5" ng-change="removeSelectedSubjetcs(selectedSubjetcsSem2C.list);">
<ui-select-match placeholder="Select Subjetcs" > <ui-select-match placeholder="Select Subjetcs" >
{{$item.SubjectName}} {{$item.SubjectCode}}-{{$item.SubjectName}}
</ui-select-match> </ui-select-match>
<ui-select-choices <ui-select-choices
repeat="x in subjects | filter:$select.search"> repeat="x in subjects | filter:$select.search">
{{x.SubjectName}} {{x.SubjectCode}}-{{x.SubjectName}}
</ui-select-choices> </ui-select-choices>
</ui-select> </ui-select>
<!-- <pre>{{selectedSubjetcsSem2C.list | json}}</pre> --> <!-- <pre>{{selectedSubjetcsSem2C.list | json}}</pre> -->
@ -410,11 +410,11 @@
<ui-select multiple ng-model="selectedSubjetcsSem3C.list" tabindex="6" ng-change="removeSelectedSubjetcs(selectedSubjetcsSem3C.list);"> <ui-select multiple ng-model="selectedSubjetcsSem3C.list" tabindex="6" ng-change="removeSelectedSubjetcs(selectedSubjetcsSem3C.list);">
<ui-select-match placeholder="Select Subjetcs" > <ui-select-match placeholder="Select Subjetcs" >
{{$item.SubjectName}} {{$item.SubjectCode}}-{{$item.SubjectName}}
</ui-select-match> </ui-select-match>
<ui-select-choices <ui-select-choices
repeat="x in subjects | filter:$select.search"> repeat="x in subjects | filter:$select.search">
{{x.SubjectName}} {{x.SubjectCode}}-{{x.SubjectName}}
</ui-select-choices> </ui-select-choices>
</ui-select> </ui-select>
<!-- <pre>{{selectedSubjetcsSem3C.list | json}}</pre> --> <!-- <pre>{{selectedSubjetcsSem3C.list | json}}</pre> -->
@ -433,11 +433,11 @@
<ui-select multiple ng-model="selectedSubjetcsSem4C.list" tabindex="7" ng-change="removeSelectedSubjetcs(selectedSubjetcsSem4C.list);"> <ui-select multiple ng-model="selectedSubjetcsSem4C.list" tabindex="7" ng-change="removeSelectedSubjetcs(selectedSubjetcsSem4C.list);">
<ui-select-match placeholder="Select Subjetcs" > <ui-select-match placeholder="Select Subjetcs" >
{{$item.SubjectName}} {{$item.SubjectCode}}-{{$item.SubjectName}}
</ui-select-match> </ui-select-match>
<ui-select-choices <ui-select-choices
repeat="x in subjects | filter:$select.search"> repeat="x in subjects | filter:$select.search">
{{x.SubjectName}} {{x.SubjectCode}}-{{x.SubjectName}}
</ui-select-choices> </ui-select-choices>
</ui-select> </ui-select>
<!-- <pre>{{selectedSubjetcsSem4C.list | json}}</pre> --> <!-- <pre>{{selectedSubjetcsSem4C.list | json}}</pre> -->
@ -458,11 +458,11 @@
<ui-select multiple ng-model="selectedSubjetcsSem5C.list" tabindex="8" ng-change="removeSelectedSubjetcs(selectedSubjetcsSem5C.list);"> <ui-select multiple ng-model="selectedSubjetcsSem5C.list" tabindex="8" ng-change="removeSelectedSubjetcs(selectedSubjetcsSem5C.list);">
<ui-select-match placeholder="Select Subjetcs" > <ui-select-match placeholder="Select Subjetcs" >
{{$item.SubjectName}} {{$item.SubjectCode}}-{{$item.SubjectName}}
</ui-select-match> </ui-select-match>
<ui-select-choices <ui-select-choices
repeat="x in subjects | filter:$select.search"> repeat="x in subjects | filter:$select.search">
{{x.SubjectName}} {{x.SubjectCode}}-{{x.SubjectName}}
</ui-select-choices> </ui-select-choices>
</ui-select> </ui-select>
<!-- <pre>{{selectedSubjetcsSem5C.list | json}}</pre> --> <!-- <pre>{{selectedSubjetcsSem5C.list | json}}</pre> -->
@ -476,11 +476,11 @@
<ui-select multiple ng-model="selectedSubjetcsSem6C.list" tabindex="9" ng-change="removeSelectedSubjetcs(selectedSubjetcsSem6C.list);"> <ui-select multiple ng-model="selectedSubjetcsSem6C.list" tabindex="9" ng-change="removeSelectedSubjetcs(selectedSubjetcsSem6C.list);">
<ui-select-match placeholder="Select Subjetcs" > <ui-select-match placeholder="Select Subjetcs" >
{{$item.SubjectName}} {{$item.SubjectCode}}-{{$item.SubjectName}}
</ui-select-match> </ui-select-match>
<ui-select-choices <ui-select-choices
repeat="x in subjects | filter:$select.search"> repeat="x in subjects | filter:$select.search">
{{x.SubjectName}} {{x.SubjectCode}}-{{x.SubjectName}}
</ui-select-choices> </ui-select-choices>
</ui-select> </ui-select>
<!-- <pre>{{selectedSubjetcsSem6C.list | json}}</pre> --> <!-- <pre>{{selectedSubjetcsSem6C.list | json}}</pre> -->
@ -501,11 +501,11 @@
<ui-select multiple ng-model="selectedSubjetcsSem7C.list" tabindex="10" ng-change="removeSelectedSubjetcs(selectedSubjetcsSem7C.list);"> <ui-select multiple ng-model="selectedSubjetcsSem7C.list" tabindex="10" ng-change="removeSelectedSubjetcs(selectedSubjetcsSem7C.list);">
<ui-select-match placeholder="Select Subjetcs" > <ui-select-match placeholder="Select Subjetcs" >
{{$item.SubjectName}} {{$item.SubjectCode}}-{{$item.SubjectName}}
</ui-select-match> </ui-select-match>
<ui-select-choices <ui-select-choices
repeat="x in subjects | filter:$select.search"> repeat="x in subjects | filter:$select.search">
{{x.SubjectName}} {{x.SubjectCode}}-{{x.SubjectName}}
</ui-select-choices> </ui-select-choices>
</ui-select> </ui-select>
<!-- <pre>{{selectedSubjetcsSem7C.list | json}}</pre> --> <!-- <pre>{{selectedSubjetcsSem7C.list | json}}</pre> -->
@ -519,11 +519,11 @@
<ui-select multiple ng-model="selectedSubjetcsSem8C.list" tabindex="11" ng-change="removeSelectedSubjetcs(selectedSubjetcsSem8C.list);"> <ui-select multiple ng-model="selectedSubjetcsSem8C.list" tabindex="11" ng-change="removeSelectedSubjetcs(selectedSubjetcsSem8C.list);">
<ui-select-match placeholder="Select Subjetcs" > <ui-select-match placeholder="Select Subjetcs" >
{{$item.SubjectName}} {{$item.SubjectCode}}-{{$item.SubjectName}}
</ui-select-match> </ui-select-match>
<ui-select-choices <ui-select-choices
repeat="x in subjects | filter:$select.search"> repeat="x in subjects | filter:$select.search">
{{x.SubjectName}} {{x.SubjectCode}}-{{x.SubjectName}}
</ui-select-choices> </ui-select-choices>
</ui-select> </ui-select>
<!-- <pre>{{selectedSubjetcsSem8C.list | json}}</pre> --> <!-- <pre>{{selectedSubjetcsSem8C.list | json}}</pre> -->

View File

@ -35,25 +35,23 @@ td,th {
<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">
University University
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.university"> <select ui-select2 class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="university" ng-model="univModel.university" ng-options="details.universityName for details in university">
<option value="" selected>Select University</option> <option value="" selected>Select University</option>
<option ng-repeat="u in university" value="{{u.uid}}"> {{u.university}}</option> </select>
</select>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label for="form-field-select-2"> <label for="form-field-select-2">
Batch Batch
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.batch"> <select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="batch" ng-model="univModel.batch" ng-options="batchDetails.BatchCode as batchDetails.BatchName for batchDetails in univModel.university.batchDetails">
<option value="" selected>Select Batch</option> <option value="" selected>Select Batch</option>
<option ng-repeat="b in batch" value="{{b.batchcode}}"> {{b.batch}}</option> </select>
</select>
</div> </div>
<div class="col-md-2" style="padding-top: 2.3%;"> <div class="col-md-2" style="padding-top: 2.3%;">
<div > <div >
@ -98,6 +96,7 @@ td,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>Issued To Student Date</th> <th>Issued To Student Date</th>
<th>Received From Student Date</th> <th>Received From Student Date</th>
<th>Answer Booklet Status</th> <th>Answer Booklet Status</th>
@ -117,6 +116,7 @@ td,th {
<td>{{p.Sem_year}}({{p.Sem}})</td> <td>{{p.Sem_year}}({{p.Sem}})</td>
<td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.Phone_number}}</a></td> <td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.Phone_number}}</a></td>
<td>{{p.University}}</td> <td>{{p.University}}</td>
<td>{{p.balance}}</td>
<td>{{p.issuedate}}</td> <td>{{p.issuedate}}</td>
<td>{{p.rcvedate}}</td> <td>{{p.rcvedate}}</td>
<td>{{p.Status}}</td> <td>{{p.Status}}</td>

View File

@ -37,25 +37,23 @@
<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">
University University
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.university"> <select ui-select2 class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="university" ng-model="univModel.university" ng-options="details.universityName for details in university">
<option value="" selected>Select University</option> <option value="" selected>Select University</option>
<option ng-repeat="u in university" value="{{u.uid}}"> {{u.university}}</option> </select>
</select>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label for="form-field-select-2"> <label for="form-field-select-2">
Batch Batch
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.batch"> <select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="batch" ng-model="univModel.batch" ng-options="batchDetails.BatchCode as batchDetails.BatchName for batchDetails in univModel.university.batchDetails">
<option value="" selected>Select Batch</option> <option value="" selected>Select Batch</option>
<option ng-repeat="b in batch" value="{{b.batchcode}}"> {{b.batch}}</option> </select>
</select>
</div> </div>
<div class="col-md-2" style="padding-top: 2.3%;"> <div class="col-md-2" style="padding-top: 2.3%;">
<div > <div >
@ -102,6 +100,7 @@
<th>Phone No</th> <th>Phone No</th>
<th>University</th> <th>University</th>
<th>Application Status</th> <th>Application Status</th>
<th>Date</th>
@ -120,6 +119,7 @@
<td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.Phone_number}}</a></td> <td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.Phone_number}}</a></td>
<td>{{p.University}}</td> <td>{{p.University}}</td>
<td>{{p.Status}}</td> <td>{{p.Status}}</td>
<td>{{p.appdate}}</td>
</tr> </tr>

View File

@ -29,26 +29,24 @@
<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">
University University
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.university"> <select ui-select2 class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="university" ng-model="univModel.university" ng-options="details.universityName for details in university">
<option value="" selected>Select University</option> <option value="" selected>Select University</option>
<option ng-repeat="u in university" value="{{u.uid}}"> {{u.university}}</option> </select>
</select> </div>
</div> <div class="col-md-3">
<div class="col-md-3"> <label for="form-field-select-2">
<label for="form-field-select-2"> Batch
Batch </label>
</label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.batch"> <select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="batch" ng-model="univModel.batch" ng-options="batchDetails.BatchCode as batchDetails.BatchName for batchDetails in univModel.university.batchDetails">
<option value="" selected>Select Batch</option> <option value="" selected>Select Batch</option>
<option ng-repeat="b in batch" value="{{b.batchcode}}"> {{b.batch}}</option> </select>
</select> </div>
</div>
<div class="col-md-2" style="padding-top: 2.3%;"> <div class="col-md-2" style="padding-top: 2.3%;">
<div > <div >
@ -75,8 +73,10 @@
<div class="col-md-2"> <div class="col-md-2">
<span>Paid:Rs.</span><span>{{getpaid()}}</span> <span>Paid:Rs.</span><span>{{getpaid()}}</span>
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<span>Balance:</span><span>{{getbalance()/gettotal()*100 | number : 2 || "0"}}%</span> <span>Balance:Rs.</span><span>{{getbalance()}}</span>
<span>({{getbalance()/gettotal()*100 | number : 2 || "0"}}%)</span>
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<button class="btn btn-success btn-o" ng-click="calltracking()">Call Tracking</button> <button class="btn btn-success btn-o" ng-click="calltracking()">Call Tracking</button>

View File

@ -35,30 +35,65 @@ td,th {
<div class="row"> <div class="row">
<div class="col-md-3"> <div class="col-md-4">
<label for="form-field-select-2"> <label for="form-field-select-2">
University University
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.university"> <select ui-select2 class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="university" ng-model="univModel.university" ng-options="details.universityName for details in university">
<option value="" selected>Select University</option> <option value="" selected>Select University</option>
<option ng-repeat="u in university" value="{{u.uid}}"> {{u.university}}</option> </select>
</select>
</div> </div>
<div class="col-md-3"> <div class="col-md-4">
<label for="form-field-select-2"> <label for="form-field-select-2">
Batch Batch
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.batch"> <select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="batch" ng-model="univModel.batch" ng-options="batchDetails.BatchCode as batchDetails.BatchName for batchDetails in univModel.university.batchDetails">
<option value="" selected>Select Batch</option> <option value="" selected>Select Batch</option>
<option ng-repeat="b in batch" value="{{b.batchcode}}">{{b.batch}}</option> </select>
</select>
</div> </div>
</div>
<div class="row">
<div class="col-md-4">
<!--<pre>{{searchData.date}}</pre>-->
<div data-ng-controller="DatepickerDemoCtrl">
<label>
From Date
</label>
<input type="text" tabindex="1" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="filters.from_date"
is-open="startOpen" ng-init="startOpen = false" name="addDate" datepicker-options="dateOptions"
placeholder="Select Date" close-text="Close" required="required" ng-change="changeDate()"
show-button-bar="true" />
</div>
</div>
<div class="col-md-4">
<!--<pre>{{searchData.date}}</pre>-->
<div data-ng-controller="DatepickerDemoCtrl">
<label>
To Date
</label>
<input type="text" tabindex="1" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="filters.to_date"
is-open="startOpen" ng-init="startOpen = false" name="addDate" datepicker-options="dateOptions"
placeholder="Select Date" close-text="Close" required="required" ng-change="changeToDate()"
show-button-bar="true" />
<div class="col-md-2" style="padding-top: 2.3%;"> </div>
<div class="pull-right"> </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-3" style="padding-top: 2.3%;">
<div >
<button type="submit" class="btn btn-success btn-o" tabindex="8"> <button type="submit" class="btn btn-success btn-o" tabindex="8">
Submit Submit
@ -66,10 +101,10 @@ td,th {
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</fieldset> </fieldset>

View File

@ -35,25 +35,25 @@ td,th {
<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">
University University
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.university"> <select ui-select2 class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="university" ng-model="univModel.university" ng-options="details.universityName for details in university" >
<option value="" selected>Select University</option> <option value="" selected>Select University</option>
<option ng-repeat="u in university" value="{{u.uid}}"> {{u.university}}</option> </select>
</select> <!--<p ng-show="Form.university.$error.required">Providing a username is mandatory.</p>-->
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label for="form-field-select-2"> <label for="form-field-select-2">
Batch Batch
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.batch"> <select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="batch" ng-model="univModel.batch" ng-options="batchDetails.BatchCode as batchDetails.BatchName for batchDetails in univModel.university.batchDetails">
<option value="" selected>Select Batch</option> <option value="" selected >Select Batch</option>
<option ng-repeat="b in batch" value="{{b.batchcode}}"> {{b.batch}}</option> </select>
</select> <!-- <p ng-show="Form.batch.$error.required">Providing a username is mandatory.</p>-->
</div> </div>
<div class="col-md-2" style="padding-top: 2.3%;"> <div class="col-md-2" style="padding-top: 2.3%;">
<div > <div >
@ -100,8 +100,8 @@ td,th {
<th>Phone No</th> <th>Phone No</th>
<th>University</th> <th>University</th>
<th>Document Applied Date</th> <th>Document Applied Date</th>
<!-- <th>Document Name</th> <th>Pending Document</th>
<th>Document Status</th> --> <!-- <th>Document Status</th> -->
@ -120,8 +120,8 @@ td,th {
<td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.Phone_number}}</a></td> <td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.Phone_number}}</a></td>
<td>{{p.University}}</td> <td>{{p.University}}</td>
<td>{{p.adate}}</td> <td>{{p.adate}}</td>
<!-- <td>{{p.certname}}</td> <td>{{p.certname}}</td>
<td>{{p.Status}}</td> --> <!-- <td>{{p.Status}}</td> -->
</tr> </tr>

View File

@ -35,26 +35,24 @@
<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">
University University
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.university"> <select ui-select2 class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="university" ng-model="univModel.university" ng-options="details.universityName for details in university">
<option value="" selected>Select University</option> <option value="" selected>Select University</option>
<option ng-repeat="u in university" value="{{u.uid}}"> {{u.university}}</option> </select>
</select> </div>
</div> <div class="col-md-3">
<div class="col-md-3"> <label for="form-field-select-2">
<label for="form-field-select-2"> Batch
Batch </label>
</label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.batch"> <select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="batch" ng-model="univModel.batch" ng-options="batchDetails.BatchCode as batchDetails.BatchName for batchDetails in univModel.university.batchDetails">
<option value="" selected>Select Batch</option> <option value="" selected>Select Batch</option>
<option ng-repeat="b in batch" value="{{b.batchcode}}"> {{b.batch}}</option> </select>
</select> </div>
</div>
<div class="col-md-2" style="padding-top: 2.3%;"> <div class="col-md-2" style="padding-top: 2.3%;">
<div > <div >

View File

@ -40,20 +40,18 @@ td,th {
University University
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.university"> <select ui-select2 class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="university" ng-model="univModel.university" ng-options="details.universityName for details in university">
<option value="" selected>Select University</option> <option value="" selected>Select University</option>
<option ng-repeat="u in university" value="{{u.uid}}"> {{u.university}}</option> </select>
</select>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="form-field-select-2"> <label for="form-field-select-2">
Batch Batch
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.batch"> <select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="batch" ng-model="univModel.batch" ng-options="batchDetails.BatchCode as batchDetails.BatchName for batchDetails in univModel.university.batchDetails">
<option value="" selected>Select Batch</option> <option value="" selected>Select Batch</option>
<option ng-repeat="b in batch" value="{{b.batchcode}}"> {{b.batch}}</option> </select>
</select>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
@ -142,12 +140,11 @@ td,th {
<th>Phone No</th> <th>Phone No</th>
<th>University</th> <th>University</th>
<th>Balance Fee</th> <th>Balance Fee</th>
<th>Markcard Status</th>
<th>Date</th>
<th>Markcard Issued Comments</th>
<th>Certificates Name</th> <th>Certificates Name</th>
<th>Certificates Status</th> <th>Received Status</th>
<th>Date</th> <th>Received Date</th>
<th>Issued Status</th>
<th>Issued Date</th>
<th>Certificate Issued Comments</th> <th>Certificate Issued Comments</th>
</tr> </tr>
@ -165,13 +162,13 @@ td,th {
<td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.Phone_number}}</a></td> <td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.Phone_number}}</a></td>
<td>{{p.University}}</td> <td>{{p.University}}</td>
<td>{{p.Balance_fee}}</td> <td>{{p.Balance_fee}}</td>
<td>{{p.Markcard_status}}</td> <td>{{p.Certificate_name}}</td>
<td>{{p.Markcard_date}}</td> <td>{{p.received_status}}</td>
<td>{{p.Markcard_comments}}</td> <td>{{p.received_date}}</td>
<td>{{p.Certificate_name}}</td> <td>{{p.issued_status}}</td>
<td>{{p.Certificate_status}}</td> <td>{{p.issued_date}}</td>
<td>{{p.Certificate_date}}</td> <td>{{p.issued_comments}}</td>
<td>{{p.Certificate_comments}}</td>
</tr> </tr>
</tbody> </tbody>

View File

@ -31,20 +31,18 @@
University University
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.university"> <select ui-select2 class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="university" ng-model="univModel.university" ng-options="details.universityName for details in university">
<option value="" selected>Select University</option> <option value="" selected>Select University</option>
<option ng-repeat="u in university" value="{{u.uid}}"> {{u.university}}</option> </select>
</select>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label for="form-field-select-2"> <label for="form-field-select-2">
Batch Batch
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.batch"> <select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="batch" ng-model="univModel.batch" ng-options="batchDetails.BatchCode as batchDetails.BatchName for batchDetails in univModel.university.batchDetails">
<option value="" selected>Select Batch</option> <option value="" selected>Select Batch</option>
<option ng-repeat="b in batch" value="{{b.batchcode}}"> {{b.batch}}</option> </select>
</select>
</div> </div>
<!-- <div class="col-md-3"> <!-- <div class="col-md-3">
<label for="form-field-select-2"> <label for="form-field-select-2">

View File

@ -28,20 +28,18 @@
University University
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.university"> <select ui-select2 class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="university" ng-model="univModel.university" ng-options="details.universityName for details in university">
<option value="" selected>Select University</option> <option value="" selected>Select University</option>
<option ng-repeat="u in university" value="{{u.uid}}"> {{u.university}}</option> </select>
</select>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label for="form-field-select-2"> <label for="form-field-select-2">
Batch Batch
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.batch"> <select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="batch" ng-model="univModel.batch" ng-options="batchDetails.BatchCode as batchDetails.BatchName for batchDetails in univModel.university.batchDetails">
<option value="" selected>Select Batch</option> <option value="" selected>Select Batch</option>
<option ng-repeat="b in batch" value="{{b.batchcode}}">{{b.batch}} </option> </select>
</select>
</div> </div>
<!-- <div class="col-md-3"> <!-- <div class="col-md-3">
<label for="form-field-select-2"> <label for="form-field-select-2">
@ -110,7 +108,7 @@
<td><input type="checkbox" ng-checked="myModel.all" id="{{p.Student_id}}" name="{{p.Student_id}}" class="form-control" ng-click="isClick($event);" /></td> <td><input type="checkbox" ng-checked="myModel.all" id="{{p.Student_id}}" name="{{p.Student_id}}" class="form-control" ng-click="isClick($event);" /></td>
<td>{{p.SL_NO}}</td> <td>{{p.SL_NO}}</td>
<td>{{p.Initial_paid_date}}</td> <td>{{p.Initial_paid_date}}</td>
<td>{{p.Enrollment_id}}</td> <td>{{p.Enrollment_id || '-'}}</td>
<td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.Student_name}}</a></td> <td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.Student_name}}</a></td>
<td>{{p.Father_name}}</td> <td>{{p.Father_name}}</td>
<td>{{p.Course_name}}</td> <td>{{p.Course_name}}</td>

View File

@ -33,25 +33,23 @@
<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">
University University
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.university"> <select ui-select2 class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="university" ng-model="univModel.university" ng-options="details.universityName for details in university">
<option value="" selected>Select University</option> <option value="" selected>Select University</option>
<option ng-repeat="u in university" value="{{u.uid}}"> {{u.university}}</option> </select>
</select>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label for="form-field-select-2"> <label for="form-field-select-2">
Batch Batch
</label> </label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="filters" ng-model="filters.batch"> <select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="batch" ng-model="univModel.batch" ng-options="batchDetails.BatchCode as batchDetails.BatchName for batchDetails in univModel.university.batchDetails">
<option value="" selected>Select Batch</option> <option value="" selected>Select Batch</option>
<option ng-repeat="b in batch" value="{{b.batchcode}}"> {{b.batch}}</option> </select>
</select>
</div> </div>
<div class="col-md-2" style="padding-top: 2.3%;"> <div class="col-md-2" style="padding-top: 2.3%;">
<div > <div >