add document viewer in chat

This commit is contained in:
tiago.kayaya
2021-10-09 20:24:34 +01:00
parent 858fa57ebd
commit c36ef9ef87
10 changed files with 196 additions and 88 deletions
+19 -2
View File
@@ -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';