20131. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/20/2018 10:12:19 AM Central 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.

20131.1 Files compared

# Location File Last Modified
1 CCRS.zip\CCRS\CCRS-BUSRULES-v1.5.3.zip\CCRS-BUSRULES-v1.5.3-436e6fff1115001d614ccd45b469ad60a9bdb27b\adminapp\src main.js Tue Apr 10 06:18:41 2018 UTC
2 CCRS.zip\CCRS\CCRS-BUSRULES-v1.5.3.zip\CCRS-BUSRULES-v1.5.3-436e6fff1115001d614ccd45b469ad60a9bdb27b\adminapp\src main.js Thu Jun 14 14:03:00 2018 UTC

20131.2 Comparison summary

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

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

20131.4 Active regular expressions

No regular expressions were active.

20131.5 Comparison detail

  1   (function( ) {
  2           'u se strict' ;
  3  
  4           /*  eslint no -unused-va rs: ["erro r", { "arg sIgnorePat tern": "^b aseUrl" }]  */
  5           /*  global an gular,*/
  6  
  7           //  TODO: con fig-driven  mechanism
  8           va r baseUrlF tc = 'http :// URL . PORT ';
  9           va r baseUrlS qa = 'http :// DNS URL . PORT ';
  10           va r baseUrlL ocal = 'ht tp://local host: PORT ';
  11           va r baseUrlR el = '../. ./';
  12  
  13           va r baseUrl  = baseUrlR el;
  14  
  15           va r myApp =  angular.mo dule('ccrs -admin', [ 'ng-admin' ]);
  16  
  17           my App.config (['NgAdmin Configurat ionProvide r', config App]);
  18  
  19           fu nction con figApp(nga ) {
  20                    // T ODO: suppo rt diff en vironments
  21                    var  admin = ng a
  22                             .appli cation('CC RS Admin')
  23                             .baseA piUrl(base Url);
  24  
  25                    crea teThreshol dEntities( admin, nga );
  26                    crea teObligati onEntities (admin, ng a);
  27                    crea tePaymentA uthorityEn tities(adm in, nga);
  28                    crea tePaymentA uthorityOb ligationEn tities(adm in, nga);
  29                    // a dmin.addEn tity(creat eValidatio nConfigEnt ity(nga));
  30  
  31                    crea teUtilsMen u(admin.me nu(), nga,  admin)
  32                    nga. configure( admin);
  33           }
  34  
  35           fu nction cre ateThresho ldEntities (admin, ng a) {
  36                    var  thresholdL istLabel =  'Threshol d Amounts' ;
  37                    var  thresholds  = nga.ent ity('dolla rThreshold s').label( thresholdL istLabel);
  38                    admi n.addEntit y(threshol ds);
  39  
  40                    var  thresholdH istListLab el = 'Thre shold Upda te History ';
  41                    var  thresholdH ist = nga. entity('do llarThresh oldHists') .label(thr esholdHist ListLabel) ;
  42                    admi n.addEntit y(threshol dHist);
  43  
  44                    var  claimTypeF ield = nga .field('cl aimType'). label('Cla im Type');
  45                    var  amountFiel d = nga.fi eld('thres holdAmt',  'number'). label('Amo unt').form at('$0,0.0 0');
  46                    var  updateUser  = nga.fie ld('lastUp datedUserN ame').labe l('Update  User');
  47                    var  updateTime stamp = ng a.field('u pdateTimes tamp', 'da tetime').l abel('Upda te Timesta mp');
  48  
  49                    var  commonFiel ds = [
  50                             claimT ypeField.i sDetailLin k(true),
  51                             amount Field,
  52                             update User,
  53                             update Timestamp
  54                    ];
  55  
  56                    thre sholds.lis tView()
  57                             .title (threshold ListLabel)
  58                             .field s(commonFi elds)
  59                             .perPa ge(10);
  60  
  61                    thre sholds.edi tionView()
  62                             .title ('Threshol d Change')
  63                             .field s([
  64                                      claimTyp eField.edi table(fals e),
  65                                      amountFi eld
  66                             ]);
  67  
  68                    var  histFields  = commonF ields.slic e();
  69                    // m ake claim  type non-c lickable
  70                    hist Fields[0]  = nga.fiel d('claimTy pe').label (claimType Field.labe l());
  71                    var  actionFiel d = nga.fi eld('actio nType').la bel('Actio n');
  72  
  73                    hist Fields.pus h(actionFi eld);
  74  
  75                    thre sholdHist. listView()
  76                             .title (threshold HistListLa bel)
  77                             .field s(histFiel ds)
  78                             .perPa ge(10);
  79  
  80           }
  81  
  82           fu nction cre ateObligat ionEntitie s(admin, n ga) {
  83                    var  obligation NumberList Label = 'O bligation  Numbers';
  84                    var  obligation s = nga.en tity('obli gations'). label(obli gationNumb erListLabe l);
  85                    admi n.addEntit y(obligati ons);
  86  
  87                    var  obligation NumberHist ListLabel  = 'Obligat ion Update  History';
  88                    var  obligation Hist = nga .entity('o bligationH ists').lab el(obligat ionNumberH istListLab el);
  89                    admi n.addEntit y(obligati onHist);
  90  
  91                    var  obligation NumberFiel d = nga.fi eld('oblig ationNumbe r').label( 'Obligatio n Number') ;
  92                    var  costCenter BocField =  nga.field ('costCent erBoc').la bel('Cost  Center BOC ');
  93                    var  categoryOf CareField  = nga.fiel d('categor yOfCare'). label('Cat egory of C are');
  94                    var  categoryOf CareSubset Field = ng a.field('c ategoryOfC areSubset' ).label('C ategory of  Care Subs et');
  95                    var  accField =  nga.field ('acc').la bel('ACC') ;
  96                    var  fundField  = nga.fiel d('fund'). label('Fun d');
  97                    var  mnemonicsF ield = nga .field('mn emonics'). label('Mne monics');
  98                    var  updateUser  = nga.fie ld('lastUp datedUserN ame').labe l('Update  User');
  99                    var  updateTime stamp = ng a.field('l astUpdated Date', 'da tetime').l abel('Upda te Timesta mp');
  100  
  101                    var  commonObli gationFiel ds = [
  102                             obliga tionNumber Field.isDe tailLink(t rue),
  103                             costCe nterBocFie ld,
  104                             catego ryOfCareFi eld,
  105                             catego ryOfCareSu bsetField,
  106                             accFie ld,
  107                             fundFi eld,
  108                             mnemon icsField
  109                    ];
  110  
  111                    obli gations.li stView()
  112                             .title (obligatio nNumberLis tLabel)
  113                             .field s(commonOb ligationFi elds, upda teUser, up dateTimest amp)
  114                             .perPa ge(10);
  115  
  116                    obli gations.cr eationView ()
  117                             .title ("Add Obli gation Num ber")
  118                             .field s(commonOb ligationFi elds);
  119  
  120                    obli gations.ed itionView( )
  121                             .title ("Obligati on Number  Change")
  122                             .field s(commonOb ligationFi elds);
  123  
  124                    //to o many fie lds for li st view, o nly show a  few                 
  125                    var  actionFiel d = nga.fi eld('actio nType').la bel('Actio n');
  126                    obli gationHist .listView( )
  127                             .title (obligatio nNumberHis tListLabel )
  128                             .field s(commonOb ligationFi elds[0], u pdateUser,  updateTim estamp, ac tionField)
  129                             .perPa ge(10);
  130  
  131                    //dr ill down v iew that d isplays al l fields
  132                    obli gationHist .showView( )
  133                             .title (obligatio nNumberHis tListLabel )
  134                             .field s(commonOb ligationFi elds, upda teUser, up dateTimest amp, actio nField);
  135           }
  136  
  137           fu nction cre atePayment AuthorityE ntities(ad min, nga)  {
  138                    var  paymentAut horityList Label = 'P ayment Aut horities';
  139                    var  authoritie s = nga.en tity('paym entAuthori ties').lab el(payment AuthorityL istLabel);
  140                    admi n.addEntit y(authorit ies);
  141  
  142                    var  nameField  = nga.fiel d('name'). label('Nam e');
  143                    var  codeField  = nga.fiel d('code'). label('Cod e');
  144                    var  descriptio nField = n ga.field(' descriptio n').label( 'Descripti on');
  145  
  146                    var  paymentAut horityFiel ds = [
  147                             nameFi eld.isDeta ilLink(tru e),
  148                             codeFi eld,
  149                             descri ptionField
  150                    ];
  151  
  152                    auth orities.li stView()
  153                             .title (paymentAu thorityLis tLabel)
  154                             .field s(paymentA uthorityFi elds)
  155                             .perPa ge(10);
  156                    
  157                    auth orities.ed itionView( )
  158                             .title ("Change P ayment Aut hority")
  159                             .field s(paymentA uthorityFi elds);
  160  
  161                    auth orities.sh owView()
  162                             .title ("View Pay ment Autho rity")
  163                             .field s(paymentA uthorityFi elds);
  164  
  165           }
  166  
  167           fu nction cre atePayment AuthorityO bligationE ntities(ad min, nga)  {
  168                    var  paymentAut horityList Label = 'P ayment Aut hority Obl igation';
  169                    var  paymentAut horityObli gations =  nga.entity ('paymentA uthorityOb ligations' ).label(pa ymentAutho rityListLa bel);
  170                    admi n.addEntit y(paymentA uthorityOb ligations) ;
  171                    
  172                    //us e patch in stead of p ut to save  reference d objects
  173                    paym entAuthori tyObligati ons.update Method('pa tch');
  174  
  175                    var  paymentAut horityObli gation = n ga.field(' id').label ('Payment  Authorithy  Obligatio n');
  176                    
  177                    var  obligation  = nga.fie ld('obliga tionId', ' reference' )
  178                             .label ('Obligati on')
  179                             .targe tEntity(ad min.getEnt ity('oblig ations'))
  180                             .targe tField(nga .field('ob ligationNu mber'));
  181  
  182                    var  paymentAut hority = n ga.field(' paymentAut horityId',  'referenc e')
  183                             .label ('Payment  Authority' )
  184                             .targe tEntity(ad min.getEnt ity('payme ntAuthorit ies'))
  185                             .targe tField(nga .field('de scription' ));
  186  
  187                    var  startDate  = nga.fiel d('startDa te', 'date time').lab el('Start  Date');
  188                    var  endDate =  nga.field( 'endDate',  'datetime ').label(' End Date') ;
  189  
  190                    var  obligation Edit = nga .field('ob ligationId ', 'refere nce')
  191                         .label('Ob ligation')
  192                             .attri butes({
  193                                      'placeho lder': 'Se lect Oblig ation Numb er'
  194                             })
  195                         .targetEnt ity(nga.en tity('obli gations'))  
  196                         .targetFie ld(nga.fie ld('obliga tionNumber ').map((v,  e) => 'Nu mber: ' +  e.obligati onNumber))  
  197                         .transform (function  addSelecte dObligatio n(value, e ntry) {
  198                             entry. obligation  = baseUrl Rel+'oblig ations/'+e ntry.oblig ationId;
  199                             return  value;
  200                         })
  201                         .validatio n({
  202                                      required : true
  203                             });
  204                    
  205                    var  paymentAut horityEdit  = nga.fie ld('paymen tAuthority Id', 'refe rence')
  206                         .label('Pa yment Auth ority')
  207                             .attri butes({
  208                                      'placeho lder': 'Se lect Payme nt Authori ty'
  209                             })
  210                         .targetEnt ity(nga.en tity('paym entAuthori ties')) 
  211                         .targetFie ld(nga.fie ld('code') .map((v, e ) => "Name : " + e.na me + ", Co de:" + e.c ode))
  212                         .transform (function  addSelecte dPaymentAu thority(va lue, entry ) {
  213                             entry. paymentAut hority = b aseUrlRel+ 'paymentAu thorities/ '+entry.pa ymentAutho rityId;
  214                             return  value;
  215                         })
  216                         .validatio n({
  217                                      required : true
  218                             });
  219           
  220                    var  obligation Choice = n ga.field(' obligation ', 'refere nce')
  221                    .lab el('Obliga tion')
  222                    .att ributes({
  223                             'place holder': ' Select Obl igation Nu mber'
  224                    })
  225                    .tar getEntity( admin.getE ntity('obl igations') )
  226                    .tar getField(n ga.field(' comp').map (function( value, ent ry) {
  227                             var id  = entry.i d;
  228                             entry. id = entry ["_links.s elf.href"] ; //there  must be a  better way  of this
  229                             return  "Number:  " + entry. obligation Number;
  230                    }))
  231                    .val idation({
  232                             requir ed: true
  233                    });
  234                    
  235                    
  236  
  237                    var  paymentAut horityChoi ce = nga.f ield('paym entAuthori ty', 'refe rence')
  238                             .label ('Payment  Authority' )
  239                             .attri butes({
  240                                      'placeho lder': 'Se lect Payme nt Authori ty'
  241                             })
  242                             .targe tEntity(ad min.getEnt ity('payme ntAuthorit ies'))
  243                             .targe tField(nga .field('co mp').map(f unction(va lue, entry ) {
  244                                      entry.id  = entry[" _links.sel f.href"];  //there mu st be a be tter way o f this
  245                                      return " Name: " +  entry.name  + ", Code :" + entry .code;
  246                             }))
  247                             .valid ation({
  248                                      required : true
  249                             });
  250  
  251                    var  paymentObl igationFie lds = [
  252                             paymen tAuthority Obligation .isDetailL ink(true). editable(f alse),
  253                             paymen tAuthority ,
  254                             obliga tion,
  255                             startD ate,
  256                             endDat e
  257                    ];
  258                    
  259                    paym entAuthori tyObligati ons.listVi ew()
  260                             .title (paymentAu thorityLis tLabel)
  261                             .field s(paymentO bligationF ields)
  262                             .perPa ge(10);
  263  
  264                    paym entAuthori tyObligati ons.showVi ew()
  265                             .title ("View Ass igned Paym ent Author ities")
  266                             .field s(paymentO bligationF ields);
  267  
  268                    paym entAuthori tyObligati ons.editio nView()
  269                             .title ("Change A ssigned Pa yment Auth orities")
  270                             .field s(paymentA uthorityOb ligation.i sDetailLin k(true).ed itable(fal se),
  271                                               obligation Edit, paym entAuthori tyEdit, st artDate, e ndDate);
  272  
  273                    paym entAuthori tyObligati ons.creati onView()
  274                             .title ("Assign P ayment Aut hority Obl igation")
  275                             .field s(obligati onChoice,  paymentAut horityChoi ce, startD ate, endDa te);
  276  
  277           }
  278  
  279           fu nction cre ateValidat ionConfigE ntity(nga)  {
  280                    var  vldConfig  = nga.enti ty('valida tionConfig s').label( 'Rules Con figuration ');
  281  
  282                    vldC onfig.list View()
  283                             .title ('Rules Co nfiguratio n')
  284                             .field s([
  285                                      nga.fiel d('ruleNam e').label( 'Rule Name '),
  286                                      nga.fiel d('validat ionName'). label('Val idation'),
  287                                      nga.fiel d('carc'). label('CAR C Code'),
  288                                      nga.fiel d('rarc'). label('RAR C Code'),
  289                                      nga.fiel d('message ').label(' Message')
  290                             ])
  291                             .perPa ge(10);
  292  
  293  
  294                    retu rn vldConf ig;
  295           }
  296  
  297           fu nction cre ateUtilsMe nu(menu, n ga, admin)  {
  298                    menu .addChild( nga.menu()
  299                             .title ('Utilitie s')
  300                             .addCh ild(nga.me nu().templ ate(`
  301                                      <a href= "/tablevie wer/tables .html">
  302                                               <span clas s="glyphic on glyphic on-list">< /span>
  303                                               Table View er
  304                                      </a>`))
  305                    )
  306           }
  307  
  308   })();