mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
add document viewer in chat
This commit is contained in:
@@ -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