Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. -- METODO wellboreActualChange()
  2. wellboreActualChange() {
  3. this.loading = true;
  4. this.wellboreActualActive.WA_ACTIVE_FLAG = true;
  5. this.wellboreActualStationsService.updateWellboreActual(this.wellId, this.wellboreActualActive, this.environment, this.smWellActualApi).subscribe(
  6. x => {
  7.  
  8. this.wellboreActualStationAltered = true;
  9. this.loadSlidesAndStations();
  10.  
  11. }
  12. );
  13. }
  14.  
  15.  
  16. -- METODO loadSlidesAndStations()
  17.  
  18. loadSlidesAndStations() {
  19. this.wellboreActualSlidesService.getWellboreActualSlides(this.wellId, this.wellboreActualActive.WA_ID, this.smWellActualApi, this.environment).subscribe((data: WellboreActualSlides) => {
  20. this.wellboreActualSlides = [...data.items];
  21. this.wellboreActualSlides.map(x => {
  22. x.advisoryTf = x.WAS_USER_ADVISORY_TF || x.WAS_USER_ADVISORY_TF == 0 ? x.WAS_USER_ADVISORY_TF : x.WAS_CAPTURED_ADVISORY_TF
  23. });
  24. localStorage.setItem("wellboreActualSlides", JSON.stringify(this.wellboreActualSlides));
  25. this.setupChecklistConnectService.updatePercent();
  26. this.loadWellboreActualStations();
  27. console.log(this.wellboreActualSlides);
  28. });
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement