mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
|
|
!function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[8195],{88195:function(t,n,o){"use strict";o.d(n,{A:function(){return P}});var i=o(64762),a=o(82265),r=o(72231),s=o(23879),c=o(37716),l=o(39895),d=o(35957),u=o(28621),p=o(20985),g=o(25970),f=o(53760),m=o(84465),v=o(38583);function h(e,t){if(1&e&&(c.TgZ(0,"div"),c.TgZ(1,"ion-label"),c._uU(2),c.qZA(),c.qZA()),2&e){var n=c.oxw();c.xp6(2),c.hij(" ",n.loadedEvent.workflowInstanceDataFields.Location," ")}}function Z(e,t){1&e&&(c.TgZ(0,"p"),c._uU(1,"3 (N\xe3o se repete)"),c.qZA())}function b(e,t){1&e&&(c.TgZ(0,"p"),c._uU(1,"4 Repete"),c.qZA())}function x(e,t){if(1&e&&(c.TgZ(0,"div"),c.TgZ(1,"ion-label"),c._uU(2),c.qZA(),c.qZA()),2&e){var n=t.$implicit;c.xp6(2),c.Oqu(n.Name)}}function w(e,t){if(1&e&&(c.TgZ(0,"div"),c.TgZ(1,"h5"),c._uU(2,"Intervenientes"),c.qZA(),c.YNc(3,x,3,1,"div",34),c.qZA()),2&e){var n=c.oxw(2);c.xp6(3),c.Q6J("ngForOf",n.loadedEvent.workflowInstanceDataFields.ParticipantsList)}}function A(e,t){if(1&e&&(c.TgZ(0,"div",33),c.YNc(1,w,4,1,"div",19),c.qZA()),2&e){var n=c.oxw();c.xp6(1),c.Q6J("ngIf",n.loadedEvent.workflowInstanceDataFields.Participants)}}function k(e,t){if(1&e&&(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&e){var n=c.oxw();c.xp6(4),c.Q6J("innerHTML",n.loadedEvent.workflowInstanceDataFields.Body,c.oJD)}}function _(e,t){1&e&&(c.TgZ(0,"span",43),c._uU(1," Correspondencia "),c.qZA())}function T(e,t){1&e&&(c.TgZ(0,"span",43),c._uU(1," AccoesPresidenciais "),c.qZA())}function C(e,t){1&e&&(c.TgZ(0,"span",43),c._uU(1," ArquivoDespachoElect "),c.qZA())}function M(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"ion-item",26),c.TgZ(1,"ion-label",37),c.NdJ("click",function(){var e=c.CHM(n).$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,_,2,0,"span",40),c.YNc(6,T,2,0,"span",40),c.YNc(7,C,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&e){var o=t.$implicit;c.xp6(4),c.Oqu(o.SourceName),c.xp6(1),c.Q6J("ngIf",8==o.ApplicationId),c.xp6(1),c.Q6J("ngIf",386==o.ApplicationId),c.xp6(1),c.Q6J("ngIf",361==o.ApplicationId),c.xp6(3),c.Oqu(o.Stakeholders),c.xp6(2),c.hij(" ",c.xi3(13,6,o.CreateDate,"dd-MM-yyyy HH:mm")," ")}}var P=function(){var t=function(){function t(e,n,o,i,a,r,s,c,l,d,u,p){var g=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.router=e,this.modalController=n,this.navParams=o,this.processes=i,this.attachmentsService=a,this.popoverController=r,this.menu=s,this.alertService=c,this.activatedRoute=l,this.iab=d,this.animationController=u,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(function(e){e.has("serialNumber")&&(g.serialNumber=e.get("serialNumber"))})}var n,o,c;return n=t,(o=[{key:"ngOnInit",value:function(){this.getTask(),this.getAttachments()}},{key:"notImplemented",value:function(){this.alertService.presentAlert("Funcionalidade em desenvolvimento")}},{key:"close",value:function(){this.modalController.dismiss(null)}},{key:"getTask",value:function(){var e=this;this.processes.GetTask(this.serialNumber).subscribe(function(t){console.log("GET TASK SERIALNUMBER: ",e.serialNumber,"Approve event",t),e.loadedEvent=t,e.today=new Date(t.workflowInstanceDataFields.StartDate),console.log(new Date(e.today)),e.customDate=e.days[e.today.getDay()]+", "+e.today.getDate()+" de "+e.months[e.today.getMonth()],e.InstanceId=t.workflowInstanceDataFields.InstanceId,e.getAttachments()})}},{key:"viewDocument",value:funct
|