mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
save
This commit is contained in:
@@ -35,6 +35,10 @@ const routes: Routes = [
|
|||||||
{
|
{
|
||||||
path: 'expedients',
|
path: 'expedients',
|
||||||
loadChildren: () => import('./shared/gabinete-digital/expedients/expedients.module').then( m => m.ExpedientsPageModule)
|
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)
|
||||||
},
|
},
|
||||||
|
|
||||||
/* {
|
/* {
|
||||||
|
|||||||
@@ -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 {}
|
||||||
@@ -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 {}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<ion-header>
|
||||||
|
<app-btn-modal-dismiss></app-btn-modal-dismiss>
|
||||||
|
<ion-toolbar>
|
||||||
|
<ion-title>document-detail</ion-title>
|
||||||
|
</ion-toolbar>
|
||||||
|
</ion-header>
|
||||||
|
|
||||||
|
<ion-content>
|
||||||
|
|
||||||
|
</ion-content>
|
||||||
@@ -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<DocumentDetailPage>;
|
||||||
|
|
||||||
|
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();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -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() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -78,7 +78,7 @@ ion-toolbar{
|
|||||||
}
|
}
|
||||||
.div-icon ion-icon{
|
.div-icon ion-icon{
|
||||||
float: right;
|
float: right;
|
||||||
padding-left: 20px;
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.main-content{
|
.main-content{
|
||||||
|
|||||||
@@ -196,6 +196,20 @@ export class ProcessesService {
|
|||||||
return this.http.get<any>(`${geturl}`, options);
|
return this.http.get<any>(`${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<any>(`${geturl}`, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user