mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
save
This commit is contained in:
@@ -137,8 +137,16 @@ export class DespachoPage implements OnInit {
|
||||
this.modalController.dismiss();
|
||||
}
|
||||
executado(){
|
||||
|
||||
let body = {
|
||||
"serialNumber": this.serialnumber,
|
||||
"action": "Conhecimento",
|
||||
"dataFields": {
|
||||
"ReviewerComments": '',
|
||||
}
|
||||
}
|
||||
this.processes.PostTaskAction(body);
|
||||
}
|
||||
|
||||
delegar(){
|
||||
|
||||
}
|
||||
|
||||
+14
@@ -77,6 +77,7 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
SourceSecFsId: this.task.workflowInstanceDataFields.FsId,
|
||||
SouceType: 'DOC',
|
||||
SourceId: this.task.workflowInstanceDataFields.DocId,
|
||||
DeadlineType: '',
|
||||
|
||||
};
|
||||
this.postData.DispatchFolder = this.dispatchFolder;
|
||||
@@ -117,6 +118,19 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
|
||||
}
|
||||
saveTask(){
|
||||
|
||||
if(this.postData.Priority=='99999861'){
|
||||
this.dispatchFolder.DeadlineType = 'Normal';
|
||||
}
|
||||
else if(this.postData.Priority=='99999862'){
|
||||
this.dispatchFolder.DeadlineType = 'Urgente';
|
||||
}
|
||||
else if(this.postData.Priority=='99999863'){
|
||||
this.dispatchFolder.DeadlineType = 'Muito Urgente';
|
||||
}
|
||||
else if(this.postData.Priority=='99999864'){
|
||||
this.dispatchFolder.DeadlineType = 'Urgentíssimo';
|
||||
}
|
||||
|
||||
let attendees = this.taskParticipants.concat(this.taskParticipantsCc);
|
||||
attendees = attendees.map(function(val) {
|
||||
|
||||
+1
-1
@@ -154,7 +154,7 @@
|
||||
<button (click)="openExpedientActionsModal('1',fulltask)" class="btn-cancel" shape="round" >Solicitar Parecer</button>
|
||||
<button (click)="openExpedientActionsModal('2',fulltask)" class="btn-cancel" shape="round" >Pedido de Deferimento</button>
|
||||
<button (click)="openBookMeetingModal(task)" class="btn-cancel" shape="round" >Marcar Reunião</button>
|
||||
<button hidden class="btn-cancel" shape="round" >Enviar para Pendentes</button>
|
||||
<button (click)="sendExpedienteToPending()" class="btn-cancel" shape="round" >Enviar para Pendentes</button>
|
||||
<div hidden class="solid"></div>
|
||||
<button hidden class="btn-cancel" shape="round" >Delegar</button>
|
||||
</div>
|
||||
|
||||
@@ -69,6 +69,13 @@ export class ExpedienteDetailPage implements OnInit {
|
||||
this.modalController.dismiss();
|
||||
}
|
||||
|
||||
sendExpedienteToPending(){
|
||||
this.processes.SetTaskToPending(this.serialnumber).subscribe(res=>{
|
||||
console.log(res);
|
||||
this.close();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
async LoadTaskDetail(serial: string) {
|
||||
this.processes.GetTask(serial).subscribe(res => {
|
||||
|
||||
@@ -39,8 +39,10 @@ export class ExpedientePage implements OnInit {
|
||||
}
|
||||
|
||||
LoadList(){
|
||||
console.log('YEAHHH');
|
||||
|
||||
this.processes.GetTasksList("Expediente", false).subscribe(result => {
|
||||
let tasksListReverse = result.reverse();
|
||||
let tasksListReverse = result.reverse().filter(data => data.workflowInstanceDataFields.Status == "Active");
|
||||
this.taskslist = new Array();
|
||||
tasksListReverse.forEach(element => {
|
||||
let task: DailyWorkTask = {
|
||||
@@ -53,6 +55,8 @@ export class ExpedientePage implements OnInit {
|
||||
}
|
||||
this.taskslist.push(task);
|
||||
});
|
||||
console.log(this.taskslist);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user