mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
save
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
</div>
|
||||
<div class="schedule-details">
|
||||
<div class="location">{{event.Location}}</div>
|
||||
<div class="description">{{event.Subject}}</div>
|
||||
<div class="description">{{event.Subject.substring(0,maxSubjectLength)}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</ion-item>
|
||||
|
||||
@@ -43,7 +43,8 @@ export class EventsPage implements OnInit {
|
||||
public profile:string;
|
||||
currentEvent: any;
|
||||
|
||||
eventsList: Event[];
|
||||
eventsList: Event[];
|
||||
maxSubjectLength = 140;
|
||||
officialeventsList: Event[];
|
||||
personaleventsList: Event[];
|
||||
|
||||
|
||||
@@ -88,8 +88,6 @@ export class DespachoPage implements OnInit {
|
||||
}
|
||||
|
||||
goBack() {
|
||||
// window.history.back()
|
||||
|
||||
if (window.innerWidth <= 800) {
|
||||
this.router.navigate(['/home/gabinete-digital/despachos']);
|
||||
} else {
|
||||
@@ -100,7 +98,6 @@ export class DespachoPage implements OnInit {
|
||||
}
|
||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -140,12 +137,16 @@ export class DespachoPage implements OnInit {
|
||||
console.log(users);
|
||||
|
||||
});
|
||||
console.log(this.task.FolderId);
|
||||
|
||||
this.getDocumentDetails(this.task.FolderId, '361');
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
getDocumentDetails(forlderId:string, applicationId:string) {
|
||||
console.log(forlderId);
|
||||
|
||||
this.processes.GetDocumentDetails(forlderId,applicationId).subscribe(res=>{
|
||||
this.attachments = res.Documents;
|
||||
console.log(res['Documents']);
|
||||
|
||||
@@ -80,12 +80,15 @@ export class DespachosPage implements OnInit {
|
||||
}
|
||||
|
||||
async LoadList() {
|
||||
|
||||
console.log('HERE');
|
||||
|
||||
let result = await this.processes.GetTasksList("Despacho", false).toPromise();
|
||||
//let despachos = result.reverse().filter(data => data.activityInstanceName == "Despacho (Paralelo)");
|
||||
this.despachoList = new Array();
|
||||
|
||||
console.log(result);
|
||||
console.log('OI');
|
||||
|
||||
|
||||
await result.forEach( (element, index) => {
|
||||
|
||||
@@ -101,7 +104,7 @@ export class DespachosPage implements OnInit {
|
||||
"DocumentURL": element.workflowInstanceDataFields.ViewerRequest,
|
||||
"Remetente": element.workflowInstanceDataFields.Remetente,
|
||||
"DocumentsQty": 0,
|
||||
"DocId": element.workflowInstanceDataFields.DocIdDiferimento,
|
||||
"DocId": element.workflowInstanceDataFields.DispatchDocId,
|
||||
"WorkflowName": element.workflowDisplayName,
|
||||
"activityInstanceName": element.activityInstanceName,
|
||||
}
|
||||
@@ -110,9 +113,14 @@ export class DespachosPage implements OnInit {
|
||||
|
||||
});
|
||||
|
||||
console.log(this.despachoList);
|
||||
|
||||
|
||||
this.despachoList = this.sortArrayISODate(this.despachoList).reverse()
|
||||
|
||||
this.despachoList.forEach( (element, index) => {
|
||||
console.log(element);
|
||||
|
||||
// let aplicationId = element.workflowInstanceDataFields.SourceSecFsID;
|
||||
let FolderID = element['FolderID'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user