20. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/4/2017 8:32:30 AM 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.

20.1 Files compared

# Location File Last Modified
1 VCCM.zip\VCCM\CRM_solutions\FTPResources\source\WebResources\ftp_\ServConnDisabilitiesGrid\js ServConnDisabilitiesGridScriptLib.js Thu Nov 30 12:26:44 2017 UTC
2 VCCM.zip\VCCM\CRM_solutions\FTPResources\source\WebResources\ftp_\ServConnDisabilitiesGrid\js ServConnDisabilitiesGridScriptLib.js Thu Nov 30 16:39:40 2017 UTC

20.2 Comparison summary

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

20.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

20.4 Active regular expressions

No regular expressions were active.

20.5 Comparison detail

  1   /// <refer ence path= '../../tri ipcrm_/TR_ KU_V2015_2 _902/js/jq uery.min.j s' />
  2   /// <refer ence path= '../../tri ipcrm_/TR_ KU_V2015_2 _902/js/ke ndo.all.mi n.js' />
  3   /// <refer ence path= "SampleXml Data.js" / >
  4  
  5   //ServConn Disabiliti esGridScri ptLib.js
  6   //Contains  variables  and funct ions used  by the Ser vConnDisab ilitiesGri d.html pag e
  7  
  8   function s cdg_getQue ryVariable (scdg_vari able) {
  9       try {
  10           // Get a Quer y Variable
  11           va r scdg_que ry = windo w.location .search.su bstring(1) ;
  12           va r scdg_var s = scdg_q uery.split ('&');
  13           fo r (var i =  0; i < sc dg_vars.le ngth; i++)  {
  14                var scdg _pair = sc dg_vars[i] .split('=' );
  15                if (scdg _pair[0] = = scdg_var iable) {
  16                    retu rn scdg_pa ir[1];
  17                }
  18           }
  19           // alert('A r equired Qu ery Variab le: ' + sc dg_variabl e + ' is m issing!');
  20           re turn '';
  21       }
  22       catch  (err) {
  23           al ert("Servi ce Connect ed Disabil ities Grid  Web Resou rce Functi on Error(s cdg_getQue ryVariable ): " + err .message);
  24       }
  25   }
  26  
  27   function s cdg_getDis abilityDat a(scdg_nat ionalId) {
  28       try {
  29             var scdg_e esummaryUR L = 'https ://qacrmda c.np.crm.v rm.vba. DNS     /WebParts/ api/eesumm ary/1.0/xm l/ftpCRM/0 00000' + s cdg_nation alId + '00 0000';
  30           va r scdg_xml Data = nul l;
  31   jQuery.sup port.cors  = true;
  32   debugger;
  33           $. ajax({
  34                type: "G ET",
  35                crossDom ain: true,
  36                url: scd g_eesummar yURL,
  37                contentT ype: "appl ication/xm l; charset =utf-8",
  38                dataType : "text",
  39                success:  function  (xmlTextda ta) {
  40                    scdg _xmlData =  xmlTextda ta;
  41                },
  42                error: f unction (j qXHR, text Status, er rorThrown)  {
  43                    //Sy stem Error
  44                    scdg _xmlData =  null;
  45                },
  46                async: f alse,
  47                cache: f alse
  48           }) ;
  49           re turn scdg_ xmlData;
  50       }
  51       catch  (err) {
  52           al ert("Servi ce Connect ed Disabil ities Grid  Web Resou rce Functi on Error(s cdg_getDis abilityDat a): " + er r.message) ;
  53           re turn null;
  54       }
  55   }
  56  
  57   function s cdg_FormLo ad() {
  58       try {
  59           // Get the pa ssed natio nalid vari able
  60           va r scdg_xrm data = scd g_getQuery Variable(" data");
  61           // alert('Xrm Data: ' +  scdg_xrmda ta);
  62           if  (scdg_xrm data == nu ll || scdg _xrmdata = = '') { re turn false ; }
  63  
  64           // Get the se rvice conn ected disa bilities d ata from t he web ser vice
  65           va r scdg_dis abilitiesX mlData = s cdg_getDis abilityDat a(scdg_xrm data);
  66  
  67           // Temporary  action: xm l result i s empty, u se sample  data
  68           // ********** ********** ********** ********** ********** ********** ********** ********** ********** ********** ********** ********
  69           // if (scdg_d isabilitie sXmlData = = null ||  scdg_disab ilitiesXml Data == '' ) { scdg_d isabilitie sXmlData =  xml_resul ts3; }
  70           // ********** ********** ********** ********** ********** ********** ********** ********** ********** ********** ********** ********
  71  
  72           // Define Gri ds
  73           // Define the  main grid
  74           $( '#ku_disab ilitygrid' ).kendoGri d({
  75                columns:  [
  76                    { fi eld: 'ID',  type: 'st ring', hid den: true  },
  77                    { fi eld: 'type ', title:  'Eligibili ty', type:  'string',  width: 15 0 },
  78                    { fi eld: 'enro llmentCate goryName',  title: 'S tatus', ty pe: 'strin g', width:  120 },
  79                    { fi eld: 'rate dDisabilit yPercentag eTotal', t itle: 'SC%  (total)',  type: 'st ring', wid th: 120 },
  80                    { fi eld: 'envC ontaminant sInd', tit le: 'Envir onmental C ontaminant ', type: ' string', w idth: 120  },
  81                    { fi eld: 'radi ationExpos ureInd', t itle: 'Rad iation Exp osure', ty pe: 'strin g', width:  120 },
  82                    { fi eld: 'agen tOrangeInd ', title:  'Agent Ora nge', type : 'string' , width: 1 20 },
  83                    { fi eld: 'camp LejeuneInd ', title:  'Camp Leje une', type : 'string' , width: 1 20 },
  84                ],
  85                dataSour ce: {
  86                    sche ma: {
  87                         model: {
  88                             id: 'I D'
  89                         }
  90                    }
  91                },
  92                groupabl e: false,
  93                sortable : false,
  94                editable : false,
  95                height:  120,
  96                resizabl e: true,
  97                navigata ble: true,
  98                selectab le: false,
  99                noRecord s: true
  100           }) ;
  101           // Define the  detail gr id
  102           $( '#ku_disab ilitydetai lgrid').ke ndoGrid({
  103                columns:  [
  104                    { fi eld: 'ID',  type: 'st ring', hid den: true  },
  105                    { fi eld: 'disa bility', t itle: 'Ind ividual Di sability',  type: 'st ring', wid th: 300 },
  106                    { fi eld: 'perc entage', t itle: 'SC% ', type: ' string', w idth: 120  },
  107                ],
  108                dataSour ce: {
  109                    sche ma: {
  110                         model: {
  111                             id: 'I D'
  112                         }
  113                    }
  114                },
  115                groupabl e: false,
  116                sortable : false,
  117                editable : false,
  118                height:  200,
  119                resizabl e: true,
  120                navigata ble: true,
  121                selectab le: false,
  122                noRecord s: true
  123           }) ;
  124  
  125           // Create dis abilty gri d datasour ce
  126           va r scdg_dis abilityGri d = $('#ku _disabilit ygrid').da ta('kendoG rid');
  127           // Create dis abilty det ail grid d atasource
  128           va r scdg_dis abilitydet ailGrid =  $('#ku_dis abilitydet ailgrid'). data('kend oGrid');
  129  
  130           // Search XML  values
  131           sc dg_xmlDoc  = $.parseX ML(scdg_di sabilities XmlData);
  132           $s cdg_xml =  $(scdg_xml Doc);
  133  
  134           // Data from  parentnode  'enrollme ntDetermin ationInfo'  
  135           va r $scdg_en rollmentDe terminatio nInfo = nu ll;
  136           va r $scdg_pr imaryEligi bility = n ull;
  137           va r $scdg_ty pe = null;
  138           va r scdg_typ eText = nu ll;
  139           va r $scdg_en rollmentCa tegoryName  = null;
  140           va r scdg_enr ollmentCat egoryNameT ext = null ;
  141           va r $scdg_sp ecialFacto rs = null;
  142           va r $scdg_en vContamina ntsInd = n ull;
  143           va r scdg_env Contaminan tsIndText  = null;
  144           va r $scdg_ra diationExp osureInd =  null;
  145           va r scdg_rad iationExpo sureIndTex t = null;
  146           va r $scdg_ag entOrangeI nd = null;
  147           va r scdg_age ntOrangeIn dText = nu ll;
  148           va r $scdg_ca mpLejeuneI nd = null;
  149           va r scdg_cam pLejeuneIn dText = nu ll;
  150           va r $scdg_se rviceConne ctionAward  = null;
  151           va r $scdg_se rviceConne ctedPercen tage = nul l;
  152           va r scdg_ser viceConnec tedPercent ageText =  null;
  153           va r $scdg_ra tedDisabil ities = nu ll;
  154  
  155           va r scdg_rat edDisabili tyPercenta geTotal =  0;
  156  
  157           va r scdg_det ailrowcoun t = 0;
  158  
  159           $s cdg_enroll mentDeterm inationInf o = $scdg_ xml.find(' enrollment Determinat ionInfo');
  160           if  ($scdg_en rollmentDe terminatio nInfo != n ull) {
  161                $scdg_pr imaryEligi bility = $ scdg_enrol lmentDeter minationIn fo.find('p rimaryElig ibility');
  162                if ($scd g_primaryE ligibility  != null)  {
  163                    $scd g_type = $ scdg_prima ryEligibil ity.find(' type');
  164                    if ( $scdg_type  != null)  { scdg_typ eText = $s cdg_type.t ext(); }
  165                }
  166  
  167                $scdg_en rollmentCa tegoryName  = $scdg_e nrollmentD eterminati onInfo.fin d('enrollm entCategor yName');
  168                if ($scd g_enrollme ntCategory Name != nu ll) { scdg _enrollmen tCategoryN ameText =  $scdg_enro llmentCate goryName.t ext(); }
  169  
  170                $scdg_sp ecialFacto rs = $scdg _enrollmen tDetermina tionInfo.f ind('speci alFactors' );
  171                if ($scd g_specialF actors !=  null) {
  172                    $scd g_envConta minantsInd  = $scdg_s pecialFact ors.find(' envContami nantsInd') ;
  173                    if ( $scdg_envC ontaminant sInd != nu ll) { scdg _envContam inantsIndT ext = $scd g_envConta minantsInd .text(); }
  174                    $scd g_radiatio nExposureI nd = $scdg _specialFa ctors.find ('radiatio nExposureI nd');
  175                    if ( $scdg_radi ationExpos ureInd !=  null) { sc dg_radiati onExposure IndText =  $scdg_radi ationExpos ureInd.tex t(); }
  176                    $scd g_agentOra ngeInd = $ scdg_speci alFactors. find('agen tOrangeInd ');
  177                    if ( $scdg_agen tOrangeInd  != null)  { scdg_age ntOrangeIn dText = $s cdg_agentO rangeInd.t ext(); }
  178                    $scd g_campLeje uneInd = $ scdg_speci alFactors. find('camp LejeuneInd ');
  179                    if ( $scdg_camp LejeuneInd  != null)  { scdg_cam pLejeuneIn dText = $s cdg_campLe jeuneInd.t ext(); }
  180                }
  181  
  182                $scdg_se rviceConne ctionAward  = $scdg_e nrollmentD eterminati onInfo.fin d('service Connection Award');
  183                if ($scd g_serviceC onnectionA ward != nu ll) {
  184                    $scd g_serviceC onnectedPe rcentage =  $scdg_ser viceConnec tionAward. find('serv iceConnect edPercenta ge');
  185                    if ( $scdg_serv iceConnect edPercenta ge != null ) { scdg_s erviceConn ectedPerce ntageText  = $scdg_se rviceConne ctedPercen tage.text( ); }
  186                    $scd g_ratedDis abilities  = $scdg_se rviceConne ctionAward .find('rat edDisabili ties');
  187                    //Ge t each dis ability li sted
  188                    $scd g_ratedDis abilities. find('rate dDisabilit y').each(f unction ()  {
  189                         var scdg_r atedDisabi lityPercen t = 0;
  190                         var scdg_d isability  = null;
  191                         if (Number ($(this).f ind('perce ntage').te xt()) > 0)  {
  192                             scdg_r atedDisabi lityPercen tageTotal  = scdg_rat edDisabili tyPercenta geTotal +  Number($(t his).find( 'percentag e').text() );
  193                             scdg_r atedDisabi lityPercen t = Number ($(this).f ind('perce ntage').te xt());
  194                         }
  195                         //Add to d etail grid
  196                         scdg_detai lrowcount  = scdg_det ailrowcoun t + 1;
  197                         scdg_disab ilitydetai lGrid.data Source.pus hCreate({
  198                             ID: sc dg_detailr owcount,
  199                             disabi lity: $(th is).find(' disability ').text(),
  200                             percen tage: scdg _ratedDisa bilityPerc ent
  201                         });
  202                    });
  203                }
  204           }
  205  
  206           // If no elig ibility sp ecified, s et to fals e
  207           if  (scdg_typ eText == n ull || scd g_typeText  == '') {  scdg_typeT ext = fals e; }
  208  
  209           // Change boo lean value s to false  if not ma rked true
  210           if  (scdg_env Contaminan tsIndText  != 'true')  { scdg_en vContamina ntsIndText  = false;  }
  211           if  (scdg_rad iationExpo sureIndTex t != 'true ') { scdg_ radiationE xposureInd Text = fal se; }
  212           if  (scdg_age ntOrangeIn dText != ' true') { s cdg_agentO rangeIndTe xt = false ; }
  213           if  (scdg_cam pLejeuneIn dText != ' true') { s cdg_campLe jeuneIndTe xt = false ; }
  214  
  215           // Update dis ability ma in grid da ta
  216           sc dg_disabil ityGrid.da taSource.p ushCreate( {
  217                ID: '01' ,
  218                type: sc dg_typeTex t,
  219                enrollme ntCategory Name: scdg _enrollmen tCategoryN ameText,
  220                ratedDis abilityPer centageTot al: scdg_s erviceConn ectedPerce ntageText,
  221                envConta minantsInd : scdg_env Contaminan tsIndText,
  222                radiatio nExposureI nd: scdg_r adiationEx posureIndT ext,
  223                agentOra ngeInd: sc dg_agentOr angeIndTex t,
  224                campLeje uneInd: sc dg_campLej euneIndTex t
  225           }) ;
  226  
  227           // Hide the d etails gri d if the S C% total =  0
  228           if  (scdg_rat edDisabili tyPercenta geTotal ==  0 || scdg _ratedDisa bilityPerc entageTota l == null  || scdg_ra tedDisabil ityPercent ageTotal = = '') {
  229                $('#ku_d isabilityd etailgrid' ).hide();
  230           }
  231  
  232       }
  233       catch  (err) {
  234           al ert("Servi ce Connect ed Disabil ities Grid  Web Resou rce Functi on Error(s cdg_FormLo ad): " + e rr.message );
  235       }
  236   }