summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/definition.service.ts
blob: 94b774fa152ad56acd09cd54ff081480dcf2ae29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { environment } from '../../../../../../environments/environment';
import { Observable } from 'rxjs';


@Injectable({
  providedIn: 'root'
})
export class DefinitionService {

  constructor(private _http : HttpClient) { }

  getDefinitionPageDetails(IncomingReportId : number, reportMode: string): Observable <any>
  {
    return this._http.get(environment.baseUrl + "report/wizard/retrieve_def_tab_wise_data/" + IncomingReportId, { headers: new HttpHeaders({'Content-Type': 'application/json'})});
  }

  portDefinitionPageDetails(IncomingReportId: number, finalPostObj : any): Observable <any>
  {
    return this._http.post(environment.baseUrl + "report/wizard/save_def_tab_data/" + IncomingReportId, finalPostObj, { headers: new HttpHeaders({'Content-Type': 'application/json'})});
  }
  
   copyReportById(IncomingReportId: number): Observable <any>
  {
    return this._http.get(environment.baseUrl + "report/wizard/copy_report/" + IncomingReportId);
  }
   clearSession(): Observable <any>
  {
    return this._http.get(environment.baseUrl + "report/wizard/clearSession");
  }
}