48. EPMO Open Source Coordination Office Redaction File Detail Report

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.

48.1 Files compared

# Location File Last Modified
1 PC_CP4_CiF.zip\FPPS_Frontend\fpps-app\src\app\tools\modify-user-request modify-user-request.component.ts Fri Dec 8 17:52:26 2017 UTC
2 PC_CP4_CiF.zip\FPPS_Frontend\fpps-app\src\app\tools\modify-user-request modify-user-request.component.ts Fri Dec 8 18:37:01 2017 UTC

48.2 Comparison summary

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

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

48.4 Active regular expressions

No regular expressions were active.

48.5 Comparison detail

  1   import { C omponent,  OnInit, In put, ViewC hild, Even tEmitter }  from '@an gular/core ';
  2   import { R outer, Act ivatedRout e, Params  } from '@a ngular/rou ter';
  3   import { N gForm } fr om '@angul ar/forms';
  4   import { R equestOpti ons } from  '@angular /http';
  5  
  6   import { U serRequest  } from '. ./models/u serRequest ';
  7   import { R estService  } from '. ./../share d/service/ rest.servi ce';
  8   import { A ssignCompo nent } fro m '../../s hared/assi gn/assign. component' ;
  9   import { e nvironment  } from '. ./../../en vironments /environme nt';
  10   import { O bservable  } from 'rx js/Rx';
  11  
  12   @Component ({
  13           se lector: "m odify-user -request",
  14           te mplateUrl:  "modify-u ser-reques t.componen t.html",
  15           st yleUrls: [ "modify-us er-request .component .scss"],
  16           pr oviders: [ RestServic e]
  17   })
  18  
  19   export cla ss ModifyU serRequest Component  implements  OnInit {
  20           f:  NgForm;
  21           @V iewChild(' f') curren tForm: NgF orm;
  22           us erRequest:  UserReque st = new U serRequest ();
  23           ro les: Strin g[];
  24           fa cilities:  String[];
  25           me ssage: Str ing = '';
  26           or iginalEnab led: boole an = this. userReques t.enabled;
  27           wi nntname =  { window_n t_name: 'v haispchmie m' }; //ka rma unit t est task#5 78136
  28           fi rstName =  { first_na me: 'Lucky ' };//karm a unit tes t task-#58 1416
  29           co mments = {  disable_c omments: ' not valida ted' };//k arma test  - task# 58 0349
  30           mi ddleName =  { middle_ name: 'jac kie' };//k arma test  - task#580 196
  31           la stName = {  last_name : 'chan' } ;//karma t est - task #580881
  32           ph oneNumber  = { phone:  '97786543 21' };//ka rma test -  task#5803 42
  33           em ailAddress  = { email PII          ' };// kar ma test fo r email el ement task #581091
  34  
  35  
  36           co nstructor( public res t: RestSer vice, priv ate activa tedRoute:  ActivatedR oute) { }
  37  
  38           ng OnInit() {
  39  
  40  
  41                    this .rest.getO bjectFromU rl<any>(en vironment. nodeserver  + '/tools /userReque st/' + thi s.activate dRoute.sna pshot.para ms.id).map (
  42                             data = > {
  43                                      if (!!da ta && !dat a.error_co de) {
  44                                               this.userR equest = d ata;
  45                                               // removes  the prepo pulated du plicates f rom the le ft side
  46                                               this.roles  = data.av ailable_ro les.filter (x => data .request_r oles.index Of(x) ===  -1);
  47                                               this.facil ities = da ta.availab le_facilit ies.filter (x => data .request_f acilities. indexOf(x)  === -1);
  48  
  49                                               // all fie lds will b e marked d irty, forc ing a vali dation on  the new pr epopulated  data
  50                                               for (var i  in this.c urrentForm .controls)  {
  51                                                       th is.current Form.contr ols[i].mar kAsDirty() ;
  52                                               }
  53                                      } else i f (!!data. error_code ) {
  54                                               console.lo g(data.err or_code +  ' : ' + da ta.error_d escription );
  55                                      }
  56                             }
  57                    ).su bscribe(da ta => { }) ;
  58           }
  59  
  60           on Submit() {
  61                    this .userReque st.current _user_name  = session Storage.ge tItem('use rName');
  62                    cons t options  = new Requ estOptions ({ body: t his.userRe quest });  console.lo g('body is ' + option s);
  63                    this .rest.putO bjectFromU rl<any>(en vironment. nodeserver  + '/tools /userReque st/', opti ons).subsc ribe(
  64                             data = > { this.m essage = d ata.result  === 1 ? ' success' :  data.erro r_descript ion; conso le.log(JSO N.stringif y(data));  }
  65                    );
  66           }
  67   }