|
@@ -89,9 +89,9 @@ export class MaintenanceCommunicationEditComponent implements OnInit {
|
|
this.authSer.internalHeader = false;
|
|
this.authSer.internalHeader = false;
|
|
|
|
|
|
//reload page every 10 seconds
|
|
//reload page every 10 seconds
|
|
- // setTimeout(function(){
|
|
|
|
- // location.reload();
|
|
|
|
- // },180000);
|
|
|
|
|
|
+ setTimeout(function(){
|
|
|
|
+ location.reload();
|
|
|
|
+ },180000);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -367,6 +367,28 @@ returnEditData() {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+//on print function
|
|
|
|
+onPrint(): void {
|
|
|
|
+ window.print();
|
|
|
|
+ // let printContents, popupWin;
|
|
|
|
+ // printContents = document.getElementById('print-section').innerHTML;
|
|
|
|
+ // popupWin = window.open('', '_blank', 'top=0,left=0,height=100%,width=auto');
|
|
|
|
+ // popupWin.document.open();
|
|
|
|
+ // popupWin.document.write(`
|
|
|
|
+ // <html>
|
|
|
|
+ // <head>
|
|
|
|
+ // <title> طباعه بطاقه المتدرب</title>
|
|
|
|
+ // <style>
|
|
|
|
+ // //........Customized style.......
|
|
|
|
+ // </style>
|
|
|
|
+ // </head>
|
|
|
|
+ // <body onload="window.print();window.close()">${printContents}</body>
|
|
|
|
+ // </html>`
|
|
|
|
+ // );
|
|
|
|
+ // popupWin.document.close();
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
//submitted form
|
|
//submitted form
|
|
onSubmittedForm() {
|
|
onSubmittedForm() {
|
|
|
|
|