mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
improvements
This commit is contained in:
@@ -11,9 +11,14 @@ import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
|
||||
})
|
||||
export class DocumentDetailPage implements OnInit {
|
||||
|
||||
months = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
|
||||
days = ["Domingo", "Segunda-feira", "Terça-feira", "Quarta-feira", "Quinta-feira", "Sexta-feira", "Sábado"];
|
||||
|
||||
customDate:any;
|
||||
|
||||
docId: string;
|
||||
applicationId:string;
|
||||
LoadedDocument:any;
|
||||
LoadedDocument:any = null;
|
||||
|
||||
constructor(
|
||||
private navParams: NavParams,
|
||||
@@ -37,6 +42,9 @@ export class DocumentDetailPage implements OnInit {
|
||||
this.processes.GetDocumentDetails(this.docId, '').subscribe(res=>{
|
||||
console.log(res);
|
||||
this.LoadedDocument = res[0];
|
||||
|
||||
let thedate = new Date(this.LoadedDocument.DateDocument);
|
||||
this.customDate = this.days[thedate.getDay()]+ ", " + thedate.getDate() +" de " + ( this.months[thedate.getMonth()]);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -57,5 +65,8 @@ export class DocumentDetailPage implements OnInit {
|
||||
close(){
|
||||
this.modalController.dismiss();
|
||||
}
|
||||
notImplemented(){
|
||||
this.alertService.presentAlert('Funcionalidade em desenvolvimento');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user