Merge branch 'master' of https://bitbucket.org/venbainformationtechnology/apollodec
This commit is contained in:
commit
6b57550938
@ -417,7 +417,7 @@ app.controller('answerBookletStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
|
||||
}]);
|
||||
/*modal controller
|
||||
* */
|
||||
app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $modal, $log,apiPoint,$http) {
|
||||
app.controller('studentModalDemoCtrl', ["$scope", "$rootScope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $rootScope, $modal, $log,apiPoint,$http) {
|
||||
//Tooltip for print button
|
||||
$scope.dynamicTooltip = 'Student View';
|
||||
|
||||
@ -499,6 +499,21 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
|
||||
$log.info('Modal dismissed at: ' + new Date());
|
||||
});
|
||||
};
|
||||
$scope.printStudentDetails = function (details) {
|
||||
$rootScope.pdfItems = details;
|
||||
|
||||
var printInstance = $modal.open({
|
||||
templateUrl: 'assets/views/student/studentPdf.html',
|
||||
controller: 'studentModalDemoCtrl',
|
||||
});
|
||||
};
|
||||
|
||||
// generate pdf for student view
|
||||
$scope.export = function(getName) {
|
||||
kendo.drawing.drawDOM($("#exportthis")).then(function(group) {
|
||||
kendo.drawing.pdf.saveAs(group, getName+".pdf");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}]);
|
||||
|
||||
@ -436,7 +436,7 @@ app.controller('applicationStatusCtrl', ["$scope", "toaster", "$filter", "ngTabl
|
||||
}]);
|
||||
/*modal controller
|
||||
* */
|
||||
app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $modal, $log,apiPoint,$http) {
|
||||
app.controller('studentModalDemoCtrl', ["$scope", "$rootScope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $rootScope, $modal, $log,apiPoint,$http) {
|
||||
//Tooltip for print button
|
||||
$scope.dynamicTooltip = 'Student View';
|
||||
|
||||
@ -518,6 +518,21 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
|
||||
$log.info('Modal dismissed at: ' + new Date());
|
||||
});
|
||||
};
|
||||
$scope.printStudentDetails = function (details) {
|
||||
$rootScope.pdfItems = details;
|
||||
|
||||
var printInstance = $modal.open({
|
||||
templateUrl: 'assets/views/student/studentPdf.html',
|
||||
controller: 'studentModalDemoCtrl',
|
||||
});
|
||||
};
|
||||
|
||||
// generate pdf for student view
|
||||
$scope.export = function(getName) {
|
||||
kendo.drawing.drawDOM($("#exportthis")).then(function(group) {
|
||||
kendo.drawing.pdf.saveAs(group, getName+".pdf");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}]);
|
||||
|
||||
@ -1712,7 +1712,7 @@ app.filter('unique', function() {
|
||||
|
||||
/*modal controller
|
||||
* */
|
||||
app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $modal, $log,apiPoint,$http) {
|
||||
app.controller('studentModalDemoCtrl', ["$scope", "$rootScope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $rootScope, $modal, $log,apiPoint,$http) {
|
||||
//Tooltip for print button
|
||||
$scope.dynamicTooltip = 'Student View';
|
||||
|
||||
@ -1794,6 +1794,21 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
|
||||
$log.info('Modal dismissed at: ' + new Date());
|
||||
});
|
||||
};
|
||||
$scope.printStudentDetails = function (details) {
|
||||
$rootScope.pdfItems = details;
|
||||
|
||||
var printInstance = $modal.open({
|
||||
templateUrl: 'assets/views/student/studentPdf.html',
|
||||
controller: 'studentModalDemoCtrl',
|
||||
});
|
||||
};
|
||||
|
||||
// generate pdf for student view
|
||||
$scope.export = function(getName) {
|
||||
kendo.drawing.drawDOM($("#exportthis")).then(function(group) {
|
||||
kendo.drawing.pdf.saveAs(group, getName+".pdf");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}]);
|
||||
|
||||
@ -457,7 +457,7 @@ app.controller('certificationStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
|
||||
}]);
|
||||
/*modal controller
|
||||
* */
|
||||
app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $modal, $log,apiPoint,$http) {
|
||||
app.controller('studentModalDemoCtrl', ["$scope", "$rootScope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $rootScope, $modal, $log,apiPoint,$http) {
|
||||
//Tooltip for print button
|
||||
$scope.dynamicTooltip = 'Student View';
|
||||
|
||||
@ -512,6 +512,21 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
|
||||
|
||||
}
|
||||
});
|
||||
$scope.printStudentDetails = function (details) {
|
||||
$rootScope.pdfItems = details;
|
||||
|
||||
var printInstance = $modal.open({
|
||||
templateUrl: 'assets/views/student/studentPdf.html',
|
||||
controller: 'studentModalDemoCtrl',
|
||||
});
|
||||
};
|
||||
|
||||
// generate pdf for student view
|
||||
$scope.export = function(getName) {
|
||||
kendo.drawing.drawDOM($("#exportthis")).then(function(group) {
|
||||
kendo.drawing.pdf.saveAs(group, getName+".pdf");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
@ -237,7 +237,7 @@ app.filter('unique', function() {
|
||||
|
||||
/*modal controller
|
||||
* */
|
||||
app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $modal, $log,apiPoint,$http) {
|
||||
app.controller('studentModalDemoCtrl', ["$scope", "$rootScope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $rootScope, $modal, $log,apiPoint,$http) {
|
||||
//Tooltip for print button
|
||||
$scope.dynamicTooltip = 'Student View';
|
||||
|
||||
@ -319,6 +319,21 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
|
||||
$log.info('Modal dismissed at: ' + new Date());
|
||||
});
|
||||
};
|
||||
$scope.printStudentDetails = function (details) {
|
||||
$rootScope.pdfItems = details;
|
||||
|
||||
var printInstance = $modal.open({
|
||||
templateUrl: 'assets/views/student/studentPdf.html',
|
||||
controller: 'studentModalDemoCtrl',
|
||||
});
|
||||
};
|
||||
|
||||
// generate pdf for student view
|
||||
$scope.export = function(getName) {
|
||||
kendo.drawing.drawDOM($("#exportthis")).then(function(group) {
|
||||
kendo.drawing.pdf.saveAs(group, getName+".pdf");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}]);
|
||||
|
||||
@ -2238,7 +2238,7 @@ app.directive('visible', function() {
|
||||
});
|
||||
/*modal controller
|
||||
* */
|
||||
app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $modal, $log,apiPoint,$http) {
|
||||
app.controller('studentModalDemoCtrl', ["$scope", "$rootScope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $rootScope, $modal, $log,apiPoint,$http) {
|
||||
//Tooltip for print button
|
||||
$scope.dynamicTooltip = 'Student View';
|
||||
|
||||
@ -2322,6 +2322,23 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
|
||||
});
|
||||
};
|
||||
|
||||
$scope.printStudentDetails = function (details) {
|
||||
$rootScope.pdfItems = details;
|
||||
|
||||
var printInstance = $modal.open({
|
||||
templateUrl: 'assets/views/student/studentPdf.html',
|
||||
controller: 'studentModalDemoCtrl',
|
||||
});
|
||||
};
|
||||
|
||||
// generate pdf for student view
|
||||
$scope.export = function(getName) {
|
||||
kendo.drawing.drawDOM($("#exportthis")).then(function(group) {
|
||||
kendo.drawing.pdf.saveAs(group, getName+".pdf");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
}]);
|
||||
|
||||
|
||||
@ -288,7 +288,7 @@ app.filter('unique', function() {
|
||||
|
||||
/*modal controller
|
||||
* */
|
||||
app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $modal, $log,apiPoint,$http) {
|
||||
app.controller('studentModalDemoCtrl', ["$scope", "$rootScope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $rootScope, $modal, $log,apiPoint,$http) {
|
||||
//Tooltip for print button
|
||||
$scope.dynamicTooltip = 'Student View';
|
||||
|
||||
@ -370,6 +370,21 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
|
||||
$log.info('Modal dismissed at: ' + new Date());
|
||||
});
|
||||
};
|
||||
$scope.printStudentDetails = function (details) {
|
||||
$rootScope.pdfItems = details;
|
||||
|
||||
var printInstance = $modal.open({
|
||||
templateUrl: 'assets/views/student/studentPdf.html',
|
||||
controller: 'studentModalDemoCtrl',
|
||||
});
|
||||
};
|
||||
|
||||
// generate pdf for student view
|
||||
$scope.export = function(getName) {
|
||||
kendo.drawing.drawDOM($("#exportthis")).then(function(group) {
|
||||
kendo.drawing.pdf.saveAs(group, getName+".pdf");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}]);
|
||||
|
||||
@ -3017,7 +3017,7 @@ app.filter('unique', function () {
|
||||
});
|
||||
/*modal controller
|
||||
* */
|
||||
app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $modal, $log, apiPoint, $http) {
|
||||
app.controller('studentModalDemoCtrl', ["$scope","$rootScope", "$modal", "$log", "API_POINTS", "$http", function ($scope,$rootScope, $modal, $log, apiPoint, $http) {
|
||||
//Tooltip for print button
|
||||
$scope.dynamicTooltip = 'Student View';
|
||||
|
||||
@ -3100,6 +3100,22 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
|
||||
});
|
||||
};
|
||||
|
||||
$scope.printStudentDetails = function (details) {
|
||||
$rootScope.pdfItems = details;
|
||||
|
||||
var printInstance = $modal.open({
|
||||
templateUrl: 'assets/views/student/studentPdf.html',
|
||||
controller: 'studentModalDemoCtrl',
|
||||
});
|
||||
};
|
||||
|
||||
// generate pdf for student view
|
||||
$scope.export = function(getName) {
|
||||
kendo.drawing.drawDOM($("#exportthis")).then(function(group) {
|
||||
kendo.drawing.pdf.saveAs(group, getName+".pdf");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}]);
|
||||
|
||||
|
||||
@ -4,13 +4,13 @@
|
||||
* Simple table with sorting and filtering on AngularJS
|
||||
*/
|
||||
|
||||
app.controller('studentViewCtrl', ["$scope","$rootScope", "toaster", "$filter", "ngTableParams", "API_POINTS", "$localStorage", "$http", "$state", function ($scope,$rootScope, toaster, $filter, ngTableParams, apiPoint, $localStorage, $http, $state) {
|
||||
app.controller('studentViewCtrl', ["$scope","$rootScope", "toaster", "$filter", "ngTableParams", "API_POINTS", "$localStorage", "$http", "$state", "$modal", "$log", function ($scope,$rootScope, toaster, $filter, ngTableParams, apiPoint, $localStorage, $http, $state, $modal,$log) {
|
||||
/*
|
||||
* used to get student course details
|
||||
* this method called from view ng-init directive
|
||||
* created by kms
|
||||
* */
|
||||
|
||||
$rootScope.studentAllDetails
|
||||
$scope.getStudentDetails = function () {
|
||||
var getcourse = {
|
||||
method: 'POST',
|
||||
@ -26,6 +26,7 @@ app.controller('studentViewCtrl', ["$scope","$rootScope", "toaster", "$filter",
|
||||
$http(getcourse).then(function (response) {
|
||||
|
||||
if (response.data.status == 200 && response.data.studentStatus== true) {
|
||||
$rootScope.studentAllDetails = response.data;
|
||||
$scope.studentDetails = response.data.studentDetails;
|
||||
$scope.courseDetails = response.data.courseDetails;
|
||||
|
||||
@ -33,11 +34,40 @@ app.controller('studentViewCtrl', ["$scope","$rootScope", "toaster", "$filter",
|
||||
} else {
|
||||
$scope.studentDetails = "";
|
||||
$scope.courseDetails = "";
|
||||
$rootScope.studentAllDetails="";
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
$scope.printStudentDetails = function (details) {
|
||||
$rootScope.pdfItems = details;
|
||||
|
||||
var modalInstancePrint = $modal.open({
|
||||
templateUrl: 'assets/views/student/studentViewPdf.html',
|
||||
controller: 'studentViewCtrl',
|
||||
// size: size,
|
||||
resolve: {
|
||||
list: function () {
|
||||
|
||||
return details;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
modalInstancePrint.result.then(function (selectedItem) {
|
||||
$scope.selected2 = selectedItem;
|
||||
}, function () {
|
||||
$log.info('Modal dismissed at: ' + new Date());
|
||||
});
|
||||
};
|
||||
|
||||
// generate pdf for student view
|
||||
$scope.export = function(getName) {
|
||||
kendo.drawing.drawDOM($("#exportthis")).then(function(group) {
|
||||
kendo.drawing.pdf.saveAs(group, getName+".pdf");
|
||||
});
|
||||
}
|
||||
|
||||
}]);
|
||||
|
||||
|
||||
@ -23,10 +23,11 @@
|
||||
<div class="container-fluid container-fullw bg-white">
|
||||
<!-- /// controller: 'ModalDemoCtrl' - localtion: assets/js/controllers/bootstrapCtrl.js /// -->
|
||||
<div ng-controller="studentModalDemoCtrl">
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div align="right">
|
||||
<button class="btn btn-success btn-sm" ng-click="printStudentDetails(items);">Print</button>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
|
||||
|
||||
210
Apollo/assets/views/student/studentPdf.html
Normal file
210
Apollo/assets/views/student/studentPdf.html
Normal file
@ -0,0 +1,210 @@
|
||||
<style>
|
||||
.container-fullw {
|
||||
margin-left: -22%;
|
||||
margin-right: -47%;
|
||||
padding-left: 30px;
|
||||
padding-right: 30px;
|
||||
padding-top: 30px;
|
||||
padding-bottom: 30px;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
.ti-plus:before {
|
||||
color: #006f95;
|
||||
}
|
||||
.table > tbody > tr > td, .table > tfoot > tr > td {
|
||||
/* border-bottom: 1px solid #e2e2e4; */
|
||||
color: #5b5b60 !important;
|
||||
border-top: none;
|
||||
border-bottom: none;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
<!-- start: UI BOOTSTRAP MODALS -->
|
||||
<div class="container-fluid container-fullw bg-white">
|
||||
<!-- /// controller: 'ModalDemoCtrl' - localtion: assets/js/controllers/bootstrapCtrl.js /// -->
|
||||
<div ng-controller="studentModalDemoCtrl">
|
||||
<div class="modal-header">
|
||||
<button class="btn btn-success btn-sm" ng-click="export(pdfItems.studentDetails.Firstname);">Ok</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div id="exportthis">
|
||||
<table id="basic" style="margin-top: 2%">
|
||||
<tbody>
|
||||
<tr>
|
||||
|
||||
<td ng-if="pdfItems.studentDetails.ProfilePicPath=='' || pdfItems.studentDetails.ProfilePicPath==null" style="border-right-style: hidden; text-align: center;" rowspan="3">
|
||||
<strong class="text-blue">{{pdfItems.studentDetails.Firstname}} {{pdfItems.studentDetails.Lastname}}</strong>
|
||||
</td>
|
||||
<td ng-if="pdfItems.studentDetails.ProfilePicPath!='' && pdfItems.studentDetails.ProfilePicPath!=null" style="border-right-style: hidden; text-align: center;" rowspan="3">
|
||||
<div class="user-image">
|
||||
<strong class="text-blue">{{pdfItems.studentDetails.Firstname}} {{pdfItems.studentDetails.Lastname}}</strong>
|
||||
<img class="pull-center" ng-src="images/{{pdfItems.studentDetails.ProfilePicPath}}" alt="">
|
||||
<!-- <img ng-src="{{userInfo.avatar}}" alt="" ng-if="!obj.flow.files.length && !noImage">
|
||||
<img flow-img="obj.flow.files[0]" ng-if="obj.flow.files.length">-->
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<table class="table">
|
||||
<!--<thead>
|
||||
<tr>
|
||||
<th colspan="3" > <span class="text-azure">Contact Information</span></th>
|
||||
</tr>
|
||||
</thead>-->
|
||||
<tbody>
|
||||
<!--<tr>
|
||||
<td>Name</td>
|
||||
<td>
|
||||
|
||||
{{pdfItems.studentDetails.Firstname}} {{pdfItems.studentDetails.Lastname}}
|
||||
</td>
|
||||
</tr>-->
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<strong>Mobile Number</strong></br> {{pdfItems.studentDetails.MobileNumber}}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Email</strong></br>
|
||||
|
||||
{{pdfItems.studentDetails.EmailID}}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Alternate Number</strong></br>{{pdfItems.studentDetails.AlternateNumber}}</td>
|
||||
<td><strong>Aadhar Number</strong></br>{{pdfItems.studentDetails.AadharNumber}}</td>
|
||||
<td><strong>Gender</strong></br>{{pdfItems.studentDetails.Gender}}</td>
|
||||
|
||||
<td><strong>Date Of Birth</strong></br>{{pdfItems.studentDetails.DOB}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
<td><strong>Father's Name</strong></br>{{pdfItems.studentDetails.Fathername}}</td>
|
||||
|
||||
|
||||
<td><strong>Mother's Name</strong></br>
|
||||
{{pdfItems.studentDetails.MotherName}}
|
||||
</td>
|
||||
<td><strong>Present Address</strong></br>
|
||||
{{pdfItems.studentDetails.PresentAddress}}
|
||||
</td>
|
||||
|
||||
<td><strong>Permanent Address</strong></br>
|
||||
{{pdfItems.studentDetails.PermanentAddress}}
|
||||
</td>
|
||||
|
||||
<td><strong>Qualification</strong></br>{{pdfItems.studentDetails.PreQualification}}</td>
|
||||
|
||||
<td><strong>Designation</strong></br>{{pdfItems.studentDetails.Designation}}</td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td><strong>Occupation</strong></br>{{pdfItems.studentDetails.Occupation}}</td>
|
||||
|
||||
<td><strong>Caste</strong></br>{{pdfItems.studentDetails.Caste}}</td>
|
||||
|
||||
<td><strong>Religion</strong></br>{{pdfItems.studentDetails.Religion}}</td>
|
||||
|
||||
<td><strong>Refered By</strong></br>{{pdfItems.studentDetails.ReferredBy}}</td>
|
||||
<td><strong>Refered Person No</strong></br>{{pdfItems.studentDetails.ReferersMobileNumber}}</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="row" ng-repeat="course in pdfItems.courseDetails.courseStatus" style="margin-right: -15px; margin-top: 5%;
|
||||
margin-left: 10px;">
|
||||
<div class="col-md-4">
|
||||
<label style="color: green">University : {{course.UniversityName}}</label>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label style="color: green">Course : {{course.CourseName}}</label>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label style="color: green">Enrollment ID : {{course.EnrollmentID}}</label>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-12" style="margin-top: 2%">
|
||||
<table class="table" id="cutable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Sem/Year</th>
|
||||
<th>Batch</th>
|
||||
<th ng-if="course.feesDetails[0].ProgramType=='P001' || course.feesDetails[0].ProgramType=='P002'">Session From/Session To</th>
|
||||
<th ng-if="course.feesDetails[0].ProgramType=='Y001'">Session</th>
|
||||
<th>Roll Number</th>
|
||||
<th>Total Payable Fees</th>
|
||||
<th>Paid Fees</th>
|
||||
<th>Balance Fees</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="fees in course.feesDetails">
|
||||
<td>
|
||||
|
||||
{{fees.FeesName}}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{fees.BatchName}}
|
||||
</td>
|
||||
<td ng-if="course.feesDetails[0].ProgramType=='P001' || course.feesDetails[0].ProgramType=='P002'">
|
||||
{{fees.SessionName}}/{{fees.ToSessionName}}
|
||||
</td>
|
||||
<td ng-if="course.feesDetails[0].ProgramType=='Y001'">
|
||||
{{fees.SessionName}}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{fees.RollNo}}
|
||||
</td>
|
||||
<td>
|
||||
{{fees.PayableAmount}}
|
||||
</td>
|
||||
<td>
|
||||
{{fees.PaidBillAmount}}
|
||||
</td>
|
||||
<td>
|
||||
{{fees.BalanceAmount}}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- end: UI BOOTSTRAP MODALS -->
|
||||
|
||||
|
||||
@ -48,7 +48,11 @@
|
||||
<div class="container-fluid container-fullw bg-white" ng-controller="studentViewCtrl" ng-init="getStudentDetails()">
|
||||
|
||||
<div class="row">
|
||||
<div align="right">
|
||||
<button class="btn btn-success btn-sm" ng-click="printStudentDetails(studentAllDetails);">Print</button>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-2">
|
||||
|
||||
<h4 class="text-blue">{{studentDetails.Firstname}} {{studentDetails.Lastname}}</h4>
|
||||
|
||||
210
Apollo/assets/views/student/studentViewPdf.html
Normal file
210
Apollo/assets/views/student/studentViewPdf.html
Normal file
@ -0,0 +1,210 @@
|
||||
<style>
|
||||
.container-fullw {
|
||||
margin-left: -22%;
|
||||
margin-right: -47%;
|
||||
padding-left: 30px;
|
||||
padding-right: 30px;
|
||||
padding-top: 30px;
|
||||
padding-bottom: 30px;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
.ti-plus:before {
|
||||
color: #006f95;
|
||||
}
|
||||
.table > tbody > tr > td, .table > tfoot > tr > td {
|
||||
/* border-bottom: 1px solid #e2e2e4; */
|
||||
color: #5b5b60 !important;
|
||||
border-top: none;
|
||||
border-bottom: none;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
<!-- start: UI BOOTSTRAP MODALS -->
|
||||
<div class="container-fluid container-fullw bg-white">
|
||||
<!-- /// controller: 'ModalDemoCtrl' - localtion: assets/js/controllers/bootstrapCtrl.js /// -->
|
||||
<div ng-controller="studentViewCtrl">
|
||||
<div class="modal-header">
|
||||
<button class="btn btn-success btn-sm" ng-click="export(pdfItems.studentDetails.Firstname);">Ok</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div id="exportthis">
|
||||
<table id="basic" style="margin-top: 2%">
|
||||
<tbody>
|
||||
<tr>
|
||||
|
||||
<td ng-if="pdfItems.studentDetails.ProfilePicPath=='' || pdfItems.studentDetails.ProfilePicPath==null" style="border-right-style: hidden; text-align: center;" rowspan="3">
|
||||
<strong class="text-blue">{{pdfItems.studentDetails.Firstname}} {{pdfItems.studentDetails.Lastname}}</strong>
|
||||
</td>
|
||||
<td ng-if="pdfItems.studentDetails.ProfilePicPath!='' && pdfItems.studentDetails.ProfilePicPath!=null" style="border-right-style: hidden; text-align: center;" rowspan="3">
|
||||
<div class="user-image">
|
||||
<strong class="text-blue">{{pdfItems.studentDetails.Firstname}} {{pdfItems.studentDetails.Lastname}}</strong>
|
||||
<img class="pull-center" ng-src="images/{{pdfItems.studentDetails.ProfilePicPath}}" alt="">
|
||||
<!-- <img ng-src="{{userInfo.avatar}}" alt="" ng-if="!obj.flow.files.length && !noImage">
|
||||
<img flow-img="obj.flow.files[0]" ng-if="obj.flow.files.length">-->
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<table class="table">
|
||||
<!--<thead>
|
||||
<tr>
|
||||
<th colspan="3" > <span class="text-azure">Contact Information</span></th>
|
||||
</tr>
|
||||
</thead>-->
|
||||
<tbody>
|
||||
<!--<tr>
|
||||
<td>Name</td>
|
||||
<td>
|
||||
|
||||
{{pdfItems.studentDetails.Firstname}} {{pdfItems.studentDetails.Lastname}}
|
||||
</td>
|
||||
</tr>-->
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<strong>Mobile Number</strong></br> {{pdfItems.studentDetails.MobileNumber}}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Email</strong></br>
|
||||
|
||||
{{pdfItems.studentDetails.EmailID}}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Alternate Number</strong></br>{{pdfItems.studentDetails.AlternateNumber}}</td>
|
||||
<td><strong>Aadhar Number</strong></br>{{pdfItems.studentDetails.AadharNumber}}</td>
|
||||
<td><strong>Gender</strong></br>{{pdfItems.studentDetails.Gender}}</td>
|
||||
|
||||
<td><strong>Date Of Birth</strong></br>{{pdfItems.studentDetails.DOB}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
<td><strong>Father's Name</strong></br>{{pdfItems.studentDetails.Fathername}}</td>
|
||||
|
||||
|
||||
<td><strong>Mother's Name</strong></br>
|
||||
{{pdfItems.studentDetails.MotherName}}
|
||||
</td>
|
||||
<td><strong>Present Address</strong></br>
|
||||
{{pdfItems.studentDetails.PresentAddress}}
|
||||
</td>
|
||||
|
||||
<td><strong>Permanent Address</strong></br>
|
||||
{{pdfItems.studentDetails.PermanentAddress}}
|
||||
</td>
|
||||
|
||||
<td><strong>Qualification</strong></br>{{pdfItems.studentDetails.PreQualification}}</td>
|
||||
|
||||
<td><strong>Designation</strong></br>{{pdfItems.studentDetails.Designation}}</td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td><strong>Occupation</strong></br>{{pdfItems.studentDetails.Occupation}}</td>
|
||||
|
||||
<td><strong>Caste</strong></br>{{pdfItems.studentDetails.Caste}}</td>
|
||||
|
||||
<td><strong>Religion</strong></br>{{pdfItems.studentDetails.Religion}}</td>
|
||||
|
||||
<td><strong>Refered By</strong></br>{{pdfItems.studentDetails.ReferredBy}}</td>
|
||||
<td><strong>Refered Person No</strong></br>{{pdfItems.studentDetails.ReferersMobileNumber}}</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="row" ng-repeat="course in pdfItems.courseDetails.courseStatus" style="margin-right: -15px; margin-top: 5%;
|
||||
margin-left: 10px;">
|
||||
<div class="col-md-4">
|
||||
<label style="color: green">University : {{course.UniversityName}}</label>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label style="color: green">Course : {{course.CourseName}}</label>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label style="color: green">Enrollment ID : {{course.EnrollmentID}}</label>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-12" style="margin-top: 2%">
|
||||
<table class="table" id="cutable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Sem/Year</th>
|
||||
<th>Batch</th>
|
||||
<th ng-if="course.feesDetails[0].ProgramType=='P001' || course.feesDetails[0].ProgramType=='P002'">Session From/Session To</th>
|
||||
<th ng-if="course.feesDetails[0].ProgramType=='Y001'">Session</th>
|
||||
<th>Roll Number</th>
|
||||
<th>Total Payable Fees</th>
|
||||
<th>Paid Fees</th>
|
||||
<th>Balance Fees</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="fees in course.feesDetails">
|
||||
<td>
|
||||
|
||||
{{fees.FeesName}}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{fees.BatchName}}
|
||||
</td>
|
||||
<td ng-if="course.feesDetails[0].ProgramType=='P001' || course.feesDetails[0].ProgramType=='P002'">
|
||||
{{fees.SessionName}}/{{fees.ToSessionName}}
|
||||
</td>
|
||||
<td ng-if="course.feesDetails[0].ProgramType=='Y001'">
|
||||
{{fees.SessionName}}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{fees.RollNo}}
|
||||
</td>
|
||||
<td>
|
||||
{{fees.PayableAmount}}
|
||||
</td>
|
||||
<td>
|
||||
{{fees.PaidBillAmount}}
|
||||
</td>
|
||||
<td>
|
||||
{{fees.BalanceAmount}}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- end: UI BOOTSTRAP MODALS -->
|
||||
|
||||
|
||||
8
Apollo/bower_components/generate-PDF/html2canvas.min.js
vendored
Normal file
8
Apollo/bower_components/generate-PDF/html2canvas.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
115
Apollo/bower_components/generate-PDF/kendo.all.min.js
vendored
Normal file
115
Apollo/bower_components/generate-PDF/kendo.all.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
30
Apollo/bower_components/generate-PDF/pdfmake.min.js
vendored
Normal file
30
Apollo/bower_components/generate-PDF/pdfmake.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -107,7 +107,11 @@
|
||||
<script src="https://cdn.rawgit.com/niklasvh/html2canvas/0.5.0-alpha2/dist/html2canvas.min.js"></script>
|
||||
<script src="bower_components/jsPDF/dist/jspdf.debug.js"></script>
|
||||
<script src="bower_components/angular-save-html-to-pdf/dist/saveHtmlToPdf.min.js"></script>
|
||||
|
||||
<!--generate pdf using id-->
|
||||
<!--<script src="bower_components/generate-PDF/pdfmake.min.js"></script>
|
||||
<script src="bower_components/generate-PDF/html2canvas.min.js"></script>-->
|
||||
<script src="bower_components/generate-PDF/kendo.all.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user