Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- METODO wellboreActualChange()
- wellboreActualChange() {
- this.loading = true;
- this.wellboreActualActive.WA_ACTIVE_FLAG = true;
- this.wellboreActualStationsService.updateWellboreActual(this.wellId, this.wellboreActualActive, this.environment, this.smWellActualApi).subscribe(
- x => {
- this.wellboreActualStationAltered = true;
- this.loadSlidesAndStations();
- }
- );
- }
- -- METODO loadSlidesAndStations()
- loadSlidesAndStations() {
- this.wellboreActualSlidesService.getWellboreActualSlides(this.wellId, this.wellboreActualActive.WA_ID, this.smWellActualApi, this.environment).subscribe((data: WellboreActualSlides) => {
- this.wellboreActualSlides = [...data.items];
- this.wellboreActualSlides.map(x => {
- x.advisoryTf = x.WAS_USER_ADVISORY_TF || x.WAS_USER_ADVISORY_TF == 0 ? x.WAS_USER_ADVISORY_TF : x.WAS_CAPTURED_ADVISORY_TF
- });
- localStorage.setItem("wellboreActualSlides", JSON.stringify(this.wellboreActualSlides));
- this.setupChecklistConnectService.updatePercent();
- this.loadWellboreActualStations();
- console.log(this.wellboreActualSlides);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement