mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
Merge branch 'developer' of https://bitbucket.org/equilibriumito/gabinete-digital into developer
This commit is contained in:
@@ -267,8 +267,6 @@ export class FileService {
|
||||
modal.onDidDismiss().then(async res=>{
|
||||
const data = res.data;
|
||||
|
||||
alert('HERE')
|
||||
|
||||
if(data.selected){
|
||||
const loader = this.toastService.loading();
|
||||
|
||||
@@ -277,14 +275,9 @@ export class FileService {
|
||||
console.log(res.data.selected.Id);
|
||||
console.log(res.data.selected.ApplicationType);
|
||||
|
||||
console.log('AQUIIIII');
|
||||
|
||||
alert('HERE 2')
|
||||
|
||||
let url = await this.processesService.GetDocumentUrl(res.data.selected.Id, res.data.selected.ApplicationType).toPromise();
|
||||
let url_no_options: string = url.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");
|
||||
console.log(url_no_options);
|
||||
console.log('Oie');
|
||||
|
||||
let body = {
|
||||
"message":
|
||||
@@ -305,6 +298,7 @@ export class FileService {
|
||||
"type": "application/webtrix",
|
||||
"ApplicationId": res.data.selected.ApplicationType,
|
||||
"DocId": res.data.selected.Id,
|
||||
"Assunto": res.data.selected.Assunto,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ export class ProcessesService {
|
||||
) {
|
||||
|
||||
this.loggeduser = this.user.ValidatedUser;
|
||||
|
||||
|
||||
this.setHeader()
|
||||
this.changeProfileService.registerCallback(()=>{
|
||||
this.loggeduser = this.user.ValidatedUser;
|
||||
@@ -89,7 +89,7 @@ export class ProcessesService {
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
|
||||
|
||||
|
||||
SetTaskToPending(serialNumber:string): Observable<any>{
|
||||
const geturl = environment.apiURL + 'Tasks/SetTaskPending';
|
||||
@@ -325,6 +325,23 @@ export class ProcessesService {
|
||||
return this.http.post<any>(`${url}`,body, options);
|
||||
}
|
||||
|
||||
DocumentDetail(DocId:string, FsId:string){
|
||||
|
||||
const geturl = environment.apiURL + 'ecm/GetDocument';
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("docId", DocId);
|
||||
params = params.set("applicationId", FsId);
|
||||
params = params.set("externalAppId ", 101);
|
||||
params = params.set("SourceLocation ", 17);
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
|
||||
getFileBase64(DocId: string | number) {
|
||||
let url = environment.apiURL + 'ecm/document/file';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user