2021-08-05 16:08:49 +01:00
|
|
|
import { Injectable } from '@angular/core';
|
2021-08-27 16:10:25 +01:00
|
|
|
import { ProcessesService } from '../services/processes.service';
|
|
|
|
|
import { ProcessDocumentService } from './process-document.service';
|
2021-08-05 16:08:49 +01:00
|
|
|
@Injectable({
|
|
|
|
|
providedIn: 'root'
|
|
|
|
|
})
|
|
|
|
|
export class ExpedienteService {
|
|
|
|
|
|
2021-08-27 16:10:25 +01:00
|
|
|
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)
|
|
|
|
|
}
|
2021-08-05 16:08:49 +01:00
|
|
|
}
|