Commit 9d2e8402 authored by kpandey's avatar kpandey

updated

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@174987 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2d213a74
......@@ -11,14 +11,15 @@ import { SubCategory } from '../../ecm-model/subcategory-model';
@Injectable()
export class EcmSubCategoryService {
private SERVICE_URL = '/ecm/service/category'; // URL to web service
// private SERVICE_URL = '/ecm/service/L2D01/category'; // URL to web service
private SERVICE_URL = '/ecm/service';
constructor (private http: Http,public hostUrlService : HostUrlService) {}
getSubCategories( catCode: string ): Observable<SubCategory[]> {
let subCategoriesUrl = this.hostUrlService.hostUrl+this.SERVICE_URL + '/' + catCode + '/list';
let siteCode = localStorage.getItem('SITE_CODE');
let subCategoriesUrl = this.hostUrlService.hostUrl+this.SERVICE_URL + '/' + siteCode + '/category' + '/' + catCode + '/list';
let headers = new Headers( { 'Content-Type': 'application/json' });
let options = new RequestOptions( { headers: headers });
......@@ -29,7 +30,8 @@ export class EcmSubCategoryService {
getSubCategory (scatCode : string): Observable<SubCategory> {
let subCategoryUrl = this.hostUrlService.hostUrl+this.SERVICE_URL + '/list/' + scatCode;
let siteCode = localStorage.getItem('SITE_CODE');
let subCategoryUrl = this.hostUrlService.hostUrl+this.SERVICE_URL + '/' + siteCode + '/category' + '/list/' + scatCode;
let headers = new Headers({ 'Content-Type': 'application/json' });
let options = new RequestOptions({ headers: headers });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment