1 import { Injectable } from '@angular/core';
2 import { HttpClient, HttpHeaders } from '@angular/common/http';
3 import { environment } from '../../../../../../environments/environment';
4 import { Observable } from 'rxjs';
10 export class DefinitionService {
12 constructor(private _http : HttpClient) { }
14 getDefinitionPageDetails(IncomingReportId : number, reportMode: string): Observable <any>
16 return this._http.get(environment.baseUrl + "report/wizard/retrieve_def_tab_wise_data/" + IncomingReportId, { headers: new HttpHeaders({'Content-Type': 'application/json'})});
19 portDefinitionPageDetails(IncomingReportId: number, finalPostObj : any): Observable <any>
21 return this._http.post(environment.baseUrl + "report/wizard/save_def_tab_data/" + IncomingReportId, finalPostObj, { headers: new HttpHeaders({'Content-Type': 'application/json'})});