mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
feature/gabinete-search
This commit is contained in:
@@ -104,7 +104,7 @@ export class CreateProcessPage implements OnInit {
|
||||
this.loggeduser = SessionStore.user;
|
||||
this.task = this.navParams.get('task');
|
||||
this.fulltask = this.navParams.get('fulltask');
|
||||
console.log(this.task)
|
||||
|
||||
if (this.task.SerialNumber) {
|
||||
this.task.serialNumber = this.task.SerialNumber
|
||||
}
|
||||
@@ -157,7 +157,7 @@ export class CreateProcessPage implements OnInit {
|
||||
/* By Default TypeDeadline should be 'Normal' */
|
||||
this.postData.Priority = '99999861';
|
||||
/* Initialize 'Subject' with the title of the expedient */
|
||||
console.log('Subject', this.fulltask)
|
||||
|
||||
this.postData.DispatchFolder.Subject = this.task?.workflowInstanceDataFields?.Subject || this.fulltask?.workflowInstanceDataFields?.Subject;
|
||||
this.profile = this.navParams.get('profile');
|
||||
}
|
||||
@@ -283,8 +283,6 @@ export class CreateProcessPage implements OnInit {
|
||||
this.dispatchFolder.SubjectTypes = this.selectedTypes;
|
||||
const loader = this.toastService.loading()
|
||||
|
||||
console.log(this.fulltask, 'fulltask')
|
||||
|
||||
if (this.fulltask.activityInstanceName == "Assinar Diploma") {
|
||||
this.postData = {
|
||||
DistributionType: "Paralelo",
|
||||
@@ -308,7 +306,7 @@ export class CreateProcessPage implements OnInit {
|
||||
}
|
||||
|
||||
} else {
|
||||
console.log('1')
|
||||
|
||||
if (this.loggeduser.Profile != 'PR') {
|
||||
switch (this.taskType) {
|
||||
case '0': // Despacho
|
||||
@@ -396,7 +394,7 @@ export class CreateProcessPage implements OnInit {
|
||||
} else if (this.loggeduser.Profile == 'PR') {
|
||||
switch (this.taskType) {
|
||||
case '0': // Despacho PR
|
||||
console.log('12')
|
||||
|
||||
this.postData = {
|
||||
DistributionType: "Paralelo",
|
||||
CountryCode: 'AO',
|
||||
@@ -428,7 +426,6 @@ export class CreateProcessPage implements OnInit {
|
||||
break;
|
||||
case '1': // Pedido de Parecer
|
||||
|
||||
console.log('13')
|
||||
this.postData = {
|
||||
DistributionType: "Paralelo",
|
||||
CountryCode: 'AO',
|
||||
@@ -460,7 +457,7 @@ export class CreateProcessPage implements OnInit {
|
||||
|
||||
break;
|
||||
case '2': // Pedido de Deferimento
|
||||
console.log('123')
|
||||
|
||||
this.postData = {
|
||||
DistributionType: "Paralelo",
|
||||
CountryCode: 'AO',
|
||||
@@ -558,7 +555,7 @@ export class CreateProcessPage implements OnInit {
|
||||
}
|
||||
|
||||
} else {
|
||||
// console.log('unexpected error')
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -721,7 +718,7 @@ export class CreateProcessPage implements OnInit {
|
||||
});
|
||||
await modal.present();
|
||||
modal.onDidDismiss().then((res) => {
|
||||
/* console.log('!refresh list'); */
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ export class DocumentDetailPage implements OnInit {
|
||||
} else if (document.ApplicationID == 8 || document.ApplicationId == 8) {
|
||||
|
||||
} else {
|
||||
// console.log('unexpected id')
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -298,7 +298,6 @@ export class DocumentSetUpMeetingPage implements OnInit {
|
||||
this.httpErroHandle.httpsSucessMessagge('new event');
|
||||
this.modalController.dismiss()
|
||||
}, (error) => {
|
||||
console.log('error', error)
|
||||
laoder.remove();
|
||||
this.httpErroHandle.httpStatusHandle(error)
|
||||
}, ()=>{
|
||||
|
||||
@@ -44,8 +44,6 @@ ngOnInit() {
|
||||
this.image = this.navParams.get('image')
|
||||
this.name = this.navParams.get('username')
|
||||
this._updatedAt = this.navParams.get('_updatedAt')
|
||||
// console.log(this.image)
|
||||
// this.image = this.myimage
|
||||
}
|
||||
|
||||
ionViewDidEnter(){
|
||||
|
||||
@@ -57,7 +57,6 @@ export class ProfilePage implements OnInit {
|
||||
if(event.notification == "recive") {
|
||||
this.getNotificationData();
|
||||
}
|
||||
console.log(event)
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
@@ -150,7 +149,6 @@ export class ProfilePage implements OnInit {
|
||||
|
||||
notificatinsRoutes = (index, Service, Object, IdObject, FolderId) => {
|
||||
|
||||
// console.log(index, Service, Object, IdObject, FolderId)
|
||||
|
||||
if (Service === "agenda" && IdObject.length > 10) {
|
||||
this.zone.run(() => this.router.navigate(['/home/agenda', IdObject, 'agenda']));
|
||||
@@ -210,13 +208,11 @@ export class ProfilePage implements OnInit {
|
||||
|
||||
deleteNotification(index) {
|
||||
this.notificationdata = this.notificationdata.filter(item => item.index != index);
|
||||
console.log(this.notificationdata)
|
||||
console.log(this.notificationdata)
|
||||
|
||||
this.storageservice.store("Notifications", this.notificationdata).then((store) => {
|
||||
console.log(store)
|
||||
|
||||
this.storageservice.get("Notifications").then((value) => {
|
||||
console.log(value)
|
||||
|
||||
}).catch((error) => {
|
||||
console.error('storage delete notification: ',error)
|
||||
})
|
||||
@@ -239,7 +235,7 @@ export class ProfilePage implements OnInit {
|
||||
if(this.logoutOut == false || pathBeforeGoOut == window.location.pathname) {
|
||||
window.location.pathname = '/auth'
|
||||
} else {
|
||||
console.log('refresh')
|
||||
|
||||
}
|
||||
}, 500)
|
||||
}
|
||||
|
||||
@@ -82,7 +82,6 @@ export class SetRoomOwnerPage implements OnInit {
|
||||
}
|
||||
|
||||
this.chatService.addGroupOwner(body).subscribe((res)=>{
|
||||
console.log(res);
|
||||
this.close();
|
||||
this.toastService._successMessage('Operação realizada com sucesso');
|
||||
}, (e) => {
|
||||
|
||||
@@ -104,7 +104,7 @@ export class ViewDocumentPage implements OnInit {
|
||||
} else if(res.data.component == 'openExpedientActionsModal') {
|
||||
this.openExpedientActionsModal(res.data.taskAction)
|
||||
} else {
|
||||
// console.log('not found')
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ export class ViewEventPage implements OnInit {
|
||||
} else {
|
||||
|
||||
if(this.CalendarId) {
|
||||
console.log('calendar id')
|
||||
|
||||
this.eventsService.genericGetEvent(this.eventId, this.CalendarId).subscribe(res => {
|
||||
this.loadedEvent = res;
|
||||
this.addEventToDb(res);
|
||||
@@ -171,7 +171,7 @@ export class ViewEventPage implements OnInit {
|
||||
loader.remove()
|
||||
});
|
||||
} else {
|
||||
console.log('no calendar id')
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ export class ViewMediaPage implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
// console.log(this.image)
|
||||
|
||||
this.base64Sanitize = this.sanitizer.bypassSecurityTrustResourceUrl(this.image);
|
||||
|
||||
if (this.platform.is('desktop')) {
|
||||
|
||||
Reference in New Issue
Block a user