Improve responsiveness and improve search

This commit is contained in:
Peter Maquiran
2021-04-30 14:12:45 +01:00
parent f36ba693b4
commit c2b8f87ae6
17 changed files with 236 additions and 83 deletions
@@ -33,22 +33,23 @@ export class DocumentDetailPage implements OnInit {
}
ngOnInit() {
console.log(this.docId);
console.log(this.applicationId);
this.LoadDocumentDetails();
}
async LoadDocumentDetails(){
this.processes.GetDocumentDetails(this.docId, '').subscribe(res=>{
console.log(res);
this.LoadedDocument = res[0];
async LoadDocumentDetails() {
this.processes.GetDocumentDetails(this.docId, this.applicationId).subscribe(res=>{
this.LoadedDocument = res;
let thedate = new Date(this.LoadedDocument.DateDocument);
this.LoadedDocument.Subject = this.LoadedDocument.Assunto
let thedate = new Date(this.LoadedDocument.DateDispatch);
this.customDate = this.days[thedate.getDay()]+ ", " + thedate.getDate() +" de " + ( this.months[thedate.getMonth()]);
});
}
viewDocument(){
viewDocument() {
this.processes.GetDocumentUrl(this.docId, '8').subscribe(res=>{
console.log(res);
const url: string = res.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");