new three reports added

This commit is contained in:
gandhimathi 2018-04-06 16:31:55 +05:30
parent dd90a6039b
commit 2b83780bf8
11 changed files with 852 additions and 11 deletions

View File

@ -255,4 +255,7 @@ $route['getCourseSubjectDetails'] = 'HallTickets_Controller/getCourseSubjectDeta
$route['reportstatus'] = 'Report/status';
$route['reportbatchlist'] = 'Report/batch';
$route['reportmstatus'] = 'Report/mstatus';
$route['reportcert_status'] = 'Report/cert_status';
$route['reportmark_cert_status'] = 'Report/markcert_status';
$route['reportexpense'] = 'Report/expense';

View File

@ -85,6 +85,80 @@ class Report extends REST_Controller {
}
}
public function cert_status_post()
{
$bat = $this->post('bname');
$br = $this->post('brname');
$u = $this->post('univ');
$getStatus = $this->report_model->certificate_status($bat,$br,$u);
//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 markcert_status_post()
{
$bat = $this->post('bname');
$br = $this->post('brname');
$u = $this->post('univ');
$from = $this->post('from');
$to = $this->post('to');
$getStatus = $this->report_model->mark_cert_status($bat,$br,$u,$from,$to);
//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 expense_post()
{
$from = $this->post('from');
$to = $this->post('to');
$getStatus = $this->report_model->expense($from,$to);
//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 batch_post()
{

View File

@ -159,17 +159,180 @@ class Reports_model extends CI_Model
$leadDet=$this->db->query($sql);
$mstatusDetails = $leadDet->result();
if (count($mstatusDetails) > 0) {
$results['statusList'] = true;
$results['mstatusList'] = true;
$results['mstatusr'] = $mstatusDetails;
} else {
$results['statusList'] = false;
$results['mstatusList'] = false;
$results['mmessage'] = 'No record found';
}
return $results;
}
public function certificate_status($bat=null,$br=null,$u=null){
$sql = "select @s:=@s+1 sl,sms.sid as ssid,std.name as name,std.father as father,br.bname as bname,ifnull(b.batch,'-') as batch,std.phone as phone,sms.cid as scid,sfp.bdate as bdate,list.status as status,u.uname as uname,cm.course as course,sms.cert_name as cert_name,sms.sem as sem,sms.cdate as cdate,sfs.batch as fbatch,sfs.cid as fcid,cfd.syear as syear,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,ifnull(sfp.bamount,0) as bamount,(sum(sfs.cf) + (sum(sfs.stf) + sum(sfs.others)) - ifnull(sfp.bamount,0)) as balance
from
(SELECT StudentID as sid,CourseID as cid,CertificationType as cert_name,BranchCode as branch,CDate as cdate,ListCode as lcode,Comments as cmts,Sem as sem FROM T_CertificationStatus) as sms
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,batch) as sfs on sfs.sid=sms.sid
left join
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount
FROM T_Students_Fees_PaidDetails, (SELECT @s:= 0) AS s
group by sid,fid,bdate) 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.cid=sms.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 ListCode as lcode,ListName as status FROM T_PickListDetails) as list
on list.lcode=sms.lcode
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
left join
(SELECT BatchCode as bcode,BatchName as batch 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=sms.branch
where std.name != 'null'
";
if ($br!= ''){
$sql.=" and sms.branch = '".$br."'";
}
if ($bat!= ''){
$sql.=" and b.bcode = '".$bat."'";
}
if ($u!= ''){
$sql.=" and u.uid = '".$u."'";
}
$sql.=" group by ssid,sem,fbatch";
$sql.=" order by sl";
$leadDet=$this->db->query($sql);
$cert_statusDetails = $leadDet->result();
if (count($cert_statusDetails) > 0) {
$results['cert_statusList'] = true;
$results['cert_status'] = $cert_statusDetails;
} else {
$results['cert_statusList'] = false;
$results['cert_message'] = 'No record found';
}
return $results;
}
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,std.name as name,std.father as father,br.bname as bname,ifnull(b.batch,'-') as batch,std.phone as phone,sms.cmts as cmts,sms.cid as scid,sfp.bdate as bdate,list.status as status,u.uname as uname,cm.course as course,sms.cert_name as cert_name,sms.sem as sem,sms.cdate as cdate,sfs.batch as fbatch,sfs.cid as fcid,cfd.syear as syear,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,ifnull(sfp.bamount,0) as bamount,(sum(sfs.cf) + (sum(sfs.stf) + sum(sfs.others)) - ifnull(sfp.bamount,0)) as balance
from
(SELECT StudentID as sid,CourseID as cid,CertificationType as cert_name,BranchCode as branch,CDate as cdate,ListCode as lcode,Comments as cmts,Sem as sem FROM T_CertificationStatus) as sms
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,batch) as sfs on sfs.sid=sms.sid
left join
(SELECT StudentID as sid,FeesId as fid,BillDate as bdate,sum(BillAmount) as bamount
FROM T_Students_Fees_PaidDetails, (SELECT @s:= 0) AS s
group by sid,fid,bdate) 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.cid=sms.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 ListCode as lcode,ListName as status FROM T_PickListDetails) as list
on list.lcode=sms.lcode
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
left join
(SELECT BatchCode as bcode,BatchName as batch 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=sms.branch
where std.name != 'null'
";
if ($br!= ''){
$sql.=" and sms.branch = '".$br."'";
}
if ($bat!= ''){
$sql.=" and b.bcode = '".$bat."'";
}
if ($u!= ''){
$sql.=" and u.uid = '".$u."'";
}
if ($from and $to != ''){
$fromd= date("Y-m-d",strtotime($from));
$tod=date("Y-m-d",strtotime($to));
$sql.="and sms.cdate >= '".$fromd."'
and sms.cdate <= '".$tod."'";
}
$sql.=" group by ssid,sem,fbatch";
$sql.=" order by sl";
$leadDet=$this->db->query($sql);
$mcert_statusDetails = $leadDet->result();
if (count($mcert_statusDetails) > 0) {
$results['markcert_statusList'] = true;
$results['markcert_status'] = $mcert_statusDetails;
} else {
$results['markcert_statusList'] = false;
$results['markcert_message'] = 'No record found';
}
return $results;
}
public function expense($from=null,$to=null){
$sql = "SELECT exp.TypeName as exp_name,sum(dbm.Amount) as amount FROM T_Income_Outcome_Master exp
join T_DayBookMaster dbm on dbm.Type=exp.ID
where dbm.Name = 'I001'
";
if ($from and $to != ''){
$fromd= date("d-m-Y",strtotime($from));
$tod=date("d-m-Y",strtotime($to));
$sql.="and dbm.Date >= '".$fromd."'
and dbm.Date <= '".$tod."'";
}
$sql.=" group by exp_name";
$leadDet=$this->db->query($sql);
$expense = $leadDet->result();
if (count($expense) > 0) {
$results['expense_list'] = true;
$results['expense'] = $expense;
} else {
$results['expense_list'] = false;
$results['expense_message'] = 'No record found';
}
return $results;
}
}

