Produced by Araxis Merge on 12/8/2017 1:33:40 PM Central Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | PC_CP4_CiF.zip\FPPS_Frontend\fpps-app\src\app\shared\print | print.component.ts | Fri Dec 8 17:53:14 2017 UTC |
| 2 | PC_CP4_CiF.zip\FPPS_Frontend\fpps-app\src\app\shared\print | print.component.ts | Fri Dec 8 19:09:46 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 150 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | import { C omponent, Input, OnI nit } from '@angular /core'; | |
| 2 | import { S haredDataS ervice } f rom '../.. /shared/se rvice/shar ed-data.se rvice'; | |
| 3 | import { P rintServic e } from ' ./service/ print.comp onent.serv ice'; | |
| 4 | import { C laims } fr om '../mod els/Claims '; | |
| 5 | import { | |
| 6 | RequestO ptions, | |
| 7 | URLSearc hParams, | |
| 8 | Headers, | |
| 9 | Response , | |
| 10 | Http, | |
| 11 | Response ContentTyp e | |
| 12 | } from '@a ngular/htt p'; | |
| 13 | import { e nvironment } from '. ./../../en vironments /environme nt'; | |
| 14 | @Component ({ | |
| 15 | selector : 'app-pri nt', | |
| 16 | template Url: 'prin t.componen t.html', | |
| 17 | styleUrl s: ['./pri nt.compone nt.scss'] | |
| 18 | }) | |
| 19 | export cla ss PrintCo mponent im plements O nInit { | |
| 20 | @Input() public cl aims: any[ ] = []; | |
| 21 | public c laimsTemp: any[] = [ ]; | |
| 22 | @Input() public in nerText = 'Default B utton'; | |
| 23 | @Input() public id = ''; | |
| 24 | @Input() public di sabled = f alse; | |
| 25 | @Input() btnClass = 'button primary'; | |
| 26 | @Input() public fi lter = tru e; | |
| 27 | claimIds : any = [] ; | |
| 28 | construc tor( | |
| 29 | privat e sharedDa ta: Shared DataServic e, | |
| 30 | privat e processP rint: Prin tService | |
| 31 | ) {} | |
| 32 | ||
| 33 | ngOnInit () {} | |
| 34 | onClick( ) { | |
| 35 | if (th is.disable d) { | |
| 36 | retu rn; | |
| 37 | } | |
| 38 | const getParam = new URLSe archParams (); | |
| 39 | const searchhead ers = new Headers(); | |
| 40 | search headers.ap pend('Cont ent-Type', 'applicat ion/json') ; | |
| 41 | if (th is.filter) { | |
| 42 | this .claimsTem p = this.c laims.filt er(claim = > claim.se lected); | |
| 43 | } else { | |
| 44 | this .claimsTem p = this.c laims; | |
| 45 | } | |
| 46 | this.c laimIds = this.claim sTemp.map( claim => c laim.claim Id); | |
| 47 | // con sole.log(t his.claims Temp); | |
| 48 | const options = new Reques tOptions({ | |
| 49 | head ers: searc hheaders, | |
| 50 | body : this.cla imIds, | |
| 51 | resp onseType: ResponseCo ntentType. Text | |
| 52 | }); | |
| 53 | // con sole.log(t his.claimI ds); | |
| 54 | this.p rocessPrin t | |
| 55 | .pri nt(environ ment.nodes erver + '/ claims/pri nt/', opti ons) | |
| 56 | .sub scribe( | |
| 57 | da ta => { | |
| 58 | const file = new Blo b([String. fromCharCo de.apply(n ull, data. data)], { | |
| 59 | type: 'a pplication /pdf' | |
| 60 | }); | |
| 61 | const file Url = URL. createObje ctURL(file ); | |
| 62 | console.lo g( | |
| 63 | JSON.str ingify(Str ing.fromCh arCode.app ly(null, d ata.data)) | |
| 64 | ); | |
| 65 | window.ope n( | |
| 66 | 'http:// SERVER.DOM AIN ' + | |
| 67 | data.p athName.re place( | |
| 68 | '/us r/share/to mcat/lates t/webapps/ generatedR eports', | |
| 69 | '' | |
| 70 | ) | |
| 71 | ); | |
| 72 | }, | |
| 73 | () => consol e.log('bac k in conso le') | |
| 74 | ); | |
| 75 | } | |
| 76 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.