diff --git a/src/app/core/core.module.ts b/src/app/core/core.module.ts index 4de645b2..8f266fd3 100644 --- a/src/app/core/core.module.ts +++ b/src/app/core/core.module.ts @@ -8,10 +8,6 @@ import { dataService } from './services/dataService/data.service'; import { ConfirmationDialogsService } from './services/dialog/confirmation.service'; import { HttpServices } from './services/http-services/http_services.service'; import { SpinnerService } from './services/spinnerService/spinner.service'; -import { LanguageService } from './services/adminServices/AdminLanguage/language.service'; -import { RoleService } from './services/adminServices/AdminRole/role.service'; -import { ScreenService } from './services/adminServices/AdminScreen/screen.service'; -import { ServicemasterService } from './services/adminServices/AdminService/servicemaster.service'; import { ViewVersionDetailsComponent } from './components/view-version-details/view-version-details.component'; import { MaterialModule } from './material.module'; import { AuthService } from './services/authentication/auth.service'; @@ -160,10 +156,6 @@ import { SpinnerComponent } from './components/spinner/spinner.component'; SpinnerService, AuthGuard, DashboardHttpServices, - LanguageService, - RoleService, - ScreenService, - ServicemasterService, CommonServices, VanMasterService, ], @@ -181,8 +173,7 @@ export class CoreModule { dataService, HttpServices, DashboardHttpServices, - LanguageService, - ], + ], }; } } diff --git a/src/app/core/services/adminServices/AdminLanguage/language.service.ts b/src/app/core/services/adminServices/AdminLanguage/language.service.ts deleted file mode 100644 index 9ee0d479..00000000 --- a/src/app/core/services/adminServices/AdminLanguage/language.service.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * AMRIT – Accessible Medical Records via Integrated Technology - * Integrated EHR (Electronic Health Records) Solution - * - * Copyright (C) "Piramal Swasthya Management and Research Institute" - * - * This file is part of AMRIT. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see https://www.gnu.org/licenses/. - */ -import { Injectable } from '@angular/core'; -import { HttpClient, HttpResponse, HttpHeaders } from '@angular/common/http'; - -@Injectable() -export class LanguageService { - headers = new Headers( - { 'Content-Type': 'application/json' }, - // ,{'Access-Control-Allow-Headers': 'X-Requested-With, content-type'} - // ,{'Access-Control-Allow-Origin': 'localhost:4200'} - // ,{'Access-Control-Allow-Methods': 'POST, GET, PUT, DELETE, OPTIONS'} - // ,{'Access-Control-Allow-Methods': '*'} - ); - options: any = { headers: this.headers }; - test = []; - - private _geturl = 'http://localhost:8080/Language/iEMR/userLanguage/getData'; - private _saveurl = - 'http://localhost:8080//iEMR/userLanguage/saveUserLanguage'; - - constructor(private _http: HttpClient) {} - getLanguage() { - return this._http.post(this._geturl, this.options); - // .map((response:Response)=> response.json()); - } - saveLanguage(data: any) { - //console.log(data); - return this._http.post(this._saveurl, data, this.options); - - // .map((response:Response)=> response.json()); - } -} diff --git a/src/app/core/services/adminServices/AdminRole/role.service.ts b/src/app/core/services/adminServices/AdminRole/role.service.ts deleted file mode 100644 index 2e4059ec..00000000 --- a/src/app/core/services/adminServices/AdminRole/role.service.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * AMRIT – Accessible Medical Records via Integrated Technology - * Integrated EHR (Electronic Health Records) Solution - * - * Copyright (C) "Piramal Swasthya Management and Research Institute" - * - * This file is part of AMRIT. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see https://www.gnu.org/licenses/. - */ -import { Injectable } from '@angular/core'; -import { HttpClient, HttpHeaders } from '@angular/common/http'; - -@Injectable() -export class RoleService { - headers = new Headers( - { 'Content-Type': 'application/json' }, - // ,{'Access-Control-Allow-Headers': 'X-Requested-With, content-type'} - // ,{'Access-Control-Allow-Origin': 'localhost:4200'} - // ,{'Access-Control-Allow-Methods': 'POST, GET, PUT, DELETE, OPTIONS'} - // ,{'Access-Control-Allow-Methods': '*'} - ); - options: any = { headers: this.headers }; - test = []; - - private _geturl = 'http://localhost:8080//roleGet'; - private _saveurl = 'http://localhost:8080//roleSave'; - - constructor(private _http: HttpClient) {} - getRole() { - return this._http.post(this._geturl, this.options); - // .map((response:Response)=> response.json()); - } - saveRole(data: any) { - //console.log(data); - return this._http.post(this._saveurl, data, this.options); - - // .map((response:Response)=> response.json()); - } -} diff --git a/src/app/core/services/adminServices/AdminScreen/screen.service.ts b/src/app/core/services/adminServices/AdminScreen/screen.service.ts deleted file mode 100644 index 4381f3c5..00000000 --- a/src/app/core/services/adminServices/AdminScreen/screen.service.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * AMRIT – Accessible Medical Records via Integrated Technology - * Integrated EHR (Electronic Health Records) Solution - * - * Copyright (C) "Piramal Swasthya Management and Research Institute" - * - * This file is part of AMRIT. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see https://www.gnu.org/licenses/. - */ -import { Injectable } from '@angular/core'; -import { HttpClient, HttpHeaders } from '@angular/common/http'; - -@Injectable() -export class ScreenService { - headers = new Headers( - { 'Content-Type': 'application/json' }, - // ,{'Access-Control-Allow-Headers': 'X-Requested-With, content-type'} - // ,{'Access-Control-Allow-Origin': 'localhost:4200'} - // ,{'Access-Control-Allow-Methods': 'POST, GET, PUT, DELETE, OPTIONS'} - // ,{'Access-Control-Allow-Methods': '*'} - ); - options: any = { headers: this.headers }; - - test = []; - - private _geturl = 'http://localhost:8080//iEMR/UserScreen/getScreenData'; - private _saveurl = 'http://localhost:8080//iEMR/UserScreen/saveUserScreen'; - - constructor(private _http: HttpClient) {} - getScreen() { - return this._http.post(this._geturl, this.options); - // .map((response:Response)=> response.json()); - } - saveScreen(data: any) { - //console.log(data); - return this._http.post(this._saveurl, data, this.options); - - // .map((response:Response)=> response.json()); - } -} diff --git a/src/app/core/services/adminServices/AdminService/servicemaster.service.ts b/src/app/core/services/adminServices/AdminService/servicemaster.service.ts deleted file mode 100644 index 175dd3c0..00000000 --- a/src/app/core/services/adminServices/AdminService/servicemaster.service.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * AMRIT – Accessible Medical Records via Integrated Technology - * Integrated EHR (Electronic Health Records) Solution - * - * Copyright (C) "Piramal Swasthya Management and Research Institute" - * - * This file is part of AMRIT. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see https://www.gnu.org/licenses/. - */ -import { HttpClient } from '@angular/common/http'; -import { Injectable } from '@angular/core'; - -@Injectable() -export class ServicemasterService { - test = []; - options: any; - headers = new Headers( - { 'Content-Type': 'application/json' }, - // ,{'Access-Control-Allow-Headers': 'X-Requested-With, content-type'} - // ,{'Access-Control-Allow-Origin': 'localhost:4200'} - // ,{'Access-Control-Allow-Methods': 'POST, GET, PUT, DELETE, OPTIONS'} - // ,{'Access-Control-Allow-Methods': '*'} - ); - - // this.options = new RequestOptions({ headers: this.headers }); - private _geturl = 'http://localhost:8080/iEMR/ServiceMaster/getServiceData'; - private _saveurl = 'http://localhost:8080/iEMR/ServiceMaster/saveService'; - - constructor(private _http: HttpClient) {} - getServiceMaster() { - return this._http.post(this._geturl, this.options); - // .map((response: Response) => response.json()); - } - saveServiceMaster(data: any) { - //console.log(data); - return this._http.post(this._saveurl, data, this.options); - - // .map((response: Response) => response.json()); - } -}