mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
remove sqlite and unused import
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ProcessesService } from 'src/app/services/processes.service';
|
||||
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { Event } from '../../../../models/event.model';
|
||||
import { MenuController, ModalController, PopoverController } from '@ionic/angular';
|
||||
@@ -17,9 +16,6 @@ import { fullTask } from 'src/app/models/dailyworktask.model';
|
||||
import { AttachmentList } from 'src/app/models/Excludetask';
|
||||
import { PermissionService } from 'src/app/services/permission.service';
|
||||
import { ViewDocumentPage } from 'src/app/modals/view-document/view-document.page';
|
||||
|
||||
import { SqliteService } from 'src/app/services/sqlite.service';
|
||||
import { Platform } from '@ionic/angular';
|
||||
import { BackgroundService } from 'src/app/services/background.service';
|
||||
import { ThemeService } from 'src/app/services/theme.service'
|
||||
import { RouteService } from 'src/app/services/route.service';
|
||||
@@ -55,7 +51,6 @@ export class DespachoPage implements OnInit {
|
||||
|
||||
constructor(private activateRoute: ActivatedRoute,
|
||||
private processes: ProcessesService,
|
||||
private iab: InAppBrowser,
|
||||
private menu: MenuController,
|
||||
private modalController: ModalController,
|
||||
public popoverController: PopoverController,
|
||||
@@ -64,8 +59,6 @@ export class DespachoPage implements OnInit {
|
||||
private despachoService: DespachoService,
|
||||
private RouteService: RouteService,
|
||||
public p: PermissionService,
|
||||
private sqliteservice: SqliteService,
|
||||
private platform: Platform,
|
||||
private backgroundservice: BackgroundService,
|
||||
public ThemeService: ThemeService,
|
||||
private httpErrorHandle: HttpErrorHandle,
|
||||
@@ -133,14 +126,14 @@ export class DespachoPage implements OnInit {
|
||||
"Deadline": res.deadline
|
||||
}
|
||||
|
||||
this.updateProcessOnDB(res);
|
||||
// this.updateProcessOnDB(res);
|
||||
this.fulltask = res;
|
||||
|
||||
let thedate = new Date(this.task.CreateDate);
|
||||
this.customDate = this.days[thedate.getDay()] + ", " + thedate.getDate() + " de " + (this.months[thedate.getMonth()]);
|
||||
|
||||
this.processes.GetTaskParticipants(this.task.FolderID).subscribe(users => {
|
||||
this.updateProcessInterveners(users)
|
||||
// this.updateProcessInterveners(users)
|
||||
|
||||
|
||||
this.intervenientes = users.filter(user => {
|
||||
@@ -154,7 +147,7 @@ export class DespachoPage implements OnInit {
|
||||
});
|
||||
}, (error) => {
|
||||
if (error.status == 0) {
|
||||
this.getFromDb();
|
||||
// this.getFromDb();
|
||||
} else {
|
||||
try {
|
||||
this.goBack()
|
||||
@@ -166,23 +159,23 @@ export class DespachoPage implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
updateProcessOnDB(res) {
|
||||
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
} else {
|
||||
this.sqliteservice.updateProcess(res);
|
||||
}
|
||||
}
|
||||
// updateProcessOnDB(res) {
|
||||
// if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
// } else {
|
||||
// this.sqliteservice.updateProcess(res);
|
||||
// }
|
||||
// }
|
||||
|
||||
updateProcessInterveners(users) {
|
||||
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
} else {
|
||||
this.sqliteservice.updateProcessInterveners(JSON.stringify(this.serialnumber), JSON.stringify(users))
|
||||
}
|
||||
}
|
||||
// updateProcessInterveners(users) {
|
||||
// if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
// } else {
|
||||
// this.sqliteservice.updateProcessInterveners(JSON.stringify(this.serialnumber), JSON.stringify(users))
|
||||
// }
|
||||
// }
|
||||
|
||||
getFromDb() {
|
||||
// getFromDb() {
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
async viewDocument(docId: string, Document) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user