mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
add endpoint to get document drafts
This commit is contained in:
@@ -28,7 +28,7 @@ import { fromEvent, merge, interval, Subscription } from 'rxjs';
|
||||
import { takeUntil, filter, switchMap, take } from 'rxjs/operators';
|
||||
import { DespachosOptionsPage } from 'src/app/shared/popover/despachos-options/despachos-options.page';
|
||||
import { TracingType, XTracerAsync } from 'src/app/services/monitoring/opentelemetry/tracer';
|
||||
|
||||
import { AgendaService } from 'src/app/module/agenda/domain/agenda.service'
|
||||
@Component({
|
||||
selector: 'app-despacho',
|
||||
templateUrl: './despacho.page.html',
|
||||
@@ -78,7 +78,8 @@ export class DespachoPage implements OnInit {
|
||||
private httpErrorHandle: HttpErrorHandle,
|
||||
public TaskService: TaskService,
|
||||
public DeviceService: DeviceService,
|
||||
private DocumentViewerOptionService: DocumentViewerOptionService
|
||||
private DocumentViewerOptionService: DocumentViewerOptionService,
|
||||
private agendaService: AgendaService
|
||||
|
||||
|
||||
) {
|
||||
@@ -158,6 +159,8 @@ export class DespachoPage implements OnInit {
|
||||
"DraftIds": res.workflowInstanceDataFields?.DraftIds
|
||||
}
|
||||
|
||||
|
||||
|
||||
// console.log({res})
|
||||
|
||||
// this.updateProcessOnDB(res);
|
||||
@@ -196,7 +199,35 @@ export class DespachoPage implements OnInit {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// getDocumentPdf({FolderID}) {
|
||||
// this.agendaService.getDraftListByProcessId({
|
||||
// processId: FolderID
|
||||
// }).then(( draftList => {
|
||||
|
||||
// if(draftList.isOk()) {
|
||||
// const docObject = draftList.value.data.map((e) => ({
|
||||
// "ApplicationId": "",
|
||||
// "Assunto": e.description,
|
||||
// "DocDate": e.createdAt,
|
||||
// "DocId": "",
|
||||
// "DocNumber": "element.DocNumber",
|
||||
// "FolderId": e.folderId,
|
||||
// "Sender": "uuid",
|
||||
// "SourceDocId": "element.SourceDocId",
|
||||
// "content": "",
|
||||
// "path": "",
|
||||
// "ownerId": "",
|
||||
// "status": "",
|
||||
// }))
|
||||
|
||||
// this.mergedArray.push(docObject);
|
||||
// }
|
||||
// }));
|
||||
// }
|
||||
|
||||
getDocumentPdf(Documents: any) {
|
||||
|
||||
Documents.forEach(element => {
|
||||
let docObject = {
|
||||
"ApplicationId": element.ApplicationId,
|
||||
|
||||
Reference in New Issue
Block a user