From 8a4f296f96d224a8cd9353592910f995d2a3dee4 Mon Sep 17 00:00:00 2001 From: "tiago.kayaya" Date: Thu, 8 Apr 2021 01:56:11 +0100 Subject: [PATCH] save --- src/app/app-routing.module.ts | 4 ++++ .../document-detail-routing.module.ts | 17 +++++++++++++ .../document-detail/document-detail.module.ts | 24 +++++++++++++++++++ .../document-detail/document-detail.page.html | 10 ++++++++ .../document-detail/document-detail.page.scss | 0 .../document-detail.page.spec.ts | 24 +++++++++++++++++++ .../document-detail/document-detail.page.ts | 15 ++++++++++++ .../pages/publications/publications.page.scss | 2 +- src/app/services/processes.service.ts | 14 +++++++++++ 9 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 src/app/modals/document-detail/document-detail-routing.module.ts create mode 100644 src/app/modals/document-detail/document-detail.module.ts create mode 100644 src/app/modals/document-detail/document-detail.page.html create mode 100644 src/app/modals/document-detail/document-detail.page.scss create mode 100644 src/app/modals/document-detail/document-detail.page.spec.ts create mode 100644 src/app/modals/document-detail/document-detail.page.ts diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 2d637573b..e4573a5ba 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -35,6 +35,10 @@ const routes: Routes = [ path: 'expedients', loadChildren: () => import('./shared/gabinete-digital/expedients/expedients.module').then( m => m.ExpedientsPageModule) }, + { + path: 'document-detail', + loadChildren: () => import('./modals/document-detail/document-detail.module').then( m => m.DocumentDetailPageModule) + }, /* { path: 'chat', diff --git a/src/app/modals/document-detail/document-detail-routing.module.ts b/src/app/modals/document-detail/document-detail-routing.module.ts new file mode 100644 index 000000000..db1857b89 --- /dev/null +++ b/src/app/modals/document-detail/document-detail-routing.module.ts @@ -0,0 +1,17 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +import { DocumentDetailPage } from './document-detail.page'; + +const routes: Routes = [ + { + path: '', + component: DocumentDetailPage + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], +}) +export class DocumentDetailPageRoutingModule {} diff --git a/src/app/modals/document-detail/document-detail.module.ts b/src/app/modals/document-detail/document-detail.module.ts new file mode 100644 index 000000000..78eb44eb1 --- /dev/null +++ b/src/app/modals/document-detail/document-detail.module.ts @@ -0,0 +1,24 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; + +import { IonicModule } from '@ionic/angular'; + +import { DocumentDetailPageRoutingModule } from './document-detail-routing.module'; + +import { DocumentDetailPage } from './document-detail.page'; +import { SharedModule } from 'src/app/shared/shared.module'; + +@NgModule({ + imports: [ + CommonModule, + FormsModule, + IonicModule, + SharedModule, + DocumentDetailPageRoutingModule + ], + declarations: [ + DocumentDetailPage, + SharedModule,] +}) +export class DocumentDetailPageModule {} diff --git a/src/app/modals/document-detail/document-detail.page.html b/src/app/modals/document-detail/document-detail.page.html new file mode 100644 index 000000000..91323eed8 --- /dev/null +++ b/src/app/modals/document-detail/document-detail.page.html @@ -0,0 +1,10 @@ + + + + document-detail + + + + + + diff --git a/src/app/modals/document-detail/document-detail.page.scss b/src/app/modals/document-detail/document-detail.page.scss new file mode 100644 index 000000000..e69de29bb diff --git a/src/app/modals/document-detail/document-detail.page.spec.ts b/src/app/modals/document-detail/document-detail.page.spec.ts new file mode 100644 index 000000000..d21f72d70 --- /dev/null +++ b/src/app/modals/document-detail/document-detail.page.spec.ts @@ -0,0 +1,24 @@ +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; +import { IonicModule } from '@ionic/angular'; + +import { DocumentDetailPage } from './document-detail.page'; + +describe('DocumentDetailPage', () => { + let component: DocumentDetailPage; + let fixture: ComponentFixture; + + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [ DocumentDetailPage ], + imports: [IonicModule.forRoot()] + }).compileComponents(); + + fixture = TestBed.createComponent(DocumentDetailPage); + component = fixture.componentInstance; + fixture.detectChanges(); + })); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/modals/document-detail/document-detail.page.ts b/src/app/modals/document-detail/document-detail.page.ts new file mode 100644 index 000000000..db679b63b --- /dev/null +++ b/src/app/modals/document-detail/document-detail.page.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-document-detail', + templateUrl: './document-detail.page.html', + styleUrls: ['./document-detail.page.scss'], +}) +export class DocumentDetailPage implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/pages/publications/publications.page.scss b/src/app/pages/publications/publications.page.scss index 733b5e164..f59e569bf 100644 --- a/src/app/pages/publications/publications.page.scss +++ b/src/app/pages/publications/publications.page.scss @@ -78,7 +78,7 @@ ion-toolbar{ } .div-icon ion-icon{ float: right; - padding-left: 20px; + padding-left: 10px; } } .main-content{ diff --git a/src/app/services/processes.service.ts b/src/app/services/processes.service.ts index 48750b8b0..e0a2ef32d 100644 --- a/src/app/services/processes.service.ts +++ b/src/app/services/processes.service.ts @@ -196,6 +196,20 @@ export class ProcessesService { return this.http.get(`${geturl}`, options); } + GetDocumentDetails(DocId:string, FsId:string){ + const geturl = environment.apiURL + 'ecm/document/viewrequestshort'; + let params = new HttpParams(); + + params = params.set("docId", DocId); + params = params.set("applicationid", FsId); + + let options = { + headers: this.headers, + params: params + }; + return this.http.get(`${geturl}`, options); + } +