generate hallticket changes
This commit is contained in:
parent
45c93508e1
commit
446f7c7ebf
@ -1023,4 +1023,38 @@ app.controller('HallTicketPDFCtrl', ["$scope", "$modalInstance", "pdfitems", fun
|
|||||||
$modalInstance.dismiss('cancel');
|
$modalInstance.dismiss('cancel');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.generatePDF = function(){
|
||||||
|
var innerContents = document.getElementById("university_header").innerHTML;
|
||||||
|
|
||||||
|
var popupWinindow = window.open('', '_blank', 'width=1200,height=700,scrollbars=no,menubar=no,toolbar=no,location=no,status=no,titlebar=no');
|
||||||
|
popupWinindow.document.open();
|
||||||
|
popupWinindow.document.write('<html>');
|
||||||
|
popupWinindow.document.write('<style type="text/css" media="print">');
|
||||||
|
popupWinindow.document.write('@page { size: portrait; }');
|
||||||
|
//popupWinindow.document.write('.title{border:3px solid black;}');
|
||||||
|
popupWinindow.document.write('</style>');
|
||||||
|
popupWinindow.document.write(innerContents);
|
||||||
|
popupWinindow.document.write('</br>');
|
||||||
|
popupWinindow.document.write('</br>');
|
||||||
|
popupWinindow.document.write('</br>');
|
||||||
|
popupWinindow.document.write('</br>');
|
||||||
|
//popupWinindow.document.write(innerContents);
|
||||||
|
popupWinindow.document.write('</html>');
|
||||||
|
popupWinindow.document.close();
|
||||||
|
popupWinindow.focus();
|
||||||
|
popupWinindow.print();
|
||||||
|
popupWinindow.close();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
@ -1,15 +1,16 @@
|
|||||||
<style>
|
<!--<style>
|
||||||
.table{
|
.table{
|
||||||
border: 1px solid #000 !important;
|
border: 1px solid #000 !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style> -->
|
||||||
|
|
||||||
|
|
||||||
<div class="container-fluid container-fullw bg-white" style="width: 786px;" ng-controller="generateHallTicketCtrl">
|
<div class="container-fluid container-fullw bg-white" style="width: 786px;" ng-controller="generateHallTicketCtrl">
|
||||||
|
|
||||||
|
|
||||||
<div align="right">
|
<div align="right">
|
||||||
<button class="btn btn-success btn-sm" ng-click="printStudentDetails(semDataTypePDF);">Print</button>
|
<button class="btn btn-success btn-sm" ng-click="generatePDF();">Print</button>
|
||||||
|
<!--<button class="btn btn-success" id="print"ng-click="generatePDF();">Printer</button></div>-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -30,9 +31,7 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="student_header">
|
|
||||||
<table width="100%" border="1" id = "" style="background-color:#fff;">
|
<table width="100%" border="1" id = "" style="background-color:#fff;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
@ -40,15 +39,11 @@
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><strong style="font-size:14px;" >Enrollment No</strong> : {{studentObj.EnrollmentID}} <strong style="font-size:14px;" >Student Name</strong> : {{studentObj.Firstname}} {{studentObj.Lastname}}</br><strong style="font-size:14px;" >Center Name</strong> : {{centerNamePDF}}</td>
|
<td><strong style="font-size:14px;" >Enrollment No</strong> : {{studentObj.EnrollmentID}} <strong style="font-size:14px;" >Student Name</strong> : {{studentObj.Firstname}} {{studentObj.Lastname}}<br></br><strong style="font-size:14px;" >Center Name</strong> : {{centerNamePDF}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- <tr> -->
|
|
||||||
<!-- <td >{{universityAddressPDF}}</td> -->
|
|
||||||
<!-- </tr> -->
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
</table>
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- FOR SEMESTER TYPE STUDENTS-->
|
<!-- FOR SEMESTER TYPE STUDENTS-->
|
||||||
<table width="100%" border="1" ng-repeat ="subjects in studentObj.FeeDetails" and ng-if="semDataTypePDF == 'SEM'" id = "{{studentObj.StudentID}}{{$index}}">
|
<table width="100%" border="1" ng-repeat ="subjects in studentObj.FeeDetails" and ng-if="semDataTypePDF == 'SEM'" id = "{{studentObj.StudentID}}{{$index}}">
|
||||||
@ -155,8 +150,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user