1 import { Injectable } from '@angular/core';
2 import { HttpClient, HttpHeaders } from '@angular/common/http';
3 import { Observable } from 'rxjs';
4 import { environment } from '../../../../../../environments/environment';
9 export class RunService {
11 finalResponseArr : any;
13 constructor(private _http : HttpClient) {
18 getReportData(reportId : string) : Observable<any>
20 return this._http.get(environment.baseUrl + "raptor.htm?action=report.run.container&c_master="+reportId+"&refresh=Y");
23 getReportDataWithFormFields(queryString : string, reportId : string) : Observable<any>
25 return this._http.get(environment.baseUrl + "raptor.htm?action=report.run.container&c_master="+reportId+queryString+"&refresh=Y&display_content=Y&r_page=0");
28 getDefinitionPageDetails(IncomingReportId : number): Observable <any>
30 return this._http.get(environment.baseUrl + "report/wizard/retrieve_def_tab_wise_data/" + IncomingReportId, { headers: new HttpHeaders({'Content-Type': 'application/json'})});
33 refreshFormFields(reportId : string, queryString : string ) : Observable<any>
35 return this._http.get(environment.baseUrl + "raptor.htm?action=report.formfields.run.container&c_master=" + reportId + queryString);
38 getFormFieldGroupsData(reportId : string) : Observable<any>
40 return this._http.get(environment.baseUrl + "report/wizard/get_formfield_groups_data/" + reportId);
43 downloadReportExcel(reportId : string) : Observable<Blob>
45 return this._http.get(environment.baseUrl + "raptor.htm?c_master="+reportId+"&r_action=report.download.excel.session", { responseType: 'blob' });