mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
git pull made
This commit is contained in:
@@ -17,6 +17,8 @@ export class ContactsService {
|
||||
loggeduser: LoginUserRespose;
|
||||
headers: HttpHeaders;
|
||||
|
||||
constacts: EventPerson[] = []
|
||||
|
||||
constructor(
|
||||
private http: HttpClient,
|
||||
user: AuthService,
|
||||
@@ -26,6 +28,10 @@ export class ContactsService {
|
||||
this.changeProfileService.registerCallback(() => {
|
||||
this.setHeader()
|
||||
})
|
||||
|
||||
this.getContacts("").subscribe( result => {
|
||||
this.constacts = result
|
||||
})
|
||||
}
|
||||
|
||||
setHeader() {
|
||||
|
||||
@@ -275,6 +275,8 @@ export class ProcessesService {
|
||||
}
|
||||
|
||||
CompleteTask(body:Excludetask) {
|
||||
|
||||
// double check
|
||||
const geturl = environment.apiURL + 'Tasks/CompleteTask';
|
||||
|
||||
let options = {
|
||||
@@ -283,7 +285,7 @@ export class ProcessesService {
|
||||
return this.http.post<any>(`${geturl}`, body, options)
|
||||
}
|
||||
|
||||
CompleteParecerPrTask(body:any){
|
||||
CompleteParecerPrTask(body:any) {
|
||||
const geturl = environment.apiURL + 'Tasks/CompleteTaskParecerPr';
|
||||
|
||||
let options = {
|
||||
@@ -335,7 +337,24 @@ export class ProcessesService {
|
||||
return this.http.post<any>(`${geturl}`, body, options)
|
||||
}
|
||||
|
||||
postParecer(body:any){
|
||||
postParecer(body:any) {
|
||||
|
||||
try {
|
||||
if(!body.AttachmentList) {
|
||||
body.AttachmentList = {}
|
||||
}
|
||||
if(!body?.dataFields) {
|
||||
body.dataFields = {}
|
||||
}
|
||||
if(!body.dataFields?.DraftIds) {
|
||||
body.dataFields.DraftIds = ""
|
||||
}
|
||||
if(!body.AttachmentList?.DraftIds) {
|
||||
body.AttachmentList.DraftIds = ""
|
||||
}
|
||||
} catch (error) {}
|
||||
|
||||
|
||||
const geturl = environment.apiURL + 'Processes/CreateParecer';
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
@@ -343,7 +362,23 @@ export class ProcessesService {
|
||||
return this.http.post<any>(`${geturl}`, body, options)
|
||||
}
|
||||
|
||||
postParecerPr(body:any){
|
||||
postParecerPr(body:any) {
|
||||
try {
|
||||
if(!body.AttachmentList) {
|
||||
body.AttachmentList = {}
|
||||
}
|
||||
if(!body?.dataFields) {
|
||||
body.dataFields = {}
|
||||
}
|
||||
if(!body.dataFields?.DraftIds) {
|
||||
body.dataFields.DraftIds = ""
|
||||
}
|
||||
if(!body.AttachmentList?.DraftIds) {
|
||||
body.AttachmentList.DraftIds = ""
|
||||
}
|
||||
} catch(error) {}
|
||||
|
||||
|
||||
const geturl = environment.apiURL + 'Processes/CreateParecerPR';
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
|
||||
Reference in New Issue
Block a user