ronaldkwandy

Untitled

Mar 19th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. this.adminPeriodeGajiService.search({ salaryDate : this.inputForm.value.tglMutasi })
  2.     .pipe(takeUntil(this.ngUnsubscribe))
  3.     .subscribe(
  4.         (result) => {
  5.             this.penggajianForm.patchValue({
  6.                 bulanBerlaku : result.data[0].yearMonth
  7.             });
  8.  
  9.             this.employeeSalaryService.search({ employeeId : this.karyawan.id, beginDate: this.inputForm.value.tglMutasi }).subscribe(
  10.                 (salaries) => {
  11.                     this.penggajianForm.patchValue({
  12.                         oldGaji: result.data[0].basicSalary,
  13.                         gaji : result.data[0].basicSalary
  14.                     });
  15.                 }
  16.             );
  17.  
  18.             // Service lain nya disini jg
  19.            
  20.         },
  21.         (error) => {
  22.             this.uiBlockService.hideUiBlock();
  23.             this.contentAlertService.error(error.errors);
  24.         },
  25.         () => { this.uiBlockService.hideUiBlock(); }
  26.     );
Advertisement
Add Comment
Please, Sign In to add comment