mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Improve expediente descart
This commit is contained in:
@@ -1,9 +1,40 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
import { ProcessesService } from '../services/processes.service';
|
||||
import { ProcessDocumentService } from './process-document.service';
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class ExpedienteService {
|
||||
|
||||
constructor() { }
|
||||
constructor(
|
||||
private processes: ProcessesService,
|
||||
private processDocumentService: ProcessDocumentService,
|
||||
) { }
|
||||
|
||||
|
||||
discard({SerialNumber, Note =''}) {
|
||||
let otherbody = {
|
||||
"serialNumber": SerialNumber,
|
||||
"action": "Passivo",
|
||||
"ActionTypeId": 99999877,
|
||||
"dataFields": {
|
||||
"Note": Note,
|
||||
}
|
||||
}
|
||||
|
||||
return this.processes.CompleteTask(otherbody)
|
||||
}
|
||||
|
||||
viewDocument({DocId, ApplicationId}) {
|
||||
this.processDocumentService.viewDocument({DocId, ApplicationId})
|
||||
}
|
||||
|
||||
CompleteTask({body}) {
|
||||
return this.processes.CompleteTask(body)
|
||||
}
|
||||
|
||||
|
||||
UpdateTaskStatus({FolderId}){
|
||||
return this.processes.UpdateTaskStatus(FolderId)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
|
||||
import { ProcessesService } from '../services/processes.service';
|
||||
import { ProcessDocumentService } from './process-document.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class ExpedientesService {
|
||||
|
||||
constructor(
|
||||
private iab: InAppBrowser,
|
||||
private processDocumentService: ProcessDocumentService,
|
||||
private processes: ProcessesService,
|
||||
) { }
|
||||
|
||||
viewDocument({DocId, ApplicationId}) {
|
||||
this.processDocumentService.viewDocument({DocId, ApplicationId})
|
||||
}
|
||||
|
||||
CompleteTask({body}) {
|
||||
return this.processes.CompleteTask(body)
|
||||
}
|
||||
|
||||
|
||||
UpdateTaskStatus({FolderId}){
|
||||
return this.processes.UpdateTaskStatus(FolderId)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,13 +1,13 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
|
||||
import { ExpedientesService } from './expedientes.service';
|
||||
import { TaskService } from './task.service';
|
||||
|
||||
describe('ExpedientesService', () => {
|
||||
let service: ExpedientesService;
|
||||
describe('TaskService', () => {
|
||||
let service: TaskService;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({});
|
||||
service = TestBed.inject(ExpedientesService);
|
||||
service = TestBed.inject(TaskService);
|
||||
});
|
||||
|
||||
it('should be created', () => {
|
||||
@@ -0,0 +1,15 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { ProcessesService } from '../services/processes.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class TaskService {
|
||||
|
||||
constructor(
|
||||
private processes: ProcessesService,
|
||||
) { }
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user