|
|
|
|
@ -54,9 +54,9 @@ export class HrRequestFormComponent implements OnInit {
|
|
|
|
|
public sectionDep: any;
|
|
|
|
|
public projectCode;
|
|
|
|
|
public SelectedServiceType: any;
|
|
|
|
|
public depType: any ="";
|
|
|
|
|
public secType: any = "";
|
|
|
|
|
public topicType: any="";
|
|
|
|
|
public depType: any;
|
|
|
|
|
public secType: any;
|
|
|
|
|
public topicType: any;
|
|
|
|
|
indexLastObj: any;
|
|
|
|
|
addAttachRequest: any = [];
|
|
|
|
|
TransactionID: any;
|
|
|
|
|
@ -108,6 +108,13 @@ export class HrRequestFormComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public isValidForm(): boolean {
|
|
|
|
|
if (this.depType && this.SelectedServiceType && this.secType && this.topicType) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onSelectChange(event, type) {
|
|
|
|
|
const value = event.target.value;
|
|
|
|
|
@ -248,7 +255,11 @@ export class HrRequestFormComponent implements OnInit {
|
|
|
|
|
request.append('sectionId', this.secType);
|
|
|
|
|
request.append('sectionTopicId', this.topicType);
|
|
|
|
|
request.append('description', this.Description);
|
|
|
|
|
request.append('fileColl', this.selectedFile[0], this.selectedFile[0].name);
|
|
|
|
|
console.log("TEST:______")
|
|
|
|
|
console.log(this.selectedFile);
|
|
|
|
|
if(this.selectedFile && this.selectedFile !== undefined){
|
|
|
|
|
request.append('fileColl', this.selectedFile[0], this.selectedFile[0].name);
|
|
|
|
|
}
|
|
|
|
|
request.append('employeeNumber', authUser.P_USER_NAME);
|
|
|
|
|
request.append('ticketStatus', 'new');
|
|
|
|
|
request.append('channelId', '3');
|
|
|
|
|
|