mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
viewer rotation
This commit is contained in:
+10
-9
@@ -9,16 +9,17 @@ import { ExpedienteDetailPageRoutingModule } from './expediente-detail-routing.m
|
||||
import { ExpedienteDetailPage } from './expediente-detail.page';
|
||||
import { SharedModule } from 'src/app/shared/shared.module';
|
||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||
import { TaskDetailsPageModule } from "../../../../shared/gabinete-digital/generic/task-details/task-details.module";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
|
||||
ExpedienteDetailPageRoutingModule,
|
||||
BtnModalDismissPageModule,
|
||||
],
|
||||
declarations: [ExpedienteDetailPage]
|
||||
declarations: [ExpedienteDetailPage],
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
ExpedienteDetailPageRoutingModule,
|
||||
BtnModalDismissPageModule,
|
||||
TaskDetailsPageModule
|
||||
]
|
||||
})
|
||||
export class ExpedienteDetailPageModule {}
|
||||
|
||||
+14
-89
@@ -1,93 +1,18 @@
|
||||
<div class="ion-page d-none" id="main-content">
|
||||
<ion-menu-button></ion-menu-button>
|
||||
</div>
|
||||
|
||||
<ion-content class="container-wrapper" >
|
||||
<div *ngIf="task" class="main-content d-flex height-100 overflow-hidden">
|
||||
<div class="content d-flex flex-column" *ngIf="task">
|
||||
<div class="main-header" style="overflow: unset !important;">
|
||||
<div class="title-content width-100 d-flex justify-between">
|
||||
<div class="font-30-rem cursor-pointer d-flex align-base" (click)="goBack()" defaultHref="#">
|
||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " slot="end" src='assets/images/icons-arrow-arrow-left.svg'></ion-icon>
|
||||
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " src="assets/images/theme/doneIt/icons-calendar-arrow-left.svg"></ion-icon>
|
||||
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " slot="end" src='assets/images/theme/gov/icons-calendar-arrow-left.svg'></ion-icon>
|
||||
</div>
|
||||
<div class="middle flex-grow-1">
|
||||
<ion-label class="title">{{ task.Folio}}</ion-label>
|
||||
</div>
|
||||
<div class="menu-ptions">
|
||||
<button class="btn-no-color d-flex" (click)="openOptions()">
|
||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/images/theme/blue/icons-menu.svg"></ion-icon>
|
||||
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/images/theme/gov/icons-menu.svg"></ion-icon>
|
||||
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " src="assets/images/theme/gov/icons-menu.svg"></ion-icon>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="upper-content" style="overflow: unset !important;">
|
||||
<div class="content-details">
|
||||
<ion-label>
|
||||
<p><span class="date">{{customDate}}</span></p>
|
||||
</ion-label>
|
||||
<ion-label>
|
||||
<p class="d-flex mt-10"><span class="label">{{ task.WorkflowName }}</span></p>
|
||||
</ion-label>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="line"></div>
|
||||
|
||||
<div class="overflow-y-auto">
|
||||
<div class="middle-content">
|
||||
<div *ngIf="cc.length > 0">
|
||||
<h5 class="font-17-rem">Com conhecimento</h5>
|
||||
<ion-item class="ion-no-margin ion-no-padding">
|
||||
<ion-label>
|
||||
<div *ngFor="let c of cc">
|
||||
<p>{{c.Name}}</p>
|
||||
</div>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
</div>
|
||||
<h5 class="font-17-rem">Detalhes</h5>
|
||||
<ion-item class="ion-no-margin ion-no-padding">
|
||||
<pre class="width-100 text">{{ task.Note }} </pre>
|
||||
</ion-item>
|
||||
</div>
|
||||
<div class="bottom-content width-100">
|
||||
<ion-list>
|
||||
<h5 class="font-17-rem">Documentos Anexados</h5>
|
||||
<ion-item class="ion-no-margin ion-no-padding cursor-pointer" *ngFor="let Document of fulltask.Documents">
|
||||
<ion-label class="d-block" (click)="viewDocument(Document.DocId, Document)">
|
||||
<p class="attach-title-item">{{ Document.Assunto || "Sem assunto" }}<span class="span-right color-red btn-size"><ion-icon hidden name="close"></ion-icon></span></p>
|
||||
<p><span class="span-left">{{ Document.Sender}}</span><span class="span-right">{{ Document.DocDate | date: 'dd-MM-yyyy HH:mm' }}</span></p>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
</div>
|
||||
|
||||
<div *ngIf="eventsList">
|
||||
<h5 class="h3-event-title">Eventos Associados</h5>
|
||||
<ion-list>
|
||||
<div class="content-items width-100" *ngIf="eventsList">
|
||||
<ion-list>
|
||||
<ion-item class=" ion-no-padding width-100 cursor-pointer" lines="none" *ngFor="let event of eventsList" (click)="goToEvent(event.EventId)">
|
||||
<div class="d-flex content-{{profile}}-{{event.CalendarName}}">
|
||||
<div class="schedule-time">
|
||||
<div class="time-start">{{event.StartDate | date: 'HH:mm'}}</div>
|
||||
<div class="time-end">{{event.EndDate | date: 'HH:mm'}}</div>
|
||||
</div>
|
||||
<div class="schedule-details">
|
||||
<div class="location">{{event.Location}}</div>
|
||||
<div class="description">{{event.Subject}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
</div>
|
||||
</ion-list>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="task" class="main-content d-flex height-100 overflow-hidden">
|
||||
<div class="width-100 d-flex flex-column content" *ngIf="task">
|
||||
<app-task-details
|
||||
*ngIf="task"
|
||||
[task]=task
|
||||
[intervenientes]=intervenientes
|
||||
[cc]=cc
|
||||
[customDate]=customDate
|
||||
[mergedArray]="fulltask.Documents"
|
||||
[fulltask] = "fulltask"
|
||||
(openOptions)= openOptions()
|
||||
(goBack)= goBack()
|
||||
class="d-flex height-100 flex-column"
|
||||
></app-task-details>
|
||||
</div>
|
||||
|
||||
<div class="aside-right flex-column height-100 overflow-y-auto">
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
border-top-right-radius: 25px;
|
||||
}
|
||||
.content{
|
||||
padding: 30px 20px 0 20px !important;
|
||||
padding: 0px 0px 0 0px !important;
|
||||
margin: 0;
|
||||
float: left;
|
||||
}
|
||||
|
||||
+2
-108
@@ -111,113 +111,6 @@ export class ExpedienteDetailPage implements OnInit {
|
||||
this.toastService.presentToast('Não foi possível fazer login');
|
||||
}
|
||||
|
||||
// updateProcessDB(res) {
|
||||
// if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
// this.storage.set('expediente_details',res).then(() =>{
|
||||
|
||||
// })
|
||||
// } else {
|
||||
// //this.sqliteservice.updateProcess(res)
|
||||
// }
|
||||
// }
|
||||
|
||||
// getFromDB() {
|
||||
// if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
// this.storage.get('expediente_details').then((process) => {
|
||||
// this.task = {
|
||||
// "SerialNumber": process.serialNumber,
|
||||
// "Folio": process.workflowInstanceDataFields.Subject,
|
||||
// "Senders": process.originator || process.originator,
|
||||
// "CreateDate": momentG(new Date(process.taskStartDate), 'yyyy-MM-dd HH:mm:ss'),
|
||||
// "DocumentURL": process.workflowInstanceDataFields.ViewerRequest,
|
||||
// "Remetente": process.workflowInstanceDataFields.Sender,
|
||||
// "Note": process.workflowInstanceDataFields.TaskMessage || process.workflowInstanceDataFields.Note,
|
||||
// "FolderId": process.workflowInstanceDataFields.FolderID,
|
||||
// "FsId": process.workflowInstanceDataFields.FsId,
|
||||
// "DocId": process.workflowInstanceDataFields.DocID,
|
||||
// "WorkflowName": process.workflowDisplayName,
|
||||
// "Status": process.workflowInstanceDataFields.Status,
|
||||
// "DispatchNumber": process.workflowInstanceDataFields.DispatchNumber,
|
||||
// "AttachmentsProcessLastInstanceID": process.workflowInstanceDataFields.AttachmentsProcessLastInstanceID,
|
||||
// "InstanceID": process.workflowInstanceDataFields.InstanceID
|
||||
// }
|
||||
|
||||
// this.fulltask = {
|
||||
// Documents: process.Documents,
|
||||
// actions: process.actions,
|
||||
// activityInstanceName: process.activityInstanceName,
|
||||
// formURL: process.formURL,
|
||||
// interveners: process.interveners,
|
||||
// originator: process.originator,
|
||||
// serialNumber: process.serialNumber,
|
||||
// taskStartDate: process.taskStartDate,
|
||||
// TaskStartDate: process.taskStartDate,
|
||||
// totalDocuments: process.totalDocuments,
|
||||
// workflowDisplayName: process.workflowDisplayName,
|
||||
// workflowID: process.workflowID,
|
||||
// workflowInstanceDataFields: process.workflowInstanceDataFields,
|
||||
// workflowInstanceFolio: process.workflowInstanceFolio,
|
||||
// workflowInstanceID: process.workflowInstanceID,
|
||||
// workflowName: process.workflowName,
|
||||
// }
|
||||
// })
|
||||
// } else {
|
||||
// this.platform.ready().then(() => {
|
||||
// this.onlinecheck = false;
|
||||
// this.sqliteservice.getProcessById(this.serialNumber).then((process) => {
|
||||
|
||||
|
||||
// var workflow = JSON.parse(process[0].workflowInstanceDataFields);
|
||||
// var origina
|
||||
// if (process[0].originator === "undefined") {
|
||||
// origina = ""
|
||||
// } else {
|
||||
// origina = JSON.parse(process[0].originator)
|
||||
// }
|
||||
|
||||
// this.task = {
|
||||
// "SerialNumber": process[0].serialNumber,
|
||||
// "Folio": workflow.Subject,
|
||||
// "Senders": origina.email || process[0].originator,
|
||||
// "CreateDate": momentG(new Date(process[0].taskStartDate), 'yyyy-MM-dd HH:mm:ss'),
|
||||
// "DocumentURL": workflow.ViewerRequest,
|
||||
// "Remetente": workflow.Sender,
|
||||
// "Note": workflow.TaskMessage || workflow.Note,
|
||||
// "FolderId": workflow.FolderID,
|
||||
// "FsId": workflow.FsId,
|
||||
// "DocId": workflow.DocID,
|
||||
// "WorkflowName": process[0].workflowDisplayName,
|
||||
// "Status": workflow.Status,
|
||||
// "DispatchNumber": workflow.DispatchNumber,
|
||||
// "AttachmentsProcessLastInstanceID": workflow.AttachmentsProcessLastInstanceID,
|
||||
// "InstanceID": workflow.InstanceID
|
||||
// }
|
||||
|
||||
// this.fulltask = {
|
||||
// Documents: JSON.parse(process[0].Documents),
|
||||
// actions: JSON.parse(process[0].actions),
|
||||
// activityInstanceName: process[0].activityInstanceName,
|
||||
// formURL: process[0].formURL,
|
||||
// interveners: process[0].interveners,
|
||||
// originator: JSON.parse(process[0].originator),
|
||||
// serialNumber: process[0].serialNumber,
|
||||
// taskStartDate: process[0].taskStartDate,
|
||||
// totalDocuments: process[0].totalDocuments,
|
||||
// workflowDisplayName: process[0].workflowDisplayName,
|
||||
// workflowID: process[0].workflowID,
|
||||
// workflowInstanceDataFields: JSON.parse(process[0].workflowInstanceDataFields),
|
||||
// workflowInstanceFolio: process[0].workflowInstanceFolio,
|
||||
// workflowInstanceID: process[0].workflowInstanceID,
|
||||
// workflowName: process[0].workflowName,
|
||||
// }
|
||||
|
||||
// })
|
||||
// })
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
|
||||
async approve(note: string, documents: any) {
|
||||
let body = {
|
||||
"serialNumber": this.serialNumber,
|
||||
@@ -371,7 +264,8 @@ export class ExpedienteDetailPage implements OnInit {
|
||||
"DispatchNumber": res.workflowInstanceDataFields.DispatchNumber,
|
||||
"AttachmentsProcessLastInstanceID": res.workflowInstanceDataFields.AttachmentsProcessLastInstanceID,
|
||||
"InstanceID": res.workflowInstanceDataFields.InstanceID,
|
||||
"DraftIds": res.workflowInstanceDataFields?.DraftIds
|
||||
"DraftIds": res.workflowInstanceDataFields?.DraftIds,
|
||||
"activityInstanceName": res.activityInstanceName,
|
||||
}
|
||||
|
||||
this.fulltask = res;
|
||||
|
||||
Reference in New Issue
Block a user