diff --git a/Mohem/src/app/mowadhafi/hr-request-form/hr-request-form.component.ts b/Mohem/src/app/mowadhafi/hr-request-form/hr-request-form.component.ts index 844e4bc2..76fd5350 100644 --- a/Mohem/src/app/mowadhafi/hr-request-form/hr-request-form.component.ts +++ b/Mohem/src/app/mowadhafi/hr-request-form/hr-request-form.component.ts @@ -272,24 +272,28 @@ export class HrRequestFormComponent implements OnInit { // }; - var request = new FormData(); + this.cs.startLoading(); + var request = new FormData(); request.append('ticketTypeId', '1'); request.append('projectId', '11'); request.append('departmentId', '1'); request.append('sectionId', '1'); request.append('sectionTopicId', '1'); request.append('description', this.Description); - //request.append('fileColl', this.selectedFile[0], this.selectedFile[0].name); + request.append('fileColl', this.selectedFile[0], this.selectedFile[0].name); request.append('employeeNumber', '13777'); request.append('ticketStatus', 'new'); - request.append('channel', '31'); - - //request.append('file', this.uploadForm.get('profile').value); - + request.append('Channel', '31'); + request.append('channelId', '1'); + request.append('LogInToken', 'test'); + request.append('Token', '@dm!n'); + request.append('EmployeeNumber', '13777'); + request.append('MobileNo', '0567'); this.MowadhafiService.getCreateTicket(request, () => { }, this.ts.trPK('general', 'retry')).subscribe((result) => { + this.cs.stopLoading(); this.handlegetCreateTicketResult(result); })