fix issues

This commit is contained in:
Peter Maquiran
2024-12-05 19:14:11 +01:00
parent dad392335e
commit 5a1bbe6103
46 changed files with 378 additions and 1748 deletions
+30 -48
View File
@@ -17,8 +17,6 @@ export class ProcessesService {
authheader = {};
loggeduser: UserSession;
headers: HttpHeaders;
headers2: HttpHeaders;
@@ -40,17 +38,7 @@ export class ProcessesService {
}
setHeader() {
this.headers = new HttpHeaders();;
this.headers = this.headers.set('Authorization', 'Bearer ' + SessionStore.user.Authorization);
this.headers2 = new HttpHeaders();;
this.headers2 = this.headers2.set('Authorization', 'Bearer ' + SessionStore.user.Authorization);
}
setHeader() {}
uploadFile(formData: any) {
@@ -58,7 +46,6 @@ export class ProcessesService {
const geturl = environment.apiURL + 'lakefs/UploadFiles';
let options = {
headers: this.headers
};
return this.http.post(`${geturl}`, formData, options);
@@ -75,7 +62,6 @@ export class ProcessesService {
params = params.set("pageSize", "500");
let options = {
headers: this.headers,
params: params
};
@@ -91,7 +77,7 @@ export class ProcessesService {
// params = params.set("userid", userid);
// let options = {
// headers: this.headers,
//
// params: params
// };
@@ -109,7 +95,6 @@ export class ProcessesService {
params = params.set("OnlyCount", onlycount.toString());
let options = {
headers: this.headers,
params: params
};
@@ -124,7 +109,6 @@ export class ProcessesService {
params = params.set("serialNumber", serialnumber);
let options = {
headers: this.headers,
params: params
};
return this.http.get<any>(`${geturl}`, options);
@@ -138,7 +122,6 @@ export class ProcessesService {
/* params = params.set("serialNumber", serialnumber); */
let options = {
headers: this.headers2,
/* params: params */
};
return this.http.get<any>(`${geturl}`, options);
@@ -151,7 +134,7 @@ export class ProcessesService {
/* params = params.set("serialNumber", serialnumber); */
let options = {
headers: this.headers2,
/* params: params */
};
return this.http.put<any>(`${geturl}`, object, options);
@@ -164,7 +147,7 @@ export class ProcessesService {
params = params.set("serialNumber", serialNumber);
let options = {
headers: this.headers,
params: params
};
return this.http.post<any>(`${geturl}`, '', options);
@@ -177,7 +160,6 @@ export class ProcessesService {
params = params.set("onlyCount", onlyCount.toString());
let options = {
headers: this.headers,
params: params
};
@@ -188,7 +170,7 @@ export class ProcessesService {
const geturl = environment.apiURL + 'Tasks/DelegateTask';
let options = {
headers: this.headers,
};
return this.http.post<any>(`${geturl}`, body, options);
}
@@ -200,7 +182,7 @@ export class ProcessesService {
params = params.set("folderId", folderId);
let options = {
headers: this.headers,
params: params
};
return this.http.get<any>(`${geturl}`, options);
@@ -213,7 +195,7 @@ export class ProcessesService {
params = params.set("serialNumber", serialnumber);
let options = {
headers: this.headers,
params: params
};
return this.http.get<any>(`${geturl}`, options);
@@ -222,7 +204,7 @@ export class ProcessesService {
GetMDOficialTasks(): Observable<any> {
const geturl = environment.apiURL + 'tasks/GetMDOficialTasks';
let options = {
headers: this.headers,
};
return this.http.get<any>(`${geturl}`, options);
}
@@ -230,7 +212,7 @@ export class ProcessesService {
GetMDPersonalTasks(): Observable<any> {
const geturl = environment.apiURL + 'tasks/GetMDPersonalTasks';
let options = {
headers: this.headers,
};
return this.http.get<any>(`${geturl}`, options);
}
@@ -243,7 +225,7 @@ export class ProcessesService {
params = params.set("onlyCount", count);
let options = {
headers: this.headers,
params: params,
};
return this.http.get<any>(`${geturl}`, options);
@@ -253,7 +235,7 @@ export class ProcessesService {
const geturl = environment.apiURL + 'Tasks/Complete';
let options = {
headers: this.headers,
};
return this.http.post<any>(`${geturl}`, body, options)
}
@@ -262,7 +244,7 @@ export class ProcessesService {
const geturl = environment.apiURL + 'presidentialActions/signature';
let options = {
headers: this.headers,
};
return this.http.post<any>(`${geturl}`, body, options)
}
@@ -273,7 +255,7 @@ export class ProcessesService {
const geturl = environment.apiURL + 'Tasks/CompleteTask';
let options = {
headers: this.headers,
};
return this.http.post<any>(`${geturl}`, body, options)
}
@@ -282,7 +264,7 @@ export class ProcessesService {
const geturl = environment.apiURL + 'Tasks/CompleteTaskParecerPr';
let options = {
headers: this.headers,
};
return this.http.post<any>(`${geturl}`, body, options)
}
@@ -294,7 +276,7 @@ export class ProcessesService {
params = params.set("FolderId", FolderId);
let options = {
headers: this.headers,
params: params
};
return this.http.post<any>(`${geturl}`, '', options);
@@ -308,7 +290,7 @@ export class ProcessesService {
params = params.set("applicationid", FsId);
let options = {
headers: this.headers,
params: params
};
return this.http.get<any>(`${geturl}`, options);
@@ -317,7 +299,7 @@ export class ProcessesService {
postDespatcho(body: any) {
const geturl = environment.apiURL + 'Processes/CreateDispatch';
let options = {
headers: this.headers,
};
return this.http.post<any>(`${geturl}`, body, options)
}
@@ -325,7 +307,7 @@ export class ProcessesService {
postDespatchoPr(body: any) {
const geturl = environment.apiURL + 'Processes/CreateDispatchPR';
let options = {
headers: this.headers,
};
return this.http.post<any>(`${geturl}`, body, options)
}
@@ -350,7 +332,7 @@ export class ProcessesService {
const geturl = environment.apiURL + 'Processes/CreateParecer';
let options = {
headers: this.headers,
};
return this.http.post<any>(`${geturl}`, body, options)
}
@@ -374,7 +356,7 @@ export class ProcessesService {
const geturl = environment.apiURL + 'Processes/CreateParecerPR';
let options = {
headers: this.headers,
};
return this.http.post<any>(`${geturl}`, body, options)
}
@@ -382,7 +364,7 @@ export class ProcessesService {
postDeferimento(body: any) {
const geturl = environment.apiURL + 'Processes/CreateDeferimento';
let options = {
headers: this.headers,
};
return this.http.post<any>(`${geturl}`, body, options)
}
@@ -390,7 +372,7 @@ export class ProcessesService {
GetActionsList() {
const geturl = environment.apiURL + 'presidentialActions';
let options = {
headers: this.headers,
};
@@ -400,7 +382,7 @@ export class ProcessesService {
GetSubjectType() {
const geturl = environment.apiURL + 'ecm/SubjectType';
let options = {
headers: this.headers,
};
return this.http.get<any>(`${geturl}`, options);
}
@@ -414,7 +396,7 @@ export class ProcessesService {
params = params.set("applicationId", FsId);
let options = {
headers: this.headers,
params: params
};
return this.http.get<any>(`${geturl}`, options);
@@ -426,7 +408,7 @@ export class ProcessesService {
url = url.replace('/V4/', '/V5/')
let options: any = {
headers: this.headers,
}
return this.http.post<any>(`${url}`, body, options);
}
@@ -442,7 +424,7 @@ export class ProcessesService {
params = params.set("SourceLocation ", 17);
let options = {
headers: this.headers,
params: params
};
return this.http.get<any>(`${geturl}`, options);
@@ -456,7 +438,7 @@ export class ProcessesService {
params = params.set("docid", DocId);
let options: any = {
headers: this.headers,
params
}
@@ -474,7 +456,7 @@ export class ProcessesService {
params = params.set("applicationId", FsId);
let options = {
headers: this.headers,
params: params
};
return this.http.get<any>(`${geturl}`, options);
@@ -484,7 +466,7 @@ export class ProcessesService {
const geturl = environment.apiURL + 'Tasks/AttachDocImage';
let options = {
headers: this.headers,
};
return this.http.post<any>(`${geturl}`, file, options);
}
@@ -495,7 +477,7 @@ export class ProcessesService {
let params = new HttpParams();
params = params.set('calendarName', calendarType);
let options = {
headers: this.headers,
params: params
};
return this.http.post<any>(`${geturl}`, body, options);