mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
Improve responsiveness and improve search
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user