@hitsoft/e-donusum 1.0.74 → 1.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9509,10 +9509,10 @@ class HitInvoiceComponent {
9509
9509
  this.invoiceService.getInvoiceView(record.uuId).subscribe(item => {
9510
9510
  const source = `data:${item.mimeType};base64,${item.content}`;
9511
9511
  this.hitSharedService.previewFile(item.content);
9512
- const link = document.createElement('a');
9512
+ /*const link = document.createElement('a');
9513
9513
  link.href = source;
9514
9514
  link.download = `${item.filename}`;
9515
- link.click();
9515
+ link.click();*/
9516
9516
  });
9517
9517
  }
9518
9518
  showAllFiles(record) {
@@ -11280,22 +11280,21 @@ class HitDespatchComponent {
11280
11280
  debugger;
11281
11281
  this.service.getDespatchPreview(record.id, record.resourceDocType).subscribe(fatura => {
11282
11282
  const source = `data:text/html;base64,${fatura.previewHTML}`;
11283
- this.hitSharedService.previewFile(fatura.previewHTML);
11284
- /*const newTab = window.open();
11285
- newTab.document.title = record.id
11283
+ //this.hitSharedService.previewFile(btoa(unescape(encodeURIComponent(fatura.previewHTML))));
11284
+ const newTab = window.open();
11285
+ newTab.document.title = record.id;
11286
11286
  newTab.document.body.innerHTML = `<iframe src="${source}" width="100%" height="100%" style="border:none;"></iframe>`;
11287
- */
11288
11287
  });
11289
11288
  }
11290
11289
  getDespatchXML(record) {
11291
11290
  debugger;
11292
11291
  this.service.getDespatchXML(record.id, record.resourceDocType).subscribe(irsaliye => {
11293
11292
  const source = `data:${irsaliye.mimeType};base64,${irsaliye.content}`;
11294
- this.hitSharedService.previewFile(irsaliye.content);
11295
- /*const link = document.createElement('a');
11293
+ //this.hitSharedService.previewFile(irsaliye.content);
11294
+ const link = document.createElement('a');
11296
11295
  link.href = source;
11297
11296
  link.download = `${irsaliye.filename}`;
11298
- link.click();*/
11297
+ link.click();
11299
11298
  });
11300
11299
  }
11301
11300
  getDocObjectName(data) {
@@ -11319,7 +11318,10 @@ class HitDespatchComponent {
11319
11318
  getDespatchView(record) {
11320
11319
  this.service.getDespatchView(record.uuId).subscribe(item => {
11321
11320
  const source = `data:${item.mimeType};base64,${item.content}`;
11322
- this.hitSharedService.previewFile(item.content);
11321
+ const newTab = window.open();
11322
+ newTab.document.title = record.id;
11323
+ newTab.document.body.innerHTML = `<iframe src="${source}" width="100%" height="100%" style="border:none;"></iframe>`;
11324
+ //this.hitSharedService.previewFile(item.content);
11323
11325
  /*const link = document.createElement('a');
11324
11326
  link.href = source;
11325
11327
  link.download = `${item.filename}`;
@@ -11395,11 +11397,10 @@ class HitDespatchComponent {
11395
11397
  debugger;
11396
11398
  this.service.getReceiptAdvicePreview(record.id).subscribe(despatch => {
11397
11399
  const source = `data:text/html;base64,${despatch.previewHTML}`;
11398
- this.hitSharedService.previewFile(despatch.previewHTML);
11399
- /* const newTab = window.open();
11400
- newTab.document.title = record.id
11401
- newTab.document.body.innerHTML = `<iframe src="${source}" width="100%" height="100%" style="border:none;"></iframe>`;
11402
- */
11400
+ //this.hitSharedService.previewFile(despatch.previewHTML);
11401
+ const newTab = window.open();
11402
+ newTab.document.title = record.id;
11403
+ newTab.document.body.innerHTML = `<iframe src="${source}" width="100%" height="100%" style="border:none;"></iframe>`;
11403
11404
  });
11404
11405
  }
11405
11406
  }