4442. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/9/2017 3:51:38 PM 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.

4442.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:38 2017 UTC
2 eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-web\src\main\webapp\WEB-INF\web\reporting\common facilitiesFilter.jsp Fri Apr 21 20:15:58 2017 UTC

4442.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 1 324
Removed 0 0

4442.3 Comparison options

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

4442.4 Active regular expressions

No regular expressions were active.

4442.5 Comparison detail

        1   <%--
        2       Docume nt   : fac ilitiesFil ter
        3       Create d on : May  18, 2016
        4       Author      : Ira kli Kakush adze
        5   --%>
        6   <%--
        7       PARAME TERS (refe renced as  param.myPa rameter in  this jsp)
        8       defaul tUserFacil ity - Defa ult facili ty of the  current us er, if any
        9       defaul tUserFacil ityName -  The name o f the defa ult facili ty
        10       defaul tUserFacil ityStation  - Station  number of  the defau lt facilit y
        11       facili tyFilterTo oltip - To  be used f or the too ltip on th e Select F acilities  select box
        12   --%>
        13  
        14   <%@taglib  tagdir="/W EB-INF/tag s/cpp" pre fix="cpp"  %>
        15   <%@ taglib  prefix="c " uri="htt p://java.s un.com/jsp /jstl/core " %>
        16  
        17   <c:set var ="defaultU serFacilit y" value=" ${param.de faultUserF acility}"  scope="pag e" />
        18  
        19   <div style ="overflow : auto;">
        20       <input  type="hid den" id="a ggregateAt FacilityLe vel" name= "aggregate AtFacility Level">
        21       <input  type="hid den" id="i ncludeUnkn ownVisn" n ame="inclu deUnknownV isn">
        22       <label  for="fd-s electedFac ilities">A uthenticat ing Facili ties</labe l>
        23       <div s tyle="disp lay: inlin e; padding : 0;">
        24           <d iv style=" float: lef t; padding : 0;">
        25                <select  id="fd-sel ectedFacil ities" nam e="fd-sele ctedFacili ties" mult iple="mult iple" styl e="height:  86px; ove rflow-x: a uto; overf low-y: aut o; width:  400px;" da ta-tooltip ="<c:out v alue="${pa ram.facili tyFilterTo oltip}" /> ">
        26                    <opt ion>ALL</o ption>
        27                </select >
        28           </ div>
        29           <d iv style=" float: lef t; margin- left: 5px;  padding:  0;">
        30                <input i d="fd-sele ctFaciliti es" alt="S elect one  or more fa cilities"  style="ver tical-alig n: top;" t ype="butto n" value=" Select..." ></input>< br>
        31                <input i d="fd-sele ctAll" alt ="Select a ll facilit ies" style ="margin-t op: 5px; v ertical-al ign: top;"  type="but ton" value ="Select A LL"></inpu t><br>
        32           </ div>
        33           <d iv style=" padding: 0 ;">
        34                <input i d="fd-stat ionNumbers " name="st ationNumbe rs" type=" hidden"
        35                    <c:c hoose>
        36                         <c:when te st="${empt y param.de faultUserF acility}"> value="ALL "</c:when>
        37                         <c:otherwi se>value=" <c:out val ue="${para m.defaultU serFacilit yStation}" />"</c:oth erwise>
        38                    </c: choose>
        39                >
        40           </ div>
        41       </div>
        42   </div>
        43  
        44   <div id="f d-faciliti esDialog"  title="Sel ect Facili ties" styl e="display : none;">
        45       <p>Sel ect one or  more faci lities for  filtering  your repo rt results . Use the  left two l ists to <b >narrow do wn</b> the  selection  list on t he right.
        46           Yo u can sele ct all ava ilable fac ilities or  all facil ities with in specifi c VISNs by  clicking  "Select al l" links.< /p>
        47       <div i d="fd-faci litiesCont ainer"></d iv>
        48       <div s tyle="disp lay: inlin e-block; m argin-left : 3px; wid th: 347px; ">
        49           <i nput id="f d-checkbox -includeUn knownVisn"  type="che ckbox"/>
        50           <l abel class ="fd-label " for="fd- checkbox-i ncludeUnkn ownVisn">I nclude con sents with  unknown V ISN</label >
        51       </div>
        52       <div s tyle="disp lay: inlin e-block; w idth: 367p x;">
        53           <i nput check ed="checke d" id="fd- groupByVis n" type="c heckbox"/>
        54           <l abel class ="fd-label " for="fd- groupByVis n">Display  facilitie s grouped  by VISN</l abel>
        55       </div>
        56       <div s tyle="disp lay: inlin e-block;">
        57           <i nput id="f d-checkbox -aggregate AtFacility Level" typ e="checkbo x"/>
        58           <l abel class ="fd-label " for="fd- checkbox-a ggregateAt FacilityLe vel">Aggre gate data  at the fac ility leve l</label>
        59       </div>
        60       <butto n id="fd-r estoreLast Selection"  alt="Rest ore last s election"  style="mar gin-top: 5 px; vertic al-align:  top;">Rest ore last s election</ button>
        61   </div>
        62  
        63   <script>
        64  
        65       var fa cilitiesDi alog = {};
        66  
        67       <c:if  test="${no t empty pa ram.defaul tUserFacil ity}">
        68           $( '#fd-selec tedFacilit ies').empt y();
        69           $( '#fd-selec tedFacilit ies').appe nd('<optio n><c:out e scapeXml=" false" val ue="${para m.defaultU serFacilit yName}"/>< /option>') ;
        70           $( 'input[nam e="station Numbers"]' ).val('<c: out escape Xml="false " value="$ {param.def aultUserFa cilityStat ion}"/>');
        71           
        72           $( '#fd-check box-includ eUnknownVi sn').prop( 'checked',  false);
        73           $( '#includeU nknownVisn ').val('fa lse');
        74           
        75           $( '#fd-check box-aggreg ateAtFacil ityLevel') .prop('che cked', fal se);
        76           $( '#aggregat eAtFacilit yLevel').v al('false' );
        77       </c:if >
        78       
        79       $('#fd -checkbox- aggregateA tFacilityL evel').on( 'click', f unction ()  {
        80           fa cilitiesDi alog.handl eAggregati on();
        81       });
        82  
        83       $('#fd -facilitie sDialog'). dialog({
        84           au toOpen: fa lse,
        85           bu ttons: [
        86                {
        87                    clic k: functio n() {
        88                         var aggreg ate = $('# fd-checkbo x-aggregat eAtFacilit yLevel').i s(':checke d');
        89                         var statio nNames = [ ];
        90                         var statio nNumbers =  [];
        91                         $('#fd-sta tionList i nput[type= checkbox]' ).each(fun ction() {
        92                             if ($( this).is(' :visible')  && $(this ).is(':che cked')) {
        93                                 va r stationN umber = $( this).attr ('data-sta tionNumber ');
        94                                 va r stationN ame = $(th is).attr(' data-facil ityName')  + ' (' + s tationNumb er + ')';
        95                                 if  (aggregat e) {
        96                                      if (stat ionNumber. length ===  3) {
        97                                          stat ionNames.p ush(statio nName);
        98                                          stat ionNumbers .push(stat ionNumber) ;
        99                                      }
        100                                 }  else {
        101                                      if (stat ionNumber. length > 3 ) {
        102                                          stat ionName =  '&nbsp;&nb sp;&nbsp;& nbsp;' + s tationName ;
        103                                      }
        104                                      stationN ames.push( stationNam e);
        105                                      stationN umbers.pus h(stationN umber);
        106                                 }
        107                             }
        108                         });
        109  
        110                         if (aggreg ate) {
        111                             if (st ationNames .length == = $('#fd-f acilityLis t input[ty pe=checkbo x]').lengt h) {
        112                                 <% -- All fac ilities ar e checked,  so we wil l treat th e selectio n as 'ALL'  --%>
        113                                 va r stationN ames = ['A LL'];
        114                                 va r stationN umbers = [ 'ALL'];
        115                             }
        116                         } else {
        117                             if (st ationNames .length == = $('#fd-s tationList  input[typ e=checkbox ]').length ) {
        118                                 <% -- All fac ilities ar e checked,  so we wil l treat th e selectio n as 'ALL'  --%>
        119                                 va r stationN ames = ['A LL'];
        120                                 va r stationN umbers = [ 'ALL'];
        121                             }
        122                         }
        123  
        124                         $('#fd-sel ectedFacil ities').em pty();
        125                         for (var i  in statio nNames) {
        126                             $('#fd -selectedF acilities' ).append(' <option>'  + stationN ames[i] +  '</option> ');
        127                         }
        128                         $('input[n ame="stati onNumbers" ]').val(st ationNumbe rs.join(', '));  
        129  
        130                         <%-- Store  the curre nt state o f the dial og so that  we can re store it o n demand.  --%>
        131                         facilities Dialog.sto reState();
        132  
        133                         $('#includ eUnknownVi sn').val($ ('#fd-chec kbox-inclu deUnknownV isn').is(' :checked') );
        134                         $('#aggreg ateAtFacil ityLevel') .val($('#f d-checkbox -aggregate AtFacility Level').is (':checked '));
        135                        
        136                         $(this).di alog('clos e');
        137                    },
        138                    text : 'OK'
        139                },
        140                {
        141                    clic k: functio n() {
        142                         $(this).di alog('clos e');
        143                    },
        144                    text : 'Cancel'
        145                }
        146           ],
        147           mo dal: true,
        148           op en: functi on () {
        149                if (wind ow.locatio n.pathname .indexOf(' SummaryRep ort') < 0)  {
        150                    $('# fd-checkbo x-aggregat eAtFacilit yLevel').p arent().hi de();
        151                }
        152           },
        153           sh ow: {
        154                effect:  'blind',
        155                duration : 300
        156           },
        157           wi dth: 1064
        158       });
        159  
        160       $('#fd -groupByVi sn').on('c lick', fun ction () {
        161           if  ($(this). is(':check ed')) {
        162                faciliti esDialog.s ortFacilit iesGrouped ();
        163           }  else {
        164                faciliti esDialog.s ortFacilit iesFlat();
        165           }
        166       });
        167  
        168       $('#fd -restoreLa stSelectio n').on('cl ick', func tion () {
        169           va r state =  sessionSto rage.getIt em('filter DialogStat e');
        170           if  (state != = null) {
        171                var chec kboxes = s tate.split (',');
        172                for (var  i in chec kboxes) {
        173                    var  values = c heckboxes[ i].split(' :');
        174                    var  id = value s[0];
        175                    var  checked =  values[1]  === '1';
        176                    $('# ' + id).pr op('checke d', checke d);
        177                }
        178                faciliti esDialog.h andleAggre gation();
        179                faciliti esDialog.u pdateCheck boxes(fals e);
        180           }
        181       });
        182  
        183       $('#fd -selectAll ').click(f unction (e vent) {
        184           ev ent.preven tDefault() ;
        185           $( '#fd-selec tedFacilit ies').empt y();
        186           $( '#fd-selec tedFacilit ies').appe nd('<optio n>ALL</opt ion>');
        187           $( 'input[nam e="station Numbers"]' ).val(['AL L']);
        188  
        189           $( '#fd-visnL ist input[ type=check box]').eac h(function () {
        190               $(this).p rop('check ed', true) ;
        191           }) ;
        192           
        193           $( '#fd-facil ityList in put[type=c heckbox]') .each(func tion() {
        194                $(this). prop('chec ked', true );
        195           }) ;
        196           
        197           $( '#fd-stati onList inp ut[type=ch eckbox]'). each(funct ion() {
        198                $(this). prop('chec ked', true );
        199           }) ;
        200       });
        201  
        202       $('#fd -selectFac ilities'). click(func tion (even t) {
        203           ev ent.preven tDefault() ;
        204           if  ($('#fd-s tationList ').length)  {
        205                <%-- Dia log has al ready been  loaded, s o we simpl y open it.  --%>
        206                $('#fd-f acilitiesD ialog').di alog('open ');
        207           }  else {
        208                $.get('F acilitiesD ialog.do_s ec?getFaci litiesDial og=true',
        209                    {},
        210                    func tion(resul t) {
        211                         $('#fd-fac ilitiesCon tainer').h tml(result );
        212                    }
        213                ).fail(f unction(ev ent) {
        214                    aler t('failed' );
        215                    cons ole.log(ev ent.toStri ng());
        216                });
        217           }
        218       });
        219  
        220       facili tiesDialog .getAggreg ateAtFacil ityLevel =  function  () {
        221           re turn $('#a ggregateAt FacilityLe vel').val( );
        222       };
        223  
        224       facili tiesDialog .getInclud eUnknownVi sn = funct ion () {
        225           re turn $('#i ncludeUnkn ownVisn'). val();
        226       };
        227  
        228       facili tiesDialog .getSelect edStationN umbers = f unction ()  {
        229           re turn $('in put[name=" stationNum bers"]').v al();
        230       };
        231  
        232       facili tiesDialog .handleAgg regation =  function  () {
        233           va r aggregat eAtFacilit yLevel = $ ('#fd-chec kbox-aggre gateAtFaci lityLevel' ).is(':che cked');
        234           $( '#fd-stati onList .fd -listitem- station'). each(funct ion() {
        235                var faci lityChecke d = $(this ).children (0).is(':c hecked');
        236                $(this). children(' .fd-div-ch eckbox-ind ented').ea ch(functio n() {
        237                    var  checkbox =  $(this).c hildren('i nput');
        238                    var  label = $( this).chil dren('labe l');
        239                    if ( aggregateA tFacilityL evel) {
        240                         checkbox.p rop('check ed', facil ityChecked );
        241                    }
        242                    chec kbox.prop( 'disabled' , aggregat eAtFacilit yLevel);
        243                    labe l.css('col or', aggre gateAtFaci lityLevel  ? '#767676 ' : 'black ');
        244                    labe l.css('fon t-weight',  checkbox. is(':check ed') ? 'bo ld' : 'nor mal');
        245                    labe l.prop('di sabled', a ggregateAt FacilityLe vel);
        246                });
        247           }) ;
        248       };
        249       
        250       facili tiesDialog .sortFacil itiesGroup ed = funct ion () {
        251           <% -- Sort fa cility lis t. --%>
        252           va r items =  $('#fd-fac ilityList' ).children ('.fd-list item-facil ity, .fd-l istitem-vi sn').sort( function(a , b) {
        253                var text A = a.attr ibutes['da ta-grouped Order'].va lue;
        254                var text B = b.attr ibutes['da ta-grouped Order'].va lue;
        255                return t extA.toLow erCase() >  textB.toL owerCase()  ? 1 : -1;
        256           }) ;
        257           $( '#fd-facil ityList'). append(ite ms);
        258  
        259           <% -- Sort st ation list . --%>
        260           va r items =  $('#fd-sta tionList') .children( '.fd-listi tem-statio n, .fd-lis titem-visn ').sort(fu nction(a,  b) {
        261                var text A = a.attr ibutes['da ta-grouped Order'].va lue;
        262                var text B = b.attr ibutes['da ta-grouped Order'].va lue;
        263                return t extA.toLow erCase() >  textB.toL owerCase()  ? 1 : -1;
        264           }) ;
        265           $( '#fd-stati onList').a ppend(item s);
        266  
        267           <% -- To show /hide the  VISN heade rs, we can  simply up date the c heckboxes.  --%>
        268           fa cilitiesDi alog.updat eCheckboxe s(false);
        269  
        270           <% -- Get rid  of the em pty space  on top of  the top-mo st VISN he ader. --%>
        271           $( '#fd-facil ityList'). css('margi n-top', '- 16px');
        272           $( '#fd-stati onList').c ss('margin -top', '-1 6px');
        273       };
        274  
        275       facili tiesDialog .sortFacil itiesFlat  = function  () {
        276           <% -- Sort fa cility lis t. --%>
        277           va r items =  $('#fd-fac ilityList' ).children ('.fd-list item-facil ity').sort (function( a, b) {
        278                var text A = a.attr ibutes['da ta-text']. value;
        279                var text B = b.attr ibutes['da ta-text']. value;
        280                return t extA.toLow erCase() >  textB.toL owerCase()  ? 1 : -1;
        281           }) ;
        282           $( '#fd-facil ityList'). append(ite ms);
        283  
        284           <% -- Sort st ation list . --%>
        285           va r items =  $('#fd-sta tionList') .children( '.fd-listi tem-statio n').sort(f unction(a,  b) {
        286                var text A = a.attr ibutes['da ta-text']. value;
        287                var text B = b.attr ibutes['da ta-text']. value;
        288                return t extA.toLow erCase() >  textB.toL owerCase()  ? 1 : -1;
        289           }) ;
        290           $( '#fd-stati onList').a ppend(item s);
        291  
        292           <% -- We're s howing a f lat list,  so we need  to hide a ll VISN he aders. --% >
        293           $( '#fd-facil itiesConta iner .fd-l istitem-vi sn').each( function()  {
        294                $(this). hide();
        295           }) ;
        296  
        297           <% -- Since w e're not s howing VIS N headers  we need to  get rid o f the top  margin adj ustment. - -%>
        298           $( '#fd-facil ityList'). css('margi n-top', '0 px');
        299           $( '#fd-stati onList').c ss('margin -top', '0p x');
        300       };
        301  
        302       facili tiesDialog .storeStat e = functi on () {
        303           va r state =  [];
        304           
        305           $( '#fd-visnL ist input[ type=check box]').eac h(function () {
        306                state.pu sh($(this) .prop('id' ) + ':' +  ($(this).i s(':checke d') ? '1'  : '0'));
        307           }) ;
        308           
        309           $( '#fd-facil ityList in put[type=c heckbox]') .each(func tion() {
        310                state.pu sh($(this) .prop('id' ) + ':' +  ($(this).i s(':checke d') ? '1'  : '0'));
        311           }) ;
        312           
        313           $( '#fd-stati onList inp ut[type=ch eckbox]'). each(funct ion() {
        314                state.pu sh($(this) .prop('id' ) + ':' +  ($(this).i s(':checke d') ? '1'  : '0'));
        315           }) ;
        316           
        317           st ate.push(' fd-checkbo x-includeU nknownVisn ' + ':' +  ($('#fd-ch eckbox-inc ludeUnknow nVisn').is (':checked ') ? '1' :  '0'));
        318           
        319           st ate.push(' fd-checkbo x-aggregat eAtFacilit yLevel' +  ':' + ($(' #fd-checkb ox-aggrega teAtFacili tyLevel'). is(':check ed') ? '1'  : '0'));
        320           
        321           se ssionStora ge.setItem ('filterDi alogState' , state.to String());
        322       };
        323  
        324   </script>