Produced by Araxis Merge on 6/11/2019 10:54:08 AM Eastern Daylight 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 | HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\ccht\model\pssreport | DistributionOfSurveysReport.java | Wed May 29 15:26:30 2019 UTC |
| 2 | HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\ccht\model\pssreport | DistributionOfSurveysReport.java | Mon Jun 10 19:25:56 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 192 |
| 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 | package go v.va.med.c cht.model. pssreport; | |
| 2 | ||
| 3 | import jav a.util.Arr ayList; | |
| 4 | ||
| 5 | import org .springfra mework.bea ns.factory .annotatio n.Autowire d; | |
| 6 | ||
| 7 | import gov .va.med.cc ht.service .common.fa cility.Fac ilityServi ce; | |
| 8 | import gov .va.med.cc ht.ui.mode l.PSSRepor tForm; | |
| 9 | ||
| 10 | /** | |
| 11 | * | |
| 12 | * @author D N S | |
| 13 | * | |
| 14 | */ | |
| 15 | public cla ss Distrib utionOfSur veysReport { | |
| 16 | ||
| 17 | Ar rayList<St ring[]> re port; | |
| 18 | ||
| 19 | pr ivate stat ic final i nt BREAKOU T_COL = 0; | |
| 20 | pr ivate stat ic final i nt VENDOR_ NAME = 1; | |
| 21 | pr ivate stat ic final i nt NUM_OF_ SURVEYS = 2; | |
| 22 | ||
| 23 | pr ivate stat ic final i nt NATIONA L = 1; | |
| 24 | pr ivate stat ic final i nt VISN = 2; | |
| 25 | pr ivate stat ic final i nt FACILIT Y = 3; | |
| 26 | ||
| 27 | pr ivate stat ic final i nt IVR_ROW = 3; | |
| 28 | pr ivate stat ic final i nt BROWSER _ROW = 4; | |
| 29 | pr ivate stat ic final i nt HOME_DE VICE_ROW = 5; | |
| 30 | ||
| 31 | pu blic Distr ibutionOfS urveysRepo rt() { | |
| 32 | supe r(); | |
| 33 | this .report = new ArrayL ist<String []>(); | |
| 34 | } | |
| 35 | ||
| 36 | pu blic void addRow(Obj ect[] repo rtRow, int typeOfRep ort, PSSRe portForm f orm) { | |
| 37 | ||
| 38 | Stri ng row[] = new Strin g[3]; | |
| 39 | ||
| 40 | swit ch(typeOfR eport){ | |
| 41 | ||
| 42 | case NATIONAL: | |
| 43 | break; | |
| 44 | case VISN: | |
| 45 | row[0] = "VISN " + String. valueOf(re portRow[BR EAKOUT_COL ]); | |
| 46 | break; | |
| 47 | case FACILITY: | |
| 48 | row[0] = "Facility " + Strin g.valueOf( reportRow[ BREAKOUT_C OL]); | |
| 49 | break; | |
| 50 | ||
| 51 | } | |
| 52 | ||
| 53 | row[ 1] = (Stri ng)reportR ow[VENDOR_ NAME]; | |
| 54 | row[ 2] = Integ er.toStrin g((int)rep ortRow[NUM _OF_SURVEY S]); | |
| 55 | ||
| 56 | repo rt.add(row ); | |
| 57 | } | |
| 58 | ||
| 59 | pu blic Array List<Strin g[]> getRe port() { | |
| 60 | retu rn report; | |
| 61 | } | |
| 62 | ||
| 63 | pu blic void setReport( ArrayList< String[]> report) { | |
| 64 | this .report = report; | |
| 65 | } | |
| 66 | ||
| 67 | pu blic void createTota lsRow(int rowSize) { | |
| 68 | ||
| 69 | int totalSurve ys = 0; | |
| 70 | int totalIvr = 0; | |
| 71 | int totalBrows er = 0; | |
| 72 | int totalHomeD evice = 0; | |
| 73 | ||
| 74 | if(! report.isE mpty()) { // do not create tot als row if empty | |
| 75 | for(St ring[] rep ortRow : r eport) { | |
| 76 | ||
| 77 | totalSur veys += In teger.pars eInt(repor tRow[NUM_O F_SURVEYS] ); | |
| 78 | if(rowSi ze >= 6) { | |
| 79 | totalIvr + = Integer. parseInt(r eportRow[I VR_ROW]); | |
| 80 | totalBrows er += Inte ger.parseI nt(reportR ow[BROWSER _ROW]); | |
| 81 | totalHomeD evice += I nteger.par seInt(repo rtRow[HOME _DEVICE_RO W]); | |
| 82 | } | |
| 83 | ||
| 84 | } | |
| 85 | ||
| 86 | if(row Size >= 6) { | |
| 87 | String[] totalsRow = {"", "T otal Surve ys", Strin g.valueOf( totalSurve ys), | |
| 88 | St ring.value Of(totalIv r), String .valueOf(t otalBrowse r), String .valueOf(t otalHomeDe vice)}; | |
| 89 | report.a dd(totalsR ow); | |
| 90 | } | |
| 91 | else { | |
| 92 | String[] totalsRow = {"", "T otal Surve ys", Strin g.valueOf( totalSurve ys)}; | |
| 93 | report.a dd(totalsR ow); | |
| 94 | } | |
| 95 | } | |
| 96 | } | |
| 97 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.