report issues fixes

This commit is contained in:
gandhimathi 2018-08-22 19:29:00 +05:30
parent 3b61d0f955
commit 6416efdb4d
10 changed files with 905 additions and 125 deletions

File diff suppressed because it is too large Load Diff

View File

@ -97,7 +97,6 @@ app.controller('report_ans_bookletCtrl', ["$scope", "$filter","$rootScope","$mod
}); });
$scope.show = false; $scope.show = false;
$scope.onSubmit = function (form) { $scope.onSubmit = function (form) {
$scope.filterUniv = angular.fromJson($scope.univModel.university);
var firstError = null; var firstError = null;
if (form.$invalid) { if (form.$invalid) {
var field = null, firstError = null; var field = null, firstError = null;
@ -125,7 +124,7 @@ 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.filterUniv.universityID, university: $scope.univModel.university.universityID,
batch: $scope.univModel.batch batch: $scope.univModel.batch
} }

View File

@ -107,7 +107,6 @@ app.controller('report_balfeeCtrl', ["$scope", "$filter","$rootScope","$modal",
$scope.show = false; $scope.show = false;
$scope.returnResultData = []; $scope.returnResultData = [];
$scope.onSubmit = function (form) { $scope.onSubmit = function (form) {
$scope.filterUniv = angular.fromJson($scope.univModel.university);
$scope.returnResultData.length=0; $scope.returnResultData.length=0;
var firstError = null; var firstError = null;
if (form.$invalid) { if (form.$invalid) {
@ -135,7 +134,7 @@ 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.filterUniv.universityID, university: $scope.univModel.university.universityID,
batch: $scope.univModel.batch batch: $scope.univModel.batch
} }

View File

@ -110,7 +110,6 @@ app.controller('report_certificateCtrl', ["$scope", "$filter","$rootScope","$mod
}); });
$scope.onSubmit = function () { $scope.onSubmit = function () {
$scope.filterUniv = angular.fromJson($scope.univModel.university);
//alert($scope.batch.name); //alert($scope.batch.name);
$scope.cert_data = ''; $scope.cert_data = '';
$scope.message = ''; $scope.message = '';
@ -122,7 +121,7 @@ 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.filterUniv.universityID, university: $scope.univModel.university.universityID,
batch: $scope.univModel.batch, batch: $scope.univModel.batch,
from : $scope.univModel.from_date, from : $scope.univModel.from_date,
to : $scope.univModel.to_date to : $scope.univModel.to_date

View File

@ -98,7 +98,7 @@ app.controller('report_doc_pendingCtrl', ["$scope", "$filter","$rootScope","$mod
//Response data //Response data
$scope.show = false; $scope.show = false;
$scope.onSubmit = function (form) { $scope.onSubmit = function (form) {
$scope.filterUniv = angular.fromJson($scope.univModel.university);
var firstError = null; var firstError = null;
if (form.$invalid) { if (form.$invalid) {
var field = null, firstError = null; var field = null, firstError = null;
@ -126,7 +126,7 @@ 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.filterUniv.universityID, university: $scope.univModel.university.universityID,
batch: $scope.univModel.batch batch: $scope.univModel.batch
} }

View File

@ -13,6 +13,7 @@ app.controller('report_expenseCtrl', ["$scope", "API_POINTS", "$http", "SweetAle
}; };
var localDetail = JSON.parse(localStorage.getItem('localObj')); var localDetail = JSON.parse(localStorage.getItem('localObj'));
const LOCALTYPE = localDetail.localType; const LOCALTYPE = localDetail.localType;
//console.log(LOCALTYPE) //console.log(LOCALTYPE)

View File

@ -97,8 +97,6 @@ app.controller('report_markcard_statusCtrl', ["$scope", "$filter","$rootScope",
$scope.show = false; $scope.show = false;
$scope.onSubmit = function (form) { $scope.onSubmit = function (form) {
$scope.filterUniv = angular.fromJson($scope.univModel.university);
var firstError = null; var firstError = null;
if (form.$invalid) { if (form.$invalid) {
var field = null, firstError = null; var field = null, firstError = null;
@ -126,7 +124,7 @@ 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.filterUniv.universityID, university: $scope.univModel.university.universityID,
batch: $scope.univModel.batch batch: $scope.univModel.batch
} }

View File

@ -144,7 +144,7 @@ app.controller('report_waiver_referalCtrl', ["$scope", "API_POINTS", "$http", "S
$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,University as University,CAST(Phone_number AS NUMBER) as PhoneNumber,staffname as Waiver/referalGivenBy,Waiver_bill as WaiverBillNo,CAST(Waiver_amount AS NUMBER) as WaiverAmount,Referal_bill as ReferalBillNo,CAST(Referal_amount AS NUMBER) as ReferalAmount,Comments as Comments INTO XLS("Waiver_referal_report.xls",?) FROM ?',[mystyle,$scope.waiver_referal_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,University as University,CAST(Phone_number AS NUMBER) as PhoneNumber,staffname as Waiver_ReferalGivenBy,Waiver_bill as WaiverBillNo,CAST(Waiver_amount AS NUMBER) as WaiverAmount,Referal_bill as ReferalBillNo,CAST(Referal_amount AS NUMBER) as ReferalAmount,Comments as Comments INTO XLS("Waiver_referal_report.xls",?) FROM ?',[mystyle,$scope.waiver_referal_data]);
}; };
/*modal controller /*modal controller
* */ * */

View File

@ -156,15 +156,15 @@ td,th {
<tr> <tr>
<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.Document_fee_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>
<!-- <td>{{p.Sem_year}}</td> --> <!-- <td>{{p.Sem_year}}</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_fee}}</td> <td>{{p.Balance_Fee}}</td>
<td>{{p.Certificate_name}}</td> <td>{{p.Certificate_name}}</td>
<td>{{p.Certificate_status}}</td> <td>{{p.Certificate_status}}</td>
<td>{{p.Certificate_date}}</td> <td>{{p.Certificate_date}}</td>

View File

@ -86,6 +86,7 @@
</div> </div>
<div pdf-save-content="getpdf" class="table-responsive"> <div pdf-save-content="getpdf" class="table-responsive">
<h4 style="text-align:center;">Apollo Distance Education College - {{expense_data[0].branch}}</h4>
<h4 style="text-align:center;">Expense Report {{filters.from_date | date : "dd-MM-yyyy"}} To {{filters.to_date | date : "dd-MM-yyyy"}}</h4> <h4 style="text-align:center;">Expense Report {{filters.from_date | date : "dd-MM-yyyy"}} To {{filters.to_date | date : "dd-MM-yyyy"}}</h4>
<table id="datatable" class="table table-hover"> <table id="datatable" class="table table-hover">