mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
issue 812
This commit is contained in:
@@ -15,7 +15,7 @@ export class ProcessesService {
|
||||
loggeduser: User;
|
||||
headers: HttpHeaders;
|
||||
|
||||
constructor(private http: HttpClient, user: AuthService) {
|
||||
constructor(private http: HttpClient, user: AuthService) {
|
||||
this.loggeduser = user.ValidatedUser;
|
||||
this.headers = new HttpHeaders();
|
||||
this.headers = this.headers.set('Authorization', this.loggeduser.BasicAuthKey);
|
||||
@@ -28,10 +28,10 @@ export class ProcessesService {
|
||||
|
||||
params = params.set("ProcessName", processname);
|
||||
params = params.set("OnlyCount", onlycount.toString());
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
@@ -42,10 +42,10 @@ export class ProcessesService {
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("serialNumber", serialnumber);
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
@@ -54,18 +54,32 @@ export class ProcessesService {
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("serialNumber", serialNumber);
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.post<any>(`${geturl}`,'', options);
|
||||
}
|
||||
|
||||
GetPendingTasks(onlyCount: boolean){
|
||||
const geturl = environment.apiURL + 'Tasks/ListPending';
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("onlyCount", onlyCount.toString());
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
|
||||
DelegateTask(body:any){
|
||||
const geturl = environment.apiURL + 'Tasks/DelegateTask';
|
||||
|
||||
let options = {
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.post<any>(`${geturl}`, body, options);
|
||||
@@ -76,10 +90,10 @@ export class ProcessesService {
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("folderId", folderId);
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
@@ -90,10 +104,10 @@ export class ProcessesService {
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("serialNumber", serialnumber);
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
@@ -102,7 +116,7 @@ export class ProcessesService {
|
||||
{
|
||||
const geturl = environment.apiURL + 'tasks/GetMDOficialTasks';
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
@@ -111,7 +125,7 @@ export class ProcessesService {
|
||||
{
|
||||
const geturl = environment.apiURL + 'tasks/GetMDPersonalTasks';
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
@@ -123,18 +137,18 @@ export class ProcessesService {
|
||||
|
||||
params = params.set("categoryname", categoryname);
|
||||
params = params.set("onlyCount", count);
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params,
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params,
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
|
||||
PostTaskAction(body:any){
|
||||
const geturl = environment.apiURL + 'Tasks/Complete';
|
||||
|
||||
let options = {
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.post<any>(`${geturl}`, body, options)
|
||||
@@ -142,8 +156,8 @@ export class ProcessesService {
|
||||
|
||||
CompleteTask(body:any){
|
||||
const geturl = environment.apiURL + 'Tasks/CompleteTask';
|
||||
|
||||
let options = {
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.post<any>(`${geturl}`, body, options)
|
||||
@@ -151,8 +165,8 @@ export class ProcessesService {
|
||||
|
||||
CompleteParecerPrTask(body:any){
|
||||
const geturl = environment.apiURL + 'Tasks/CompleteTaskParecerPr';
|
||||
|
||||
let options = {
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.post<any>(`${geturl}`, body, options)
|
||||
@@ -163,10 +177,10 @@ export class ProcessesService {
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("FolderId", FolderId);
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.post<any>(`${geturl}`,'', options);
|
||||
}
|
||||
@@ -177,17 +191,17 @@ export class ProcessesService {
|
||||
|
||||
params = params.set("DocId", DocId);
|
||||
params = params.set("applicationid", FsId);
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
|
||||
|
||||
postDespatcho(body:any) {
|
||||
const geturl = environment.apiURL + 'Processes/CreateDispatch';
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.post<any>(`${geturl}`, body, options)
|
||||
@@ -195,7 +209,7 @@ export class ProcessesService {
|
||||
|
||||
postDespatchoPr(body:any) {
|
||||
const geturl = environment.apiURL + 'Processes/CreateDispatchPR';
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.post<any>(`${geturl}`, body, options)
|
||||
@@ -203,7 +217,7 @@ export class ProcessesService {
|
||||
|
||||
postParecer(body:any){
|
||||
const geturl = environment.apiURL + 'Processes/CreateParecer';
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.post<any>(`${geturl}`, body, options)
|
||||
@@ -211,7 +225,7 @@ export class ProcessesService {
|
||||
|
||||
postParecerPr(body:any){
|
||||
const geturl = environment.apiURL + 'Processes/CreateParecerPR';
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.post<any>(`${geturl}`, body, options)
|
||||
@@ -219,7 +233,7 @@ export class ProcessesService {
|
||||
|
||||
postDeferimento(body:any){
|
||||
const geturl = environment.apiURL + 'Processes/CreateDeferimento';
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.post<any>(`${geturl}`, body, options)
|
||||
@@ -228,32 +242,32 @@ export class ProcessesService {
|
||||
|
||||
GetActionsList(){
|
||||
const geturl = environment.apiURL + 'presidentialActions';
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
console.log(options);
|
||||
|
||||
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
GetSubjectType(){
|
||||
const geturl = environment.apiURL + 'ecm/SubjectType';
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
|
||||
GetDocumentDetails(DocId:string, FsId:string){
|
||||
|
||||
|
||||
const geturl = environment.apiURL + 'search/documents';
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("docId", DocId);
|
||||
params = params.set("applicationId", FsId);
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user