mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Gabinete Digital on work.
This commit is contained in:
+19
-5
@@ -1,8 +1,9 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ProcessesService } from 'src/app/services/processes.service';
|
||||
|
||||
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
|
||||
import { DailyWorkTask } from '../../../../models/dailyworktask.model';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { formatDate } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'app-expediente-detail',
|
||||
@@ -11,11 +12,11 @@ import { ActivatedRoute } from '@angular/router';
|
||||
})
|
||||
export class ExpedienteDetailPage implements OnInit {
|
||||
|
||||
constructor(private activateRoute: ActivatedRoute,private processes:ProcessesService) { }
|
||||
constructor(private activateRoute: ActivatedRoute,private processes:ProcessesService,private iab: InAppBrowser) { }
|
||||
|
||||
task:DailyWorkTask;
|
||||
task: DailyWorkTask;
|
||||
|
||||
serialnumber:string;
|
||||
serialnumber:string;
|
||||
|
||||
ngOnInit() {
|
||||
this.activateRoute.paramMap.subscribe(paramMap => {
|
||||
@@ -29,7 +30,20 @@ serialnumber:string;
|
||||
|
||||
LoadTaskDetail(serial:string)
|
||||
{
|
||||
this.task = this.processes.GetTaskDetail(serial);
|
||||
this.processes.GetTask(serial).subscribe(result => {
|
||||
this.task = {
|
||||
"SerialNumber": result.serialNumber,
|
||||
"Folio": result.workflowInstanceFolio,
|
||||
"Senders": result.originator.email,
|
||||
"CreateDate": formatDate(new Date(result.taskStartDate), 'yyyy-MM-dd HH:mm', 'pt'),
|
||||
"DocumentURL": result.formURL
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
viewDocument()
|
||||
{
|
||||
const browser = this.iab.create(this.task.DocumentURL);
|
||||
browser.show();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user