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

50.1 Files compared

# Location File Last Modified
1 PC_CP4_CiF.zip\FPPS_Frontend\fpps-app\src\app\tools\search-user-request search-user-request.component.ts Fri Dec 8 17:53:32 2017 UTC
2 PC_CP4_CiF.zip\FPPS_Frontend\fpps-app\src\app\tools\search-user-request search-user-request.component.ts Fri Dec 8 18:37:03 2017 UTC

50.2 Comparison summary

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

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

50.4 Active regular expressions

No regular expressions were active.

50.5 Comparison detail

  1   import {
  2     Componen t,
  3     AfterCon tentInit,
  4     Input,
  5     ViewChil d,
  6     EventEmi tter
  7   } from '@a ngular/cor e';
  8   import { N gForm } fr om '@angul ar/forms';
  9   import { R equestOpti ons } from  '@angular /http';
  10   import { O bservable  } from 'rx js/Rx';
  11  
  12   import { U serRequest Search } f rom '../mo dels/user- request-se arch.model ';
  13   import { R estService  } from '. ./../share d/service/ rest.servi ce';
  14   import { e nvironment  } from '. ./../../en vironments /environme nt';
  15   import { T ableCompon ent } from  '../../sh ared/table /table.com ponent';
  16   import { C olumnMetad ata } from  '../../sh ared/table /cols.mode l';
  17   import { T ableOption s } from ' ../../shar ed/table/t able-optio ns.model';
  18   import { T ableServic e } from ' ../../shar ed/table/t able.servi ce';
  19  
  20   @Component ({
  21     selector : 'search- user-reque st',
  22     template Url: 'sear ch-user-re quest.comp onent.html ',
  23     styleUrl s: ['searc h-user-req uest.compo nent.scss' ],
  24     provider s: [RestSe rvice, Tab leService]
  25   })
  26   export cla ss SearchU serRequest Component  implements  AfterCont entInit {
  27     f: NgFor m;
  28     @ViewChi ld('f') cu rrentForm:  NgForm;
  29     userRequ est: UserR equestSear ch = new U serRequest Search();
  30     message:  String =  '';
  31     winntnam e = { user Name: 'vha ispchmiem'  }; // tas k#583257
  32     firstNam e = { firs tName: 'Lu cky' }; //  karma uni t test tas k-#583318
  33     stationI D = { stat ionId: '12 3' }; // k arma test  - task#588 319
  34     lastName  = { lastN ame: 'chan ' }; // ka rma test -  task#5833 20
  35     phoneNum ber = { ph one: '9778 654321' };  // karma  test - tas k#583321
  36       emailAddre ss = { ema il:  PII          ' }; // ka rma test f or email e lement tas k#583322
  37     loading  = false;
  38     results  = [];
  39     tableOpt ions = new  TableOpti ons()
  40       .setNo NumPerPage (true)
  41       .setNo Pagination (true)
  42       .setNo ShowMessag es(true)
  43       .setNo ShowNumRes ults(true) ;
  44     public c ols: Colum nMetadata[ ] = [
  45       new Co lumnMetada ta('userNa me', 'NT U sername'),
  46       new Co lumnMetada ta('lastNa me', 'Last  Name'),
  47       new Co lumnMetada ta('firstN ame', 'Fir st Name'),
  48       new Co lumnMetada ta('active ', 'Active '),
  49       new Co lumnMetada ta('lastLo gin', 'Las t Login'). setAlign(' right'),
  50       new Co lumnMetada ta('phone' , 'Phone') .setAlign( 'right'),
  51       new Co lumnMetada ta('email' , 'Email') ,
  52       new Co lumnMetada ta('edit',  '')
  53         .set Sort(false )
  54         .set Button(tru e)
  55         .set Align('cen ter')
  56     ];
  57  
  58     construc tor(public  rest: Res tService)  {}
  59  
  60     ngAfterC ontentInit () {
  61       this.o nSubmit();
  62     }
  63     onSubmit () {
  64       this.l oading = t rue;
  65       const  options =  new Reques tOptions({  body: thi s.userRequ est });
  66       this.r est
  67         .pos tObjectFro mUrl<any>(
  68           en vironment. nodeserver  + '/tools /userReque st/search' ,
  69           op tions
  70         )
  71         .sub scribe(dat a => {
  72           th is.message  = data.re sult === 1  ? 'succes s' : data. error_desc ription;
  73           if  (!!data)  {
  74              data.users fromSearch .forEach(u ser => {
  75                user.edi t = 'Edit' ;
  76                user.edi tLink = '/ modifyUser Request/'  + user.use rName;
  77              });
  78              this.resul ts = data. usersfromS earch;
  79              this.loadi ng = false ;
  80           }
  81         });
  82     }
  83   }