All GET methods for the module Publications have been integrated.

- Create new folder for publications have been integrated.
- Adicional touch to display the data in a more friendly way added.
This commit is contained in:
Tiago Kayaya
2020-12-09 12:10:19 +01:00
parent 793eeb8249
commit 21cb7d5e96
121 changed files with 2689 additions and 116 deletions
@@ -1,5 +1,7 @@
import { Component, OnInit } from '@angular/core';
import { ModalController } from '@ionic/angular';
import { PublicationFolder } from 'src/app/models/publicationfolder';
import { PublicationsService } from 'src/app/services/publications.service';
@Component({
selector: 'app-new-action',
@@ -8,14 +10,36 @@ import { ModalController } from '@ionic/angular';
})
export class NewActionPage implements OnInit {
folder: PublicationFolder;
segment:string;
constructor(
private modalController: ModalController,
) { }
private publication: PublicationsService
) {
this.folder = new PublicationFolder();
}
ngOnInit() {
this.segment = "Viagem";
}
segmentChanged(ev: any) {
console.log(ev.detail.value);
}
save(){
console.log('Salvar...');
this.folder = {
ProcessId: null,
Description: this.folder.Description,
Detail: this.folder.Detail,
DateBegin: this.folder.DateBegin,
ActionType: this.segment,
}
console.log(this.folder);
this.publication.CreatePublicationFolder(this.folder);
this.close();
}
close(){
this.modalController.dismiss();