mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
save
This commit is contained in:
+5
-3
@@ -135,7 +135,7 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
async LoadTaskDetail(serial: string) {
|
async LoadTaskDetail(serial: string) {
|
||||||
|
|
||||||
this.processes.GetTask(serial).subscribe(res => {
|
this.processes.GetTask(serial).subscribe(res => {
|
||||||
console.log(res);
|
//console.log(res);
|
||||||
|
|
||||||
this.task = {
|
this.task = {
|
||||||
"SerialNumber": res.serialNumber,
|
"SerialNumber": res.serialNumber,
|
||||||
@@ -151,10 +151,10 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
"WorkflowName": res.workflowDisplayName,
|
"WorkflowName": res.workflowDisplayName,
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('task', this.task);
|
//console.log('task', this.task);
|
||||||
|
|
||||||
this.fulltask = res;
|
this.fulltask = res;
|
||||||
console.log('GetTask', res);
|
//console.log('GetTask', res);
|
||||||
|
|
||||||
let thedate = new Date(this.task.CreateDate);
|
let thedate = new Date(this.task.CreateDate);
|
||||||
this.customDate = this.days[thedate.getDay()]+ ", " + thedate.getDate() +" de " + ( this.months[thedate.getMonth()]);
|
this.customDate = this.days[thedate.getDay()]+ ", " + thedate.getDate() +" de " + ( this.months[thedate.getMonth()]);
|
||||||
@@ -303,6 +303,8 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async openBookMeetingModal(task: any) {
|
async openBookMeetingModal(task: any) {
|
||||||
|
console.log(task);
|
||||||
|
|
||||||
let classs;
|
let classs;
|
||||||
if( window.innerWidth <= 800){
|
if( window.innerWidth <= 800){
|
||||||
classs = 'book-meeting-modal modal modal-desktop'
|
classs = 'book-meeting-modal modal modal-desktop'
|
||||||
|
|||||||
@@ -397,15 +397,42 @@ export class EventsService {
|
|||||||
postExpedientEvent(docId:any, body:any, sharedagenda:string, serialNumber:any, applicationID:any){
|
postExpedientEvent(docId:any, body:any, sharedagenda:string, serialNumber:any, applicationID:any){
|
||||||
const geturl = environment.apiURL + 'calendar/' + ((sharedagenda != '') ? sharedagenda : 'CreateEventExpediente')+'/event';
|
const geturl = environment.apiURL + 'calendar/' + ((sharedagenda != '') ? sharedagenda : 'CreateEventExpediente')+'/event';
|
||||||
let params = new HttpParams();
|
let params = new HttpParams();
|
||||||
|
let options;
|
||||||
|
|
||||||
params = params.set("DocId", docId);
|
params = params.set("DocId", docId);
|
||||||
params = params.set("SerialNumber", serialNumber);
|
params = params.set("SerialNumber", serialNumber);
|
||||||
params = params.set("applicationID", applicationID);
|
params = params.set("applicationID", applicationID);
|
||||||
|
|
||||||
let options = {
|
switch (this.loggeduser.Profile) {
|
||||||
headers: this.headers,
|
case 'MDGPR':
|
||||||
|
if(body.CalendarName == 'Pessoal'){
|
||||||
|
options = {
|
||||||
|
headers: this.headersMdPessoal,
|
||||||
params: params
|
params: params
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
else if(body.CalendarName == 'Oficial'){
|
||||||
|
options = {
|
||||||
|
headers: this.headersMdOficial,
|
||||||
|
params: params
|
||||||
|
};
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 'PR':
|
||||||
|
if(body.CalendarName == 'Pessoal'){
|
||||||
|
options = {
|
||||||
|
headers: this.headersPrPessoal,
|
||||||
|
params: params
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else if(body.CalendarName == 'Oficial'){
|
||||||
|
options = {
|
||||||
|
headers: this.headersPrOficial,
|
||||||
|
params: params
|
||||||
|
};
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
return this.http.post<any>(`${geturl}`, body, options)
|
return this.http.post<any>(`${geturl}`, body, options)
|
||||||
}
|
}
|
||||||
createTaskEvent(folderId:any, body:any, sharedagenda:string, serialNumber:any, applicationID:any){
|
createTaskEvent(folderId:any, body:any, sharedagenda:string, serialNumber:any, applicationID:any){
|
||||||
|
|||||||
Reference in New Issue
Block a user