print option for fees details
This commit is contained in:
parent
3e3f7f97b8
commit
451a3656de
@ -315,7 +315,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
|
|
||||||
angular.forEach($scope.masterSessionDetails,function (svalues,skey) {
|
angular.forEach($scope.masterSessionDetails,function (svalues,skey) {
|
||||||
|
|
||||||
if((svalues.IsActive=='1' || $scope.feesStructureInfo[0].SessionName==svalues.SessionID) && $scope.ExistSessionDate <= new Date(svalues.SessionDate.substring(6,10)+'-'+svalues.SessionDate.substring(3,5)+'-'+svalues.SessionDate.substring(0,2))){
|
if((svalues.IsActive=='1' || $scope.feesStructureInfo[0].SessionName==svalues.SessionID) && $scope.ExistSessionDate < new Date(svalues.SessionDate.substring(6,10)+'-'+svalues.SessionDate.substring(3,5)+'-'+svalues.SessionDate.substring(0,2))){
|
||||||
$scope.sessionDetails.push({
|
$scope.sessionDetails.push({
|
||||||
"SessionName":svalues.SessionName,
|
"SessionName":svalues.SessionName,
|
||||||
"SessionID":svalues.SessionID,
|
"SessionID":svalues.SessionID,
|
||||||
@ -360,7 +360,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
"SessionID":svalues.SessionID,
|
"SessionID":svalues.SessionID,
|
||||||
});
|
});
|
||||||
|
|
||||||
if($scope.ExistSessionDate <= new Date(svalues.SessionDate.substring(6,10)+'-'+svalues.SessionDate.substring(3,5)+'-'+svalues.SessionDate.substring(0,2))){
|
if($scope.ExistSessionDate < new Date(svalues.SessionDate.substring(6,10)+'-'+svalues.SessionDate.substring(3,5)+'-'+svalues.SessionDate.substring(0,2))){
|
||||||
|
|
||||||
|
|
||||||
$scope.sessionDetailsTo.push({
|
$scope.sessionDetailsTo.push({
|
||||||
@ -394,7 +394,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
|
|
||||||
angular.forEach($scope.masterSessionDetails,function (svalues,skey) {
|
angular.forEach($scope.masterSessionDetails,function (svalues,skey) {
|
||||||
|
|
||||||
if((svalues.IsActive=='1' || $scope.feesStructureInfo[0].SessionName==svalues.SessionID) && $scope.ExistSessionDate <= new Date(svalues.SessionDate.substring(6,10)+'-'+svalues.SessionDate.substring(3,5)+'-'+svalues.SessionDate.substring(0,2))){
|
if((svalues.IsActive=='1' || $scope.feesStructureInfo[0].SessionName==svalues.SessionID) && $scope.ExistSessionDate < new Date(svalues.SessionDate.substring(6,10)+'-'+svalues.SessionDate.substring(3,5)+'-'+svalues.SessionDate.substring(0,2))){
|
||||||
$scope.sessionDetails.push({
|
$scope.sessionDetails.push({
|
||||||
"SessionName":svalues.SessionName ,
|
"SessionName":svalues.SessionName ,
|
||||||
"SessionID":svalues.SessionID,
|
"SessionID":svalues.SessionID,
|
||||||
@ -457,7 +457,7 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
"SessionID":svalues.SessionID,
|
"SessionID":svalues.SessionID,
|
||||||
});
|
});
|
||||||
|
|
||||||
if($scope.ExistSessionDate <= new Date(svalues.SessionDate.substring(6,10)+'-'+svalues.SessionDate.substring(3,5)+'-'+svalues.SessionDate.substring(0,2))){
|
if($scope.ExistSessionDate < new Date(svalues.SessionDate.substring(6,10)+'-'+svalues.SessionDate.substring(3,5)+'-'+svalues.SessionDate.substring(0,2))){
|
||||||
|
|
||||||
|
|
||||||
$scope.sessionDetailsTo.push({
|
$scope.sessionDetailsTo.push({
|
||||||
@ -2222,7 +2222,7 @@ app.controller('ModalDemoCtrl', ["$scope", "$modal", "$log", function ($scope, $
|
|||||||
// Please note that $modalInstance represents a modal window (instance) dependency.
|
// Please note that $modalInstance represents a modal window (instance) dependency.
|
||||||
// It is not the same as the $modal service used above.
|
// It is not the same as the $modal service used above.
|
||||||
|
|
||||||
app.controller('FeesModalInstanceCtrl', ["$scope", "$modalInstance", "items","WordsService", function ($scope, $modalInstance, items,WordsService) {
|
app.controller('FeesModalInstanceCtrl', ["$scope", "$modalInstance", "$timeout", "items","WordsService", function ($scope, $modalInstance, $timeout, items,WordsService) {
|
||||||
|
|
||||||
$scope.items = items;
|
$scope.items = items;
|
||||||
$scope.selected = {
|
$scope.selected = {
|
||||||
@ -2237,6 +2237,7 @@ app.controller('FeesModalInstanceCtrl', ["$scope", "$modalInstance", "items","Wo
|
|||||||
$scope.cancel = function () {
|
$scope.cancel = function () {
|
||||||
$modalInstance.dismiss('cancel');
|
$modalInstance.dismiss('cancel');
|
||||||
};
|
};
|
||||||
|
|
||||||
//show hide function for pdf design
|
//show hide function for pdf design
|
||||||
$scope.billNo="";
|
$scope.billNo="";
|
||||||
$scope.receiptNo="";
|
$scope.receiptNo="";
|
||||||
@ -2250,7 +2251,13 @@ app.controller('FeesModalInstanceCtrl', ["$scope", "$modalInstance", "items","Wo
|
|||||||
$scope.BranchAddr = "";
|
$scope.BranchAddr = "";
|
||||||
$scope.BranchLogo = "";
|
$scope.BranchLogo = "";
|
||||||
$scope.FeesReceiptTitle = "";
|
$scope.FeesReceiptTitle = "";
|
||||||
$scope.ShowHide = function (pdfValue) {
|
$scope.myPdfView = '';
|
||||||
|
$scope.ShowHide = function (pdfValue,print) {
|
||||||
|
$timeout(()=> {
|
||||||
|
//alert(this.print);
|
||||||
|
$scope.printPdf(print);
|
||||||
|
}, 0);
|
||||||
|
$scope.myPdfView = pdfValue;
|
||||||
$scope.showButton = true;
|
$scope.showButton = true;
|
||||||
$scope.billNo = pdfValue.BillNO;
|
$scope.billNo = pdfValue.BillNO;
|
||||||
$scope.paymentType=pdfValue.ModeOfPayment;
|
$scope.paymentType=pdfValue.ModeOfPayment;
|
||||||
@ -2265,31 +2272,45 @@ app.controller('FeesModalInstanceCtrl', ["$scope", "$modalInstance", "items","Wo
|
|||||||
$scope.receiptNo=pdfValue.ReceiptNo;
|
$scope.receiptNo=pdfValue.ReceiptNo;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
$scope.pdfPrint = function (pdf) {
|
//testing for print
|
||||||
//PDF print
|
|
||||||
var innerContents = document.getElementById(pdf).innerHTML;
|
$scope.printPdf = function (print) {
|
||||||
var popupWinindow = window.open('', '_blank', 'width=600,height=700,scrollbars=no,menubar=no,toolbar=no,location=no,status=no,titlebar=no');
|
|
||||||
|
var innerContents = document.getElementById(print).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.open();
|
||||||
popupWinindow.document.write('<html><head></head><body onload="window.print()">' + innerContents + '</html>');
|
popupWinindow.document.write('<html>');
|
||||||
|
popupWinindow.document.write('<style type="text/css">');
|
||||||
|
//popupWinindow.document.write('.table{border-collapse: collapse; color: black;}');
|
||||||
|
popupWinindow.document.write('</style>');
|
||||||
|
popupWinindow.document.write(innerContents);
|
||||||
|
popupWinindow.document.write('</html>');
|
||||||
popupWinindow.document.close();
|
popupWinindow.document.close();
|
||||||
|
popupWinindow.focus();
|
||||||
|
popupWinindow.print();
|
||||||
|
popupWinindow.close();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.mouseLeave = function(){
|
// $scope.mouseLeave = function(){
|
||||||
$scope.showButton = false;
|
// $scope.showButton = false;
|
||||||
$scope.billNo="";
|
// $scope.billNo="";
|
||||||
$scope.sessionName="";
|
// $scope.sessionName="";
|
||||||
$scope.paymentType="";
|
// $scope.paymentType="";
|
||||||
$scope.billDate="";
|
// $scope.billDate="";
|
||||||
$scope.amountInWords = "";
|
// $scope.amountInWords = "";
|
||||||
$scope.billAmount = "";
|
// $scope.billAmount = "";
|
||||||
$scope.branchName = "";
|
// $scope.branchName = "";
|
||||||
$scope.ReceivedBy="";
|
// $scope.ReceivedBy="";
|
||||||
$scope.BranchAddr = "";
|
// $scope.BranchAddr = "";
|
||||||
$scope.BranchLogo = "";
|
// $scope.BranchLogo = "";
|
||||||
$scope.FeesReceiptTitle="";
|
// $scope.FeesReceiptTitle="";
|
||||||
$scope.receiptNo="";
|
// $scope.receiptNo="";
|
||||||
}
|
// }
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
app.directive('visible', function() {
|
app.directive('visible', function() {
|
||||||
|
|||||||
@ -438,16 +438,17 @@
|
|||||||
|
|
||||||
<td width="10" style="vertical-align:top;text-align:center;">
|
<td width="10" style="vertical-align:top;text-align:center;">
|
||||||
|
|
||||||
<a tooltip="Click to print" ng-mouseleave="mouseLeave()" pdf-save-button="{{v.BillNO}}" pdf-name="Billno-{{v.BillNO}}.pdf" class="btn"><i class="fa fa-print" ng-click="ShowHide(v)"></i></a>
|
<a tooltip="Click to print" class="btn"><i class="fa fa-print" ng-click="ShowHide(v,'print')"></i></a>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
<div id="pdf" pdf-save-content="{{billNo}}" visible='showButton'>
|
<div id="print" after-render="printPdf">
|
||||||
|
<div ng-if="myPdfView">
|
||||||
<table style="border-collapse: collapse; color: black;" border="0" width="100%">
|
<table style="border-collapse: collapse; color: black;" border="0" width="100%">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr style="height: 23px;">
|
<tr style="height: 23px;">
|
||||||
@ -459,7 +460,9 @@
|
|||||||
<img flow-img="obj.flow.files[0]" ng-if="obj.flow.files.length">-->
|
<img flow-img="obj.flow.files[0]" ng-if="obj.flow.files.length">-->
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
<div class="title">
|
||||||
<td style="width: 136px; height: 23px; text-align: center; border-bottom-style: hidden; color: white; background-color: black; font-size: 20px;" colspan="3"><strong><!--APOLLO DISTANCE EDUCATION COLLEGE-->{{FeesReceiptTitle}}</strong>
|
<td style="width: 136px; height: 23px; text-align: center; border-bottom-style: hidden; color: white; background-color: black; font-size: 20px;" colspan="3"><strong><!--APOLLO DISTANCE EDUCATION COLLEGE-->{{FeesReceiptTitle}}</strong>
|
||||||
|
</div>
|
||||||
</br>
|
</br>
|
||||||
<!--<span style="font-size: 16px;">(A Group of SVE Trust)</span>
|
<!--<span style="font-size: 16px;">(A Group of SVE Trust)</span>
|
||||||
</br>-->
|
</br>-->
|
||||||
@ -516,8 +519,11 @@
|
|||||||
<td style="width: 136px; height: 42px; color: white; background-color: black; font-size: 14px;text-align: center;" colspan="4">Note: Terms & Conditions will be applicable as per University norms Fees once paid will not be refunded at any reasons</td>
|
<td style="width: 136px; height: 42px; color: white; background-color: black; font-size: 14px;text-align: center;" colspan="4">Note: Terms & Conditions will be applicable as per University norms Fees once paid will not be refunded at any reasons</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -533,6 +539,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -547,4 +554,5 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!-- class="editRowTd" -->
|
<!-- class="editRowTd" -->
|
||||||
Loading…
Reference in New Issue
Block a user