Files
doneit-web/_platforms/browser/www/8195-es2015.58d2371a43ba5145c47d.js
T

1 line
14 KiB
JavaScript
Raw Normal View History

2021-08-18 18:58:02 +01:00
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[8195],{88195:function(t,e,n){"use strict";n.d(e,{A:function(){return q}});var o=n(64762),i=n(82265),a=n(72231),s=n(23879),c=n(37716),r=n(39895),l=n(35957),d=n(28621),p=n(20985),g=n(25970),u=n(53760),h=n(84465),m=n(38583);function f(t,e){if(1&t&&(c.TgZ(0,"div"),c.TgZ(1,"ion-label"),c._uU(2),c.qZA(),c.qZA()),2&t){const t=c.oxw();c.xp6(2),c.hij(" ",t.loadedEvent.workflowInstanceDataFields.Location," ")}}function v(t,e){1&t&&(c.TgZ(0,"p"),c._uU(1,"3 (N\xe3o se repete)"),c.qZA())}function Z(t,e){1&t&&(c.TgZ(0,"p"),c._uU(1,"4 Repete"),c.qZA())}function b(t,e){if(1&t&&(c.TgZ(0,"div"),c.TgZ(1,"ion-label"),c._uU(2),c.qZA(),c.qZA()),2&t){const t=e.$implicit;c.xp6(2),c.Oqu(t.Name)}}function x(t,e){if(1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h5"),c._uU(2,"Intervenientes"),c.qZA(),c.YNc(3,b,3,1,"div",34),c.qZA()),2&t){const t=c.oxw(2);c.xp6(3),c.Q6J("ngForOf",t.loadedEvent.workflowInstanceDataFields.ParticipantsList)}}function A(t,e){if(1&t&&(c.TgZ(0,"div",33),c.YNc(1,x,4,1,"div",19),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.Q6J("ngIf",t.loadedEvent.workflowInstanceDataFields.Participants)}}function _(t,e){if(1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h5"),c._uU(2,"Detalhes"),c.qZA(),c.TgZ(3,"ion-item",35),c._UZ(4,"div",36),c.qZA(),c.qZA()),2&t){const t=c.oxw();c.xp6(4),c.Q6J("innerHTML",t.loadedEvent.workflowInstanceDataFields.Body,c.oJD)}}function T(t,e){1&t&&(c.TgZ(0,"span",43),c._uU(1," Correspondencia "),c.qZA())}function w(t,e){1&t&&(c.TgZ(0,"span",43),c._uU(1," AccoesPresidenciais "),c.qZA())}function M(t,e){1&t&&(c.TgZ(0,"span",43),c._uU(1," ArquivoDespachoElect "),c.qZA())}function C(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"ion-item",26),c.TgZ(1,"ion-label",37),c.NdJ("click",function(){const e=c.CHM(t).$implicit;return c.oxw().viewDocument(e.SourceId,e.ApplicationId)}),c.TgZ(2,"p",38),c.TgZ(3,"span",39),c._uU(4),c.qZA(),c.YNc(5,T,2,0,"span",40),c.YNc(6,w,2,0,"span",40),c.YNc(7,M,2,0,"span",40),c.qZA(),c.TgZ(8,"p"),c.TgZ(9,"span",41),c._uU(10),c.qZA(),c.TgZ(11,"span",42),c._uU(12),c.ALo(13,"date"),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=e.$implicit;c.xp6(4),c.Oqu(t.SourceName),c.xp6(1),c.Q6J("ngIf",8==t.ApplicationId),c.xp6(1),c.Q6J("ngIf",386==t.ApplicationId),c.xp6(1),c.Q6J("ngIf",361==t.ApplicationId),c.xp6(3),c.Oqu(t.Stakeholders),c.xp6(2),c.hij(" ",c.xi3(13,6,t.CreateDate,"dd-MM-yyyy HH:mm")," ")}}let q=(()=>{class t{constructor(t,e,n,o,i,a,s,c,r,l,d,p){this.router=t,this.modalController=e,this.navParams=n,this.processes=o,this.attachmentsService=i,this.popoverController=a,this.menu=s,this.alertService=c,this.activatedRoute=r,this.iab=l,this.animationController=d,this.toastService=p,this.months=["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],this.days=["Domingo","Segunda-feira","Ter\xe7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\xe1bado"],this.activatedRoute.paramMap.subscribe(t=>{t.has("serialNumber")&&(this.serialNumber=t.get("serialNumber"))})}ngOnInit(){this.getTask(),this.getAttachments()}notImplemented(){this.alertService.presentAlert("Funcionalidade em desenvolvimento")}close(){this.modalController.dismiss(null)}getTask(){this.processes.GetTask(this.serialNumber).subscribe(t=>{console.log("GET TASK SERIALNUMBER: ",this.serialNumber,"Approve event",t),this.loadedEvent=t,this.today=new Date(t.workflowInstanceDataFields.StartDate),console.log(new Date(this.today)),this.customDate=this.days[this.today.getDay()]+", "+this.today.getDate()+" de "+this.months[this.today.getMonth()],this.InstanceId=t.workflowInstanceDataFields.InstanceId,this.getAttachments()})}viewDocument(t,e){this.processes.GetDocumentUrl(t,e).subscribe(t=>{console.log(t);const e=t.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");this.iab.create(e,"_blank").show()})}approveTask(t){return(0,o.mG)(this,void 0,void 0,function*(){console.log("approveTask SERIALNUMBER: ",t);let e={serialNumber:t,action:"Aprovar"};console.log(e);const n=this.toastService.loading();try{yield this.processes.PostTaskAction(e).toPromise