mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
Remove relevant console log,
This commit is contained in:
@@ -85,10 +85,10 @@ export class ApproveEventPage implements OnInit {
|
||||
|
||||
getTask() {
|
||||
this.processes.GetTask(this.serialNumber).subscribe(res => {
|
||||
console.log(res);
|
||||
|
||||
this.loadedEvent = res;
|
||||
this.today = new Date(res.workflowInstanceDataFields.StartDate);
|
||||
// console.log(new Date(this.today));
|
||||
//
|
||||
this.customDate = this.days[this.today.getDay()]+ ", " + this.today.getDate() +" de " + ( this.months[this.today.getMonth()]);
|
||||
|
||||
})
|
||||
@@ -124,7 +124,7 @@ export class ApproveEventPage implements OnInit {
|
||||
async rejectTask(serialNumber:string) {
|
||||
|
||||
let body = { "serialNumber": serialNumber, "action": "Rejeitar" }
|
||||
console.log(body);
|
||||
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
|
||||
@@ -179,7 +179,7 @@ export class ApproveEventPage implements OnInit {
|
||||
}
|
||||
|
||||
async emendTask(serialNumber:string) {
|
||||
console.log('Desktop');
|
||||
|
||||
|
||||
const modal = await this.modalController.create({
|
||||
component: EmendMessageModalPage,
|
||||
@@ -193,7 +193,7 @@ export class ApproveEventPage implements OnInit {
|
||||
|
||||
modal.onDidDismiss()
|
||||
.then( async (res) => {
|
||||
console.log(res.data);
|
||||
|
||||
|
||||
if(res.data !== ''){
|
||||
let body = { "serialNumber": serialNumber,
|
||||
@@ -202,7 +202,7 @@ export class ApproveEventPage implements OnInit {
|
||||
"ReviewUserComment": res.data,
|
||||
}
|
||||
}
|
||||
console.log(body);
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
|
||||
try {
|
||||
|
||||
@@ -170,14 +170,14 @@ export class EditEventToApprovePage implements OnInit {
|
||||
|
||||
getRecurrenceTypes() {
|
||||
this.eventsService.getRecurrenceTypes().subscribe(res=>{
|
||||
console.log(res);
|
||||
|
||||
this.recurringTypes = res;
|
||||
});
|
||||
}
|
||||
|
||||
onSelectedRecurringChanged(ev:any){
|
||||
if(ev.length > 1){
|
||||
console.log(ev.filter(data => data != '-1'));
|
||||
|
||||
this.eventProcess.workflowInstanceDataFields.OccurrenceType = ev.filter(data => data != '-1');
|
||||
}
|
||||
if(ev.length == 0){
|
||||
@@ -405,7 +405,7 @@ export class EditEventToApprovePage implements OnInit {
|
||||
|
||||
this.loadedAttachments = result
|
||||
|
||||
// console.log('this.loadedAttachments', this.loadedAttachments, result)
|
||||
//
|
||||
}
|
||||
|
||||
deleteAttachment(attachment: Attachment, index) {
|
||||
@@ -448,7 +448,7 @@ export class EditEventToApprovePage implements OnInit {
|
||||
|
||||
|
||||
this.loadedAttachments.push(DocumentToSave)
|
||||
console.log('push', DocumentToSave)
|
||||
|
||||
|
||||
// await this.attachmentsService.setEventAttachmentById(DocumentToSave).subscribe(()=>{
|
||||
// this.getAttachments();
|
||||
|
||||
@@ -138,7 +138,7 @@ export class EditEventPage implements OnInit {
|
||||
|
||||
setTimeout(() => {
|
||||
this.postEvent.EventRecurrence.Type = this.postEvent.EventRecurrence.Type.toString();
|
||||
console.log( this.postEvent.EventRecurrence.Type);
|
||||
|
||||
}, 1000);
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ export class EditEventPage implements OnInit {
|
||||
|
||||
getRecurrenceTypes() {
|
||||
this.eventsService.getRecurrenceTypes().subscribe(res=>{
|
||||
console.log(res);
|
||||
|
||||
this.recurringTypes = res;
|
||||
});
|
||||
}
|
||||
@@ -205,7 +205,7 @@ export class EditEventPage implements OnInit {
|
||||
openInicio() {
|
||||
let input: any = document.querySelector('#new-inicio')
|
||||
if(input) {
|
||||
console.log(input)
|
||||
|
||||
input.click()
|
||||
}
|
||||
}
|
||||
@@ -225,9 +225,9 @@ export class EditEventPage implements OnInit {
|
||||
}
|
||||
|
||||
onSelectedRecurringChanged(ev:any){
|
||||
console.log(ev);
|
||||
|
||||
if(ev.length > 1){
|
||||
console.log(ev.filter(data => data != '-1'));
|
||||
|
||||
this.postEvent.EventRecurrence.Type = ev.filter(data => data != '-1');
|
||||
}
|
||||
if(ev.length == 0){
|
||||
@@ -437,7 +437,7 @@ export class EditEventPage implements OnInit {
|
||||
SerialNumber: '',
|
||||
}
|
||||
|
||||
console.log( this.loadedEventAttachments)
|
||||
|
||||
this.loadedEventAttachments.push(ApplicationIdDocumentToSave)
|
||||
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ export class EventListPage implements OnInit {
|
||||
|
||||
async LoadToApproveEvents() {
|
||||
this.showLoader = true;
|
||||
console.log(this.segment);
|
||||
|
||||
if(this.segment == 'MDGPR') {
|
||||
let mdEventsOficial = await this.processes.GetTasksList('Agenda Oficial MDGPR', false).toPromise();
|
||||
let mdEventsPessoal = await this.processes.GetTasksList('Agenda Pessoal MDGPR', false).toPromise();
|
||||
@@ -82,7 +82,7 @@ export class EventListPage implements OnInit {
|
||||
let prEventsOficial = await this.processes.GetTasksList('Agenda Oficial PR', false).toPromise();
|
||||
let prEventsPessoal = await this.processes.GetTasksList('Agenda Pessoal PR', false).toPromise();
|
||||
let allEvents = prEventsOficial.concat(prEventsPessoal);
|
||||
console.log(allEvents);
|
||||
|
||||
if(allEvents.length > 0){
|
||||
this.eventsPRList = this.sortService.sortArrayByDate(allEvents).reverse();
|
||||
}
|
||||
@@ -94,7 +94,7 @@ export class EventListPage implements OnInit {
|
||||
async openApproveModal(eventSerialNumber, data) {
|
||||
|
||||
let a =this.eventsMDGPRList.filter((elem)=>{
|
||||
//console.log(eventSerialNumber," ",elem.serialNumber)
|
||||
//
|
||||
return eventSerialNumber == elem.serialNumber
|
||||
});
|
||||
|
||||
@@ -111,14 +111,14 @@ export class EventListPage implements OnInit {
|
||||
|
||||
doRefresh(event) {
|
||||
this.LoadToApproveEvents();
|
||||
console.log('refresh');
|
||||
|
||||
setTimeout(() => {
|
||||
event.target.complete();
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
close() {
|
||||
console.log('close')
|
||||
|
||||
this.cloneAllmobileComponent.emit();
|
||||
}
|
||||
|
||||
|
||||
@@ -274,7 +274,7 @@ export class NewEventPage implements OnInit {
|
||||
openInicio() {
|
||||
let input: any = document.querySelector('#new-inicio')
|
||||
if(input) {
|
||||
console.log(input)
|
||||
|
||||
input.click()
|
||||
}
|
||||
}
|
||||
@@ -323,15 +323,15 @@ export class NewEventPage implements OnInit {
|
||||
|
||||
getRecurrenceTypes() {
|
||||
this.eventService.getRecurrenceTypes().subscribe(res=>{
|
||||
console.log(res);
|
||||
|
||||
this.recurringTypes = res;
|
||||
});
|
||||
}
|
||||
|
||||
onSelectedRecurringChanged(ev:any){
|
||||
console.log(ev);
|
||||
|
||||
if(ev.length > 1){
|
||||
console.log(ev.filter(data => data != '-1'));
|
||||
|
||||
this.postEvent.EventRecurrence.Type = ev.filter(data => data != '-1');
|
||||
}
|
||||
if(ev.length == 0){
|
||||
@@ -347,7 +347,7 @@ export class NewEventPage implements OnInit {
|
||||
this.runValidation()
|
||||
|
||||
if(this.Form.invalid) {
|
||||
console.log('not passed')
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -364,9 +364,9 @@ export class NewEventPage implements OnInit {
|
||||
if(this.loggeduser.Profile == 'MDGPR') {
|
||||
|
||||
this.showLoader = true;
|
||||
console.log(this.postEvent);
|
||||
|
||||
let loader = this.toastService.loading();
|
||||
console.log(this.postEvent);
|
||||
|
||||
this.eventService.postEventMd(this.postEvent, this.postEvent.CalendarName).subscribe(
|
||||
async (id) => {
|
||||
loader.remove()
|
||||
@@ -412,11 +412,11 @@ export class NewEventPage implements OnInit {
|
||||
|
||||
}
|
||||
else if(this.loggeduser.Profile == 'PR') {
|
||||
console.log('PR - Aqui');
|
||||
console.log(this.postEvent);
|
||||
|
||||
|
||||
this.eventService.postEventPr(this.postEvent, this.postEvent.CalendarName).subscribe(
|
||||
(id) => {
|
||||
console.log(id);
|
||||
|
||||
|
||||
const eventId: any = id;
|
||||
|
||||
@@ -449,7 +449,7 @@ export class NewEventPage implements OnInit {
|
||||
} else {
|
||||
this.eventService.postEventGeneric(this.postEvent, this.postEvent.CalendarName).subscribe(
|
||||
(id) => {
|
||||
console.log(id);
|
||||
|
||||
|
||||
const eventId: any = id;
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ export class ViewEventPage implements OnInit {
|
||||
|
||||
if(this.sesseionStora.user.Profile == 'MDGPR' || this.sesseionStora.user.Profile == 'PR') {
|
||||
this.eventsService.getEvent(this.eventId).subscribe(res => {
|
||||
console.log(res);
|
||||
|
||||
this.loadedEvent = res;
|
||||
this.today = new Date(res.StartDate);
|
||||
this.customDate = this.days[this.today.getDay()]+ ", " + this.today.getDate() +" de " + ( this.months[this.today.getMonth()]);
|
||||
@@ -237,7 +237,7 @@ export class ViewEventPage implements OnInit {
|
||||
const applicationId: any = this.loadedEvent.Attachments[ this.dicIndex].ApplicationId
|
||||
const selectedDoc = this.loadedEvent.Attachments[ this.dicIndex]
|
||||
|
||||
console.log('selectedDoc', selectedDoc)
|
||||
|
||||
|
||||
this.task = {
|
||||
serialNumber: '',
|
||||
|
||||
Reference in New Issue
Block a user