View File

@ -79,7 +79,10 @@
"report": {
"TITLE": "REPORTS",
"studmatstatus": "STUDY MATERIAL STATUS ",
"mstatus": "MARK CARD STATUS "
"mstatus": "MARK CARD STATUS ",
"certificate_status": "CERTIFICATE STATUS ",
"certificate_mark_status": "MARKCARD/CERTIFICATE ISSUED STATUS ",
"expense": "EXPENSE REPORT "
},
"student": {

View File

@ -589,6 +589,24 @@ app.config(['$stateProvider', '$urlRouterProvider', '$controllerProvider', '$com
resolve: loadSequence('ui.select','reportCtrl','ngTable', 'ladda', 'angular-ladda'),
title: 'Mark Card Status Report',
}).state('app.reports.certificate', {
url: '/reportCtrl',
templateUrl: "assets/views/report_certificate_status.html",
resolve: loadSequence('ui.select','reportCtrl','ngTable', 'ladda', 'angular-ladda'),
title: 'Certificate Status Report',
}).state('app.reports.mark_certificate', {
url: '/reportCtrl',
templateUrl: "assets/views/report_mark_certificate_status.html",
resolve: loadSequence('ui.select','reportCtrl','ngTable', 'ladda', 'angular-ladda'),
title: 'Markcard/Certificate Status Report',
}).state('app.reports.expense', {
url: '/reportCtrl',
templateUrl: "assets/views/report_expense.html",
resolve: loadSequence('ui.select','reportCtrl','ngTable', 'ladda', 'angular-ladda'),
title: 'Expense Report',
});
// $locationProvider.html5Mode(true);

View File

@ -11,8 +11,33 @@ app.controller('reportCtrl', ["$scope", "API_POINTS", "$http", "SweetAlert", "$s
"name": "",
"brname": "",
"univ": "",
"from_date": "",
"to_date": "",
};
// // change from date(from date)
// $scope.changeDate = function () {
// if($scope.batch.from_date !== undefined) {
// var formate = "dd-MM-yyyy";
// $scope.batch.from_date = $filter('date')(new Date($scope.batch.from_date), formate);
// } else {
// $scope.searchData.date = '';
// }
// }
// // change to date(to date)
// $scope.changeToDate = function () {
// if($scope.batch.to_date !== undefined) {
// var formate = "dd-MM-yyyy";
// $scope.batch.to_date = $filter('date')(new Date($scope.batch.to_date), formate);
// //$scope.getDayBookList();
// } else {
// $scope.batch.to_date = '';
// // $scope.getDayBookList();
// }
// }
$scope.batch = function () {
var bat = {
method: 'POST',
@ -28,7 +53,7 @@ app.controller('reportCtrl', ["$scope", "API_POINTS", "$http", "SweetAlert", "$s
$scope.batch = response.data.batch;
$scope.branch = response.data.branch;
$scope.univ = response.data.univ;
console.log($scope.branch);
//console.log($scope.branch);
} else {
}
});
@ -65,8 +90,8 @@ app.controller('reportCtrl', ["$scope", "API_POINTS", "$http", "SweetAlert", "$s
}
$scope.mSubmit = function() {
//alert($scope.batch.name);
$scope.statusr = '';
$scope.message = '';
$scope.mstatusr = '';
$scope.mmessage = '';
var msta = {
method: 'POST',
url: apiPoint.url + 'reportmstatus/',
@ -82,11 +107,101 @@ app.controller('reportCtrl', ["$scope", "API_POINTS", "$http", "SweetAlert", "$s
};
$http(msta).then(function (response) {
if (response.data.statusList == true) {
if (response.data.mstatusList == true) {
$scope.mstatusr = response.data.mstatusr;
} else {
$scope.mmessage = response.data.message;
$scope.mmessage = response.data.mmessage;
}
});
}
$scope.cert_Submit = function() {
//alert($scope.batch.name);
$scope.cert_status = '';
$scope.cert_message = '';
var msta = {
method: 'POST',
url: apiPoint.url + 'reportcert_status/',
headers: {
'Content-Type': 'application/json'
},
data: {
bname : $scope.batch.name,
brname : $scope.batch.brname,
univ : $scope.batch.univ
}
};
$http(msta).then(function (response) {
if (response.data.cert_statusList == true) {
$scope.cert_status = response.data.cert_status;
} else {
$scope.cert_message = response.data.cert_message;
}
});
}
$scope.mark_cert_Submit = function() {
//alert($scope.batch.name);
console.log($scope.batch);
$scope.markcert_status = '';
$scope.markcert_message = '';
var msta = {
method: 'POST',
url: apiPoint.url + 'reportmark_cert_status/',
headers: {
'Content-Type': 'application/json'
},
data: {
bname : $scope.batch.name,
brname : $scope.batch.brname,
univ : $scope.batch.univ,
from : $scope.batch.from_date,
to : $scope.batch.to_date
}
};
$http(msta).then(function (response) {
if (response.data.markcert_statusList == true) {
$scope.markcert_status = response.data.markcert_status;
} else {
$scope.markcert_message = response.data.markcert_message;
}
});
}
$scope.expense_Submit = function() {
$scope.expense = '';
$scope.expense_message = '';
var msta = {
method: 'POST',
url: apiPoint.url + 'reportexpense/',
headers: {
'Content-Type': 'application/json'
},
data: {
from : $scope.batch.from_date,
to : $scope.batch.to_date
}
};
$http(msta).then(function (response) {
if (response.data.expense_list == true) {
$scope.expense = response.data.expense;
} else {
$scope.expense_message = response.data.expense_message;
}
});

View File

@ -341,6 +341,21 @@
<span class="title" translate="sidebar.nav.report.mstatus">Mark Card Status</span>
</a>
</li>
<li ui-sref-active="active">
<a ui-sref="app.reports.certificate" ng-click="checkSuperAdmin()">
<span class="title" translate="sidebar.nav.report.certificate_status">Certificate Status</span>
</a>
</li>
<li ui-sref-active="active">
<a ui-sref="app.reports.mark_certificate" ng-click="checkSuperAdmin()">
<span class="title" translate="sidebar.nav.report.certificate_mark_status">Markcard and Certificate Status</span>
</a>
</li>
<li ui-sref-active="active">
<a ui-sref="app.reports.expense" ng-click="checkSuperAdmin()">
<span class="title" translate="sidebar.nav.report.expense">Expense Report</span>
</a>
</li>
</ul>

View File

@ -0,0 +1,148 @@
<section id="page-title">
<div class="row">
<div class="col-sm-8">
<h1 class="mainTitle">Certificate Status Report</h1>
</div>
<!-- <div ncy-breadcrumb></div> -->
</div>
</section>
<style>
/* .sort-icon {
font-size: 9px;
margin-left: 5px;
}
th {
cursor: pointer;
} */
</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 ng-controller="reportCtrl" ng-init="batch()">
<form name="Form" id="form" novalidate ng-submit="cert_Submit()" method="post">
<fieldset>
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-3">
<label for="form-field-select-2">
Branch
</label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="batch" ng-model="batch.brname">
<option value="" selected>Select Branch</option>
<option ng-repeat="br in branch" value="{{br.brcode}}"> {{br.bname}}</option>
</select>
</div>
<div class="col-md-3">
<label for="form-field-select-2">
University
</label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="batch" ng-model="batch.univ">
<option value="" selected>Select University</option>
<option ng-repeat="u in univ" value="{{u.uid}}"> {{u.uname}}</option>
</select>
</div>
<div class="col-md-3">
<label for="form-field-select-2">
Batch
</label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="batch" ng-model="batch.name">
<option value="" selected>Select Batch</option>
<option ng-repeat="b in batch" value="{{b.batch}}"> {{b.bname}}</option>
</select>
</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="pull-right">
<button type="submit" class="btn btn-success btn-o" tabindex="8">
Submit
</button>
</div>
</div>
</div>
</div>
</div>
</fieldset>
</form>
<!-- <pre>{{statusr | json}}</pre> -->
<div style="text-align: right;">
<a download="certificate_status({{batch.name}}).xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Certificate Status');">
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
</a>
</div>
<div class="table-responsive">
<table id="datatable" class="table table-hover">
<thead>
<tr>
<th>SL.No</th>
<th>Document Fee Paid Date</th>
<th>Student ID</th>
<th>Student Name</th>
<th>Father Name</th>
<th>Course</th>
<th>Sem/Year</th>
<th>Phone No</th>
<th>University</th>
<th>Balance Fee</th>
<th>Certificates Name</th>
<th>Certificates Status</th>
<th>Date</th>
</tr>
</thead>
<tbody dir-paginate="p in cert_status|filter:search:strict|itemsPerPage:10">
<tr>
<td>{{p.sl}}</td>
<td>{{p.bdate}}</td>
<td>{{p.ssid}}</td>
<td>{{p.name}}</td>
<td>{{p.father}}</td>
<td>{{p.course}}</td>
<td>{{p.syear}}({{p.sem}})</td>
<td>{{p.phone}}</td>
<td>{{p.univ}}</td>
<td>{{p.balance}}</td>
<td>{{p.cert_name}}</td>
<td>{{p.status}}</td>
<td>{{p.cdate}}</td>
</tr>
</tbody>
</table>
<h3 style="text-align:center;">{{cert_message}}</h3>
</div>
<dir-pagination-controls direction-links="true" boundary-links="true">
</dir-pagination-controls>
</div>
</div>

View File

@ -0,0 +1,118 @@
<section id="page-title">
<div class="row">
<div class="col-sm-8">
<h1 class="mainTitle">Expense Report</h1>
</div>
<!-- <div ncy-breadcrumb></div> -->
</div>
</section>
<style>
/* .sort-icon {
font-size: 9px;
margin-left: 5px;
}
th {
cursor: pointer;
} */
</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 ng-controller="reportCtrl" ng-init="batch()">
<form name="Form" id="form" novalidate ng-submit="expense_Submit()" method="post">
<fieldset>
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-3">
<!--<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="batch.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-3">
<!--<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="batch.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>
</div>
<div class="col-md-2" style="padding-top: 2.3%;">
<div class="pull-right">
<button type="submit" class="btn btn-success btn-o" tabindex="8">
Submit
</button>
</div>
</div>
</div>
</div>
</div>
</fieldset>
</form>
<!-- <pre>{{statusr | json}}</pre> -->
<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="Export()" tabindex="8">Export to Excel</button>
</a>
</div>
<div class="table-responsive">
<table id="datatable" class="table table-hover">
<thead>
<tr>
<th>SL.No</th>
<th>Description</th>
<th>Total Amount</th>
</tr>
</thead>
<tbody dir-paginate="p in expense|filter:search:strict|itemsPerPage:10">
<tr>
<td>{{$index + 1}}</td>
<td>{{p.exp_name}}</td>
<td style ="text-align:right;">{{p.amount}}</td>
</tr>
</tbody>
</table>
<h3 style="text-align:center;">{{expense_message}}</h3>
</div>
<dir-pagination-controls direction-links="true" boundary-links="true">
</dir-pagination-controls>
</div>
</div>

View File

@ -0,0 +1,184 @@
<section id="page-title">
<div class="row">
<div class="col-sm-8">
<h1 class="mainTitle">Markcard/Certificate Issued Status Report</h1>
</div>
<!-- <div ncy-breadcrumb></div> -->
</div>
</section>
<style>
/* .sort-icon {
font-size: 9px;
margin-left: 5px;
}
th {
cursor: pointer;
} */
</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 ng-controller="reportCtrl" ng-init="batch()">
<form name="Form" id="form" novalidate ng-submit="mark_cert_Submit()" method="post">
<fieldset>
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-3">
<label for="form-field-select-2">
Branch
</label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="batch" ng-model="batch.brname">
<option value="" selected>Select Branch</option>
<option ng-repeat="br in branch" value="{{br.brcode}}"> {{br.bname}}</option>
</select>
</div>
<div class="col-md-3">
<label for="form-field-select-2">
University
</label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="batch" ng-model="batch.univ">
<option value="" selected>Select University</option>
<option ng-repeat="u in univ" value="{{u.uid}}"> {{u.uname}}</option>
</select>
</div>
<div class="col-md-3">
<label for="form-field-select-2">
Batch
</label>
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="batch" ng-model="batch.name">
<option value="" selected>Select Batch</option>
<option ng-repeat="b in batch" value="{{b.batch}}"> {{b.bname}}</option>
</select>
</div>
</div>
<div class="row">
<div class="col-md-3">
<!--<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="batch.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-3">
<!--<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="batch.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>
</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="pull-right">
<button type="submit" class="btn btn-success btn-o" tabindex="8">
Submit
</button>
</div>
</div>
</div>
</div>
</div>
</fieldset>
</form>
<!-- <pre>{{statusr | json}}</pre> -->
<div style="text-align: right;">
<a download="Mark_Card_certificate_status({{batch.name}}).xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Markcard/Certificate Status');">
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
</a>
</div>
<div class="table-responsive">
<table id="datatable" class="table table-hover">
<thead>
<tr>
<th>SL.No</th>
<th>Document Fee Paid Date</th>
<th>Student ID</th>
<th>Student Name</th>
<th>Father Name</th>
<th>Course</th>
<th>Sem/Year</th>
<th>Phone No</th>
<th>University</th>
<th>Balance Fee</th>
<th>Markcard Status</th>
<th>Date</th>
<th>Markcard Issued Comments</th>
<th>Certificates Name</th>
<th>Certificates Status</th>
<th>Date</th>
<th>Certificate Issued Comments</th>
</tr>
</thead>
<tbody dir-paginate="p in markcert_status|filter:search:strict|itemsPerPage:10">
<tr>
<td>{{p.sl}}</td>
<td>{{p.bdate}}</td>
<td>{{p.ssid}}</td>
<td>{{p.name}}</td>
<td>{{p.father}}</td>
<td>{{p.course}}</td>
<td>{{p.syear}}({{p.sem}})</td>
<td>{{p.phone}}</td>
<td>{{p.univ}}</td>
<td>{{p.balance}}</td>
<td>{{p.status}}</td>
<td>{{p.cdate}}</td>
<td>{{p.cmts}}</td>
<td>{{p.cert_name}}</td>
<td>{{p.status}}</td>
<td>{{p.cdate}}</td>
<td>{{p.cmts}}</td>
</tr>
</tbody>
</table>
<h3 style="text-align:center;">{{markcert_message}}</h3>
</div>
<dir-pagination-controls direction-links="true" boundary-links="true">
</dir-pagination-controls>
</div>
</div>

View File

@ -89,7 +89,7 @@
</form>
<!-- <pre>{{statusr | json}}</pre> -->
<div style="text-align: right;">
<a download="Mark_Card_status({{batch.name}}).xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Study Material Status');">
<a download="Mark_Card_status({{batch.name}}).xls" href="#" onclick="return ngTableExcelExport.excel(this, 'datatable', 'Mark Card Status');">
<button class="btn btn-success btn-o" ng-click="Export()" tabindex="8">Export to Excel</button>
</a>
@ -136,7 +136,7 @@
</tbody>
</table>
<h3 style="text-align:center;">{{message}}</h3>
<h3 style="text-align:center;">{{mmessage}}</h3>
</div>