\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
{{getresumeData.FirstName}} {{getresumeData.LastName}}
\r\n
\r\n
\r\n
\r\n
{{educationInfo[0].AcademicDescription}}\r\n {{educationInfo[0].SpecializationDescription}}
\r\n
\r\n
\r\n
@ {{educationInfo[0].SchoolOrUniversity}}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Profile Performance
\r\n
\r\n
\r\n
\r\n
Search Appearances
\r\n
25 >
\r\n
\r\n
\r\n
\r\n
\r\n Recruiter Actions\r\n
\r\n
10 >
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
{{companyobs[0].Count}}\r\n Recommended jobs
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
{{jobpost.PostedDays}}
\r\n
\r\n
\r\n
\r\n
\r\n
{{jobpost.JobRole}}
\r\n
{{jobpost.CompanyIndustry}}
\r\n
\r\n
\r\n \r\n \r\n
{{jobpost.JobLocationCity}} \r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
No Recommended jobs
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n Highlight your application and stand out from rest of the\r\n application\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n Know more
\r\n
\r\n
\r\n
\r\n
\r\n Paid Service for Fastforward\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
Top Companies
\r\n
{{getresumeData.JobRole}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
{{company.CompanyName}}
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
View Jobs
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
Top Companies Not Available
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n ","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-coming-soon',\n templateUrl: './coming-soon.component.html',\n styleUrls: ['./coming-soon.component.scss']\n})\nexport class ComingSoonComponent implements OnInit {\n\n days: any;\n hours: any;\n minutes: any;\n seconds: any;\n myInterval: any;\n\n constructor() { }\n\n ngOnInit() {\n this.myInterval = setInterval(() => {\n this.commingSoonTime();\n }, 0);\n }\n\n commingSoonTime = () => {\n const endTimeParse = (Date.parse('March 20, 2021 17:00:00 PDT')) / 1000;\n const now = new Date();\n const nowParse = (Date.parse(now.toString()) / 1000);\n const timeLeft = endTimeParse - nowParse;\n const days = Math.floor(timeLeft / 86400);\n let hours = Math.floor((timeLeft - (days * 86400)) / 3600);\n let minutes = Math.floor((timeLeft - (days * 86400) - (hours * 3600 )) / 60);\n let seconds = Math.floor((timeLeft - (days * 86400) - (hours * 3600) - (minutes * 60)));\n if (hours < 10) { hours = 0 + hours; }\n if (minutes < 10) { minutes = 0 + minutes; }\n if (seconds < 10) { seconds = 0 + seconds; }\n this.days = days;\n this.hours = hours;\n this.minutes = minutes;\n this.seconds = seconds;\n }\n\n}","\n
\n
\n
\n
\n
\n
Coming soon... \n
within these days \n\n
\n
\n\n
\n\n
\n
\n
{{minutes}} \n
Minutes
\n
\n
\n\n
\n
\n
{{seconds}} \n
Seconds
\n
\n
\n
\n
\n
\n
\n
\n
\n","import { Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { FormGroup, FormBuilder, Validators, FormControl, AbstractControl } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\nimport { event } from 'jquery';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { Observable } from 'rxjs';\r\nimport * as _moment from 'moment';\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport { state } from '@angular/animations';\r\nimport { cities, Country, IndustryType, JobRole, State } from 'src/app/interface';\r\nimport { MatDialogRef } from '@angular/material/dialog';\r\nconst moment = _moment;\r\n\r\n@Component({\r\n selector: 'app-add-edit-companyinfo',\r\n templateUrl: './add-edit-companyinfo.component.html',\r\n styleUrls: ['./add-edit-companyinfo.component.scss']\r\n})\r\nexport class AddEditCompanyProfileComponent implements OnInit, OnDestroy {\r\n companyUpdateForm!: FormGroup;\r\n allCities: Observable
;\r\n allStates: Observable;\r\n allCountries: Observable;\r\n allIndustry: Observable;\r\n public info: any;\r\n image: string = '';\r\n base64textString: string[] = [];\r\n fileType: string = '';\r\n summary: string;\r\n response: any;\r\n openform = false;\r\n boolVar = true;\r\n hideForm: boolean = true;\r\n hideme: boolean = true;\r\n submitted: boolean = false;\r\n\r\n\r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private router: Router,\r\n private Service: SharedService,\r\n private Global: GlobalService,\r\n private dialogRef: MatDialogRef,\r\n ) { }\r\n\r\n\r\n ngOnInit(): void {\r\n this.companyUpdateForm = this.formBuilder.group({\r\n Id :['',null],\r\n CompanyEmail: ['', [Validators.required, Validators.maxLength(150), Validators.pattern(\"^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$\")]],\r\n CompanyProfileName: ['', null],\r\n CompanyName: ['', Validators.required],\r\n IndustryType: ['', null],\r\n IndustryTypeId :['', Validators.required],\r\n Address1: ['', Validators.required],\r\n Address2: ['', null],\r\n CityId: ['', [Validators.required]],\r\n CityName: ['', null],\r\n StateId: ['', [Validators.required]],\r\n StateName: ['', null],\r\n CountryId: ['', [Validators.required]],\r\n CountryName: ['', null],\r\n PinCode: ['', [Validators.required, Validators.maxLength(6)]],\r\n WebSite: ['', null],\r\n LinkedInPage: ['', null],\r\n Logo: ['', null],\r\n Description: ['', Validators.required],\r\n FirstName: ['', Validators.required],\r\n LastName: ['', Validators.required],\r\n MobileNo: ['', Validators.required],\r\n })\r\n\r\n this.getcompanydatabyId();\r\n this.Service.Get('Country/GetCountry?Id=0', null).subscribe(country => {\r\n this.allCountries = country;\r\n });\r\n\r\n\r\n this.Service.Get('State/GetStateData?Id=0', null).subscribe(state => {\r\n this.allStates = state;\r\n })\r\n this.Service.Get('City/GetCity?Id=0', null).subscribe(city => {\r\n this.allCities = city;\r\n })\r\n\r\n this.Service.Get('IndustryTypes/GetIndustryTypes?Id=0', null).subscribe(Industry => {\r\n this.allIndustry = Industry;\r\n })\r\n }\r\n\r\n get f(): { [key: string]: AbstractControl } {\r\n return this.companyUpdateForm.controls;\r\n }\r\n\r\n close(){\r\n this.dialogRef.close(); \r\n }\r\n \r\n baiscInfoForm() {\r\n this.submitted = true;\r\n if (this.companyUpdateForm.invalid) {\r\n this.toastr.error('This data is not Valid');\r\n }\r\n else {\r\n const updatepersonalinfo = this.companyUpdateForm.getRawValue();\r\n updatepersonalinfo.Logo = this.base64textString[0];\r\n this.Service.Put('Company/UpdateCompanyData', updatepersonalinfo).subscribe(\r\n (res) => {\r\n this.toastr.success(res);\r\n this.getcompanydatabyId();\r\n this.dialogRef.close('Update'); \r\n\r\n\r\n },\r\n (error) => {\r\n\r\n this.toastr.error(error.error);\r\n });\r\n this.submitted = false;\r\n }\r\n }\r\n\r\n\r\n getcompanydatabyId() {\r\n\r\n this.Service.Get('Company/GetCompanyData?Id=' + this.Global.getuserId(), null).subscribe(\r\n (res) => {\r\n this.info = res;\r\n this.companyUpdateForm.controls[\"Id\"].setValue(this.info[0].Id);\r\n this.companyUpdateForm.controls[\"CompanyName\"].setValue(this.info[0].CompanyName);\r\n this.companyUpdateForm.controls[\"CompanyEmail\"].setValue(this.info[0].CompanyEmail);\r\n this.companyUpdateForm.controls[\"IndustryTypeId\"].setValue(this.info[0].IndustryTypeId);\r\n this.companyUpdateForm.controls[\"Address1\"].setValue(this.info[0].Address1);\r\n this.companyUpdateForm.controls[\"Address2\"].setValue(this.info[0].Address2);\r\n this.companyUpdateForm.controls[\"PinCode\"].setValue(this.info[0].PinCode);\r\n this.companyUpdateForm.controls[\"WebSite\"].setValue(this.info[0].WebSite);\r\n this.companyUpdateForm.controls[\"LinkedInPage\"].setValue(this.info[0].LinkedInPage);\r\n this.companyUpdateForm.controls[\"CityId\"].setValue(this.info[0].CityId);\r\n this.companyUpdateForm.controls[\"StateId\"].setValue(this.info[0].StateId);\r\n this.companyUpdateForm.controls[\"CountryId\"].setValue(this.info[0].CountryId);\r\n this.companyUpdateForm.controls[\"Description\"].setValue(this.info[0].Description);\r\n this.companyUpdateForm.controls[\"FirstName\"].setValue(this.info[0].FirstName);\r\n this.companyUpdateForm.controls[\"LastName\"].setValue(this.info[0].LastName);\r\n this.companyUpdateForm.controls[\"MobileNo\"].setValue(this.info[0].MobileNo);\r\n this.companyUpdateForm.controls[\"Logo\"].setValue(this.info[0].Logo);\r\n this.Global.setCandidateId(this.info[0].Id);\r\n \r\n this.image = this.info[0].Logo;\r\n\r\n\r\n })\r\n\r\n }\r\n onchangeCountry(event) {\r\n this.Service.Get('State/GetStateByCountry?countryId=' + event, null).subscribe(state => {\r\n this.allStates = state;\r\n });\r\n }\r\n\r\n onchangeState(event) {\r\n this.Service.Get('City/GetCityDataByState?StateId=' + event, null).subscribe(city => {\r\n this.allCities = city;\r\n })\r\n }\r\n\r\n\r\n Uploadcompanylogo(event: any) {\r\n this.fileType = event.target.files[0].type\r\n var files = event.target.files;\r\n var file = files[0];\r\n if (files && file) {\r\n var reader = new FileReader();\r\n reader.onload = this._handleReaderLoadedCompany.bind(this);\r\n reader.readAsBinaryString(file);\r\n }\r\n }\r\n\r\n _handleReaderLoadedCompany(readerEvt) {\r\n var binaryString = readerEvt.target.result;\r\n this.base64textString = [];\r\n // this.base64textString = btoa(binaryString);\r\n // this.base64textString = 'data:' + this.fileType + ';base64,' + this.base64textString;\r\n this.base64textString.push('data:' + this.fileType + ';base64,' + btoa(readerEvt.target.result));\r\n }\r\n\r\n\r\n\r\n ngOnDestroy(): void {\r\n\r\n }\r\n}\r\n","\r\n\r\n","import { Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { FormGroup, FormBuilder, Validators, FormControl, AbstractControl } from '@angular/forms';\r\nimport { Router } from \"@angular/router\";\r\nimport { Observable } from 'rxjs';\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport { CollegeInformation } from 'src/app/interface';\r\nimport userToken from 'src/app/components/config/userToken';\r\nimport { ThrowStmt } from '@angular/compiler';\r\n\r\n@Component({\r\n selector: 'app-companyhome',\r\n templateUrl: './companyhome.component.html',\r\n styleUrls: ['./companyhome.component.scss']\r\n})\r\n\r\nexport class CompanyHomeComponent implements OnInit, OnDestroy{\r\n\r\n getcompanyData:CollegeInformation;\r\n profile:boolean = true;\r\n shortlist:boolean = false;\r\n changepass:boolean = false;\r\n // userId: number = userToken.id;\r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private router: Router,\r\n private Service: SharedService,\r\n private Global: GlobalService\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.getUser();\r\n \r\n }\r\n\r\n\r\n getUser() {\r\n this.Service.Get('Company/GetCompanyData?Id=' + this.Global.getuserId(), null).subscribe(\r\n (res) => {\r\n this.getcompanyData = res;\r\n }, \r\n (error) => {\r\n this.toastr.error(error.error);\r\n }\r\n );\r\n }\r\n\r\nprofileclick(){\r\n this.profile = true;\r\n this.shortlist = false;\r\n this.changepass = false\r\n\r\n}\r\n\r\nshortlistclick(){\r\nthis.shortlist = true;\r\nthis.profile = false;\r\nthis.changepass = false;\r\n}\r\n\r\nchangepassword(){\r\n this.changepass = true ;\r\n this.shortlist = false ;\r\n this.profile = false;\r\n}\r\n ngOnDestroy(): void {\r\n \r\n }\r\n}","\r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n
Profile Information
\r\n
\r\n \r\n
\r\n
ShortListed Candidate
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","import { Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { Router } from '@angular/router';\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport { Observable } from 'rxjs';\r\nimport { cities, JobRole, Qualificationa } from 'src/app/interface';\r\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport { AuthService } from 'src/app/auth.service';\r\n\r\n@Component({\r\n selector: 'app-companymanagejob',\r\n templateUrl: './companymanagejob.component.html',\r\n styleUrls: ['./companymanagejob.component.scss']\r\n})\r\n\r\nexport class CompanyManageJobComponent implements OnInit, OnDestroy {\r\n\r\n jobPostsInfo = [];\r\n allJobRole: Observable;\r\n allQualification: Observable;\r\n allCities: Observable\r\n obs: any;\r\n dataFilter: number[] = [];\r\n data: any;\r\n cityControl = new FormControl();\r\n EducationControl = new FormControl();\r\n jobTypeControl = new FormControl();\r\n datasource: any;\r\n page: number = 1;\r\n pagesize: number = 10;\r\n totalItems: number = 0;\r\n datapageInfo: any;\r\n totalpages: number;\r\n Active: boolean = false;\r\n Close: boolean = false;\r\n Expired: boolean = false;\r\n jobpostcount: number;\r\n SearchLocation: string = '';\r\n order: string = 'ASC';\r\n SearchJobRole: string = '';\r\n manageForm: FormGroup;\r\n\r\n constructor(\r\n private Service: SharedService,\r\n private toastr: ToastrService,\r\n private router: Router,\r\n public Global: GlobalService,\r\n private auth: AuthService,\r\n private formBuilder: FormBuilder,\r\n ) \r\n {\r\n\r\n }\r\n\r\n ngOnInit(): void \r\n {\r\n this.manageForm = this.formBuilder.group({\r\n PageSearch: [null, Validators.nullValidator],\r\n });\r\n this.manageForm.controls[\"PageSearch\"].setValue(this.page);\r\n this.getAllActiveJobs();\r\n this.getpostjobcount()\r\n }\r\n\r\n getAllJobs() \r\n {\r\n this.Active = false;\r\n this.Close = false;\r\n this.Expired = true;\r\n this.Service.Post('Job/GetJobsCardDataByForComapany?userid=' + this.Global.getuserId() + '&pageno=' + this.page + '&noOfRecords=' + this.pagesize +\r\n '&order=' + this.order + '&searchJobRole=' + this.SearchJobRole + '&searchLocation=' + this.SearchLocation + '&JobStatus=2', null).subscribe(\r\n (res) => {\r\n this.jobPostsInfo = res[0];\r\n this.obs = this.jobPostsInfo;\r\n this.datapageInfo = res[1];\r\n this.jobPostsInfo.length\r\n if (this.datapageInfo[0].length) {\r\n this.totalItems = this.datapageInfo[0].length;\r\n this.totalpages = Math.ceil(this.totalItems / 10);\r\n }\r\n },\r\n (error) => {\r\n this.toastr.error(error.error.message);\r\n });\r\n }\r\n\r\n getAllCloseJobs() \r\n {\r\n this.Active = false;\r\n this.Close = true;\r\n this.Expired = false;\r\n this.Service.Post('Job/GetJobsCardDataByForComapany?userid=' + this.Global.getuserId() + '&pageno=' + this.page + '&noOfRecords=' + this.pagesize +\r\n '&order=' + this.order + '&searchJobRole=' + this.SearchJobRole + '&searchLocation=' + this.SearchLocation + '&JobStatus=1', null).subscribe(\r\n (res) => {\r\n this.jobPostsInfo = res[0];\r\n this.obs = this.jobPostsInfo;\r\n this.datapageInfo = res[1];\r\n this.jobPostsInfo.length\r\n if (this.datapageInfo[0].length) {\r\n this.totalItems = this.datapageInfo[0].length;\r\n this.totalpages = Math.ceil(this.totalItems / 10);\r\n }\r\n\r\n },\r\n (error) => {\r\n this.toastr.error(error.error.message);\r\n });\r\n }\r\n\r\n getAllActiveJobs() \r\n {\r\n this.Active = true;\r\n this.Close = false;\r\n this.Expired = false;\r\n\r\n this.Service.Post('Job/GetJobsCardDataByForComapany?userid=' + this.Global.getuserId() + '&pageno=' + this.page + '&noOfRecords=' + this.pagesize +\r\n '&order=' + this.order + '&searchJobRole=' + this.SearchJobRole + '&searchLocation=' + this.SearchLocation + '&JobStatus=0', null).subscribe(\r\n (res) => {\r\n this.jobPostsInfo = res[0];\r\n this.obs = this.jobPostsInfo;\r\n this.datapageInfo = res[1];\r\n this.jobPostsInfo.length\r\n if (this.datapageInfo[0].length) {\r\n this.totalItems = this.datapageInfo[0].length;\r\n this.totalpages = Math.ceil(this.totalItems / 10);\r\n }\r\n },\r\n (error) => {\r\n this.toastr.error(error.error.message);\r\n });\r\n }\r\n\r\n\r\n GOTO()\r\n {\r\n if (this.Active == true) {\r\n this.getAllActiveJobs();\r\n }\r\n if (this.Close == true) {\r\n this.getAllCloseJobs();\r\n }\r\n if (this.Expired == true) {\r\n this.getAllJobs();\r\n }\r\n\r\n }\r\n\r\n\r\n Previous() \r\n {\r\n if (this.page > 1) {\r\n this.page = this.page - 1\r\n this.manageForm.controls[\"PageSearch\"].setValue(this.page);\r\n\r\n this.pagesize;\r\n if (this.Active == true) {\r\n this.getAllActiveJobs();\r\n }\r\n if (this.Close == true) {\r\n this.getAllCloseJobs();\r\n }\r\n if (this.Expired == true) {\r\n this.getAllJobs();\r\n }\r\n } else {\r\n\r\n }\r\n\r\n }\r\n\r\n Next() \r\n {\r\n if (this.totalpages > this.page) {\r\n this.page = this.page + 1\r\n this.manageForm.controls[\"PageSearch\"].setValue(this.page);\r\n\r\n if (this.Active == true) {\r\n this.getAllActiveJobs();\r\n }\r\n if (this.Close == true) {\r\n this.getAllCloseJobs();\r\n }\r\n if (this.Expired == true) {\r\n this.getAllJobs();\r\n }\r\n }\r\n }\r\n\r\n GoToPage(event: Event) {\r\n var value = (event.target as HTMLInputElement).value;\r\n if (+value > this.totalpages\r\n || +value < 0) {\r\n this.toastr.success('Page no Should be between : 0 And ' + this.totalpages);\r\n }\r\n else \r\n {\r\n this.page = +value;\r\n if (this.Active == true) {\r\n this.getAllActiveJobs();\r\n }\r\n if (this.Close == true) {\r\n this.getAllCloseJobs();\r\n }\r\n if (this.Expired == true) {\r\n this.getAllJobs();\r\n }\r\n }\r\n }\r\n\r\n getpostjobcount() {\r\n this.Service.Get('Job/GetCompanyWiseJobPostCount?userId=' + this.Global.getuserId(), null).subscribe(jobrole => {\r\n this.jobpostcount = jobrole;\r\n })\r\n }\r\n\r\n Searchjobtitles(event: Event) {\r\n this.SearchJobRole = (event.target as HTMLInputElement).value;\r\n if (this.Active == true) {\r\n this.getAllActiveJobs();\r\n }\r\n if (this.Close == true) {\r\n this.getAllCloseJobs();\r\n }\r\n if (this.Expired == true) {\r\n this.getAllJobs();\r\n }\r\n }\r\n\r\n Searchjoblocation(event: Event) {\r\n this.SearchLocation = (event.target as HTMLInputElement).value;\r\n if (this.Active == true) {\r\n this.getAllActiveJobs();\r\n }\r\n if (this.Close == true) {\r\n this.getAllCloseJobs();\r\n }\r\n if (this.Expired == true) {\r\n this.getAllJobs();\r\n }\r\n }\r\n\r\n onchangeOrder(event) {\r\n this.order = event;\r\n if (this.Active == true) {\r\n this.getAllActiveJobs();\r\n }\r\n if (this.Close == true) {\r\n this.getAllCloseJobs();\r\n }\r\n if (this.Expired == true) {\r\n this.getAllJobs();\r\n }\r\n }\r\n\r\n getAllJobRole() \r\n {\r\n this.Service.Get('JobRole/GetJobRole?Id=0', null).subscribe(jobrole => {\r\n this.allJobRole = jobrole;\r\n })\r\n }\r\n\r\n getAllQualification() \r\n {\r\n this.Service.Get('Qualification/GetQualification?Id=0', null).subscribe(Qualificationa => {\r\n this.allQualification = Qualificationa;\r\n })\r\n }\r\n\r\n getAllCity() \r\n {\r\n this.Service.Get('City/GetCity?Id=0', null).subscribe(city => {\r\n this.allCities = city;\r\n })\r\n }\r\n\r\n JobClick(jobpost: any) \r\n {\r\n this.auth.setJobPostId(jobpost.Id);\r\n this.router.navigate(['job-details']);\r\n }\r\n\r\n OnMatCardClickEvent(Jobpost: any) \r\n {\r\n this.Global.setjobTypeId(Jobpost.Id);\r\n this.router.navigate(['edit-job-post']);\r\n }\r\n\r\n isReadMore = true\r\n isReadMore1 = true\r\n\r\n showText() \r\n {\r\n this.isReadMore = !this.isReadMore\r\n }\r\n\r\n showspecficationText() \r\n {\r\n this.isReadMore1 = !this.isReadMore1\r\n }\r\n\r\n PostJob() \r\n {\r\n this.router.navigate(['/post-a-job']);\r\n }\r\n\r\n ngOnDestroy(): void {\r\n\r\n }\r\n\r\n}\r\n","\r\n\r\n\r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n\r\n \r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
short by:
\r\n
\r\n
\r\n
Posting Date
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
order:
\r\n
\r\n \r\n ASC \r\n DESC \r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n
{{jobpost.JobNumber}} \r\n
{{jobpost.JobRole}} \r\n
\r\n {{jobpost.JobLocationCity}}-{{jobpost.StateName}},\r\n {{jobpost.CountryName}}\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
Posted: {{jobpost.JobPostedDate | date:'MMMM dd,YYYY'}}
\r\n
Ends: {{jobpost.TargetDate | date:'MMMM dd,YYYY'}}
\r\n
\r\n \r\n \r\n\r\n
submitted resume
\r\n\r\n
{{jobpost.CandidateResumeCount}}
\r\n\r\n
Selected
\r\n\r\n
{{jobpost.JoinCandidateCount}}
\r\n\r\n
Job status
\r\n\r\n
\r\n
\r\n
{{jobpost.Jobstatus}}
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n
Manage Jobs
\r\n\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
Active Jobs ({{jobpostcount[0].ActiveJob}})
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
Closed Jobs ({{jobpostcount[0].CloseJob}})
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
Expired Jobs ({{jobpostcount[0].ExpiredJobs}})\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n Goto Page \r\n
\r\n
\r\n Previous \r\n
\r\n
\r\n Next \r\n
\r\n
\r\n Total Records : {{totalItems}} \r\n
\r\n
\r\n Total Pages : {{totalpages}} \r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n\r\n\r\n","import { Component, OnDestroy, OnInit } from '@angular/core';\nimport { ToastrService } from 'ngx-toastr';\nimport { FormGroup, FormBuilder, Validators, FormControl, AbstractControl } from '@angular/forms';\nimport { CompanyEditService } from './services/company-edit.service'\nimport { ActivatedRoute, Router } from '@angular/router';\n\n@Component({\n selector: 'app-company-edit',\n templateUrl: './company-edit.component.html',\n styleUrls: ['./company-edit.component.scss']\n})\nexport class CompanyEditComponent implements OnInit, OnDestroy {\n companyId: number = this.route.snapshot.params.id;\n submittedComp: boolean = false;\n companyForm: FormGroup;\n public companyInfo: any;\n\n constructor(private route: ActivatedRoute,\n private formBuilder: FormBuilder,\n private companyEditService: CompanyEditService,\n private toastr: ToastrService,\n private router: Router\n ) { }\n\n ngOnInit(): void {\n this.companyForm = this.formBuilder.group({\n company_name: [null, Validators.required],\n ceo_name: [\"\", Validators.required],\n hr_head_department: [\"\", Validators.required],\n job_designation: [\"\", Validators.required],\n industry: [\"\", Validators.required],\n ownership_type: [\"\", Validators.required],\n company_address: [\"\", Validators.required],\n company_description: [null, Validators.required],\n origin_of_company: [\"\", Validators.required],\n number_of_offices: [\"\", Validators.required],\n contact_email: [\"\", Validators.required],\n contact_person: [null, Validators.required],\n company_url: [\"\", Validators.required],\n number_of_employees: [\"\", Validators.required],\n operating_since: [\"\", Validators.required],\n company_logo: [\"\"],\n office_number: [null, Validators.required],\n mobile_number: [\"\", Validators.required],\n is_default: false,\n is_active: true\n });\n\n this.getCompanysDataById(this.companyId);\n }\n\n get fcomp(): { [key: string]: AbstractControl } {\n return this.companyForm.controls;\n }\n\n getCompanysDataById(id: number) {\n this.companyEditService.findOneCompany(id).subscribe(\n (res) => {\n this.companyInfo = res.data;\n this.editComp(this.companyId);\n },\n (error) => {\n //if (error.status == 401) this.router.navigate(['/login']);\n this.toastr.error(error.error.message);\n });\n }\n\n companyUpdateForm() {\n let id = this.companyId;\n this.submittedComp = true;\n if (this.companyForm.invalid) {\n this.toastr.error(\"this.response.message\");\n }\n else {\n this.companyEditService.companyUpdateForm(this.companyForm.value, id).subscribe(\n (res) => {\n this.toastr.success(res.message);\n this.getCompanysDataById(id);\n },\n (error) => {\n //if (error.status == 401) this.router.navigate(['/login']);\n this.toastr.error(error.error.message);\n });\n this.submittedComp = false;\n }\n }\n\n editComp(i: number) {\n // this.compId = this.companyInfo[i].id;\n\n this.companyForm.controls.company_name.setValue(this.companyInfo.company_name);\n this.companyForm.controls.ceo_name.setValue(this.companyInfo.ceo_name);\n this.companyForm.controls.hr_head_department.setValue(this.companyInfo.hr_head_department);\n this.companyForm.controls.job_designation.setValue(this.companyInfo.job_designation);\n this.companyForm.controls.industry.setValue(this.companyInfo.industry);\n this.companyForm.controls.ownership_type.setValue(this.companyInfo.ownership_type);\n this.companyForm.controls.company_address.setValue(this.companyInfo.company_address);\n this.companyForm.controls.company_description.setValue(this.companyInfo.company_description);\n this.companyForm.controls.origin_of_company.setValue(this.companyInfo.origin_of_company);\n this.companyForm.controls.number_of_offices.setValue(this.companyInfo.number_of_offices);\n this.companyForm.controls.contact_email.setValue(this.companyInfo.contact_email);\n this.companyForm.controls.contact_person.setValue(this.companyInfo.contact_person);\n this.companyForm.controls.company_url.setValue(this.companyInfo.company_url);\n this.companyForm.controls.number_of_employees.setValue(this.companyInfo.number_of_employees);\n this.companyForm.controls.operating_since.setValue(this.companyInfo.operating_since);\n this.companyForm.controls.company_logo.setValue(this.companyInfo.company_logo);\n this.companyForm.controls.office_number.setValue(this.companyInfo.office_number);\n this.companyForm.controls.mobile_number.setValue(this.companyInfo.mobile_number);\n this.companyForm.controls.is_default.setValue(this.companyInfo.is_default);\n\n }\n\n ngOnDestroy(): void {\n\n }\n}\n","\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n\n
\n\n \n
Company \n\n
\n\n\n
\n\n
\n\n
\n\n
\n\n
\n\n
\n\n
\n\n
\n\n
\n\n
\n\n
\n\n
\n\n
\n\n
\n\n
\n\n
\n\n
\n\n
\n
\n \n Currently Working here \n
\n
\n\n
\n
\n \n Update Your Information\n \n \n
\n
\n
\n\n\n\n\n \n\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport config from '../../../../config/config';\nimport userToken from \"../../../../config/userToken\";\n\n@Injectable({\n providedIn: 'root'\n})\nexport class CompanyEditService {\n host: string = config.host;\n token: any = userToken.token;\n userId: string = userToken.id;\n\n httpOptions = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n 'Access-Control-Allow-Origin': '*',\n 'Access-Control-Allow-Headers': 'Authorization, X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Allow-Request-Method',\n 'Authorization': 'Bearer ' + this.token,\n 'Access-Control-Allow-Methods': 'GET,POST,OPTIONS,DELETE,PUT',\n 'Allow': 'GET, POST, OPTIONS, PUT, DELETE'\n })\n };\n\n constructor(private http: HttpClient) { }\n\n findOneCompany(id: number){\n return this.http.get(`${this.host}/api/employer/company/getOne?id=${id}`, this.httpOptions);\n }\n companyUpdateForm(data: any, id: number) {\n\n data.is_default = Boolean(data.is_default);\n data.is_active = Boolean(data.is_active);\n data.office_number = Number(data.office_number);\n data.mobile_number = Number(data.mobile_number);\n\n let companyData = {\n ...data,\n employerId: this.userId\n }\n return this.http.put(`${this.host}/api/employer/company/update?id=${id}`, companyData, this.httpOptions);\n\n }\n}\n","import { Component, OnDestroy, OnInit } from '@angular/core';\nimport { FormGroup, FormBuilder, Validators, FormControl, AbstractControl } from '@angular/forms';\nimport { ToastrService } from 'ngx-toastr';\nimport { CompanyListService } from \"./services/company-list.service\";\nimport { Router } from \"@angular/router\";\n\n@Component({\n selector: 'app-companyList',\n templateUrl: './companyList.component.html',\n styleUrls: ['./companyList.component.scss'],\n})\nexport class CompanyListComponent implements OnInit, OnDestroy {\n\n submittedComp: boolean = false;\n companyForm: FormGroup;\n public companyInfo = [];\n compId: number = null;\n\n compActive: boolean = false;\n compDeactive: boolean = !this.compActive;\n\n constructor(private formBuilder: FormBuilder,\n private toastr: ToastrService,\n private companyListService: CompanyListService,\n private router: Router\n ) { }\n\n ngOnInit(): void {\n // this.companyForm = this.formBuilder.group({\n // company_name: [],\n // ceo_name: [],\n // hr_head_department: [],\n // job_designation: [],\n // industry: [],\n // ownership_type: [],\n // company_address: [],\n // company_description: [],\n // origin_of_company: [],\n // number_of_offices: [],\n // contact_email: [],\n // contact_person: [],\n // company_url: [],\n // number_of_employees: [],\n // operating_since: [],\n // company_logo: [],\n // office_number: [],\n // mobile_number: [],\n // is_default: [],\n // is_active: true\n // });\n this.getAllCompanysData();\n }\n\n getAllCompanysData() {\n this.companyListService.findAllCompanys().subscribe(\n (res) => {\n this.companyInfo = res.data;\n },\n (error) => {\n //if (error.status == 401) this.router.navigate(['/login']);\n this.toastr.error(error.error.message);\n });\n }\n\n\n activate(i: number) {\n this.compActive = false;\n this.compDeactive = !this.compActive;\n this.compId = i;\n console.log(\"compname:\", this.companyInfo[this.compId].company_name);\n\n // this.companyListService.activation(this.companyForm.value, i).subscribe(\n // (res) => {\n // this.toastr.success(res.message);\n // this.getAllCompanysData();\n // },\n // (error) => {\n // //if (error.status == 401) this.router.navigate(['/login']);\n // this.toastr.error(error.error.message);\n // });\n }\n\n deactivate(i: number) {\n this.compActive = true;\n this.compDeactive = !this.compActive;\n this.compId = i;\n console.log(\"compname:\", this.companyInfo[this.compId].company_name);\n\n\n // this.companyListService.activation(this.companyForm.value, i).subscribe(\n // (res) => {\n // this.toastr.success(res.message);\n // this.getAllCompanysData();\n // },\n // (error) => {\n // //if (error.status == 401) this.router.navigate(['/login']);\n // this.toastr.error(error.error.message);\n // });\n }\n\n ngOnDestroy(): void {\n\n }\n}\n","\n \n\n\n\n\n
\n
\n
\n
\n
CompaniesList \n
\n
Create \n
\n
\n
\n
\n
\n\n\n
\n
\n
\n
No Companies Found \n \n
\n
\n
\n\n0\" class=\"person-details-area resume-area ptb-100\">\n
\n
\n\n\n \n\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport config from '../../../../config/config';\nimport userToken from \"../../../../config/userToken\";\n\n@Injectable({\n providedIn: 'root'\n})\nexport class CompanyListService {\n host: string = config.host;\n token: any = userToken.token;\n userId: string = userToken.id;\n\n httpOptions = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n 'Access-Control-Allow-Origin': '*',\n 'Access-Control-Allow-Headers': 'Authorization, X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Allow-Request-Method',\n 'Authorization': 'Bearer ' + this.token,\n 'Access-Control-Allow-Methods': 'GET,POST,OPTIONS,DELETE,PUT',\n 'Allow': 'GET, POST, OPTIONS, PUT, DELETE'\n })\n };\n\n constructor(private http: HttpClient) { }\n\n findOneCompany(id: number) {\n return this.http.get(`${this.host}/api/employer/company/getOne?id=${id}`, this.httpOptions);\n }\n\n findAllCompanys() {\n return this.http.get(`${this.host}/api/employer/company/getAll`, this.httpOptions);\n }\n\n //is_active\n activation(data: any, id: number) {\n data.is_default = Boolean(data.is_default);\n data.is_active = !Boolean(data.is_active);\n data.office_number = Number(data.office_number);\n data.mobile_number = Number(data.mobile_number);\n\n let companyData = {\n ...data,\n employerId: this.userId\n }\n return this.http.put(`${this.host}/api/employer/company/update?id=${id}`, companyData, this.httpOptions);\n }\n\n}\n","import { Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { FormGroup, FormBuilder, Validators, FormControl, AbstractControl } from '@angular/forms';\r\nimport { Router } from \"@angular/router\";\r\nimport { Observable } from 'rxjs';\r\nimport { SharedService } from 'src/app/shared.service';\r\n\r\n@Component({\r\n selector: 'app-companysignup',\r\n templateUrl: './companysignup.component.html',\r\n styleUrls: ['./companysignup.component.scss']\r\n})\r\nexport class CompanySignupComponent implements OnInit, OnDestroy {\r\n submittedComp: boolean = false;\r\n companyForm: FormGroup;\r\n public companyInfo = [];\r\n allIndustry: Observable;\r\n allCountries: Observable;\r\n allStates: Observable;\r\n allCities: Observable;\r\n compId: number = null;\r\n emailPattern = \"^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}$\";\r\n fileType: string = '';\r\n base64textString: string[] = [];\r\n\r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private router: Router,\r\n private Service:SharedService\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.companyForm = this.formBuilder.group({\r\n CompanyName: [null, Validators.required],\r\n CompanyEmail: ['', [Validators.required, Validators.maxLength(150), Validators.pattern(\"^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$\")]],\r\n IndustryTypeId: [\"\", Validators.required],\r\n Address1: [\"\", [Validators.required, Validators.maxLength(150)]],\r\n Address2: [\"\", null],\r\n Description:[\"\", Validators.required],\r\n CountryId: [\"\", Validators.required],\r\n StateId: [\"\", Validators.required],\r\n CityId: [\"\", Validators.required],\r\n PinCode: [\"\", Validators.required],\r\n WebSite: [\"\", null],\r\n LinkedInPage: [\"\", null],\r\n firstname: [null, Validators.required],\r\n lastname: [\"\", Validators.required],\r\n MobileNo: [\"\", Validators.required],\r\n CompanyProfileName: [\"\", null],\r\n Logo:['',[Validators.nullValidator]],\r\n UserTypeId: [2],\r\n CountryISDCode: ['', Validators.nullValidator],\r\n\r\n });\r\n this.allIndustry = this.Service.Get('IndustryTypes/GetIndustryTypes?Id=0', null);\r\n this.allCountries = this.Service.Get('Country/GetCountryISDCode?Id=0', null);\r\n this.companyForm.value.CountryISDCode.Sele\r\n }\r\n\r\n get fcomp(): { [key: string]: AbstractControl } {\r\n return this.companyForm.controls;\r\n }\r\n onchangeCountry(event) {\r\n this.allStates = this.Service.Get('State/GetStateByCountry?countryId=' + event, null);\r\n }\r\n onchangeCity(event) {\r\n this.allCities = this.Service.Get('City/GetCityDataByState?StateId=' + event, null);\r\n }\r\n companyInfoForm() {\r\n\r\n this.submittedComp = true;\r\n if (this.companyForm.invalid) {\r\n this.toastr.error(\"Enter All Required Values\");\r\n }\r\n else {\r\n const company = this.companyForm.getRawValue();\r\n company.Logo = this.base64textString[0];\r\n var UserName = this.companyForm.value.CompanyEmail;\r\n this.companyForm.value.CompanyProfileName = this.companyForm.value.CompanyName;\r\n company.CompanyProfileName = this.companyForm.value.CompanyName;\r\n this.Service.Post('Company/InsertCompanyData', company).subscribe(\r\n (res) => {\r\n this.toastr.success(res);\r\n this.companyForm.reset();\r\n // this.Service.Post('ResetPassword?loginName=' + UserName, null).subscribe(\r\n // (res) => {\r\n // this.toastr.success(res);\r\n // },\r\n // )\r\n this.router.navigate(['/login']);\r\n },\r\n (error) => {\r\n //if (error.status == 401) this.router.navigate(['/login']);\r\n this.toastr.error(error.error);\r\n });\r\n this.submittedComp = false;\r\n }\r\n }\r\n\r\n Uploadcompanylogo(event: any) {\r\n this.fileType = event.target.files[0].type\r\n var files = event.target.files;\r\n var file = files[0];\r\n if (files && file) {\r\n var reader = new FileReader();\r\n reader.onload = this._handleReaderLoadedCompany.bind(this);\r\n reader.readAsBinaryString(file);\r\n }\r\n }\r\n\r\n _handleReaderLoadedCompany(readerEvt) {\r\n var binaryString = readerEvt.target.result;\r\n this.base64textString.push('data:' + this.fileType + ';base64,' + btoa(readerEvt.target.result));\r\n }\r\n\r\n\r\n \r\n\r\n ngOnDestroy(): void {\r\n }\r\n\r\n\r\n\r\n}\r\n","\r\n\r\n","import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { Router } from '@angular/router';\r\n\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport { MatTableDataSource } from '@angular/material/table';\r\nimport { CompanyInformation } from 'src/app/interface';\r\nimport { MatPaginator } from '@angular/material/paginator';\r\n\r\n\r\n@Component({\r\n selector: 'app-companytable',\r\n templateUrl: './companytable.component.html',\r\n styleUrls: ['./companytable.component.scss']\r\n})\r\nexport class CompanyTableComponent implements OnInit, OnDestroy {\r\n\r\n displayedColumns: string[] = [ 'JobCompanyName' , 'IndustryType','CityName'];\r\n datasource: MatTableDataSource;\r\n @ViewChild(MatPaginator) paginator!: MatPaginator;\r\n \r\n constructor(\r\n private toastr: ToastrService,\r\n private router: Router,\r\n private service: SharedService\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.getCompany()\r\n }\r\n\r\n getCompany() {\r\n \r\n this.service.Get('Company/GetCompanyDataforOwner?Id=0', null).subscribe(data => {\r\n this.datasource = new MatTableDataSource(data);\r\n this.datasource.paginator = this.paginator;\r\n },\r\n (error) => {\r\n //if (error.status == 401) this.router.navigate(['/login']);\r\n this.toastr.error(error.error);\r\n });\r\n }\r\n applyFilter(event: Event) {\r\n const filterValue = (event.target as HTMLInputElement).value;\r\n this.datasource.filter = filterValue.trim().toLowerCase();\r\n }\r\n ngOnDestroy(): void {\r\n\r\n }\r\n \r\n}\r\n","\r\n \r\n\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n
Companies\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n Companies\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n Company Name \r\n {{element.CompanyName}} \r\n \r\n \r\n \r\n Industry Type \r\n {{element.IndustryType}} \r\n \r\n \r\n \r\n City Name \r\n {{element.CityName}} \r\n \r\n \r\n \r\n \r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n\r\n \r\n
\r\n\r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n","import { Component, OnInit, Inject } from '@angular/core';\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\n\n@Component({\n selector: 'app-confirm-dialog',\n templateUrl: './confirm-dialog.component.html',\n styleUrls: ['./confirm-dialog.component.css']\n})\nexport class ConfirmDialogComponent implements OnInit {\n\n title: string;\n message: string;\n constructor(public dialogRef: MatDialogRef,\n @Inject(MAT_DIALOG_DATA) public data: ConfirmDialogModel) {\n // Update view with given values\n this.title = data.title;\n this.message = data.message;\n }\n\n ngOnInit(): void {\n\n }\n\n onConfirm(): void {\n // Close the dialog, return true\n this.dialogRef.close(true);\n }\n\n onDismiss(): void {\n // Close the dialog, return false\n this.dialogRef.close(false);\n }\n\n}\n\nexport class ConfirmDialogModel {\n\n constructor(\n public title: string,\n public message: string\n ) { }\n}\n","\n {{title}}\n \n\n\n\n\n \n Yes\n \n \n No\n \n
","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-contact',\n templateUrl: './contact.component.html',\n styleUrls: ['./contact.component.scss']\n})\nexport class ContactComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","\n \n\n\n\n\n
\n
\n
\n
\n
Contact \n
\n \n \n Home \n \n / \n Contact \n \n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n","import { ViewportScroller } from '@angular/common';\r\nimport { Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport { Bookmark } from 'src/app/interface';\r\nimport { SharedService } from 'src/app/shared.service';\r\n\r\n@Component({\r\n selector: 'app-bookjobs',\r\n templateUrl: './BookMark-jobs.component.html',\r\n styleUrls: ['./BookMark-jobs.component.scss']\r\n})\r\nexport class BookMarkjobsComponent implements OnInit, OnDestroy {\r\n jobPostsInfo = [];\r\n bookmarkdatasource: any;\r\n page: number = 1;\r\n pagesize: number = 5;\r\n totalItems: number = 0;\r\n datapageInfo: any;\r\n bookmark: Bookmark;\r\n visible: boolean = false\r\n afterClickData: any = null;\r\n obs: any;\r\n addEditForm!: FormGroup;\r\n totalpages: number;\r\n\r\n constructor(\r\n private toastr: ToastrService,\r\n private Service: SharedService,\r\n private Global: GlobalService,\r\n private scroller: ViewportScroller,\r\n private router: Router,\r\n private formBuilder: FormBuilder,\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.addEditForm = this.formBuilder.group({\r\n PageSearch: [null, Validators.nullValidator],\r\n })\r\n this.addEditForm.controls[\"PageSearch\"].setValue(this.page );\r\n this.getAllBookMarkJobs();\r\n }\r\n\r\n getAllBookMarkJobs() {\r\n this.Service.Get('BookMark/GetBookmarkDetails?userid=' + this.Global.getuserId() + '&page=' + this.page + '&pagesize=' + this.pagesize, null).subscribe(\r\n (res) => {\r\n this.jobPostsInfo = res[0];\r\n this.obs = this.jobPostsInfo;\r\n this.bookmarkdatasource = this.jobPostsInfo;\r\n this.datapageInfo = res[1];\r\n this.totalItems = this.datapageInfo[0].length;\r\n this.totalpages = Math.ceil(this.totalItems / 5);\r\n this.CardClick(this.obs[0]);\r\n },\r\n (error) => {\r\n this.toastr.error(error.error);\r\n });\r\n }\r\n\r\n GOTO() {\r\n if (this.page >= 1) {\r\n this.getAllBookMarkJobs();}\r\n }\r\n \r\n Previous() {\r\n \r\n \r\n if (this.page > 1) {\r\n this.page = this.page - 1;\r\n this.addEditForm.controls[\"PageSearch\"].setValue(this.page);\r\n this.getAllBookMarkJobs();\r\n \r\n } else {\r\n \r\n }\r\n \r\n }\r\n \r\n Next() {\r\n if (this.totalpages > this.page) {\r\n this.page = this.page + 1\r\n this.addEditForm.controls[\"PageSearch\"].setValue(this.page);\r\n this.getAllBookMarkJobs();\r\n }\r\n }\r\n \r\n GoToPage(event: Event) {\r\n var value = (event.target as HTMLInputElement).value;\r\n if (+value > this.totalpages\r\n || +value < 0) {\r\n this.toastr.success('Page no Should be between : 1 And ' + this.totalpages);\r\n \r\n }\r\n else {\r\n this.page = +value;\r\n }\r\n }\r\n\r\n \r\n pageChanged(value: any) {\r\n this.page = value;\r\n this.getAllBookMarkJobs();\r\n }\r\n\r\n BookMarked(Jobpost: any) {\r\n this.bookmark = new Bookmark;\r\n this.bookmark.PostedJobId = Jobpost.Id;\r\n this.bookmark.UserId = this.Global.getuserId();\r\n this.Service.Post('Applyjob/Bookmark', this.bookmark).subscribe(data => {\r\n this.toastr.success(data);\r\n this.getAllBookMarkJobs();\r\n\r\n })\r\n }\r\n\r\n CardClick(event) {\r\n this.scroller.scrollToAnchor(\"targetRed\");\r\n if (event == undefined) {\r\n this.visible = false;\r\n }\r\n else {\r\n this.visible = true;\r\n this.afterClickData = event;\r\n }\r\n }\r\n\r\n ApplyNowClick(jobpost: any) {\r\n this.Service.Post('AppliedJob/InsertAppliedJob?jobpostId=' + jobpost, null).subscribe(\r\n (res) => {\r\n this.toastr.success(res);\r\n this.router.navigate(['/candidateappliedjob']);\r\n })\r\n }\r\n\r\n ngOnDestroy(): void {\r\n }\r\n}\r\n","\r\n \r\n\r\n\r\n\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n No Post/Jobs Found\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{jobpost.JobRole}} \r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n Keshav Encon Private Limited \r\n
\r\n
\r\n {{jobpost.JobForName}} \r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
{{jobpost.JobLocationCity}}
\r\n
\r\n
\r\n
\r\n \r\n \r\n\r\n
{{jobpost.MinYearExp}} Years
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n\r\n
Joining Period :\r\n {{jobpost.NoticePerioddays}}
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
Openings: {{jobpost.JobOpening}}
\r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
{{afterClickData.JobRole}} \r\n
\r\n
Keshav Encon Private Limited
\r\n
\r\n
\r\n
{{afterClickData.JobForName}}
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n\r\n
{{afterClickData.JobLocationCity}}
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n {{afterClickData.MinSalary}}-{{afterClickData.MaxSalary}}\r\n Lakh/PY
\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n\r\n
{{afterClickData.MinYearExp}} Years
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n \r\n\r\n
\r\n Joining Period : {{afterClickData.NoticePerioddays}}\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n\r\n
Openings : {{afterClickData.JobOpening}}
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
Posted: \r\n {{afterClickData.PostedDays}} \r\n
\r\n
Apply \r\n
\r\n
Job Details
\r\n
Skill sets
\r\n
\r\n
Educational requirement
\r\n\r\n
\r\n
\r\n {{afterClickData.Qualification}} /\r\n {{afterClickData.AcademicDescription}} \r\n \r\n\r\n \r\n \r\n
\r\n\r\n
Experience\r\n requirement
\r\n\r\n
\r\n
\r\n\r\n Minimum of {{afterClickData.MinYearExp}}\r\n years of\r\n experience in {{afterClickData.PostJobSpecializationDescription}}\r\n {{afterClickData.SpecializationDescription}}\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n\r\n\r\n
\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n Goto Page \r\n
\r\n
\r\n \r\n\r\n
\r\n
\r\n Previous \r\n
\r\n
\r\n Next \r\n
\r\n
\r\n Total Records : {{totalItems}} \r\n
\r\n
\r\n Total Pages : {{totalpages}} \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n \r\n","import { Component, Inject, OnDestroy, OnInit } from '@angular/core';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { FormGroup, FormBuilder, Validators, FormControl, AbstractControl } from '@angular/forms';\r\n\r\nimport { Router } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\n\r\n@Component({\r\n selector: 'app-add-edit-function',\r\n templateUrl: './add-edit-function.component.html',\r\n styleUrls: ['./add-edit-function.component.scss']\r\n})\r\nexport class AddEditCandidateFunctionComponent implements OnInit, OnDestroy {\r\n\r\n submitted: boolean = false;\r\n FunctionInfoForm: FormGroup;\r\n public info: any;\r\n summary: string;\r\n response: any;\r\n openform = false;\r\n boolVar = true;\r\n fileType: string = '';\r\n allfunction: Observable;\r\n hideForm: boolean = false;\r\n hideTable: boolean = true;\r\n saveEduBtn: boolean = true;\r\n updateEduBtn: boolean = false;\r\n public function = [];\r\n submittedEdu: boolean = false;\r\n\r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private Service: SharedService,\r\n private Global: GlobalService,\r\n private dialogRef: MatDialogRef,\r\n @Inject(MAT_DIALOG_DATA) public editData: any\r\n ) { }\r\n \r\n ngOnInit(): void {\r\n this.FunctionInfoForm = this.formBuilder.group({\r\n Id: ['', null],\r\n Function1: ['', null],\r\n Function2: ['', null],\r\n });\r\n this.getUser();\r\n\r\n this.Service.Get('CandidateInfo/GetFunctionData?Id=0', null).subscribe(data => {\r\n this.allfunction = data;\r\n })\r\n\r\n if (this.editData) {\r\n this.editEdu(this.editData)\r\n this.updateEduBtn = true\r\n this.saveEduBtn = false\r\n }\r\n else {\r\n this.updateEduBtn = false\r\n this.saveEduBtn = true\r\n }\r\n\r\n }\r\n\r\n get fPinfo(): { [key: string]: AbstractControl } {\r\n return this.FunctionInfoForm.controls;\r\n }\r\n\r\n personalInfoForm() {\r\n this.submitted = true;\r\n if (this.FunctionInfoForm.invalid) {\r\n this.toastr.error(\"Please fill out the required fields (* fields)\");\r\n }\r\n else {\r\n const updatepersonalinfo = this.FunctionInfoForm.getRawValue();\r\n this.Service.Put('CandidateInfo/UpdateFunction', updatepersonalinfo).subscribe(\r\n (res) => {\r\n this.toastr.success(res);\r\n this.dialogRef.close('Update'); \r\n },\r\n (error) => {\r\n \r\n this.toastr.error(error.error);\r\n });\r\n this.submitted = false;\r\n }\r\n }\r\n\r\n close(){\r\n this.dialogRef.close(); \r\n }\r\n \r\n getUser() {\r\n this.Service.Get('CandidateInfo/GetCandidateInfo?id=' + this.Global.getCandidateId(), null).subscribe(\r\n (res) => {\r\n this.function = res;\r\n },\r\n (error) => {\r\n //if (error.status == 401) this.router.navigate(['/login']);\r\n this.toastr.error(error.error);\r\n });\r\n }\r\n\r\n editInfo() {\r\n this.openform = !this.openform;\r\n this.boolVar = !this.boolVar;\r\n if(this.boolVar == true){\r\n this.hideForm = false;\r\n this.hideTable = true; \r\n }\r\n else{\r\n this.hideForm = true;\r\n this.hideTable = false;\r\n }\r\n }\r\n\r\n editEdu(event: any) {\r\n \r\n this.Service.Get('CandidateInfo/GetCandidateInfo?id=' + event.Id, null).subscribe(\r\n (res) => {\r\n this.function = res;\r\n this.FunctionInfoForm.controls[\"Id\"].setValue(this.function[0].Id);\r\n this.FunctionInfoForm.controls[\"Function1\"].setValue(this.function[0].Function1);\r\n this.FunctionInfoForm.controls[\"Function2\"].setValue(this.function[0].Function2);\r\n this.getUser();\r\n },\r\n\r\n (error) => {\r\n //if (error.status == 401) this.router.navigate(['/login']);\r\n this.toastr.error(error.error);\r\n });\r\n this.Service.Get('CandidateInfo/GetFunctionData?Id=0', null).subscribe(data => {\r\n this.allfunction = data;\r\n })\r\n \r\n this.submittedEdu = false;\r\n }\r\n\r\n ngOnDestroy(): void {\r\n\r\n }\r\n}\r\n\r\n","\r\n
\r\n
\r\n \r\n \r\n
Function
\r\n
\r\n
\r\n
\r\n Function1: \r\n \r\n Please select Function1 \r\n \r\n {{function.FunctionName}}\r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n Function2: \r\n \r\n Please select Function2 \r\n \r\n {{function2.FunctionName}}\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n\r\n \r\n \r\n Cancel\r\n \r\n \r\n \r\n Save\r\n \r\n \r\n \r\n
\r\n \r\n
","import { Component, Inject, OnDestroy, OnInit } from '@angular/core';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { FormGroup, FormBuilder, Validators, FormControl, AbstractControl } from '@angular/forms';\r\n\r\nimport { Router } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\n\r\n@Component({\r\n selector: 'app-add-edit-section',\r\n templateUrl: './add-edit-section.component.html',\r\n styleUrls: ['./add-edit-section.component.scss']\r\n})\r\nexport class AddEditCandidateSectionComponent implements OnInit, OnDestroy {\r\n submitted: boolean = false;\r\n SectionInfoForm: FormGroup;\r\n public info: any;\r\n summary: string;\r\n response: any;\r\n openform = false;\r\n boolVar = true;\r\n fileType: string = '';\r\n allsection: Observable;\r\n hideForm: boolean = false;\r\n hideTable: boolean = true;\r\n saveEduBtn: boolean = true;\r\n updateEduBtn: boolean = false;\r\n public section = [];\r\n submittedEdu: boolean = false;\r\n\r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private Service: SharedService,\r\n private Global: GlobalService,\r\n private dialogRef: MatDialogRef,\r\n @Inject(MAT_DIALOG_DATA) public editData: any\r\n ) { }\r\n \r\n ngOnInit(): void {\r\n this.SectionInfoForm = this.formBuilder.group({\r\n Id: ['', null],\r\n Section1: ['', null],\r\n Section2: ['', null],\r\n Section3: ['', null],\r\n });\r\n\r\n this.allsection = this.Service.Get('CandidateInfo/GetSectionData?Id=0', null)\r\n \r\n if (this.editData) {\r\n this.editEdu(this.editData)\r\n this.updateEduBtn = true\r\n this.saveEduBtn = false\r\n }\r\n else {\r\n this.updateEduBtn = false\r\n this.saveEduBtn = true\r\n }\r\n }\r\n\r\n close(){\r\n this.dialogRef.close(); \r\n }\r\n selectionInfoForm() {\r\n this.submitted = true;\r\n if (this.SectionInfoForm.invalid) {\r\n this.toastr.error(\"Please fill out the required fields (* fields)\");\r\n }\r\n else {\r\n const updatepersonalinfo = this.SectionInfoForm.getRawValue();\r\n this.Service.Put('CandidateInfo/UpdateSection', updatepersonalinfo).subscribe(\r\n (res) => {\r\n this.toastr.success(res);\r\n this.dialogRef.close('Update'); \r\n\r\n },\r\n (error) => {\r\n \r\n this.toastr.error(error.error);\r\n });\r\n this.submitted = false;\r\n }\r\n }\r\n\r\n editEdu(event: any) {\r\n this.Service.Get('CandidateInfo/GetCandidateInfo?id=' + event.Id, null).subscribe(\r\n (res) => {\r\n this.section = res;\r\n this.SectionInfoForm.controls[\"Id\"].setValue(this.section[0].Id);\r\n this.SectionInfoForm.controls[\"Section1\"].setValue(this.section[0].Section1);\r\n this.SectionInfoForm.controls[\"Section2\"].setValue(this.section[0].Section2);\r\n this.SectionInfoForm.controls[\"Section3\"].setValue(this.section[0].Section3); \r\n \r\n this.Service.Get('CandidateInfo/GetSectionData?Id=0', null).subscribe(data => {\r\n this.allsection = data;\r\n })\r\n },\r\n\r\n (error) => {\r\n //if (error.status == 401) this.router.navigate(['/login']);\r\n this.toastr.error(error.error);\r\n });\r\n this.submittedEdu = false;\r\n }\r\n\r\n ngOnDestroy(): void {\r\n\r\n }\r\n}\r\n\r\n","\r\n
\r\n \r\n
\r\n \r\n
Industry Type
\r\n\r\n
\r\n
\r\n \r\n
\r\n Industry Type 1: \r\n \r\n Please select Industry Type 1 \r\n \r\n {{section.SectionName}}\r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n Industry Type 2: \r\n \r\n Please select Industry Type 2 \r\n \r\n {{section2.SectionName}}\r\n \r\n \r\n
\r\n
\r\n\r\n\r\n
\r\n \r\n
\r\n Industry Type 3: \r\n \r\n Please select Industry Type 3 \r\n \r\n {{section3.SectionName}}\r\n \r\n \r\n
\r\n
\r\n\r\n\r\n
\r\n
\r\n\r\n \r\n \r\n \r\n Cancel\r\n \r\n \r\n \r\n Save\r\n \r\n \r\n
\r\n \r\n
","import { Component, Inject, OnDestroy, OnInit } from '@angular/core';\r\nimport { AbstractControl, FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport * as _moment from 'moment';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nconst moment = _moment;\r\n\r\n\r\n@Component({\r\n selector: 'app-add-edit-certificate',\r\n templateUrl: './add-edit-certificate.component.html',\r\n styleUrls: ['./add-edit-certificate.component.scss']\r\n})\r\nexport class AddEditCertificationComponent implements OnInit, OnDestroy {\r\n \r\n submitted: boolean = false;\r\n submittedCerty: boolean = false;\r\n savePrjBtn: boolean = true;\r\n updatePrjBtn: boolean = false;\r\n prjId: number;\r\n proejctForm: FormGroup;\r\n public CertificateInfo = [];\r\n response: any;\r\n // openform=false;\r\n boolVar=true;\r\n hideForm: boolean = false;\r\n hideTable: boolean = true;\r\n\r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private router: Router,\r\n private Service: SharedService,\r\n private Global : GlobalService,\r\n private dialogRef: MatDialogRef,\r\n @Inject(MAT_DIALOG_DATA) public editData: any\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.proejctForm = this.formBuilder.group({\r\n Id: ['', null],\r\n EmpId :['',null],\r\n CertificationName: ['', [Validators.required]],\r\n Description: ['', [Validators.nullValidator]],\r\n DateOfIssue: ['', [Validators.required]],\r\n DateOfValidity: ['', [Validators.nullValidator]],\r\n })\r\n\r\n if (this.editData) {\r\n this.editCerty(this.editData)\r\n this.updatePrjBtn = true\r\n this.savePrjBtn = false\r\n }\r\n else {\r\n this.updatePrjBtn = false\r\n this.savePrjBtn = true\r\n }\r\n }\r\n\r\n get fCerty(): { [key: string]: AbstractControl } {\r\n return this.proejctForm.controls;\r\n }\r\n\r\n close(){\r\n this.dialogRef.close(); \r\n }\r\n\r\n CertificatetInfoForm() {\r\n this.submitted = true;\r\n if (this.proejctForm.invalid) {\r\n this.toastr.error(\"Please fill out the required fields (* fields)\");\r\n }\r\n else {\r\n const insertcerty = this.proejctForm.getRawValue();\r\n insertcerty.EmpId = this.Global.getCandidateId();\r\n this.Service.Post('CandidateCertificatios/InsertCandidateCertifications/', insertcerty).subscribe(\r\n (res) => {\r\n if (res) {\r\n this.hideForm = false;\r\n this.dialogRef.close('Save'); \r\n this.boolVar = true; \r\n } else {\r\n this.toastr.error('Error While Insert Data');\r\n }\r\n });\r\n this.submitted = false;\r\n }\r\n }\r\n\r\n CertificatetUpdateForm() {\r\n this.submitted = true;\r\n\r\n if (this.proejctForm.invalid) {\r\n this.toastr.error(\"Please fill out the required fields (* fields)\");\r\n }\r\n else {\r\n const updateCerty = this.proejctForm.getRawValue();\r\n this.Service.Put('CandidateCertificatios/UpdateCandidateCertifications/', updateCerty).subscribe(\r\n (res) => {\r\n if (res) {\r\n this.toastr.success(res);\r\n this.dialogRef.close('Update'); \r\n this.boolVar = true; \r\n } \r\n });\r\n this.submitted = false;\r\n }\r\n }\r\n\r\n\r\n editCerty(certyinfo: any) {\r\n this.proejctForm.controls[\"Id\"].setValue(certyinfo.Id);\r\n this.proejctForm.controls[\"CertificationName\"].setValue(certyinfo.CertificationName);\r\n this.proejctForm.controls[\"Description\"].setValue(certyinfo.Description);\r\n\r\n if(certyinfo.DateOfIssue !=null){\r\n const momentDate1 = new Date(certyinfo.DateOfIssue);\r\n const formateddate1 = moment(momentDate1).format(\"yyyy-MM-DD\");\r\n certyinfo.DateOfIssue = formateddate1;\r\n }\r\n this.proejctForm.controls[\"DateOfIssue\"].setValue(certyinfo.DateOfIssue);\r\n\r\nif(certyinfo.DateOfValidity != null)\r\n{\r\n const momentDate = new Date(certyinfo.DateOfValidity);\r\n const formateddate = moment(momentDate).format(\"yyyy-MM-DD\");\r\n certyinfo.DateOfValidity = formateddate;\r\n}\r\n \r\n\r\n this.proejctForm.controls[\"DateOfValidity\"].setValue(certyinfo.DateOfValidity);\r\n }\r\n\r\n clearPrj() {\r\n if(this.boolVar == true){\r\n this.hideForm = true;\r\n this.hideTable = false;\r\n this.savePrjBtn = true;\r\n this.updatePrjBtn = false;\r\n }\r\n else{\r\n this.hideForm = false;\r\n this.hideTable = true;\r\n this.savePrjBtn = false;\r\n this.updatePrjBtn = true;\r\n }\r\n this.boolVar = !this.boolVar;\r\n\r\n this.proejctForm.reset();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n\r\n }\r\n\r\n}\r\n","\r\n
\r\n
\r\n \r\n
Certification
\r\n
\r\n
\r\n
\r\n Certificate Name * \r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n Certificate Description \r\n \r\n
\r\n
\r\n\r\n\r\n
\r\n
\r\n Date Of Issue * \r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n Date Of Validity \r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n\r\n \r\n \r\n Cancel\r\n \r\n\r\n \r\n Save\r\n \r\n\r\n \r\n Update\r\n \r\n
\r\n \r\n
\r\n","import { Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { FormGroup, FormBuilder, Validators, FormControl, AbstractControl } from '@angular/forms';\r\nimport { MatDialogRef } from '@angular/material/dialog';\r\nimport { Router } from '@angular/router';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport { AddEditPrefferedLocationComponent } from '../Preffered Location/add-edit-location/add-edit-location.component';\r\nimport { ChangepasswordService } from './services/Change-password.service';\r\n@Component({\r\n selector: 'app-changepassword',\r\n templateUrl: './Change-password.component.html',\r\n styleUrls: ['./Change-password.component.scss']\r\n})\r\nexport class ChangepasswordComponent implements OnInit, OnDestroy {\r\n submitpassword: boolean = false;\r\n ChangePasswordInfo: FormGroup;\r\n public info: any;\r\n summary: string;\r\n response: any;\r\n openform = true;\r\n boolVar = true;\r\n fileType: string = '';\r\n base64textString: string[] = [];\r\n type: string = 'password';\r\n\r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private router: Router,\r\n private Service: SharedService,\r\n private Global:GlobalService,\r\n private dialogRef: MatDialogRef,\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.ChangePasswordInfo = this.formBuilder.group({\r\n UserId:[Validators.nullValidator],\r\n oldpass: ['', [Validators.required]],\r\n newpass: ['', [Validators.required]],\r\n CFpass: ['', [Validators.required]],\r\n });\r\n this.getUser();\r\n }\r\n\r\n get fpass(): { [key: string]: AbstractControl } {\r\n return this.ChangePasswordInfo.controls;\r\n }\r\n\r\n // changepassSubmit() {\r\n // this.submitpassword = true;\r\n // if (this.ChangePasswordInfo.invalid) {\r\n // this.toastr.error(this.response.message);\r\n // }\r\n // else {\r\n // this.basicInfoService.basicInfoForm(this.ChangePasswordInfo.value).subscribe(\r\n // (res) => {\r\n // this.toastr.success(res.message);\r\n // this.getUser();\r\n // },\r\n // (error) => {\r\n // //if (error.status == 401) this.router.navigate(['/login']);\r\n // this.toastr.error(error.error.message);\r\n // });\r\n // this.submitpassword = false;\r\n // }\r\n // }\r\n\r\n changepassSubmit() {\r\n this.submitpassword = true;\r\n if (this.ChangePasswordInfo.invalid) {\r\n this.toastr.error('This data is not Valid');\r\n }\r\n else {\r\n const updatepersonalinfo = this.ChangePasswordInfo.getRawValue();\r\n updatepersonalinfo.userId = this.Global.getuserId();\r\n if (updatepersonalinfo.oldpass != updatepersonalinfo.newpass) {\r\n if (updatepersonalinfo.newpass == updatepersonalinfo.CFpass) {\r\n this.Service.Post('EmployeeChangePass/ChangePassword', updatepersonalinfo).subscribe(\r\n (res) => {\r\n this.toastr.success(res);\r\n this.ChangePasswordInfo.reset();\r\n this.dialogRef.close();\r\n this.router.navigate(['/login']);\r\n\r\n },\r\n )\r\n }\r\n else {\r\n alert(\"New Password And Confirm Password Are Not Same\");\r\n }\r\n\r\n }\r\n else {\r\n alert(\"Old Password And New Password are Same\");\r\n }\r\n }\r\n }\r\n close()\r\n {\r\n this.dialogRef.close(); \r\n }\r\n\r\n show(a, b) {\r\n var x = document.getElementById(a);\r\n var c = document.getElementById(b);\r\n if (x.getAttribute('type') == \"password\") {\r\n c.removeAttribute(\"class\");\r\n c.setAttribute(\"class\", \"bi-eye\");\r\n x.removeAttribute(\"type\");\r\n x.setAttribute(\"type\", \"text\");\r\n } else {\r\n x.removeAttribute(\"type\");\r\n x.setAttribute('type', 'password');\r\n c.removeAttribute(\"class\");\r\n c.setAttribute(\"class\", \"bi-eye-slash\");\r\n }\r\n }\r\n\r\n show1(a, b) {\r\n var x = document.getElementById(a);\r\n var c = document.getElementById(b);\r\n if (x.getAttribute('type') == \"password\") {\r\n c.removeAttribute(\"class\");\r\n c.setAttribute(\"class\", \"bi-eye\");\r\n x.removeAttribute(\"type\");\r\n x.setAttribute(\"type\", \"text\");\r\n } else {\r\n x.removeAttribute(\"type\");\r\n x.setAttribute('type', 'password');\r\n c.removeAttribute(\"class\");\r\n c.setAttribute(\"class\", \"bi-eye-slash\");\r\n }\r\n }\r\n\r\n show2(a, b) {\r\n var x = document.getElementById(a);\r\n var c = document.getElementById(b);\r\n if (x.getAttribute('type') == \"password\") {\r\n c.removeAttribute(\"class\");\r\n c.setAttribute(\"class\", \"bi-eye\");\r\n x.removeAttribute(\"type\");\r\n x.setAttribute(\"type\", \"text\");\r\n } else {\r\n x.removeAttribute(\"type\");\r\n x.setAttribute('type', 'password');\r\n c.removeAttribute(\"class\");\r\n c.setAttribute(\"class\", \"bi-eye-slash\");\r\n }\r\n }\r\n\r\n getUser() {\r\n // this.basicInfoService.findUsers().subscribe(\r\n // (res) => {\r\n // this.info = res;\r\n\r\n // // if (this.basicInfo.length > 0) {\r\n // // this.summary = this.basicInfo[0].summary;\r\n // // } else {\r\n // // this.summary = \"Hi i have not updated my information yet!\"\r\n // // }\r\n // },\r\n // (error) => {\r\n // //if (error.status == 401) this.router.navigate(['/login']);\r\n // this.toastr.error(error.error.message);\r\n // });\r\n }\r\n\r\n isEmpty(obj: any) {\r\n console.log(obj);\r\n return Object.keys(obj).length != 0;\r\n }\r\n\r\n editInfo() {\r\n // this.openform = !this.openform;\r\n // this.boolVar = !this.boolVar;\r\n let i = 0;\r\n // this.basicInfoForm.controls.name.setValue(this.basicInfo[i].name);\r\n // this.basicInfoForm.controls.email.setValue(this.basicInfo[i].email);\r\n // this.basicInfoForm.controls.mobile_number.setValue(this.basicInfo[i].mobile_number);\r\n // this.basicInfoForm.controls.summary.setValue(this.basicInfo[i].summary);\r\n // this.basicInfoForm.controls.dob.setValue(this.basicInfo[i].dob);\r\n // this.basicInfoForm.controls.gender.setValue(this.basicInfo[i].gender);\r\n // this.basicInfoForm.controls.marital_status.setValue(this.basicInfo[i].marital_status);\r\n // this.basicInfoForm.controls.nationality.setValue(this.basicInfo[i].nationality);\r\n // this.basicInfoForm.controls.cnic.setValue(this.basicInfo[i].cnic);\r\n // this.basicInfoForm.controls.career_level.setValue(this.basicInfo[i].career_level);\r\n // this.basicInfoForm.controls.experience.setValue(this.basicInfo[i].experience);\r\n // this.basicInfoForm.controls.city.setValue(this.basicInfo[i].city);\r\n // this.basicInfoForm.controls.area.setValue(this.basicInfo[i].area);\r\n // this.basicInfoForm.controls.expected_salary.setValue(this.basicInfo[i].expected_salary);\r\n\r\n // this.getUser();\r\n }\r\n\r\n\r\n\r\n ngOnDestroy(): void {\r\n\r\n }\r\n}\r\n","\r\n\r\n
\r\n
\r\n \r\n \r\n
Change Password
\r\n\r\n
\r\n
\r\n\r\n\r\n
\r\n
\r\n\r\n\r\n
\r\n
\r\n\r\n \r\n \r\n \r\n Cancel\r\n \r\n\r\n \r\n Save\r\n \r\n\r\n \r\n
\r\n\r\n \r\n
\r\n
\r\n\r\n","import { Component, Inject, OnDestroy, OnInit } from '@angular/core';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { FormGroup, FormBuilder, Validators, FormControl, AbstractControl } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { Languages } from 'src/app/interface';\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nimport { map, startWith } from 'rxjs/operators';\r\n\r\n@Component({\r\n selector: 'app-add-edit-languages',\r\n templateUrl: './add-edit-languages.component.html',\r\n styleUrls: ['./add-edit-languages.component.scss']\r\n})\r\nexport class AddEditLanguagesComponent implements OnInit, OnDestroy {\r\n\r\n submitted: boolean = false;\r\n submittedLanguage: boolean = false;\r\n languageForm: FormGroup;\r\n public languageInfo = [];\r\n langId: number = null;\r\n saveLangBtn: boolean = true;\r\n updateLangBtn: boolean = false;\r\n response: any;\r\n public placeholder: string = '';\r\n public keyword = 'skill';\r\n public historyHeading: string = 'Recently selected';\r\n // public proficiency = data.proficiency;\r\n // filteredLanguages: Observable;\r\n //allLanguages:Observable;\r\n hideForm: boolean = false;\r\n hideTable: boolean = true;\r\n\r\n allLanguages: Languages[];\r\n filterLanguages?: Observable;\r\n formControlLanguages = new FormControl();\r\n LanguagesId: number;\r\n\r\n openform=false;\r\n // openForm=false;\r\n // boolVar=true;\r\n boolVar = true;\r\n\r\n\r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private Service: SharedService,\r\n private Global:GlobalService,\r\n private dialogRef: MatDialogRef,\r\n @Inject(MAT_DIALOG_DATA) public editData: any\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n\r\n this.languageForm = this.formBuilder.group({\r\n Id: ['', null],\r\n EmpId: ['', null],\r\n LanguageId: ['', [Validators.required]],\r\n Language: ['', null],\r\n })\r\n\r\n // this.Service.Get('Languages/GetLanguages', null).subscribe(languages => {\r\n // this.allLanguages = languages;\r\n // })\r\n\r\n this.Service.Get('Languages/GetLanguages', null).subscribe(data => {\r\n if (data != null) {\r\n this.allLanguages = data;\r\n //this.formControlLanguages.setValue(this.allJobRole[0]);\r\n this.filterLanguages = this.formControlLanguages.valueChanges.pipe(\r\n startWith(''),\r\n map(value => typeof value === 'string' ? value : value.Language),\r\n map(Language => Language ? this._filterLanguage(Language) : this.allLanguages.slice()),\r\n );\r\n //this.onchangejobrole(this.allJobRole[0].Id);\r\n }\r\n });\r\n }\r\n \r\n private _filterLanguage(Language: string): Languages[] {\r\n const filterValue = Language.toLowerCase();\r\n return this.allLanguages.filter(\r\n option => option.Language?.toLowerCase().indexOf(filterValue) === 0\r\n );\r\n }\r\n \r\n displayFnForLanguage(value: any) {\r\n return value ? value.Language : undefined;\r\n }\r\n\r\n onchangeLanguage(event) {\r\n this.LanguagesId = event\r\n }\r\n\r\n close(){\r\n this.dialogRef.close(); \r\n }\r\n\r\n get flang(): { [key: string]: AbstractControl } {\r\n return this.languageForm.controls;\r\n }\r\n\r\n languageInfoForm() {\r\n this.submittedLanguage = true;\r\n\r\n this.languageForm.controls[\"LanguageId\"].setValue(this.LanguagesId);\r\n\r\n if (this.languageForm.invalid) {\r\n this.toastr.error(\"Please fill out the required fields (* fields)\");\r\n }\r\n else {\r\n const insertlanguage = this.languageForm.getRawValue();\r\n insertlanguage.EmpId = this.Global.getCandidateId();\r\n this.Service.Post('CandidateLanguages/InsertCandidtaeLanguagesForIndiviual',insertlanguage).subscribe(\r\n (res) => {\r\n this.toastr.success(res);\r\n this.hideForm = false;\r\n this.dialogRef.close('Save');\r\n \r\n },\r\n (error) => {\r\n //if (error.status == 401) this.router.navigate(['/login']);\r\n this.toastr.error(error.error);\r\n });\r\n this.submittedLanguage = false;\r\n }\r\n }\r\n\r\n getAllLanguages() {\r\n this.Service.Get('CandidateLanguages/GetCandidateLanguages?EmpId=' + this.Global.getCandidateId(), null).subscribe(res => {\r\n this.languageInfo = res;\r\n },\r\n (error) => {\r\n //if (error.status == 401) this.router.navigate(['/login']);\r\n this.toastr.error(error.error);\r\n });\r\n }\r\n\r\n\r\n\r\n ngOnDestroy(): void {\r\n\r\n }\r\n\r\n}\r\n","\r\n\r\n
\r\n \r\n
\r\n \r\n
Add Languages
\r\n
\r\n
\r\n
\r\n Language * \r\n \r\n\r\n \r\n \r\n \r\n {{language.Language}}\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n\r\n \r\n \r\n Cancel\r\n \r\n\r\n \r\n Save\r\n \r\n\r\n \r\n Update\r\n \r\n
\r\n \r\n
","import { Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { FormGroup, FormBuilder, Validators, AbstractControl } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { Observable } from 'rxjs';\r\nimport * as _moment from 'moment';\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport { cities, Country, JobRole, State } from 'src/app/interface';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { AddEditPersonalInfoComponent } from './add-edit-personalinfo/add-edit-personalinfo.component';\r\nconst moment = _moment;\r\n\r\n@Component({\r\n selector: 'app-Personal-info',\r\n templateUrl: './Personal-info.component.html',\r\n styleUrls: ['./Personal-info.component.scss']\r\n})\r\nexport class PersonalInfoComponent implements OnInit, OnDestroy { \r\n\r\n submitted: boolean = false;\r\n PersonalInfoForm: FormGroup;\r\n public info: any;\r\n summary: string;\r\n response: any;\r\n openform = false;\r\n boolVar = true;\r\n fileType: string = '';\r\n base64textString: string[] = [];\r\n allMaritalStatus: Observable;\r\n allGender: Observable;\r\n allCountries: Observable;\r\n allStates: Observable;\r\n allCities: Observable\r\n allJobRole: Observable;\r\n hideForm: boolean = true;\r\n hideme: boolean = true;\r\n displayInternShipField: boolean = false;\r\n\r\n\r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private Service: SharedService,\r\n private Global: GlobalService,\r\n private dialog: MatDialog,\r\n ) { }\r\n\r\n\r\n // editInfo() {\r\n // this.openform = !this.openform;\r\n // this.boolVar = !this.boolVar;\r\n // if(this.boolVar == true){\r\n // this.hideForm = true;\r\n // this.hideme = false;\r\n // }\r\n // else{\r\n // this.hideForm = false;\r\n // this.hideme = true;\r\n // }\r\n\r\n // this.Service.Get('GetListValue?Id=3', null).subscribe(maritalstatus => {\r\n // this.allMaritalStatus = maritalstatus;\r\n // });\r\n // this.Service.Get('GetListValue?Id=2', null).subscribe(GenderData => {\r\n // this.allGender = GenderData;\r\n // });\r\n // this.Service.Get('Country/GetCountry?Id=0', null).subscribe(country =>{\r\n // this.allCountries = country;\r\n // });\r\n\r\n\r\n // this.Service.Get('State/GetStateData?Id=0', null).subscribe(state => {\r\n // this.allStates = state;\r\n // })\r\n // this.Service.Get('City/GetCity?Id=0', null).subscribe(city => {\r\n // this.allCities = city;\r\n // })\r\n // this.Service.Get('JobRole/GetJobRole?Id=0', null).subscribe(jobrole => {\r\n // this.allJobRole = jobrole;\r\n // })\r\n\r\n // this.getUser();\r\n // }\r\n \r\n ngOnInit(): void {\r\n this.PersonalInfoForm = this.formBuilder.group({\r\n Id: ['', null],\r\n FirstName: ['', [Validators.required]],\r\n LastName: ['', [Validators.required, Validators.maxLength(50)]],\r\n MobileNo: ['', [Validators.required]],\r\n Gender: ['', [Validators.required]],\r\n DateOfBirth: ['', [Validators.required]],\r\n MaritalStatus: ['', [Validators.required]],\r\n Nationality: ['', [Validators.nullValidator]],\r\n DifferentlyAbled: ['', [Validators.required]],\r\n Address1: ['', [Validators.required]],\r\n Address2: ['', [Validators.nullValidator]],\r\n CityIdOfEmployeeInfo: ['', [Validators.required]],\r\n CityNameOfEmployeeInfo: ['', null],\r\n StateId: ['', [Validators.required]],\r\n StateName: ['',null ],\r\n CountryId: ['', [Validators.required]],\r\n CountryName: ['', null],\r\n PinCode: ['', [Validators.required]],\r\n Photo:['',[Validators.nullValidator]]\r\n\r\n });\r\n \r\n this.Service.Get('GetListValue?Id=3', null).subscribe(maritalstatus => {\r\n this.allMaritalStatus = maritalstatus;\r\n });\r\n this.Service.Get('GetListValue?Id=2', null).subscribe(GenderData => {\r\n this.allGender = GenderData;\r\n });\r\n this.Service.Get('Country/GetCountry?Id=0', null).subscribe(country =>{\r\n this.allCountries = country;\r\n });\r\n\r\n\r\n this.Service.Get('State/GetStateData?Id=0', null).subscribe(state => {\r\n this.allStates = state;\r\n })\r\n this.Service.Get('City/GetCity?Id=0', null).subscribe(city => {\r\n this.allCities = city;\r\n })\r\n this.Service.Get('JobRole/GetJobRole?Id=0', null).subscribe(jobrole => {\r\n this.allJobRole = jobrole;\r\n })\r\n this.getUser();\r\n }\r\n\r\n get fPinfo(): { [key: string]: AbstractControl } {\r\n return this.PersonalInfoForm.controls;\r\n }\r\n\r\n personalInfoForm() {\r\n this.submitted = true;\r\n if (this.PersonalInfoForm.invalid) {\r\n this.toastr.error('This data is not Valid');\r\n }\r\n else {\r\n const updatepersonalinfo = this.PersonalInfoForm.getRawValue();\r\n updatepersonalinfo.Photo = this.base64textString[0];\r\n this.Service.Put('CandidateInfo/UpdatePersonalInfo', updatepersonalinfo).subscribe(\r\n (res) => {\r\n this.toastr.success(res);\r\n this.getUser();\r\n this.hideForm = true;\r\n this.hideme = false;\r\n this.openform = false; \r\n this.boolVar = true; \r\n },\r\n (error) => {\r\n this.toastr.error(error.error);\r\n });\r\n this.submitted = false;\r\n }\r\n }\r\n\r\n\r\n\r\n getUser() {\r\n this.Service.Get('CandidateInfo/GetCandidateInfoByUserId?userId=' + this.Global.getuserId(), null).subscribe(\r\n (res) => {\r\n this.info = res;\r\n this.PersonalInfoForm.controls[\"Id\"].setValue(this.info.Id);\r\n this.PersonalInfoForm.controls[\"FirstName\"].setValue(this.info.FirstName);\r\n this.PersonalInfoForm.controls[\"LastName\"].setValue(this.info.LastName);\r\n this.PersonalInfoForm.controls[\"MobileNo\"].setValue(this.info.MobileNo);\r\n const momentDate = new Date(this.info.DateOfBirth);\r\n const formateddate = moment(momentDate).format(\"yyyy-MM-DD\");\r\n this.info.DateOfBirth = formateddate;\r\n this.PersonalInfoForm.controls[\"DateOfBirth\"].setValue(this.info.DateOfBirth);\r\n this.PersonalInfoForm.controls[\"Gender\"].setValue(this.info.Gender);\r\n this.PersonalInfoForm.controls[\"MaritalStatus\"].setValue(this.info.MaritalStatus);\r\n this.PersonalInfoForm.controls[\"Nationality\"].setValue(this.info.Nationality);\r\n this.PersonalInfoForm.controls[\"DifferentlyAbled\"].setValue(this.info.DifferentlyAbled);\r\n this.PersonalInfoForm.controls[\"Address1\"].setValue(this.info.Address1);\r\n this.PersonalInfoForm.controls[\"Address2\"].setValue(this.info.Address2);\r\n this.PersonalInfoForm.controls['CountryId'].setValue(this.info.CountryId);\r\n this.PersonalInfoForm.controls['StateId'].setValue(this.info.StateId);\r\n this.PersonalInfoForm.controls['CityIdOfEmployeeInfo'].setValue(this.info.CityIdOfEmployeeInfo);\r\n this.PersonalInfoForm.controls[\"PinCode\"].setValue(this.info.PinCode);\r\n this.PersonalInfoForm.controls[\"Photo\"].setValue(this.info.Photo);\r\n this.displayInternShipField = res.IsGET;\r\n this.Global.setCandidateId(this.info.Id);\r\n //this.global.setEmpId(this.info.Id);\r\n // \r\n },\r\n (error) => {\r\n //if (error.status == 401) this.router.navigate(['/login']);\r\n this.toastr.error(error.error);\r\n });\r\n }\r\n\r\n onchangeCountry(event) {\r\n this.Service.Get('State/GetStateByCountry?countryId=' + event, null).subscribe(state => {\r\n this.allStates = state;\r\n });\r\n }\r\n\r\n onchangeState(event) {\r\n this.Service.Get('City/GetCityDataByState?StateId=' + event, null).subscribe(city => {\r\n this.allCities = city;\r\n })\r\n }\r\n\r\n Uploadcompanylogo(event: any) {\r\n this.fileType = event.target.files[0].type\r\n var files = event.target.files;\r\n var file = files[0];\r\n if (files && file) {\r\n var reader = new FileReader();\r\n reader.onload = this._handleReaderLoadedCompany.bind(this);\r\n reader.readAsBinaryString(file);\r\n }\r\n }\r\n\r\n _handleReaderLoadedCompany(readerEvt) {\r\n var binaryString = readerEvt.target.result;\r\n // this.base64textString = btoa(binaryString);\r\n // this.base64textString = 'data:' + this.fileType + ';base64,' + this.base64textString;\r\n this.base64textString.push('data:' + this.fileType + ';base64,' + btoa(readerEvt.target.result));\r\n }\r\n\r\n EditPI() {\r\n const dialogRef = this.dialog.open(AddEditPersonalInfoComponent, {\r\n width: 'auto',\r\n height: '85%',\r\n position: { top: '111px' },\r\n });\r\n dialogRef.afterClosed().subscribe(result => {\r\n if (result == \"Save\") {\r\n \r\n this.getUser();\r\n \r\n }\r\n });\r\n }\r\n\r\n \r\n\r\n ngOnDestroy(): void {\r\n\r\n }\r\n}","\r\n\r\n\r\n\r\n\r\n\r\n
\r\n
Personal Detail
\r\n\r\n \r\n
\r\n\r\n\r\n
\r\n
\r\n\r\n\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n First Name : \r\n {{info.FirstName}} \r\n \r\n \r\n Last Name : \r\n {{info.LastName}} \r\n \r\n\r\n \r\n Mobile No : \r\n {{info.MobileNo}} \r\n \r\n \r\n Date of Birth : \r\n {{info.DateOfBirth | date:'dd-MM-yyyy'}} \r\n \r\n \r\n Gender : \r\n {{info.GenderDesc}} \r\n \r\n \r\n Marital Status : \r\n {{info.MaritalStatusDesc}} \r\n \r\n \r\n Nationality : \r\n {{info.Nationality}} \r\n \r\n\r\n \r\n Differently Abled : \r\n {{info.DifferentlyAbled ? 'Yes' : 'No'}} \r\n \r\n \r\n Address : \r\n {{info.Address1}} {{info.Address2}}\r\n ,{{info.StateName}},{{info.CityNameOfEmployeeInfo}}\r\n {{info.PinCode}},{{info.CountryName}} \r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n\r\n\r\n","import { Component, Inject, OnDestroy, OnInit } from '@angular/core';\r\nimport { FormGroup, FormBuilder, Validators, AbstractControl } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { Observable } from 'rxjs';\r\nimport * as _moment from 'moment';\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport { cities, Country, JobRole, State } from 'src/app/interface';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nconst moment = _moment;\r\n\r\n@Component({\r\n selector: 'app-add-edit-personalinfo',\r\n templateUrl: './add-edit-personalinfo.component.html',\r\n styleUrls: ['./add-edit-personalinfo.component.scss']\r\n})\r\nexport class AddEditPersonalInfoComponent implements OnInit, OnDestroy { \r\n\r\n submitted: boolean = false;\r\n PersonalInfoForm: FormGroup;\r\n public info: any;\r\n summary: string;\r\n response: any;\r\n openform = false;\r\n boolVar = true;\r\n fileType: string = '';\r\n base64textString: string[] = [];\r\n allMaritalStatus: Observable;\r\n allGender: Observable;\r\n allCountries: Observable;\r\n allStates: Observable;\r\n allCities: Observable\r\n allJobRole: Observable;\r\n hideForm: boolean = true;\r\n hideme: boolean = true;\r\n displayInternShipField: boolean = false;\r\n\r\n\r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private router: Router,\r\n private Service: SharedService,\r\n private Global: GlobalService,\r\n private dialogRef: MatDialogRef,\r\n @Inject(MAT_DIALOG_DATA) public editData: any\r\n ) { }\r\n\r\n\r\n // editInfo() {\r\n // this.openform = !this.openform;\r\n // this.boolVar = !this.boolVar;\r\n // if(this.boolVar == true){\r\n // this.hideForm = true;\r\n // this.hideme = false;\r\n // }\r\n // else{\r\n // this.hideForm = false;\r\n // this.hideme = true;\r\n // }\r\n\r\n // this.Service.Get('GetListValue?Id=3', null).subscribe(maritalstatus => {\r\n // this.allMaritalStatus = maritalstatus;\r\n // });\r\n // this.Service.Get('GetListValue?Id=2', null).subscribe(GenderData => {\r\n // this.allGender = GenderData;\r\n // });\r\n // this.Service.Get('Country/GetCountry?Id=0', null).subscribe(country =>{\r\n // this.allCountries = country;\r\n // });\r\n\r\n\r\n // this.Service.Get('State/GetStateData?Id=0', null).subscribe(state => {\r\n // this.allStates = state;\r\n // })\r\n // this.Service.Get('City/GetCity?Id=0', null).subscribe(city => {\r\n // this.allCities = city;\r\n // })\r\n // this.Service.Get('JobRole/GetJobRole?Id=0', null).subscribe(jobrole => {\r\n // this.allJobRole = jobrole;\r\n // })\r\n\r\n // this.getUser();\r\n // }\r\n \r\n ngOnInit(): void {\r\n this.PersonalInfoForm = this.formBuilder.group({\r\n Id: ['', null],\r\n FirstName: ['', [Validators.required]],\r\n LastName: ['', [Validators.required, Validators.maxLength(50)]],\r\n MobileNo: ['', [Validators.required]],\r\n Gender: ['', [Validators.required]],\r\n DateOfBirth: ['', [Validators.required]],\r\n MaritalStatus: ['', [Validators.nullValidator]],\r\n Nationality: ['', [Validators.nullValidator]],\r\n DifferentlyAbled: ['', [Validators.nullValidator]],\r\n Address1: ['', [Validators.required]],\r\n Address2: ['', [Validators.nullValidator]],\r\n CityIdOfEmployeeInfo: ['', [Validators.nullValidator]],\r\n CityNameOfEmployeeInfo: ['', null],\r\n StateId: ['', [Validators.nullValidator]],\r\n StateName: ['',null ],\r\n CountryId: ['', [Validators.nullValidator]],\r\n CountryName: ['', null],\r\n PinCode: ['', [Validators.required]],\r\n Photo:['',[Validators.nullValidator]]\r\n\r\n });\r\n\r\n \r\n this.Service.Get('GetListValue?Id=3', null).subscribe(maritalstatus => {\r\n this.allMaritalStatus = maritalstatus;\r\n });\r\n this.Service.Get('GetListValue?Id=2', null).subscribe(GenderData => {\r\n this.allGender = GenderData;\r\n });\r\n this.Service.Get('Country/GetCountry?Id=0', null).subscribe(country =>{\r\n this.allCountries = country;\r\n });\r\n\r\n\r\n this.Service.Get('State/GetStateData?Id=0', null).subscribe(state => {\r\n this.allStates = state;\r\n })\r\n this.Service.Get('City/GetCity?Id=0', null).subscribe(city => {\r\n this.allCities = city;\r\n })\r\n this.Service.Get('JobRole/GetJobRole?Id=0', null).subscribe(jobrole => {\r\n this.allJobRole = jobrole;\r\n })\r\n\r\n\r\n this.getUser();\r\n\r\n }\r\n\r\n get fPinfo(): { [key: string]: AbstractControl } {\r\n return this.PersonalInfoForm.controls;\r\n }\r\n\r\n close(){\r\n this.dialogRef.close(); \r\n }\r\n\r\n personalInfoForm() {\r\n this.submitted = true;\r\n if (this.PersonalInfoForm.invalid) {\r\n this.toastr.error(\"Please fill out the required fields (* fields)\");\r\n }\r\n else {\r\n const updatepersonalinfo = this.PersonalInfoForm.getRawValue();\r\n // updatepersonalinfo.Photo = this.base64textString[0];\r\n this.Service.Put('CandidateInfo/UpdatePersonalInfo', updatepersonalinfo).subscribe(\r\n (res) => {\r\n this.toastr.success(res);\r\n this.dialogRef.close('Save');\r\n this.boolVar = true; \r\n },\r\n (error) => {\r\n \r\n this.toastr.error(error.error);\r\n });\r\n this.submitted = false;\r\n }\r\n }\r\n\r\n\r\n\r\n getUser() {\r\n this.Service.Get('CandidateInfo/GetCandidateInfoByUserId?userId=' + this.Global.getuserId(), null).subscribe(\r\n (res) => {\r\n this.info = res;\r\n this.PersonalInfoForm.controls[\"Id\"].setValue(this.info.Id);\r\n this.PersonalInfoForm.controls[\"FirstName\"].setValue(this.info.FirstName);\r\n this.PersonalInfoForm.controls[\"LastName\"].setValue(this.info.LastName);\r\n this.PersonalInfoForm.controls[\"MobileNo\"].setValue(this.info.MobileNo);\r\n const momentDate = new Date(this.info.DateOfBirth);\r\n const formateddate = moment(momentDate).format(\"yyyy-MM-DD\");\r\n this.info.DateOfBirth = formateddate;\r\n\r\n this.PersonalInfoForm.controls[\"DateOfBirth\"].setValue(this.info.DateOfBirth);\r\n this.PersonalInfoForm.controls[\"Gender\"].setValue(this.info.Gender);\r\n this.PersonalInfoForm.controls[\"MaritalStatus\"].setValue(this.info.MaritalStatus);\r\n this.PersonalInfoForm.controls[\"Nationality\"].setValue(this.info.Nationality);\r\n this.PersonalInfoForm.controls[\"DifferentlyAbled\"].setValue(this.info.DifferentlyAbled);\r\n this.PersonalInfoForm.controls[\"Address1\"].setValue(this.info.Address1);\r\n this.PersonalInfoForm.controls[\"Address2\"].setValue(this.info.Address2);\r\n this.PersonalInfoForm.controls['CountryId'].setValue(this.info.CountryId);\r\n this.PersonalInfoForm.controls['StateId'].setValue(this.info.StateId);\r\n this.PersonalInfoForm.controls['CityIdOfEmployeeInfo'].setValue(this.info.CityIdOfEmployeeInfo);\r\n this.PersonalInfoForm.controls[\"PinCode\"].setValue(this.info.PinCode);\r\n this.PersonalInfoForm.controls[\"Photo\"].setValue(this.info.Photo);\r\n this.displayInternShipField = res.IsGET;\r\n \r\n this.Global.setCandidateId(this.info.Id);\r\n //this.global.setEmpId(this.info.Id);\r\n // \r\n },\r\n (error) => {\r\n //if (error.status == 401) this.router.navigate(['/login']);\r\n this.toastr.error(error.error);\r\n });\r\n }\r\n\r\n onchangeCountry(event) {\r\n this.Service.Get('State/GetStateByCountry?countryId=' + event, null).subscribe(state => {\r\n this.allStates = state;\r\n });\r\n }\r\n\r\n onchangeState(event) {\r\n this.Service.Get('City/GetCityDataByState?StateId=' + event, null).subscribe(city => {\r\n this.allCities = city;\r\n })\r\n }\r\n\r\n Uploadcompanylogo(event: any) {\r\n this.fileType = event.target.files[0].type\r\n var files = event.target.files;\r\n var file = files[0];\r\n if (files && file) {\r\n var reader = new FileReader();\r\n reader.onload = this._handleReaderLoadedCompany.bind(this);\r\n reader.readAsBinaryString(file);\r\n }\r\n }\r\n\r\n _handleReaderLoadedCompany(readerEvt) {\r\n var binaryString = readerEvt.target.result;\r\n // this.base64textString = btoa(binaryString);\r\n // this.base64textString = 'data:' + this.fileType + ';base64,' + this.base64textString;\r\n // this.base64textString.push('data:' + this.fileType + ';base64,' + btoa(readerEvt.target.result));\r\n }\r\n\r\n keyPressAlphaNumeric(event: { keyCode: number; preventDefault: () => void; }) {\r\n var inp = String.fromCharCode(event.keyCode);\r\n if (/[0-9 ]/.test(inp)) {\r\n return true;\r\n } else {\r\n event.preventDefault();\r\n return false;\r\n }\r\n }\r\n \r\n keyPressAlpha(event: { keyCode: number; preventDefault: () => void; }) {\r\n var inp = String.fromCharCode(event.keyCode);\r\n if (/[a-zA-Z ]/.test(inp)) {\r\n return true;\r\n } else {\r\n event.preventDefault();\r\n return false;\r\n }\r\n }\r\n ngOnDestroy(): void {\r\n\r\n }\r\n}","\r\n
\r\n \r\n
\r\n \r\n
Personal Information
\r\n\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n\r\n\r\n
\r\n\r\n\r\n
\r\n\r\n\r\n
\r\n\r\n\r\n\r\n
\r\n\r\n\r\n
\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\r\n
\r\n
\r\n Address2 \r\n \r\n
\r\n
\r\n\r\n \r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n\r\n \r\n\r\n \r\n \r\n Cancel\r\n \r\n \r\n \r\n Save\r\n \r\n \r\n \r\n
\r\n \r\n
","import { Component, Inject, OnDestroy, OnInit } from '@angular/core';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { FormGroup, FormBuilder, Validators, AbstractControl, FormControl } from '@angular/forms';\r\nimport data from 'src/app/components/data/data';\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport { Observable } from 'rxjs';\r\nimport { City } from 'src/app/interface';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nimport { map, startWith } from 'rxjs/operators';\r\n\r\n@Component({\r\n selector: 'app-add-edit-location',\r\n templateUrl: './add-edit-location.component.html',\r\n styleUrls: ['./add-edit-location.component.scss']\r\n})\r\nexport class AddEditPrefferedLocationComponent implements OnInit, OnDestroy {\r\n\r\n submitted: boolean = false;\r\n submittedLocation: boolean = false;\r\n locationForm: FormGroup;\r\n public locationInfo = [];\r\n langId: number = null;\r\n saveLocBtn: boolean = true;\r\n updateLocBtn: boolean = false;\r\n response: any;\r\n public placeholder: string = '';\r\n public keyword = 'skill';\r\n public historyHeading: string = 'Recently selected';\r\n public proficiency = data.proficiency;\r\n openform=false;\r\n // openForm=false;\r\n // boolVar=true;\r\n boolVar1=true;\r\n locData: Observable;\r\n hideForm: boolean = false;\r\n hideTable: boolean = true;\r\n\r\n allCities: any[];\r\n filterCities?: Observable;\r\n formCities = new FormControl();\r\n CityId: number;\r\n\r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private Service: SharedService,\r\n private Global : GlobalService,\r\n private dialogRef: MatDialogRef,\r\n @Inject(MAT_DIALOG_DATA) public editData: any\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n\r\n this.locationForm = this.formBuilder.group({\r\n Id: ['', null],\r\n EmpId: ['', null],\r\n CityId: ['', [Validators.required]],\r\n CityName: ['', null],\r\n })\r\n\r\n this.Service.Get('City/GetCity', null).subscribe(city => {\r\n this.locData = city;\r\n });\r\n\r\n this.Service.Get('City/GetCity', null).subscribe(data => {\r\n if (data != null) {\r\n this.allCities = data;\r\n this.filterCities = this.formCities.valueChanges.pipe(\r\n startWith(''),\r\n map(value => typeof value === 'string' ? value : value.CityName),\r\n map(CityName => CityName ? this._filterCity(CityName) : this.allCities.slice()),\r\n );\r\n }\r\n })\r\n }\r\n\r\n get floc(): { [key: string]: AbstractControl } {\r\n return this.locationForm.controls;\r\n }\r\n\r\n close()\r\n {\r\n this.dialogRef.close(); \r\n }\r\n\r\n \r\n private _filterCity(CityName: string): any[] {\r\n const filterValue = CityName.toLowerCase();\r\n return this.allCities.filter(\r\n option => option.CityName?.toLowerCase().indexOf(filterValue) === 0\r\n );\r\n }\r\n\r\n displayFnForCity(value: any) {\r\n return value ? value.CityName : undefined;\r\n }\r\n\r\n onchangeCity(event) \r\n {\r\n this.CityId = event;\r\n }\r\n\r\n locationInfoForm() {\r\n this.submittedLocation = true;\r\n this.locationForm.controls[\"CityId\"].setValue(this.CityId);\r\n if (this.locationForm.invalid) {\r\n this.toastr.error(\"Please fill out the required fields (* fields)\");\r\n }\r\n else {\r\n const insertcity = this.locationForm.getRawValue();\r\n insertcity.EmpId = this.Global.getCandidateId();\r\n \r\n this.Service.Post('CandidtaePreferredLocations/InsertCandidatePreferredLocationsForIndiviual', insertcity).subscribe(\r\n (res) => {\r\n this.toastr.success(res);\r\n this.dialogRef.close('Save'); \r\n // this.openform = false; \r\n this.boolVar1 = true; \r\n },\r\n (error) => {\r\n this.toastr.error(error.error);\r\n });\r\n this.submittedLocation = false;\r\n }\r\n }\r\n\r\n ngOnDestroy(): void {\r\n\r\n }\r\n\r\n}\r\n","\r\n
\r\n \r\n
\r\n \r\n \r\n
Add Preffered Location
\r\n
\r\n
\r\n
\r\n Location * \r\n \r\n \r\n \r\n {{cities.CityName}}\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n\r\n \r\n \r\n Cancel\r\n \r\n\r\n \r\n Save\r\n \r\n\r\n \r\n Update\r\n \r\n
\r\n \r\n
","import { ViewportScroller } from '@angular/common';\r\nimport { Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { AbstractControl, FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { Observable } from 'rxjs';\r\nimport { map, startWith } from 'rxjs/operators';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport { Bookmark, JobRole, Qualification } from 'src/app/interface';\r\nimport { SharedService } from 'src/app/shared.service';\r\n\r\n@Component({\r\n selector: 'app-recommandedjobs',\r\n templateUrl: './Recommanded-jobs.component.html',\r\n styleUrls: ['./Recommanded-jobs.component.scss']\r\n})\r\nexport class RecommandedjobsComponent implements OnInit, OnDestroy {\r\n\r\n obs: any;\r\n jobPostsInfo = [];\r\n datasource: any;\r\n bookmark: Bookmark;\r\n page: number = 1;\r\n pagesize: number = 5;\r\n totalItems: number = 0;\r\n datapageInfo: any;\r\n visible: boolean = false\r\n afterClickData: any = null;\r\n\r\n allJobRole !: JobRole[];\r\n filterJobroles?: Observable;\r\n jobroleControl = new FormControl();\r\n JobRole: number = 0;\r\n\r\n allQualification!: Qualification[];\r\n filterQualifications?: Observable;\r\n QualificationsControl = new FormControl();\r\n Education: number = 0;\r\n totalpages: number;\r\n addEditForm!: FormGroup;\r\n\r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private router: Router,\r\n private Service: SharedService,\r\n private Global: GlobalService,\r\n private scroller: ViewportScroller,\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.addEditForm = this.formBuilder.group({\r\n PageSearch: [null, Validators.nullValidator],\r\n })\r\n // this.Service.Get('JobRole/GetJobRole?Id=0', null).subscribe(data => {\r\n // if (data != null) {\r\n // this.allJobRole = data;\r\n // this.filterJobroles = this.jobroleControl.valueChanges.pipe(\r\n // startWith(''),\r\n // map(value => typeof value === 'string' ? value : value.JobRole),\r\n // map(JobRole => JobRole ? this._filterJobRole(JobRole) : this.allJobRole.slice()),\r\n // );\r\n // }\r\n // })\r\n this.addEditForm.controls[\"PageSearch\"].setValue(this.page );\r\n\r\n this.Service.Get('Qualification/GetQualification?Id=0', null).subscribe(data => {\r\n if (data != null) {\r\n this.allQualification = data;\r\n this.filterQualifications = this.QualificationsControl.valueChanges.pipe(\r\n startWith(''),\r\n map(value => typeof value === 'string' ? value : value.\r\n Qualification),\r\n map(Qualification => Qualification ? this._filterQualificationa(Qualification) : this.allQualification.slice())\r\n );\r\n }\r\n })\r\n this.getAllRecommandedJobs();\r\n }\r\n\r\n private _filterJobRole(jobrole: string): JobRole[] {\r\n const filterValue = jobrole.toLowerCase();\r\n\r\n return this.allJobRole.filter(\r\n option => option.JobRole?.toLowerCase().indexOf(filterValue) === 0\r\n );\r\n }\r\n\r\n displayFnForJobRole(value: any) {\r\n return value ? value.JobRole : undefined;\r\n }\r\n\r\n private _filterQualificationa(Qualification: string): Qualification[] {\r\n const filterValue = Qualification.toLowerCase();\r\n\r\n return this.allQualification.filter(\r\n option => option.Qualification?.toLowerCase().indexOf(filterValue) === 0\r\n );\r\n }\r\n\r\n displayFnForQualification(value: any) {\r\n return value ? value.Qualification : undefined;\r\n }\r\n\r\n // onchangeJobRole(jobrole: any) {\r\n // this.JobRole = jobrole;\r\n // }\r\n\r\n onchangeQualification(Qualification: any) {\r\n this.Education = Qualification;\r\n }\r\n\r\n getAllRecommandedJobs() {\r\n \r\n this.Service.Get('job/GetCandidateRecommandedJob?userId=' + this.Global.getuserId() + '&educationid=' + this.Education + '&page=' + this.page + '&pagesize=' + this.pagesize, null).subscribe(\r\n (res) => {\r\n this.jobPostsInfo = res[0];\r\n this.obs = this.jobPostsInfo;\r\n //this.datasource = this.jobPostsInfo;\r\n this.datapageInfo = res[1];\r\n this.totalItems = this.datapageInfo[0].length;\r\n this.totalpages = Math.ceil(this.totalItems / 5);\r\n this.CardClick(this.obs[0])\r\n },\r\n (error) => {\r\n //if (error.status == 401) this.router.navigate(['/login']);\r\n this.toastr.error(error.error);\r\n });\r\n }\r\n\r\n GOTO() {\r\n if (this.page >= 1) {\r\n this.getAllRecommandedJobs();}\r\n }\r\n \r\n Previous() {\r\n \r\n \r\n if (this.page > 1) {\r\n this.page = this.page - 1;\r\n this.addEditForm.controls[\"PageSearch\"].setValue(this.page);\r\n this.getAllRecommandedJobs();\r\n \r\n } else {\r\n \r\n }\r\n \r\n }\r\n \r\n Next() {\r\n if (this.totalpages > this.page) {\r\n this.page = this.page + 1\r\n this.addEditForm.controls[\"PageSearch\"].setValue(this.page);\r\n \r\n this.getAllRecommandedJobs();\r\n }\r\n }\r\n \r\n GoToPage(event: Event) {\r\n var value = (event.target as HTMLInputElement).value;\r\n if (+value > this.totalpages\r\n || +value < 0) {\r\n this.toastr.success('Page no Should be between : 1 And ' + this.totalpages);\r\n \r\n }\r\n else {\r\n this.page = +value;\r\n }\r\n }\r\n \r\n\r\n pageChanged(value: any) {\r\n this.page = value;\r\n //this.getAllRecommandedJobs()\r\n this.applyselection()\r\n }\r\n\r\n CardClick(event) {\r\n this.scroller.scrollToAnchor(\"targetRed\");\r\n if (event == undefined) {\r\n this.visible = false;\r\n }\r\n else {\r\n this.visible = true;\r\n this.afterClickData = event;\r\n }\r\n }\r\n\r\n BookMarked(Jobpost: any) {\r\n this.bookmark = new Bookmark;\r\n this.bookmark.PostedJobId = Jobpost.Id;\r\n this.bookmark.JobCompanyName = Jobpost.JobCompanyName;\r\n this.bookmark.UserId = this.Global.getuserId();\r\n this.Service.Post('Applyjob/Bookmark', this.bookmark).subscribe(data => {\r\n this.toastr.success(data);\r\n this.router.navigate(['/bookjobs']);\r\n })\r\n }\r\n\r\n ApplyNowClick(jobpost: any) {\r\n this.Service.Post('AppliedJob/InsertAppliedJob?jobpostId=' + jobpost, null).subscribe(\r\n (res) => {\r\n this.toastr.success(res);\r\n this.router.navigate(['/candidateappliedjob']);\r\n })\r\n }\r\n\r\n applyselection() {\r\n this.JobRole;\r\n this.Education;\r\n this.getAllRecommandedJobs();\r\n }\r\n\r\n removeselection() {\r\n this.JobRole = 0;\r\n this.Education = 0;\r\n this.getAllRecommandedJobs();\r\n\r\n this.filterQualifications = null;\r\n this.QualificationsControl = new FormControl();\r\n\r\n this.Service.Get('Qualification/GetQualification?Id=0', null).subscribe(data => {\r\n if (data != null) {\r\n this.allQualification = data;\r\n this.filterQualifications = this.QualificationsControl.valueChanges.pipe(\r\n startWith(''),\r\n map(value => typeof value === 'string' ? value : value.\r\n Qualification),\r\n map(Qualification => Qualification ? this._filterQualificationa(Qualification) : this.allQualification.slice())\r\n )\r\n }\r\n })\r\n\r\n this.filterJobroles = null\r\n this.jobroleControl = new FormControl();\r\n\r\n this.Service.Get('JobRole/GetJobRole?Id=0', null).subscribe(data => {\r\n if (data != null) {\r\n this.allJobRole = data;\r\n this.filterJobroles = this.jobroleControl.valueChanges.pipe(\r\n startWith(''),\r\n map(value => typeof value === 'string' ? value : value.JobRole),\r\n map(JobRole => JobRole ? this._filterJobRole(JobRole) : this.allJobRole.slice()),\r\n );\r\n }\r\n })\r\n\r\n }\r\n\r\n ngOnDestroy(): void {\r\n\r\n }\r\n\r\n}\r\n","\r\n \r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n {{tanker.Qualification}}\r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{jobpost.JobRole}} \r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n Keshav Encon Private Limited \r\n
\r\n
\r\n {{jobpost.JobForName}} \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
{{jobpost.JobLocationCity}}
\r\n
\r\n
\r\n
\r\n \r\n \r\n\r\n
{{jobpost.MinYearExp}} Years
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n\r\n
Joining Period :\r\n {{jobpost.NoticePerioddays}}
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
Openings: {{jobpost.JobOpening}}
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n\r\n
\r\n
\r\n
{{afterClickData.JobRole}} \r\n
\r\n
Keshav Encon Private Limited
\r\n
\r\n
\r\n
{{afterClickData.JobForName}}
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n
{{afterClickData.JobLocationCity}}
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n {{afterClickData.MinSalary}}-{{afterClickData.MaxSalary}} Lakh/PY
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
{{afterClickData.MinYearExp}} Years
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n Joining Period : {{afterClickData.NoticePerioddays}}\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
Openings : {{afterClickData.JobOpening}}
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Posted: {{afterClickData.PostedDays}} \r\n
\r\n
Apply \r\n
\r\n
Job Details
\r\n
Skill sets
\r\n
\r\n
Educational requirement
\r\n \r\n
\r\n
\r\n {{afterClickData.Qualification}} /\r\n {{afterClickData.AcademicDescription}} \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
Experience requirement
\r\n \r\n
\r\n
\r\n \r\n Minimum of {{afterClickData.MinYearExp}} years of\r\n experience in {{afterClickData.PostJobSpecializationDescription}}\r\n {{afterClickData.SpecializationDescription}}\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n
No Recommended Jobs
\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n Goto Page \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n Previous \r\n
\r\n
\r\n Next \r\n
\r\n
\r\n Total Records : {{totalItems}} \r\n
\r\n
\r\n Total Pages : {{totalpages}} \r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n \r\n \r\n ","import { Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { FormGroup, FormBuilder, Validators, FormControl, AbstractControl } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\nimport { event } from 'jquery';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { Observable } from 'rxjs';\r\nimport * as _moment from 'moment';\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport { cities, Country, JobRole, State } from 'src/app/interface';\r\nimport { MatDialog, MatDialogRef } from '@angular/material/dialog';\r\nimport { map, startWith } from 'rxjs/operators';\r\n\r\n\r\n@Component({\r\n selector: 'add-edit-basicinfo',\r\n templateUrl: './add-edit-basicinfo.component.html',\r\n styleUrls: ['./add-edit-basicinfo.component.scss']\r\n})\r\nexport class AddEditBasicInfoComponent implements OnInit, OnDestroy {\r\n submitted: boolean = false;\r\n basicInfoForm: FormGroup;\r\n info: any = [];\r\n summary: string;\r\n response: any;\r\n openform = false;\r\n boolVar = true;\r\n fileType: string = '';\r\n base64textString: string[] = [];\r\n allMaritalStatus: Observable;\r\n allGender: Observable;\r\n allJobRole: JobRole[];\r\n filterJobRole?: Observable;\r\n formControlObj = new FormControl();\r\n JobRoleId: number;\r\n \r\n allCountries: Country[]\r\n filterCountries?: Observable;\r\n formCountries = new FormControl();\r\n CountriesId: number;\r\n \r\n allStates: State[];\r\n filterStates?: Observable;\r\n formStates = new FormControl();\r\n StatesId: number;\r\n \r\n allCities: any[];\r\n filterCities?: Observable;\r\n formCities = new FormControl();\r\n CityId: number;\r\n hideForm: boolean = true;\r\n hideme: boolean = true;\r\n EmpImages: string = '';\r\n role : any ;\r\n city : any ;\r\n state: any ;\r\n countery: any ;\r\n\r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private Service: SharedService,\r\n private Global: GlobalService,\r\n private dialog: MatDialog,\r\n private dialogRef: MatDialogRef,\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.basicInfoForm = this.formBuilder.group({\r\n Id: ['', null],\r\n FirstName: ['', [Validators.required]],\r\n LastName: ['', [Validators.required, Validators.maxLength(50)]],\r\n MobileNo: ['', [Validators.required]],\r\n ExpectedSalary: ['', [Validators.nullValidator]],\r\n JobRoleId: ['', [Validators.nullValidator]],\r\n JobRole: ['', [Validators.nullValidator]],\r\n PassoutYear: ['', [Validators.nullValidator]],\r\n Photo: ['', [Validators.nullValidator]],\r\n CityIdOfEmployeeInfo: ['', [Validators.required]],\r\n CityNameOfEmployeeInfo: ['', null],\r\n StateId: ['', [Validators.required]],\r\n CountryId: ['', [Validators.required]],\r\n CountryName: ['', null],\r\n EducationId: ['', null],\r\n });\r\n this.Service.Get('GetListValue?Id=3', null).subscribe(maritalstatus => {\r\n this.allMaritalStatus = maritalstatus;\r\n });\r\n this.Service.Get('GetListValue?Id=2', null).subscribe(GenderData => {\r\n this.allGender = GenderData;\r\n });\r\n this.Service.Get('Country/GetCountry?Id=0', null).subscribe(country => {\r\n this.allCountries = country;\r\n });\r\n\r\n this.Service.Get('JobRole/GetJobRole?Id=0', null).subscribe(data => {\r\n if (data != null) {\r\n this.allJobRole = data;\r\n this.formControlObj.setValue(this.allJobRole[0]);\r\n this.filterJobRole = this.formControlObj.valueChanges.pipe(\r\n startWith(''),\r\n map(value => typeof value === 'string' ? value : value.JobRole),\r\n map(JobRole => JobRole ? this._filterRole(JobRole) : this.allJobRole.slice()),\r\n );\r\n }\r\n });\r\n \r\n this.Service.Get('Country/GetCountry?Id=0', null).subscribe(data => {\r\n if (data != null) {\r\n this.allCountries = data;\r\n this.filterCountries = this.formCountries.valueChanges.pipe(\r\n startWith(''),\r\n map(value => typeof value === 'string' ? value : value.CountryName),\r\n map(CountryName => CountryName ? this._filterCountry(CountryName) : this.allCountries.slice()),\r\n );\r\n }\r\n });\r\n\r\n this.Service.Get('City/GetCity?Id=0', null).subscribe(data => {\r\n if (data != null) {\r\n this.allCities = data;\r\n this.filterCities = this.formCities.valueChanges.pipe(\r\n startWith(''),\r\n map(value => typeof value === 'string' ? value : value.CityName),\r\n map(CityName => CityName ? this._filterCity(CityName) : this.allCities.slice()),\r\n );\r\n }\r\n })\r\n\r\n this.Service.Get('State/GetStateData?Id=0', null).subscribe(data => {\r\n if (data != null) {\r\n this.allStates = data;\r\n this.filterStates = this.formStates.valueChanges.pipe(\r\n startWith(''),\r\n map(value => typeof value === 'string' ? value : value.StateName),\r\n map(StateName => StateName ? this._filterState(StateName) : this.allStates.slice()),\r\n );\r\n }\r\n })\r\n\r\n this.getUser();\r\n }\r\n\r\n get f(): { [key: string]: AbstractControl } {\r\n return this.basicInfoForm.controls;\r\n }\r\n\r\n private _filterState(StateName: string): State[] {\r\n const filterValue = StateName.toLowerCase();\r\n return this.allStates.filter(\r\n option => option.StateName?.toLowerCase().indexOf(filterValue) === 0\r\n );\r\n }\r\n \r\n displayFnForState(value: any) {\r\n return value ? value.StateName : undefined;\r\n }\r\n \r\n private _filterCity(CityName: string): any[] {\r\n const filterValue = CityName.toLowerCase();\r\n return this.allCities.filter(\r\n option => option.CityName?.toLowerCase().indexOf(filterValue) === 0\r\n );\r\n }\r\n \r\n displayFnForCity(value: any) {\r\n return value ? value.CityName : undefined;\r\n }\r\n\r\n private _filterRole(JobRole: string): JobRole[] {\r\n const filterValue = JobRole.toLowerCase();\r\n return this.allJobRole.filter(\r\n option => option.JobRole?.toLowerCase().indexOf(filterValue) === 0\r\n );\r\n }\r\n \r\n displayFnForRole(value: any) {\r\n return value ? value.JobRole : undefined;\r\n }\r\n \r\n private _filterCountry(CountryName: string): Country[] {\r\n const filterValue = CountryName.toLowerCase();\r\n return this.allCountries.filter(\r\n option => option.CountryName?.toLowerCase().indexOf(filterValue) === 0\r\n );\r\n }\r\n displayFnForCountry(value: any) {\r\n return value ? value.CountryName : undefined;\r\n }\r\n\r\n baiscInfoForm() {\r\n this.submitted = true;\r\n this.basicInfoForm.controls[\"JobRoleId\"].setValue(this.JobRoleId);\r\n this.basicInfoForm.controls[\"CountryId\"].setValue(this.CountriesId);\r\n this.basicInfoForm.controls[\"StateId\"].setValue(this.StatesId);\r\n this.basicInfoForm.controls[\"CityIdOfEmployeeInfo\"].setValue(this.CityId);\r\n\r\n if (this.basicInfoForm.invalid) {\r\n this.toastr.error(\"Please fill out the required fields (* fields)\");\r\n }\r\n else {\r\n const updatepersonalinfo = this.basicInfoForm.getRawValue();\r\n \r\n updatepersonalinfo.Photo = this.EmpImages;\r\n this.Service.Put('CandidateInfo/UpdateBasicInfo', updatepersonalinfo).subscribe(\r\n (res) => {\r\n this.toastr.success(res);\r\n this.dialogRef.close('Update'); \r\n this.boolVar = true;\r\n },\r\n (error) => {\r\n\r\n this.toastr.error(error.error);\r\n });\r\n this.submitted = false;\r\n }\r\n }\r\n\r\n close(){\r\n this.dialogRef.close(); \r\n }\r\n\r\n \r\n getUser() {\r\n this.Service.Get('CandidateInfo/GetCandidateInfoByUserId?userId=' + this.Global.getuserId(), null).subscribe(\r\n (res) => {\r\n this.info = res;\r\n this.basicInfoForm.controls[\"Id\"].setValue(this.info.Id);\r\n this.Global.setCandidateId(this.info.Id);\r\n this.basicInfoForm.controls[\"FirstName\"].setValue(this.info.FirstName);\r\n this.basicInfoForm.controls[\"LastName\"].setValue(this.info.LastName);\r\n this.basicInfoForm.controls[\"MobileNo\"].setValue(this.info.MobileNo);\r\n this.basicInfoForm.controls['PassoutYear'].setValue(this.info.PassOutYear);\r\n this.basicInfoForm.controls[\"ExpectedSalary\"].setValue(this.info.ExpectedSalary);\r\n this.basicInfoForm.controls['Photo'].setValue(this.info.Photo);\r\n this.basicInfoForm.controls['EducationId'].setValue(this.info.EducationId);\r\n this.EmpImages = this.info.Photo;\r\n this.Service.Get('JobRole/GetJobRole?Id=' +this.info.JobRoleId, null).subscribe(data => {\r\n if (data != null) {\r\n this.role = data;\r\n this.formControlObj.setValue(this.role[0]);\r\n this.JobRoleId = this.role[0].Id;\r\n }\r\n });\r\n\r\n this.Service.Get('Country/GetCountry?Id=' + this.info.CountryId, null).subscribe(data => {\r\n if (data != null) {\r\n this.countery = data;\r\n this.formCountries.setValue(this.countery[0]);\r\n this.CountriesId = this.countery[0].Id;\r\n }\r\n });\r\n\r\n this.Service.Get('State/GetStateData?Id=' + this.info.StateId, null).subscribe(data => {\r\n if (data != null) {\r\n this.state = data;\r\n this.formStates.setValue(this.state[0]);\r\n this.StatesId = this.state[0].Id;\r\n }\r\n });\r\n this.Service.Get('City/GetCity?Id=' + this.info.CityIdOfEmployeeInfo, null).subscribe(data => {\r\n if (data != null) {\r\n this.city = data;\r\n this.formCities.setValue(this.city[0]);\r\n this.CityId = this.city[0].Id;\r\n }\r\n });\r\n\r\n // this.Service.Get('State/GetStateData?Id=0', null).subscribe(state => {\r\n // this.allStates = state;\r\n // })\r\n // this.Service.Get('City/GetCity?Id=0', null).subscribe(city => {\r\n // this.allCities = city;\r\n // })\r\n\r\n\r\n },\r\n (error) => {\r\n this.toastr.error(error.error);\r\n });\r\n }\r\n\r\n onchangeCountry(event) {\r\n this.CountriesId = event\r\n this.Service.Get('State/GetStateByCountry?countryId=' + this.CountriesId, null).subscribe(data => {\r\n if (data != null) {\r\n this.allStates = data;\r\n this.filterStates = this.formStates.valueChanges.pipe(\r\n startWith(''),\r\n map(value => typeof value === 'string' ? value : value.StateName),\r\n map(StateName => StateName ? this._filterState(StateName) : this.allStates.slice()),\r\n );\r\n }\r\n })\r\n}\r\n\r\nonchangeState(event)\r\n{\r\n this.StatesId = event;\r\n this.Service.Get('City/GetCityDataByState?StateId=' + this.StatesId, null).subscribe(data => {\r\n if (data != null) {\r\n this.allCities = data;\r\n this.filterCities = this.formCities.valueChanges.pipe(\r\n startWith(''),\r\n map(value => typeof value === 'string' ? value : value.CityName),\r\n map(CityName => CityName ? this._filterCity(CityName) : this.allCities.slice()),\r\n );\r\n }\r\n })\r\n}\r\n\r\nonchangeCity(event) \r\n {\r\n this.CityId = event;\r\n }\r\n Uploadcompanylogo(event: any) {\r\n if (event.target.files) {\r\n var reader = new FileReader();\r\n\r\n reader.readAsDataURL(event.target.files[0]);\r\n\r\n reader.onload = (event: any) => {\r\n this.EmpImages = event.target.result;\r\n };\r\n }\r\n }\r\n onchangejobrole(event) {\r\n this.JobRoleId = event\r\n }\r\n\r\n _handleReaderLoadedCompany(readerEvt) {\r\n var binaryString = readerEvt.target.result;\r\n this.base64textString.push('data:' + this.fileType + ';base64,' + btoa(readerEvt.target.result));\r\n }\r\n\r\n cycleImages(forward: boolean = true): void {\r\n // Get the image count and current image index\r\n const count = this.basicInfoForm.get('Images').value.length;\r\n const currentIndex = this.basicInfoForm.get('currentImageIndex').value;\r\n\r\n // Calculate the next and previous index\r\n const nextIndex = currentIndex + 1 === count ? 0 : currentIndex + 1;\r\n const prevIndex = currentIndex - 1 < 0 ? count - 1 : currentIndex - 1;\r\n\r\n // If cycling forward...\r\n if (forward) {\r\n this.basicInfoForm\r\n .get('currentImageIndex')\r\n .setValue(nextIndex);\r\n }\r\n // If cycling backwards...\r\n else {\r\n this.basicInfoForm\r\n .get('currentImageIndex')\r\n .setValue(prevIndex);\r\n }\r\n }\r\n\r\n\r\n keyPressAlphaNumeric(event: { keyCode: number; preventDefault: () => void; }) {\r\n var inp = String.fromCharCode(event.keyCode);\r\n if (/[0-9 ]/.test(inp)) {\r\n return true;\r\n } else {\r\n event.preventDefault();\r\n return false;\r\n }\r\n }\r\n\r\n keyPressAlpha(event: { keyCode: number; preventDefault: () => void; }) {\r\n var inp = String.fromCharCode(event.keyCode);\r\n if (/[a-zA-Z ]/.test(inp)) {\r\n return true;\r\n } else {\r\n event.preventDefault();\r\n return false;\r\n }\r\n }\r\n ngOnDestroy(): void {\r\n\r\n }\r\n}\r\n","\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
Basic Information
\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n Job Role * \r\n \r\n \r\n \r\n {{jobrole.JobRole}}\r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n Passout Year * \r\n \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n\r\n \r\n\r\n
\r\n
\r\n\r\n \r\n\r\n \r\n \r\n Cancel\r\n \r\n \r\n \r\n Save\r\n \r\n
\r\n \r\n \r\n \r\n
\r\n","import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core';\nimport { ToastrService } from 'ngx-toastr';\nimport { FormGroup, FormBuilder, Validators, FormControl, AbstractControl } from '@angular/forms';\nimport { DashboardService } from './services/dashboard.service';\nimport { Router } from \"@angular/router\";\nimport userToken from \"../../config/userToken\";\nimport { BuildResume } from './basic-info/basic-info.types';\nimport { SharedService } from 'src/app/shared.service';\nimport { GlobalService } from 'src/app/global.service';\nimport { MatDialog } from '@angular/material/dialog';\nimport { AddEditBasicInfoComponent } from './basic-info/add-edit-basicinfo/add-edit-basicinfo.component';\nimport { Message } from '@angular/compiler/src/i18n/i18n_ast';\nimport { ViewUploadedResumeComponent } from './viewuplodedresume/viewuplodedresume.component';\nimport { AddEditSkillsLanguagesComponent } from './skills-languages/add-edit-Skill/add-edit-skill.component';\nimport { AddEditEducationComponent } from './education/add-edit-edu/add-edit-edu.component';\nimport { AddEditExperienceComponent } from './experience/add-edit-experience/add-edit-experience';\nimport { AddEditCertificationComponent } from './Certification/add-edit-certification/add-edit-certificate.component';\nimport { AddEditLanguagesComponent } from './Languages/add-edit-languages/add-edit-languages.component';\nimport { AddEditPrefferedLocationComponent } from './Preffered Location/add-edit-location/add-edit-location.component';\nimport { AddEditCandidateFunctionComponent } from './CandidateFunction/add-edit-function/add-edit-function.component';\nimport { AddEditCandidateSectionComponent } from './CandidateSection/add-edit-section/add-edit-section.component';\nimport { AddEditPersonalInfoComponent } from './Personal-info/add-edit-personalinfo/add-edit-personalinfo.component';\nimport { ChangepasswordComponent } from './Change-password/Change-password.component';\nimport { ViewportScroller } from '@angular/common';\nimport { AddEditProjectComponent } from './project/add-edit-project/add-edit-project.component';\nimport { ConfirmDialogComponent, ConfirmDialogModel } from '../confirm-dialog/confirm-dialog.component';\n\n@Component({\n selector: 'app-dashboard',\n templateUrl: './dashboard.component.html',\n styleUrls: ['./dashboard.component.scss']\n})\nexport class DashboardComponent implements OnInit, OnDestroy {\n @ViewChild('myInput') myInputVariable: any;\n resumefilename: any;\n\n candidateInfo = [];\n userId: number = userToken.id;\n name: string;\n designation: string;\n getresumeData: BuildResume;\n datasourceExp: any;\n candidateImage: string = '';\n public skillInfo = [];\n public educationInfo = [];\n public experienceInfo = [];\n public projectsInfo = [];\n public CertificateInfo = [];\n public languageInfo = [];\n public locationInfo = [];\n public function = [];\n public section = [];\n public info: any;\n message: string = '';\n editskill: boolean = false;\n editLanguage: boolean = false;\n editLocation: boolean = false;\n public placeholder: string = '';\n EmpImages: string = '';\n basicInfoForm: FormGroup;\n\n constructor(private formBuilder: FormBuilder,\n private toastr: ToastrService,\n private Service: SharedService,\n private Global: GlobalService,\n private dialog: MatDialog,\n private scroller: ViewportScroller,\n ) {\n\n }\n\n ngOnInit(): void {\n this.getUser();\n this.getresumefileName();\n this.getAllSkills();\n this.getAllEducations();\n this.getAllExperience();\n this.getAllAchivements();\n this.getAllCertificate();\n this.getAllLanguages();\n this.getAllCity();\n this.getFuction();\n this.getSection();\n this.getPersonalInfo();\n\n this.basicInfoForm = this.formBuilder.group({\n Id: ['', null],\n FirstName: ['', [Validators.required]],\n LastName: ['', [Validators.required, Validators.maxLength(50)]],\n MobileNo: ['', [Validators.required]],\n ExpectedSalary: ['', [Validators.nullValidator]],\n JobRoleId: ['', [Validators.nullValidator]],\n JobRole: ['', [Validators.nullValidator]],\n PassoutYear: ['', [Validators.nullValidator]],\n Photo: ['', [Validators.nullValidator]],\n CityIdOfEmployeeInfo: ['', [Validators.required]],\n CityNameOfEmployeeInfo: ['', null],\n StateId: ['', [Validators.required]],\n CountryId: ['', [Validators.required]],\n CountryName: ['', null],\n\n });\n }\n\n getUser() {\n this.userId = this.Global.getuserId();\n this.Service.Get('CandidateInfo/GetCandidateInfoByUserId?userId=' + this.userId, null).subscribe(\n (res) => {\n this.getresumeData = res;\n this.candidateImage = this.getresumeData.Photo;\n this.basicInfoForm.controls[\"Id\"].setValue(this.getresumeData.Id);\n this.basicInfoForm.controls[\"FirstName\"].setValue(this.getresumeData.FirstName);\n this.basicInfoForm.controls[\"LastName\"].setValue(this.getresumeData.LastName);\n this.basicInfoForm.controls[\"MobileNo\"].setValue(this.getresumeData.MobileNo);\n this.basicInfoForm.controls['JobRoleId'].setValue(this.getresumeData.JobRoleId);\n this.basicInfoForm.controls['PassoutYear'].setValue(this.getresumeData.PassOutYear);\n this.basicInfoForm.controls[\"ExpectedSalary\"].setValue(this.getresumeData.ExpectedSalary);\n this.basicInfoForm.controls['CountryId'].setValue(this.getresumeData.CountryId);\n this.basicInfoForm.controls['StateId'].setValue(this.getresumeData.StateId);\n this.basicInfoForm.controls['CityIdOfEmployeeInfo'].setValue(this.getresumeData.CityIdOfEmployeeInfo);\n this.basicInfoForm.controls['Photo'].setValue(this.getresumeData.Photo);\n this.EmpImages = this.getresumeData.Photo\n },\n (error) => {\n this.toastr.error(error.error);\n }\n );\n }\n\n EditBasicinfo(row: any) {\n this.dialog.open(AddEditBasicInfoComponent, {\n width: '52%',\n height: '61%%',\n position: { top: '120px' },\n data: row\n }).afterClosed().subscribe(val => {\n if (val == \"Update\") {\n this.getUser();\n }\n });\n }\n\n MyClick() {\n console.log(\"Clicked\");\n }\n\n ViewResume() {\n const dialogRef = this.dialog.open(ViewUploadedResumeComponent, {\n width: '55%',\n height: '84%',\n position: { top: '117px' }\n });\n }\n\n uplodPfd(files: FileList) {\n var fileToUpload: File | null = null;\n fileToUpload = files.item(0);\n const formData: FormData = new FormData();\n // formData.append('pdf', fileToUpload, fileToUpload.name);\n formData.append('file', fileToUpload, fileToUpload.name);\n formData.append('candidateId', this.Global.getCandidateId().toString());\n\n if (fileToUpload.size <= 3000000) {\n this.Service.resumeupload(formData).subscribe((res) => {\n this.toastr.success(res.toString());\n this.getresumefileName();\n this.myInputVariable.nativeElement.value = \"\";\n },\n (error) => {\n this.toastr.error(error.error);\n this.myInputVariable.nativeElement.value = \"\";\n });\n }\n else {\n this.toastr.error(\"File size is large\");\n this.myInputVariable.nativeElement.value = \"\";\n }\n }\n\n getresumefileName() {\n\n this.Service.Get('CandidateInfo/GetCandidateInfoByUserId?userId=' + this.Global.getuserId(), null).subscribe(\n (res) => {\n this.resumefilename = res;\n },\n (error) => {\n this.toastr.error(error.error);\n }\n );\n }\n\n getAllSkills() {\n this.Service.Get('CandidateSkills/GetCandidateSkills?EmpId=' + this.Global.getCandidateId(), null).subscribe(res => {\n this.skillInfo = res;\n },\n (error) => {\n this.toastr.error(error.error);\n });\n }\n\n getAllEducations() {\n this.Service.Get('CandidateEducationInfo/GetCandidateEducationInfoByEmpId?EmpId=' + this.Global.getCandidateId(), null).subscribe(res => {\n this.educationInfo = res;\n },\n (error) => {\n this.toastr.error(error.error);\n });\n }\n\n getAllExperience() {\n this.Service.Get('CandidateExperienceInfo/GetCandidateExperienceInfoByEmpId?EmpId=' + this.Global.getCandidateId(), null).subscribe(\n (res) => {\n this.experienceInfo = res;\n },\n (error) => {\n this.toastr.error(error.error);\n });\n }\n\n getAllAchivements() {\n this.Service.Get('CandidateAchievements/GetCandidateAchievementsByEmpId?EmpId=' + this.Global.getCandidateId(), null).subscribe(\n (res) => {\n this.projectsInfo = res;\n },\n (error) => {\n this.toastr.error(error.error);\n });\n }\n\n getAllCertificate() {\n this.Service.Get('CandidateCertificatios/GetCandidateCertificatiosByEmpId?EmpId=' + this.Global.getCandidateId(), null).subscribe(res => {\n this.CertificateInfo = res;\n },\n (error) => {\n this.toastr.error(error.error);\n });\n }\n\n getAllLanguages() {\n this.Service.Get('CandidateLanguages/GetCandidateLanguages?EmpId=' + this.Global.getCandidateId(), null).subscribe(res => {\n this.languageInfo = res;\n },\n (error) => {\n this.toastr.error(error.error);\n });\n }\n\n getAllCity() {\n this.Service.Get('CandidtaePreferredLocations/GetCandidatePreferredLocations?EmpId=' + this.Global.getCandidateId(), null).subscribe(res => {\n this.locationInfo = res;\n },\n (error) => {\n this.toastr.error(error.error);\n });\n }\n\n getFuction() {\n this.Service.Get('CandidateInfo/GetCandidateInfo?id=' + this.Global.getCandidateId(), null).subscribe(\n (res) => {\n this.function = res;\n },\n (error) => {\n this.toastr.error(error.error);\n });\n }\n\n getSection() {\n this.Service.Get('CandidateInfo/GetCandidateInfo?id=' + this.Global.getCandidateId(), null).subscribe(\n (res) => {\n this.section = res;\n },\n (error) => {\n this.toastr.error(error.error);\n });\n }\n\n getPersonalInfo() {\n this.Service.Get('CandidateInfo/GetCandidateInfoByUserId?userId=' + this.Global.getuserId(), null).subscribe(\n (res) => {\n this.info = res;\n this.Global.setCandidateId(this.info.Id);\n },\n (error) => {\n this.toastr.error(error.error);\n });\n }\n\n AddSkill() {\n const dialogRef = this.dialog.open(AddEditSkillsLanguagesComponent, {\n width: '588px',\n height: 'auto',\n position: { top: '255px' },\n autoFocus: false,\n restoreFocus: false\n });\n dialogRef.afterClosed().subscribe(result => {\n if (result == \"Save\") {\n this.getAllSkills();\n }\n });\n }\n\n AddEdu() {\n\n const dialogRef = this.dialog.open(AddEditEducationComponent, {\n width: '588px',\n height: '81%',\n position: { top: '92px' }\n });\n dialogRef.afterClosed().subscribe(result => {\n if (result == \"Save\") {\n this.getAllEducations();\n this.getUser();\n }\n });\n }\n\n AddExp() {\n const dialogRef = this.dialog.open(AddEditExperienceComponent, {\n width: '40%',\n height: '80%',\n position: { top: '94px' }\n });\n dialogRef.afterClosed().subscribe(result => {\n if (result == \"Save\") {\n this.getAllExperience();\n }\n });\n }\n\n AddAchiv() {\n const dialogRef = this.dialog.open(AddEditProjectComponent, {\n width: '588px',\n height: 'auto',\n position: { top: '135px' }\n });\n dialogRef.afterClosed().subscribe(result => {\n if (result == \"Save\") {\n this.getAllAchivements();\n }\n });\n }\n\n\n AddCertificate() {\n\n const dialogRef = this.dialog.open(AddEditCertificationComponent, {\n width: 'auto',\n height: 'auto',\n position: { top: '135px' }\n });\n dialogRef.afterClosed().subscribe(result => {\n if (result == \"Save\") {\n this.getAllCertificate();\n }\n });\n }\n\n AddLanguage() {\n const dialogRef = this.dialog.open(AddEditLanguagesComponent, {\n width: '588px',\n height: 'auto',\n position: { top: '135px' },\n autoFocus: false,\n restoreFocus: false\n });\n dialogRef.afterClosed().subscribe(result => {\n if (result == \"Save\") {\n this.getAllLanguages();\n }\n });\n }\n\n AddLocation() {\n const dialogRef = this.dialog.open(AddEditPrefferedLocationComponent, {\n width: '588px',\n height: 'auto',\n position: { top: '135px' },\n autoFocus: false,\n restoreFocus: false\n });\n dialogRef.afterClosed().subscribe(result => {\n if (result == \"Save\") {\n this.getAllCity();\n }\n });\n }\n\n EditFunction(row: any) {\n this.dialog.open(AddEditCandidateFunctionComponent, {\n width: 'auto',\n height: 'auto',\n position: { top: '135px' },\n data: row\n }).afterClosed().subscribe(val => {\n if (val == \"Update\") {\n this.getFuction();\n }\n });\n }\n\n EditSection(row: any) {\n this.dialog.open(AddEditCandidateSectionComponent, {\n width: 'auto',\n height: 'auto',\n position: { top: '135px' },\n data: row\n }).afterClosed().subscribe(val => {\n if (val == \"Update\") {\n this.getSection();\n }\n });\n }\n\n EditPI() {\n const dialogRef = this.dialog.open(AddEditPersonalInfoComponent, {\n width: '844px',\n height: '89%',\n position: { top: '84px' },\n });\n dialogRef.afterClosed().subscribe(result => {\n if (result == \"Save\") {\n\n this.getPersonalInfo();\n this.getUser();\n\n }\n });\n }\n\n ChangePass() {\n const dialogRef = this.dialog.open(ChangepasswordComponent, {\n width: '41%',\n height: 'auto',\n position: { top: '142px' },\n });\n dialogRef.afterClosed().subscribe(result => {\n if (result == \"Save\") {\n\n this.getUser();\n\n }\n });\n }\n\n\n resume() {\n // this.scroller.scrollToAnchor(\"resume\");\n document.getElementById('resume').scrollIntoView(false);\n }\n Skill() {\n // this.scroller.scrollToAnchor(\"skill\");\n document.getElementById('skill').scrollIntoView(false);\n }\n Education() {\n //this.scroller.scrollToAnchor(\"education\");\n document.getElementById('education').scrollIntoView(false);\n }\n Achivements() {\n //this.scroller.scrollToAnchor(\"achivements\");\n document.getElementById('achivements').scrollIntoView(false);\n }\n Experience() {\n //this.scroller.scrollToAnchor(\"experience\");\n document.getElementById('experience').scrollIntoView(false);\n }\n Certificate() {\n //this.scroller.scrollToAnchor(\"certificate\");\n document.getElementById('certificate').scrollIntoView(false);\n }\n Language() {\n //this.scroller.scrollToAnchor(\"language\");\n document.getElementById('language').scrollIntoView(false);\n }\n PrefferedLocation() {\n //this.scroller.scrollToAnchor(\"prefferedLocation\");\n document.getElementById('prefferedLocation').scrollIntoView(false);\n }\n Function() {\n //this.scroller.scrollToAnchor(\"function\");\n document.getElementById('function').scrollIntoView(false);\n }\n IndustryType() {\n //this.scroller.scrollToAnchor(\"industryType\");\n document.getElementById('industryType').scrollIntoView(false);\n }\n PersonalDetail() {\n //this.scroller.scrollToAnchor(\"personalDetail\");\n document.getElementById('personalDetail').scrollIntoView(false);\n }\n\n delSkill(event: any) {\n // this.openform = !this.openform;\n this.message = `Are you sure you want to Delete ?`;\n\n\n\n const dialogData = new ConfirmDialogModel(\"Confirm Action\", this.message);\n\n const dialogRef = this.dialog.open(ConfirmDialogComponent, {\n maxWidth: \"400px\",\n data: dialogData\n });\n\n dialogRef.afterClosed().subscribe(dialogResult => {\n if (dialogResult == true) {\n this.Service.Get('CandidateSkills/DeleteCandidateSkill?Id=' + event.EmpSkillId, null).subscribe(\n (res) => {\n if (res) {\n this.toastr.success(res);\n this.getAllSkills();\n\n } else {\n this.toastr.error('Your Data Deleted Successfully');\n }\n });\n }\n });\n\n\n }\n\n delEdu(event: any) {\n\n this.message = `Are you sure you want to Delete ?`;\n\n\n\n const dialogData = new ConfirmDialogModel(\"Confirm Action\", this.message);\n\n const dialogRef = this.dialog.open(ConfirmDialogComponent, {\n maxWidth: \"400px\",\n data: dialogData\n });\n\n dialogRef.afterClosed().subscribe(dialogResult => {\n if (dialogResult == true) {\n this.Service.Get('CandidateEducationInfo/DeleteCandidateEducationInfo?Id=' + event.Id, null).subscribe(\n (res) => {\n if (res) {\n this.toastr.success(res);\n this.getAllEducations();\n\n } else {\n this.toastr.error('Your Data Deleted Successfully');\n }\n });\n }\n });\n\n\n }\n\n EditEdu(row: any) {\n this.dialog.open(AddEditEducationComponent, {\n width: '588px',\n height: '81%',\n position: { top: '92px' },\n data: row\n }).afterClosed().subscribe(val => {\n if (val == \"Update\") {\n this.getAllEducations();\n this.getUser();\n }\n });\n }\n\n delExp(event: any) {\n // this.openform = !this.openform;\n this.message = `Are you sure you want to Delete ?`;\n\n\n\n const dialogData = new ConfirmDialogModel(\"Confirm Action\", this.message);\n\n const dialogRef = this.dialog.open(ConfirmDialogComponent, {\n maxWidth: \"400px\",\n data: dialogData\n });\n\n dialogRef.afterClosed().subscribe(dialogResult => {\n if (dialogResult == true) {\n this.Service.Get('CandidateExperienceInfo/DeleteCandidateExperienceInfo?Id=' + event.Id, null).subscribe(\n (res) => {\n if (res) {\n this.toastr.success(res);\n this.getAllExperience();\n\n } else {\n this.toastr.error('Your Data Deleted Successfully');\n }\n });\n }\n });\n\n\n\n\n }\n\n\n EditExp(row: any) {\n this.dialog.open(AddEditExperienceComponent, {\n width: '40%',\n height: '80%',\n position: { top: '94px' },\n data: row\n }).afterClosed().subscribe(val => {\n if (val == \"Update\") {\n this.getAllExperience();\n }\n });\n }\n\n\n delPrj(event: any) {\n\n this.message = `Are you sure you want to Delete ?`;\n\n\n\n const dialogData = new ConfirmDialogModel(\"Confirm Action\", this.message);\n\n const dialogRef = this.dialog.open(ConfirmDialogComponent, {\n maxWidth: \"400px\",\n data: dialogData\n });\n\n dialogRef.afterClosed().subscribe(dialogResult => {\n if (dialogResult == true) {\n this.Service.Get('CandidateAchievements/DeleteCandidateAchievements?Id=' + event.Id, null).subscribe(\n (res) => {\n this.toastr.success(res);\n this.getAllAchivements();\n\n },\n (error) => {\n this.toastr.error('Your Data Deleted Successfully');\n });\n }\n });\n\n }\n\n EditAchiv(row: any) {\n this.dialog.open(AddEditProjectComponent, {\n width: '588px',\n height: 'auto',\n position: { top: '135px' },\n data: row\n }).afterClosed().subscribe(val => {\n if (val == \"Update\") {\n this.getAllAchivements();\n }\n });\n }\n\n delCerty(event: any) {\n\n this.message = `Are you sure you want to Delete ?`;\n\n\n\n const dialogData = new ConfirmDialogModel(\"Confirm Action\", this.message);\n\n const dialogRef = this.dialog.open(ConfirmDialogComponent, {\n maxWidth: \"400px\",\n data: dialogData\n });\n\n dialogRef.afterClosed().subscribe(dialogResult => {\n if (dialogResult == true) {\n this.Service.Get('CandidateCertificatios/DeleteCandidateCertifications?Id=' + event.Id, null).subscribe(\n (res) => {\n if (res) {\n this.toastr.success(res);\n this.getAllCertificate();\n\n } else {\n this.toastr.error('Your Data Deleted Successfully');\n }\n });\n }\n });\n\n\n }\n\n\n\n EditCertificate(row: any) {\n this.dialog.open(AddEditCertificationComponent, {\n width: 'auto',\n height: 'auto',\n position: { top: '135px' },\n data: row\n }).afterClosed().subscribe(val => {\n if (val == \"Update\") {\n this.getAllCertificate();\n }\n });\n }\n\n delLoc(event: any) {\n\n this.message = `Are you sure you want to Delete ?`;\n\n\n\n const dialogData = new ConfirmDialogModel(\"Confirm Action\", this.message);\n\n const dialogRef = this.dialog.open(ConfirmDialogComponent, {\n maxWidth: \"400px\",\n data: dialogData\n });\n\n dialogRef.afterClosed().subscribe(dialogResult => {\n if (dialogResult == true) {\n this.Service.Get('CandidtaePreferredLocations/DeleteCandidateCity?Id=' + event.EmpCityId, null).subscribe(\n (res) => {\n if (res) {\n this.toastr.success(res);\n this.getAllCity()\n\n } else {\n this.toastr.error('Your Data Deleted Successfully');\n }\n });\n }\n });\n\n\n }\n\n EditSkill() {\n this.editskill = true;\n }\n CancelSkill() {\n this.editskill = false;\n }\n EditLang() {\n this.editLanguage = true;\n }\n CancelLang() {\n this.editLanguage = false;\n }\n\n EditLocation() {\n this.editLocation = true;\n }\n\n CancelLocation() {\n this.editLocation = false;\n }\n\n Uploadcompanylogo(event: any) {\n if (event.target.files) {\n var reader = new FileReader();\n\n reader.readAsDataURL(event.target.files[0]);\n\n reader.onload = (event: any) => {\n this.EmpImages = event.target.result;\n this.UpdatePhoto();\n };\n }\n\n\n\n }\n\n UpdatePhoto() {\n const updatepersonalinfo = this.basicInfoForm.getRawValue();\n\n updatepersonalinfo.Photo = this.EmpImages;\n this.Service.Put('CandidateInfo/UpdateBasicInfo', updatepersonalinfo).subscribe(\n (res) => {\n this.toastr.success(res);\n this.getUser();\n },\n (error) => {\n\n this.toastr.error(error.error);\n });\n\n this.myInputVariable.nativeElement.value = \"\";\n }\n\n\n ngOnDestroy(): void {\n\n }\n}\n","\n \n\n\n\n \n
\n
\n
\n\n
\n
\n
\n \n \n\n
{{getresumeData.MobileNo}}
\n
\n
\n
\n \n \n\n
{{getresumeData.Email}}
\n
\n \n
\n \n
\n\n
\n
\n \n \n \n
{{getresumeData.CityNameOfEmployeeInfo}}, {{getresumeData.StateName}},\n {{getresumeData.CountryName}}
\n\n
\n
\n
\n \n \n \n \n\n\n
\n
{{getresumeData.JobRole}}
\n
\n
\n \n\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n
{{getresumeData.PassOutYear}}
\n
\n
\n \n\n\n \n\n
\n
{{getresumeData.FirstName}} {{getresumeData.LastName}}
\n\n
\n \n \n\n
\n
\n
\n
\n\n
\n Please complete your pending actions to make your profile attractive to\n recruiters.\n
\n\n
Pending Action(s)
\n
\n
\n
\n
\n
\n \n \n \n \n
\n
\n
\n
\n \n \n \n \n
\n
\n
\n\n
\n\n\n
\n
\n
\n
Resume
\n
\n Resume is the most important document recruiters look for. Recruiters\n generally do not look at profiles without resumes\n
\n
\n {{resumefilename.ResumeFIleName}}\n
\n
\n UPLOAD RESUME \n \n
\n
\n Supported Formats: pdf\n
\n\n
\n\n
\n
\n\n
\n
\n
\n
\n
Key Skills
\n
\n \n \n
\n\n
ADD SKILL
\n
\n\n
\n
\n\n
\n
\n
\n
Education
\n\n\n
ADD EDUCATION
\n
\n
\n
\n
\n
\n\n
\n\n
\n\n
\n School Or University:\n \n {{edu.SchoolOrUniversity}} \n
\n\n
\n Specialization: {{edu.SpecializationDescription}} \n
\n\n
GradeOrPercentage: {{edu.GradeOrPercentage}} \n
\n\n
Education Type: {{edu.EducationTypeName}} \n
\n
Passout Year : {{edu.PassOutYear}}
\n\n
\n
\n
\n
\n
\n
\n\n
\n\n
\n
\n
\n
Experience
\n\n
ADD EXPERIENCE
\n
\n
\n
\n
\n
\n\n
\n\n
\n
\n Company Name :\n \n {{exp.CompanyName}} \n
\n\n
\n Job Role : {{exp.JobRole}} \n
\n\n
Employment : {{exp.EmployeementTypeName}} \n
\n\n
Work Location: {{exp.WorkLocation}} \n
\n\n
Current Job : {{exp.IsCurrentJob ? 'Yes' : 'No'}} \n
\n\n \n
\n
\n
\n
\n
\n
\n
\n\n\n
\n
\n
\n
Achievments
\n
ADD ACHIEVMENT
\n
\n
\n
\n
\n
\n\n
\n\n
\n
\n Achievment :\n \n {{achiv.DescriptionOfAchievments}} \n
\n\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
Certificate
\n \n\n
ADD CERTIFICATE
\n
\n
\n
\n
\n
\n\n \n
\n
\n
\n Certification Name :\n \n {{certy.CertificationName}} \n
\n\n
\n Description : {{certy.Description}} \n
\n\n
Date Of Issue :{{certy.DateOfIssue | date\n :'dd-MM-yyyy'}} \n
\n\n
Date Of Validity : {{certy.DateOfValidity | date :'dd-MM-yyyy'}} \n
\n \n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
{{lang.Language}}
\n
\n
\n
\n
\n
\n
\n\n
\n
Language
\n
\n \n \n
\n
ADD LANGUAGE
\n
\n
\n
\n\n
\n
\n
\n \n\n
\n
Preffered Location
\n
\n \n \n
\n
ADD LOCATION
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n\n\n\n
\n
\n Function1 :\n \n {{fun.FunctionName}} \n
\n\n
\n Function2: {{fun.FunctionName2}} \n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n Industry Type 1 :\n \n {{sec.SectionName}} \n
\n\n
\n Industry Type 2 : {{sec.SectionName2}} \n
\n\n
\n Industry Type 3 : {{sec.SectionName3}} \n
\n\n
\n
Industry Type
\n
\n \n \n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n First Name :\n \n {{info.FirstName}} \n
\n\n
\n Last Name : {{info.LastName}} \n
\n\n
Mobile No : {{info.MobileNo}} \n
\n\n
Date of Birth : {{info.DateOfBirth |\n date:'dd-MM-yyyy'}} \n
\n
Gender : {{info.GenderDesc}}
\n\n
Marital Status : {{info.MaritalStatusDesc}}
\n\n
Nationality : {{info.Nationality}}
\n\n
Differently Abled : {{info.DifferentlyAbled ? 'Yes' :\n 'No'}}
\n\n
Address : {{info.Address1}} {{info.Address2}}\n ,{{info.StateName}},{{info.CityNameOfEmployeeInfo}}\n {{info.PinCode}},{{info.CountryName}}
\n\n
\n
Personal Detail
\n
\n \n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n
\n\n\n \n","import { Component, Inject, OnDestroy, OnInit } from '@angular/core';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { FormGroup, FormBuilder, Validators, AbstractControl, FormControl } from '@angular/forms';\r\nimport { Router } from \"@angular/router\";\r\nimport { Observable } from 'rxjs';\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport data from 'src/app/components/data/data';\r\nimport * as _moment from 'moment';\r\nimport { AcademicDiscipline, Qualificationa, Specialization } from '../educartion.types';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nimport { Qualification } from 'src/app/interface';\r\nimport { map, startWith } from 'rxjs/operators';\r\nconst moment = _moment;\r\n\r\n\r\n@Component({\r\n selector: 'app-add-edit-edu',\r\n templateUrl: './add-edit-edu.component.html',\r\n styleUrls: ['./add-edit-edu.component.scss']\r\n})\r\nexport class AddEditEducationComponent implements OnInit, OnDestroy {\r\n // submitted: boolean = false;\r\n submittedEdu: boolean = false;\r\n educationForm: FormGroup;\r\n public educationInfo = [];\r\n city = data.cities;\r\n response: any;\r\n eduId: number = null;\r\n saveEduBtn: boolean = true;\r\n updateEduBtn: boolean = false;\r\n // openform = false;\r\n boolCreate = true;\r\n allQualification: Observable;\r\n alldiscipline: Observable;\r\n allspecialization: Observable;\r\n allEducationType: Observable;\r\n public education: any;\r\n hideForm: boolean = true;\r\n\r\n allQualificationauto: Qualification[];\r\n filterQualification?: Observable;\r\n formControlQualificationine = new FormControl();\r\n QualificationId: number;\r\n\r\n alldisciplineauto: AcademicDiscipline[];\r\n filterdiscipline?: Observable;\r\n formControldiscipline = new FormControl();\r\n \r\n allspecializationauto: Specialization[];\r\n filterspecialization?: Observable;\r\n formControlspecialization = new FormControl();\r\n disciplineId : number;\r\n specializationId : number;\r\n \r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private service: SharedService,\r\n private Global: GlobalService,\r\n private router: Router,\r\n private dialogRef: MatDialogRef,\r\n @Inject(MAT_DIALOG_DATA) public editData: any\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n\r\n this.educationForm = this.formBuilder.group({\r\n Id: ['', null],\r\n EmpId: ['', null],\r\n SchoolOrUniversity: ['', [Validators.required]],\r\n QualificationId: ['', [Validators.required]],\r\n Qualification: ['', [Validators.nullValidator]],\r\n Specialization: ['', [Validators.nullValidator]],\r\n GradeOrPercentage: ['', [Validators.required]],\r\n EducationType: ['', [Validators.nullValidator]],\r\n FromDateOfEducation: ['', [Validators.nullValidator]],\r\n ToDateOfEducation: ['', [Validators.nullValidator]],\r\n PassoutYear: ['', [Validators.required]],\r\n AcademicDisciplineId: ['', Validators.required],\r\n AcademicDescription: ['', Validators.nullValidator],\r\n SpecializationId: ['', Validators.required],\r\n SpecializationDescription: ['', Validators.nullValidator]\r\n });\r\n\r\n this.service.Get('Qualification/GetQualification?Id=0', null).subscribe(data => {\r\n if (data != null) {\r\n this.allQualificationauto = data;\r\n //this.formControlQualificationine.setValue(this.allQualification[2]);\r\n this.filterQualification = this.formControlQualificationine.valueChanges.pipe(\r\n startWith(''),\r\n map(value => typeof value === 'string' ? value : value.Qualification),\r\n map(Qualification => Qualification ? this._filterQualification(Qualification) : this.allQualificationauto.slice()),\r\n );\r\n //this.onchangeQualification(this.allQualification[2].Id)\r\n }\r\n });\r\n \r\n this.allQualification = this.service.Get('Qualification/GetQualification?Id=0', null);\r\n\r\n\r\n this.service.Get('GetListValue?Id=4', null).subscribe(educationtype => {\r\n this.allEducationType = educationtype;\r\n });\r\n if (this.editData) {\r\n this.editEdu(this.editData)\r\n this.updateEduBtn = true\r\n this.saveEduBtn = false\r\n }\r\n else {\r\n this.updateEduBtn = false\r\n this.saveEduBtn = true\r\n }\r\n }\r\n\r\n private _filterQualification(Qualification: string): Qualification[] {\r\n const filterValue = Qualification.toLowerCase();\r\n return this.allQualificationauto.filter(\r\n option => option.Qualification?.toLowerCase().indexOf(filterValue) === 0\r\n );\r\n }\r\n \r\n displayFnForQualification(value: any) {\r\n return value ? value.Qualification : undefined;\r\n }\r\n \r\n private _filterdiscipline(AcademicDescription: string): AcademicDiscipline[] {\r\n const filterValue = AcademicDescription.toLowerCase();\r\n return this.alldisciplineauto.filter(\r\n option => option.AcademicDescription?.toLowerCase().indexOf(filterValue) === 0\r\n );\r\n }\r\n \r\n displayFnFordiscipline(value: any) {\r\n return value ? value.\r\n AcademicDescription : undefined;\r\n }\r\n \r\n private _filterSpecialization(SpecializationDescription: string): Specialization[] {\r\n const filterValue = SpecializationDescription.toLowerCase();\r\n return this.allspecializationauto.filter(\r\n option => option.SpecializationDescription?.toLowerCase().indexOf(filterValue) === 0\r\n );\r\n }\r\n \r\n displayFnForSpecialization(value: any) {\r\n return value ? value.\r\n SpecializationDescription : undefined;\r\n }\r\n\r\n get fedu(): { [key: string]: AbstractControl } {\r\n return this.educationForm.controls;\r\n }\r\n\r\n //Education\r\n educationInfoForm() {\r\n this.submittedEdu = true;\r\n this.educationForm.controls[\"QualificationId\"].setValue(this.QualificationId);\r\n this.educationForm.controls[\"AcademicDisciplineId\"].setValue(this.disciplineId);\r\n this.educationForm.controls[\"SpecializationId\"].setValue(this.specializationId);\r\n if (this.educationForm.invalid) {\r\n this.toastr.error(\"Please fill out the required fields (* fields)\");\r\n }\r\n else {\r\n \r\n\r\n const updateeducation = this.educationForm.getRawValue();\r\n updateeducation.EmpId = this.Global.getCandidateId();\r\n this.service.Post('CandidateEducationInfo/InsertCandidateEducationInfo/', updateeducation).subscribe(\r\n (res) => {\r\n if (res) {\r\n this.toastr.success(res);\r\n this.hideForm = false;\r\n this.dialogRef.close('Save');\r\n this.boolCreate = true;\r\n\r\n } else {\r\n this.toastr.error('Error While Insert Data');\r\n }\r\n },\r\n (error) => {\r\n this.toastr.error(error.error);\r\n });\r\n this.submittedEdu = false;\r\n }\r\n }\r\n close(){\r\n this.dialogRef.close(); \r\n }\r\n educationUpdateForm() {\r\n this.submittedEdu = true;\r\n // let data = this.educationForm.value;\r\n\r\n if (this.educationForm.invalid) {\r\n this.toastr.error(\"Please fill out the required fields (* fields)\");\r\n }\r\n else {\r\n const updateeducation = this.educationForm.getRawValue();\r\n this.service.Put('CandidateEducationInfo/UpdateCandidateEducationInfo/', this.educationForm.value).subscribe(\r\n (res) => {\r\n if (res) {\r\n this.toastr.success(res);\r\n\r\n this.dialogRef.close('Update');\r\n this.boolCreate = true;\r\n } else {\r\n this.toastr.error('Error While Update Data');\r\n }\r\n },\r\n (error) => {\r\n this.toastr.error(error.error);\r\n });\r\n\r\n this.submittedEdu = false;\r\n }\r\n\r\n }\r\n\r\n // getAllEducations() {\r\n // this.service.Get('CandidateEducationInfo/GetCandidateEducationInfoByEmpId?EmpId=' + this.Global.getCandidateId(), null).subscribe(res => {\r\n // this.educationInfo = res;\r\n // },\r\n\r\n // (error) => {\r\n // this.toastr.error(error.error);\r\n // });\r\n // }\r\n\r\n editEdu(enducationifo: any) {\r\n\r\n this.educationForm.controls[\"Id\"].setValue(enducationifo.Id);\r\n this.educationForm.controls[\"SchoolOrUniversity\"].setValue(enducationifo.SchoolOrUniversity);\r\n this.educationForm.controls[\"GradeOrPercentage\"].setValue(enducationifo.GradeOrPercentage);\r\n this.educationForm.controls[\"QualificationId\"].setValue(enducationifo.QualificationId);\r\n this.educationForm.controls[\"EducationType\"].setValue(enducationifo.EducationType);\r\n\r\n const momentDate = new Date(enducationifo.FromDateOfEducation);\r\n const formateddate = moment(momentDate).format(\"yyyy-MM-DD\");\r\n enducationifo.FromDateOfEducation = formateddate;\r\n this.educationForm.controls[\"FromDateOfEducation\"].setValue(enducationifo.FromDateOfEducation);\r\n\r\n const momentDate1 = new Date(enducationifo.ToDateOfEducation);\r\n const formateddate1 = moment(momentDate1).format(\"yyyy-MM-DD\");\r\n enducationifo.ToDateOfEducation = formateddate1;\r\n\r\n this.educationForm.controls[\"ToDateOfEducation\"].setValue(enducationifo.ToDateOfEducation);\r\n this.educationForm.controls[\"AcademicDisciplineId\"].setValue(enducationifo.AcademicDisciplineId);\r\n this.educationForm.controls[\"PassoutYear\"].setValue(enducationifo.PassOutYear);\r\n\r\n\r\n this.educationForm.controls[\"SpecializationId\"].setValue(enducationifo.SpecializationId);\r\n\r\n this.alldiscipline = this.service.Get('AcademicDiscipline/GetAcademicDisciplineByQualification?QualificationId=' + enducationifo.QualificationId, null);\r\n this.allspecialization = this.service.Get('Specialization/GetSpecializationDataByDiscipline?AcademicDisplineId=' + enducationifo.AcademicDisciplineId, null);\r\n this.service.Get('GetListValue?Id=4', null).subscribe(educationtype => {\r\n this.allEducationType = educationtype;\r\n });\r\n this.submittedEdu = false;\r\n }\r\n\r\n\r\n\r\n\r\n onchangeQualification(event) {\r\n this.allspecialization = null;\r\n if(this.saveEduBtn == true)\r\n {\r\n this.QualificationId = event;\r\n this.service.Get('AcademicDiscipline/GetAcademicDisciplineByQualification?QualificationId=' + this.QualificationId, null).subscribe(data => {\r\n if (data != null) {\r\n this.alldisciplineauto = data;\r\n this.filterdiscipline = this.formControldiscipline.valueChanges.pipe(\r\n startWith(''),\r\n map(value => typeof value === 'string' ? value : value.AcademicDescription),\r\n map(AcademicDescription => AcademicDescription ? this._filterdiscipline(AcademicDescription) : this.alldisciplineauto.slice()),\r\n );\r\n }\r\n })\r\n\r\n }\r\n else\r\n {\r\n this.alldiscipline = this.service.Get('AcademicDiscipline/GetAcademicDisciplineByQualification?QualificationId=' + event, null);\r\n }\r\n \r\n }\r\n\r\n\r\n onchangeDiscipline(event) {\r\n if(this.saveEduBtn == true){\r\n this.disciplineId = event\r\n this.service.Get('Specialization/GetSpecializationDataByDiscipline?AcademicDisplineId=' + this.disciplineId , null).subscribe(data => {\r\n if (data != null) {\r\n this.allspecializationauto = data;\r\n this.filterspecialization = this.formControlspecialization.valueChanges.pipe(\r\n startWith(''),\r\n map(value => typeof value === 'string' ? value : value.SpecializationDescription),\r\n map(SpecializationDescription => SpecializationDescription ? this._filterSpecialization(SpecializationDescription) : this.allspecializationauto.slice()),\r\n );\r\n }\r\n })\r\n }\r\n this.allspecialization = this.service.Get('Specialization/GetSpecializationDataByDiscipline?AcademicDisplineId=' + event, null);\r\n }\r\n\r\n onchangeSpecialization(event) {\r\n this.specializationId = event\r\n \r\n }\r\n\r\n // OnChangeSpecialization(event:any) { \r\n\r\n // //alert(event);\r\n // }\r\n\r\n\r\n ngOnDestroy(): void {\r\n\r\n }\r\n\r\n}\r\n","\r\n
\r\n \r\n
\r\n \r\n
Add Education
\r\n
\r\n\r\n
\r\n
\r\n Education \r\n \r\n Please select \r\n \r\n {{EduType.MessageText}}\r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n\r\n\r\n
\r\n\r\n\r\n
\r\n \r\n \r\n
\r\n
\r\n Passout Year * \r\n \r\n\r\n
\r\n
\r\n
\r\n \r\n\r\n
\r\n \r\n Cancel\r\n \r\n\r\n \r\n Save\r\n \r\n\r\n \r\n Update\r\n \r\n
\r\n
\r\n\r\n \r\n
","import { Component, Inject, OnDestroy, OnInit } from '@angular/core';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { FormGroup, FormBuilder, Validators, AbstractControl, FormControl } from '@angular/forms';\r\nimport data from 'src/app/components/data/data';\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport { Observable } from 'rxjs';\r\nimport { JobRole } from 'src/app/interface';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport * as _moment from 'moment';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nimport { idText } from 'typescript';\r\nimport { map, startWith } from 'rxjs/operators';\r\nconst moment = _moment;\r\n\r\n@Component({\r\n selector: 'app-add-edit-exp',\r\n templateUrl: './add-edit-experience.html',\r\n styleUrls: ['./add-edit-experience.scss']\r\n})\r\nexport class AddEditExperienceComponent implements OnInit, OnDestroy {\r\n\r\n // submitted: boolean = false;\r\n submittedExp: boolean = false;\r\n experienceForm: FormGroup;\r\n public experienceInfo = [];\r\n response: any;\r\n expId: number = null;\r\n saveExpBtn: boolean = true;\r\n updateExpBtn: boolean = false;\r\n city = data.cities;\r\n // openform = false;\r\n boolCreate = true;\r\n \r\n allJobRole: Observable;\r\n\r\n allJobRoleauto: JobRole[];\r\n filterJobRole?: Observable;\r\n formControlObj = new FormControl();\r\n JobRoleId: number;\r\n\r\n\r\n allEmployeementType: Observable;\r\n isCurrentJobvalue: boolean = false;\r\n hideForm: boolean = false;\r\n hideTable: boolean = true;\r\n\r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private Service: SharedService,\r\n private Global: GlobalService,\r\n private dialogRef: MatDialogRef,\r\n @Inject(MAT_DIALOG_DATA) public editData: any\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.experienceForm = this.formBuilder.group({\r\n Id: ['', null],\r\n EmpId :['',null],\r\n CompanyName: ['', [Validators.required]],\r\n JobRoleId: ['', [Validators.required]],\r\n JobRole: ['', [Validators.nullValidator]],\r\n EmployeementType: ['', [Validators.nullValidator]],\r\n WorkLocation: ['', [Validators.required]],\r\n FromDate: ['', [Validators.nullValidator]],\r\n ToDate: ['', [Validators.nullValidator]],\r\n IsShiftJob: ['', [Validators.nullValidator]],\r\n IsCurrentJob: ['', [Validators.nullValidator]],\r\n })\r\n\r\n if(this.editData){\r\n this.editExp(this.editData)\r\n this.updateExpBtn = true\r\n this.saveExpBtn = false\r\n }\r\n else{\r\n this.updateExpBtn = false\r\n this.saveExpBtn = true\r\n \r\n }\r\n \r\n this.Service.Get('JobRole/GetJobRole?Id=0', null).subscribe(data => {\r\n if (data != null) {\r\n this.allJobRoleauto = data;\r\n // this.formControlObj.setValue(this.allJobRole[0]);\r\n this.filterJobRole = this.formControlObj.valueChanges.pipe(\r\n startWith(''),\r\n map(value => typeof value === 'string' ? value : value.JobRole),\r\n map(JobRole => JobRole ? this._filterRole(JobRole) : this.allJobRoleauto.slice()),\r\n );\r\n // this.onchangejobrole(this.allJobRole[0].Id);\r\n }\r\n });\r\n\r\n\r\n this.Service.Get('JobRole/GetJobRole?Id=0', null).subscribe(jobrole => {\r\n this.allJobRole = jobrole;\r\n })\r\n\r\n this.Service.Get('GetListValue?Id=5', null).subscribe(employeetype => {\r\n this.allEmployeementType = employeetype;\r\n });\r\n\r\n this.experienceForm.get('currentlyWorking').valueChanges.subscribe(value => {\r\n value ? this.experienceForm.get('endDate').disable() : this.experienceForm.get('endDate').enable();\r\n })\r\n }\r\n\r\n get fexp(): { [key: string]: AbstractControl } {\r\n return this.experienceForm.controls;\r\n }\r\n handleClick(value: any){\r\n // alert(value.target.checked);\r\n this.isCurrentJobvalue = value;\r\n\r\n }\r\n\r\n private _filterRole(JobRole: string): JobRole[] {\r\n const filterValue = JobRole.toLowerCase();\r\n return this.allJobRoleauto.filter(\r\n option => option.JobRole?.toLowerCase().indexOf(filterValue) === 0\r\n );\r\n }\r\n \r\n displayFnForRole(value: any) {\r\n return value ? value.JobRole : undefined;\r\n }\r\n\r\n onchangejobrole(event) {\r\n this.JobRoleId = event\r\n }\r\n //Experience\r\n experienceInfoForm() {\r\n this.submittedExp = true;\r\n this.experienceForm.controls[\"JobRoleId\"].setValue(this.JobRoleId);\r\n if (this.experienceForm.invalid) {\r\n this.toastr.error(\"Please fill out the required fields (* fields)\");\r\n }\r\n else {\r\n const updateexperince = this.experienceForm.getRawValue();\r\n updateexperince.EmpId = this.Global.getCandidateId();\r\n // if(updateexperince.IsCurrentJob == true){\r\n // this.isCurrentJob = false;\r\n // }\r\n this.Service.Post('CandidateExperienceInfo/InsertCandidateExperienceInfo/', updateexperince).subscribe(\r\n (res) => {\r\n this.toastr.success(res);\r\n this.dialogRef.close('Save'); \r\n this.hideForm = false;\r\n this.hideTable = true; \r\n // this.openform = false; \r\n this.boolCreate = true; \r\n },\r\n (error) => {\r\n this.toastr.error(error.error);\r\n });\r\n this.submittedExp = false;\r\n }\r\n }\r\n\r\n experienceUpdateForm() {\r\n this.submittedExp = true;\r\n\r\n if (this.experienceForm.invalid) {\r\n this.toastr.error(\"Please fill out the required fields (* fields)\");\r\n }\r\n else {\r\n const updateexperince = this.experienceForm.getRawValue();\r\n updateexperince.EmpId = this.Global.getCandidateId();\r\n this.Service.Put('CandidateExperienceInfo/UpdateCandidateExperienceInfo/', updateexperince).subscribe(\r\n (res) => {\r\n this.toastr.success(res);\r\n // this.editExp(event)\r\n this.dialogRef.close('Update');;\r\n \r\n this.hideForm = false;\r\n this.hideTable = true; \r\n // this.openform = false; \r\n this.boolCreate = true; \r\n },\r\n (error) => {\r\n this.toastr.error(error.error);\r\n });\r\n this.submittedExp = false;\r\n }\r\n }\r\n close(){\r\n this.dialogRef.close(); \r\n }\r\n editExp(experienceInfo: any) {\r\n this.experienceForm.controls[\"Id\"].setValue(experienceInfo.Id);\r\n this.experienceForm.controls[\"CompanyName\"].setValue(experienceInfo.CompanyName);\r\n this.experienceForm.controls[\"JobRoleId\"].setValue(experienceInfo.JobRoleId);\r\n this.experienceForm.controls[\"EmployeementType\"].setValue(experienceInfo.EmployeementType);\r\n this.experienceForm.controls[\"WorkLocation\"].setValue(experienceInfo.WorkLocation);\r\n this.experienceForm.controls[\"IsCurrentJob\"].setValue(experienceInfo.IsCurrentJob);\r\n if(experienceInfo.FromDate != null)\r\n {\r\n const momentDate = new Date(experienceInfo.FromDate);\r\n const formateddate = moment(momentDate).format(\"yyyy-MM-DD\");\r\n experienceInfo.FromDate = formateddate;\r\n }\r\n if(experienceInfo.ToDate != null)\r\n {\r\n const momentDate1 = new Date(experienceInfo.ToDate);\r\n const formateddate2 = moment(momentDate1).format(\"yyyy-MM-DD\");\r\n experienceInfo.ToDate = formateddate2;\r\n }\r\n this.experienceForm.controls[\"FromDate\"].setValue(experienceInfo.FromDate);\r\n this.experienceForm.controls[\"ToDate\"].setValue(experienceInfo.ToDate);\r\n this.experienceForm.controls[\"IsShiftJob\"].setValue(experienceInfo.IsShiftJob);\r\n \r\n if(experienceInfo.IsCurrentJob == true)\r\n {\r\n this.isCurrentJobvalue = true;\r\n } \r\n this.Service.Get('JobRole/GetJobRole?Id=0', null).subscribe(jobrole => {\r\n this.allJobRole = jobrole;\r\n this.Service.Get('GetListValue?Id=5', null).subscribe(employeetype => {\r\n this.allEmployeementType = employeetype;\r\n });\r\n this.submittedExp = false;\r\n })\r\n}\r\n\r\n ngOnDestroy(): void {\r\n\r\n }\r\n\r\n}\r\n","\r\n\r\n
\r\n \r\n
\r\n \r\n
Add Experience
\r\n\r\n
\r\n
\r\n\r\n\r\n
\r\n\r\n
\r\n
\r\n Employment \r\n \r\n Please select \r\n \r\n {{TaxType.MessageText}}\r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n \r\n Currently Working here \r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n Shift Job \r\n
\r\n
\r\n\r\n
\r\n
\r\n Start Date \r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n End Date \r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n \r\n\r\n \r\n \r\n Cancel\r\n \r\n\r\n \r\n Save\r\n \r\n\r\n \r\n Update\r\n \r\n
\r\n \r\n
","import { Component, Inject, OnDestroy, OnInit } from '@angular/core';\r\nimport { AbstractControl, FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nimport { Router } from '@angular/router';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport { SharedService } from 'src/app/shared.service';\r\n\r\n@Component({\r\n selector: 'app-add-edit-project',\r\n templateUrl: './add-edit-project.component.html',\r\n styleUrls: ['./add-edit-project.component.scss']\r\n})\r\nexport class AddEditProjectComponent implements OnInit, OnDestroy {\r\n // submitted: boolean = false;\r\n submittedPrj: boolean = false;\r\n savePrjBtn: boolean = true;\r\n updatePrjBtn: boolean = false;\r\n prjId: number;\r\n proejctForm: FormGroup;\r\n public projectsInfo = [];\r\n response: any;\r\n // openform = false;\r\n boolVar = true;\r\n hideForm: boolean = false;\r\n hideTable: boolean = true;\r\n\r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private router: Router,\r\n private Service: SharedService,\r\n private Global: GlobalService,\r\n private dialogRef: MatDialogRef,\r\n @Inject(MAT_DIALOG_DATA) public editData: any\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.proejctForm = this.formBuilder.group({\r\n Id: ['', null],\r\n EmpId: ['', null],\r\n DescriptionOfAchievments: ['', [Validators.nullValidator]],\r\n\r\n })\r\n\r\n if (this.editData) {\r\n this.editPrj(this.editData)\r\n this.updatePrjBtn = true\r\n this.savePrjBtn = false\r\n }\r\n else {\r\n this.updatePrjBtn = false\r\n this.savePrjBtn = true\r\n\r\n }\r\n }\r\n\r\n get fprj(): { [key: string]: AbstractControl } {\r\n return this.proejctForm.controls;\r\n }\r\n\r\n projectInfoForm() {\r\n this.submittedPrj = true;\r\n if (this.proejctForm.invalid) {\r\n this.toastr.error('This data is not Valid');\r\n }\r\n else {\r\n const insertachivement = this.proejctForm.getRawValue();\r\n insertachivement.EmpId = this.Global.getCandidateId();\r\n this.Service.Post('CandidateAchievements/InsertCandidateAchievements/', insertachivement).subscribe(\r\n (res) => {\r\n if (res) {\r\n this.toastr.success(res);\r\n this.dialogRef.close('Save');\r\n this.boolVar = true;\r\n } else {\r\n this.toastr.error('Error While Insert Data');\r\n }\r\n });\r\n this.submittedPrj = false;\r\n }\r\n }\r\n\r\n projectUpdateForm() {\r\n this.submittedPrj = true;\r\n\r\n if (this.proejctForm.invalid) {\r\n this.toastr.error('This data is not Valid');\r\n }\r\n else {\r\n const insertachivement = this.proejctForm.getRawValue();\r\n insertachivement.EmpId = this.Global.getCandidateId();\r\n this.Service.Put('CandidateAchievements/UpdateCandidateAchievements/', insertachivement).subscribe(\r\n (res) => {\r\n this.toastr.success(res);\r\n this.dialogRef.close('Update');\r\n this.boolVar = true;\r\n },\r\n (error) => {\r\n this.toastr.error(error.error);\r\n });\r\n this.submittedPrj = false;\r\n }\r\n }\r\n\r\n\r\n editPrj(achivementInfo: any) {\r\n // this.openform = !this.openform;\r\n this.hideForm = true;\r\n this.hideTable = false;\r\n this.savePrjBtn = false;\r\n this.updatePrjBtn = true;\r\n\r\n this.proejctForm.controls[\"Id\"].setValue(achivementInfo.Id);\r\n this.proejctForm.controls[\"DescriptionOfAchievments\"].setValue(achivementInfo.DescriptionOfAchievments);\r\n\r\n this.submittedPrj = false;\r\n }\r\n close(){\r\n this.dialogRef.close(); \r\n }\r\n\r\n ngOnDestroy(): void {\r\n\r\n }\r\n\r\n}\r\n","\r\n\r\n
\r\n \r\n
\r\n \r\n \r\n
Add Achivements
\r\n\r\n
\r\n\r\n
\r\n
\r\n Description Of Achivements \r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n\r\n \r\n \r\n Cancel\r\n \r\n\r\n \r\n Save\r\n \r\n\r\n \r\n Update\r\n \r\n
\r\n\r\n \r\n
","import { Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { GlobalToastrConfig, ToastrService } from 'ngx-toastr';\r\nimport { FormGroup, FormBuilder, Validators, FormControl, AbstractControl } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\nimport data from 'src/app/components/data/data';\r\nimport { Observable } from 'rxjs';\r\nimport { Qualificationa, Skills } from 'src/app/interface';\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport { map } from 'rxjs/internal/operators/map';\r\nimport { toUnicode } from 'punycode';\r\nimport { MatDialogRef } from '@angular/material/dialog';\r\nimport { startWith } from 'rxjs/operators';\r\n\r\n@Component({\r\n selector: 'app-add-edit-skill',\r\n templateUrl: './add-edit-skill.component.html',\r\n styleUrls: ['./add-edit-skill.component.scss']\r\n})\r\nexport class AddEditSkillsLanguagesComponent implements OnInit, OnDestroy {\r\n \r\n\r\n submittedSkill: boolean = false;\r\n skillsForm: FormGroup;\r\n public skillInfo = [];\r\n saveSkillBtn: boolean = true;\r\n updateSkillBtn: boolean = false;\r\n response: any;\r\n public placeholder: string = '';\r\n public keyword = 'skill';\r\n public historyHeading: string = 'Recently selected';\r\n \r\n allSkill: Skills[];\r\n filterSkill?: Observable;\r\n formControlSkill= new FormControl();\r\n SkillId: number;\r\n \r\n skillControl = new FormControl();\r\n public langData = data.langData;\r\n public proficiency = data.proficiency;\r\n openForm = false;\r\n boolVar = true;\r\n filteredSkills: Observable;\r\n // allQualification: Observable;\r\n hideForm: boolean = false;\r\n hideTable: boolean = true;\r\n \r\n\r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private router: Router,\r\n private Service: SharedService,\r\n private Global: GlobalService,\r\n private dialogRef: MatDialogRef,\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n\r\n this.skillsForm = this.formBuilder.group({\r\n Id: ['', null],\r\n EmpId: ['', null],\r\n Skill_Id: ['', [Validators.required]],\r\n Skills: ['', null],\r\n })\r\n \r\n // this.Service.Get('Skills/GetSkills', null).subscribe(skill => {\r\n // this.skillsData = skill;\r\n // });\r\n\r\n this.Service.Get('Skills/GetSkills', null).subscribe(data => {\r\n if (data != null) {\r\n this.allSkill = data;\r\n this.filterSkill = this.formControlSkill.valueChanges.pipe(\r\n startWith(''),\r\n map(value => typeof value === 'string' ? value : value.Skills),\r\n map(Skills => Skills ? this._filterSkill(Skills) : this.allSkill.slice()),\r\n );\r\n }\r\n })\r\n\r\n \r\n }\r\n\r\n get fskill(): { [key: string]: AbstractControl } {\r\n return this.skillsForm.controls;\r\n }\r\n\r\n close(){\r\n this.dialogRef.close(); \r\n }\r\n private _filterSkill(Skills: string): Skills[] {\r\n const filterValue = Skills.toLowerCase();\r\n return this.allSkill.filter(\r\n option => option.Skills?.toLowerCase().indexOf(filterValue) === 0\r\n );\r\n }\r\n \r\n displayFnForSkill(value: any) {\r\n return value ? value.Skills : undefined;\r\n }\r\n\r\n onchangeSkill(event) {\r\n this.SkillId = event\r\n }\r\n \r\n //Skills\r\n skillsInfoForm() {\r\n this.submittedSkill = true;\r\n this.skillsForm.controls[\"Skill_Id\"].setValue(this.SkillId);\r\n if (this.skillsForm.invalid) {\r\n this.toastr.error(\"Please fill out the required fields (* fields)\");\r\n }\r\n else {\r\n const insertskill = this.skillsForm.getRawValue();\r\n insertskill.EmpId = this.Global.getCandidateId();\r\n \r\n this.Service.Post('CandidateSkills/InsertCandidtaeSkillsForIndiviual', insertskill).subscribe(\r\n (res) => {\r\n this.toastr.success(res);\r\n this.dialogRef.close('Save'); \r\n this.boolVar = true; \r\n },\r\n (error) => {\r\n //if (error.status == 401) this.router.navigate(['/login']);\r\n this.toastr.error(error.error);\r\n });\r\n this.submittedSkill = false;\r\n }\r\n\r\n\r\n }\r\n\r\n ngOnDestroy(): void {\r\n\r\n }\r\n}\r\n\r\n","\r\n\r\n\r\n
\r\n
\r\n \r\n
Key Skills
\r\n\r\n
\r\n
\r\n \r\n
\r\n Skill: \r\n \r\n \r\n \r\n \r\n {{skill.Skills}}\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n Cancel\r\n \r\n\r\n \r\n Save\r\n \r\n\r\n \r\n \r\n\r\n \r\n
\r\n
\r\n \r\n \r\n
","import { Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { FormBuilder } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport { GlobalService } from 'src/app/global.service';\r\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\r\nimport { MatDialogRef } from '@angular/material/dialog';\r\n\r\n@Component({\r\n selector: 'app-viewuplodedresume',\r\n templateUrl: './viewuplodedresume.component.html',\r\n styleUrls: ['./viewuplodedresume.component.scss'] \r\n})\r\n\r\nexport class ViewUploadedResumeComponent implements OnInit, OnDestroy {\r\n\r\n viewer = 'google';\r\n src: any; \r\n safeUrl : SafeResourceUrl ;\r\n filepath:string ='';\r\n constructor(\r\n private toastr: ToastrService,\r\n private router: Router,\r\n private service: SharedService,\r\n private Global:GlobalService,\r\n private sanitized: DomSanitizer,\r\n private dialogRef: MatDialogRef,\r\n\r\n ) { }\r\n \r\n ngOnInit(): void {\r\n // this.src = 'http://keshavwebapi.jobonfingertip.com/assets/2_Lighbill-Mahendra.pdf';\r\n // this.safeUrl = this.sanitized.bypassSecurityTrustResourceUrl(this.src);\r\n //this.src = 'https://vadimdez.github.io/ng2-pdf-viewer/assets/pdf-test.pdf';\r\n this.getResumeFilePath();\r\n }\r\n\r\n getResumeFilePath()\r\n {\r\n this.service.Get('CandidateInfo/GetResumefile?candidateId=' + this.Global.getCandidateId(), null).subscribe(\r\n (res) => {\r\n this.src = res;\r\n \r\n this.safeUrl = this.sanitized.bypassSecurityTrustResourceUrl(this.src + '#toolbar=0&navpanes=0');\r\n \r\n }, \r\n (error) => {\r\n this.toastr.error(error.error);\r\n }\r\n );\r\n }\r\n\r\n close()\r\n {\r\n this.dialogRef.close(); \r\n }\r\n ngOnDestroy(): void {\r\n\r\n }\r\n\r\n\r\n}\r\n\r\n\r\n","\r\n \r\n
\r\n
{{filepath}} \r\n\r\n
\r\n \r\n
\r\n
\r\n","import { Component, OnDestroy, OnInit } from '@angular/core';\nimport { ToastrService } from 'ngx-toastr';\nimport { FormGroup, FormBuilder, Validators, FormControl, AbstractControl } from '@angular/forms';\nimport { ActivatedRoute, Router } from \"@angular/router\";\n\nimport { BuildResume } from './basic-info/basic-info.types';\nimport { SharedService } from 'src/app/shared.service';\nimport { GlobalService } from 'src/app/global.service';\n\n@Component({\n selector: 'app-editcandidate',\n templateUrl: './editcandidate.component.html',\n styleUrls: ['./editcandidate.component.scss']\n})\nexport class EditCandidateComponent implements OnInit, OnDestroy {\n\n candidateInfo = [];\n userId: number ;\n name: string;\n designation: string;\n getresumeData: BuildResume;\n datasourceExp:any;\n Id:number;\n\n\n public placeholder: string = '';\n\n constructor(private formBuilder: FormBuilder,\n private toastr: ToastrService,\n private router: Router,\n private Service: SharedService,\n private Global: GlobalService,\n private route: ActivatedRoute,\n ) { }\n\n ngOnInit(): void {\n this.route.paramMap.subscribe(\n (params) => {\n console.log(\"params.get('id')\", params.get('id'));\n \n this.Id = Number(params.get('id'));\n }\n );\n this.userId = this.Id\n this.getUser();\n }\n\n getUser() {\n this.Service.Get('CandidateInfo/GetCandidateInfoByUserId?userId=' + this.Id, null).subscribe(\n (res) => {\n this.getresumeData = res;\n this.getAllExperience(this.getresumeData.Id);\n }, \n (error) => {\n this.toastr.error(error.error);\n }\n );\n }\n\n getAllExperience(empId : number) {\n this.Service.Get('CandidateExperienceInfo/GetCandidateExperienceInfoByEmpId?EmpId=0' + empId, null).subscribe(\n (res) => {\n this.datasourceExp = res;\n }, \n (error) => {\n this.toastr.error(error.error);\n }\n );\n }\n\n // onLogout(event: Event) {\n // event.preventDefault();\n // this.Service.logout().subscribe(\n // (res) => {\n // this.toastr.success(res);\n // },\n // (error) => {\n // this.toastr.error(error.error);\n // }\n // )\n // }\n\n ngOnDestroy(): void {\n\n }\n}\n","\n \n\n\n\n\n
\n
\n
\n
\n
My Resume \n
\n \n \n \n \n \n Resume \n \n
\n
\n
\n
\n
\n\n\n\n\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n
{{getresumeData.FirstName}} {{getresumeData.LastName}} \n
{{getresumeData.JobRole}} \n
\n
\n
\n\n
\n
\n
\n
\n\n\n\n \n","import { Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { FormGroup, FormBuilder, Validators, FormControl, AbstractControl } from '@angular/forms';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { Router } from '@angular/router';\r\nimport { SharedService } from 'src/app/shared.service';\r\nimport { Observable } from 'rxjs';\r\nimport { AcademicDiscipline,Country,Qualificationa, Specialization, UserType} from 'src/app/interface';\r\nimport { JobRole } from 'src/app/interface';\r\nimport { GlobalService } from 'src/app/global.service';\r\n\r\n@Component({\r\n selector: 'app-createcandidate',\r\n templateUrl: './createcandidate.component.html',\r\n styleUrls: ['./createcandidate.component.scss']\r\n})\r\nexport class CreateCandidateComponent implements OnInit, OnDestroy {\r\n\r\n submitted: boolean = false;\r\n candidateform: FormGroup;\r\n displayMe: boolean = false;\r\n allQualification?: Observable;\r\n alldiscipline: Observable;\r\n allspecialization: Observable;\r\n allJobRole: Observable;\r\n selectCollegeID:number ;\r\n fileType: string = '';\r\n base64textString: string[] = [];\r\n allCountries: Observable;\r\n\r\n constructor(private formBuilder: FormBuilder,\r\n\r\n private toastr: ToastrService,\r\n private router: Router,\r\n private service: SharedService,\r\n public global: GlobalService\r\n ) {\r\n\r\n }\r\n\r\n ngOnInit(): void {\r\n this.candidateform = this.formBuilder.group({\r\n FirstName: ['', Validators.required],\r\n LastName: ['', Validators.required],\r\n ProfileName: ['', null],\r\n Email: ['', [Validators.required, Validators.maxLength(150), Validators.pattern(\"^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$\")]],\r\n Password: ['', null],\r\n MobileNo: ['', [Validators.required, Validators.maxLength(10), Validators.pattern(\"^[0-9]*$\")]],\r\n Photo: ['', null],\r\n IsGET: ['', Validators.nullValidator],\r\n InternShipStartDate: ['', Validators.nullValidator],\r\n InternShipEndDate: ['', Validators.nullValidator],\r\n UserTypeId: [4],\r\n QualificationId: ['', Validators.required],\r\n AcademicDisciplineId: ['', Validators.required],\r\n SpecializationId: ['', Validators.required],\r\n JobRoleId: ['', Validators.nullValidator],\r\n PassOutYear: ['', Validators.nullValidator],\r\n CollegeId:['',Validators.nullValidator],\r\n CountryISDCode: ['', Validators.nullValidator],\r\n });\r\n\r\n this.allQualification = this.service.Get('Qualification/GetQualification?Id=0', null);\r\n this.allJobRole = this.service.Get('JobRole/GetJobRole?Id=0', null);\r\n this.alldiscipline = this.service.Get('AcademicDiscipline/GetAcademicDisciplineData?Id=0', null);\r\n this.allspecialization = this.service.Get('Specialization/GetSpecialization?Id=0', null);\r\n this.allCountries = this.service.Get('Country/GetCountryISDCode?Id=0',null);\r\n\r\n }\r\n\r\n get f(): { [key: string]: AbstractControl } {\r\n return this.candidateform.controls;\r\n }\r\n\r\n CandidateForm() {\r\n\r\n this.submitted = true;\r\n if (this.candidateform.invalid) {\r\n this.toastr.error(\"This data is not Valid\");\r\n }\r\n else {\r\n const emp = this.candidateform.getRawValue();\r\n emp.Photo = this.base64textString[0];\r\n var UserName = this.candidateform.value.Email;\r\n emp.ProfileName = this.candidateform.value.FirstName + ' ' + this.candidateform.value.LastName;\r\n \r\n this.service.Post('CandidateInfo/InsertCandidtaeInfo', emp).subscribe(\r\n (res) => {\r\n\r\n this.toastr.success(res);\r\n this.candidateform.reset();\r\n // this.service.Post('ResetPassword?loginName=' + UserName, null).subscribe(\r\n // (res) => {\r\n // this.toastr.success(res);\r\n // },\r\n // )\r\n this.router.navigate(['/candidatetable']);\r\n },\r\n (error) => {\r\n\r\n this.toastr.error(error.error);\r\n });\r\n this.submitted = false;\r\n // }\r\n }\r\n }\r\n\r\n onchangeQualification(Qualification: any) {\r\n this.alldiscipline = this.service.Get('AcademicDiscipline/GetAcademicDisciplineByQualification?QualificationId='+ Qualification, null);\r\n }\r\n\r\n onchangeDiscipline(event) {\r\n this.allspecialization = this.service.Get('Specialization/GetSpecializationDataByDiscipline?AcademicDisplineId=' + event, null);\r\n }\r\n\r\n\r\n\r\n toggleTag() {\r\n this.displayMe = true;\r\n }\r\n toggleTag1() {\r\n this.displayMe = false;\r\n }\r\n\r\n Uploadcompanylogo(event: any) {\r\n this.fileType = event.target.files[0].type\r\n var files = event.target.files;\r\n var file = files[0];\r\n if (files && file) {\r\n var reader = new FileReader();\r\n reader.onload = this._handleReaderLoadedCompany.bind(this);\r\n reader.readAsBinaryString(file);\r\n }\r\n }\r\n\r\n _handleReaderLoadedCompany(readerEvt) {\r\n var binaryString = readerEvt.target.result;\r\n this.base64textString.push('data:' + this.fileType + ';base64,' + btoa(readerEvt.target.result));\r\n }\r\n\r\n\r\n ngOnDestroy(): void {\r\n\r\n }\r\n}\r\n","\r\n \r\n\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n
Candidate \r\n
\r\n \r\n \r\n \r\n \r\n \r\n Candidate \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n \r\n
Candidate \r\n
\r\n
\r\n\r\n
\r\n\r\n\r\n
\r\n\r\n
\r\n
\r\n ISD Code \r\n \r\n Choose any one \r\n \r\n {{countries.ISDCode}}\r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n PassOutYears \r\n \r\n\r\n
\r\n
\r\n\r\n\r\n
\r\n\r\n\r\n
\r\n\r\n\r\n
\r\n\r\n\r\n
\r\n
\r\n Profile Picture \r\n \r\n \r\n
\r\n
\r\n\r\n\r\n\r\n
\r\n Save Your Information\r\n \r\n\r\n
\r\n
\r\n\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n \r\n","import { Component,OnDestroy,OnInit } from '@angular/core';\nimport { FormGroup, FormBuilder, Validators, FormControl, AbstractControl } from '@angular/forms';\nimport { ToastrService } from 'ngx-toastr';\nimport { Router } from '@angular/router';\nimport { SharedService } from 'src/app/shared.service';\nimport { Observable } from 'rxjs';\nimport { AcademicDiscipline, Country, JobRole, Qualification, Specialization } from 'src/app/interface';\nimport { map, startWith } from 'rxjs/operators';\n\n@Component({\n selector: 'app-employers-register',\n templateUrl: './employers-register.component.html',\n styleUrls: ['./employers-register.component.scss']\n})\n\nexport class EmployersRegisterComponent implements OnInit, OnDestroy {\n submitted: boolean = false;\n candidateform: FormGroup;\n displayMe: boolean = false;\n allcode: any;\n\n allQualification?: Qualification[];\n filterQuli?: Observable;\n formControlQuli = new FormControl();\n QualificationId: number;\n\n alldiscipline: AcademicDiscipline[];\n filterdiscipline?: Observable;\n formControldiscipline = new FormControl();\n disciplineId: number;\n\n allspecialization: Specialization[];\n filterspecialization?: Observable;\n formControlspecialization = new FormControl();\n specializationId: number;\n\n formControlforcode: FormControl;\n allJobRole: Observable;\n fileType: string = '';\n base64textString: string[] = [];\n allCountries: Observable;\n CountryCode: any;\n\n constructor(\n private formBuilder: FormBuilder,\n private toastr: ToastrService,\n private router: Router,\n private service: SharedService,\n ) {\n\n }\n\n ngOnInit(): void {\n this.formControlforcode = new FormControl(this.allcode);\n this.candidateform = this.formBuilder.group({\n FirstName: ['', Validators.required],\n LastName: ['', Validators.required],\n ProfileName: ['', null],\n Email: ['', [Validators.required, Validators.maxLength(150), Validators.pattern(\"^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$\")]],\n Password: ['', null],\n MobileNo: ['', [Validators.required, Validators.maxLength(10)]],\n Photo: ['', [Validators.nullValidator]],\n IsGET: ['', Validators.nullValidator],\n InternShipStartDate: ['', Validators.nullValidator],\n InternShipEndDate: ['', Validators.nullValidator],\n UserTypeId: [4],\n QualificationId: ['', Validators.required],\n AcademicDisciplineId: ['', Validators.required],\n SpecializationId: ['', Validators.required],\n JobRoleId: ['', Validators.nullValidator],\n PassOutYear: ['', Validators.nullValidator],\n CountryISDCode: ['', Validators.required],\n }\n );\n\n this.service.Get('Qualification/GetQualification?Id=0', null).subscribe(data => {\n if (data != null) {\n this.allQualification = data;\n this.filterQuli = this.formControlQuli.valueChanges.pipe(\n startWith(''),\n map(value => typeof value === 'string' ? value : value.Qualification),\n map(Qualification => Qualification ? this._filterQuali(Qualification) : this.allQualification.slice()),\n );\n }\n })\n \n this.service.Get('AcademicDiscipline/GetAcademicDisciplineByQualification?QualificationId=' + this.QualificationId, null).subscribe(data => {\n if (data != null) {\n this.alldiscipline = data;\n this.filterdiscipline = this.formControldiscipline.valueChanges.pipe(\n startWith(''),\n map(value => typeof value === 'string' ? value : value.AcademicDescription),\n map(AcademicDescription => AcademicDescription ? this._filterdiscipline(AcademicDescription) : this.alldiscipline.slice()),\n );\n }\n })\n \n this.service.Get('Specialization/GetSpecializationDataByDiscipline?AcademicDisplineId=' + this.disciplineId, null).subscribe(data => {\n if (data != null) {\n this.allspecialization = data;\n this.filterspecialization = this.formControlspecialization.valueChanges.pipe(\n startWith(''),\n map(value => typeof value === 'string' ? value : value.SpecializationDescription),\n map(SpecializationDescription => SpecializationDescription ? this._filterSpecialization(SpecializationDescription) : this.allspecialization.slice()),\n );\n }\n })\n\n this.allJobRole = this.service.Get('JobRole/GetJobRole?Id=0', null);\n this.allCountries = this.service.Get('Country/GetCountryISDCode?Id=0',null);\n\n this.service.Get('Country/GetCountryISDCode?Id=0', null).subscribe({\n next: (data) => {\n this.allCountries = data;\n this.allcode = data;\n this.formControlforcode.setValue(this.allcode[0]);\n this.onchangeCountryCode(this.allcode[0].ISDCode);\n },\n });\n }\n\n get f(): { [key: string]: AbstractControl } {\n return this.candidateform.controls;\n }\n\n CandidateForm() {\n this.submitted = true;\n this.candidateform.controls[\"QualificationId\"].setValue(this.QualificationId);\n this.candidateform.controls[\"AcademicDisciplineId\"].setValue(this.disciplineId);\n this.candidateform.controls[\"SpecializationId\"].setValue(this.specializationId);\n this.candidateform.controls[\"CountryISDCode\"].setValue(this.CountryCode);\n if (this.candidateform.invalid) {\n this.toastr.error(\"Please fill out the required fields(* fields)\");\n }\n else \n {\n const emp = this.candidateform.getRawValue();\n emp.Photo = this.base64textString[0];\n var UserName = this.candidateform.value.Email;\n emp.ProfileName = this.candidateform.value.FirstName + ' ' + this.candidateform.value.LastName;\n\n this.service.Post('CandidateInfo/InsertCandidateRegistration', emp).subscribe(\n (res) => {\n this.toastr.success(res);\n this.candidateform.reset();\n this.router.navigate(['/login']);\n },\n (error) => {\n this.toastr.error(error.error);\n });\n this.submitted = false;\n // }\n }\n }\n\n close(){\n this.router.navigate(['/']);\n }\n onchangeSpecialization(specialization: any) {\n this.specializationId = specialization;\n }\n \n onchangeAcademicDiscipline(AcademicDescription: any) {\n this.disciplineId = AcademicDescription;\n this.service.Get('Specialization/GetSpecializationDataByDiscipline?AcademicDisplineId=' + this.disciplineId, null).subscribe(data => {\n if (data != null) {\n this.allspecialization = data;\n this.filterspecialization = this.formControlspecialization.valueChanges.pipe(\n startWith(''),\n map(value => typeof value === 'string' ? value : value.SpecializationDescription),\n map(SpecializationDescription => SpecializationDescription ? this._filterSpecialization(SpecializationDescription) : this.allspecialization.slice()),\n );\n }\n })}\n \n onchangeQualification(Qualification: any) {\n this.QualificationId = Qualification;\n this.service.Get('AcademicDiscipline/GetAcademicDisciplineByQualification?QualificationId=' + this.QualificationId, null).subscribe(data => {\n if (data != null) {\n this.alldiscipline = data;\n this.filterdiscipline = this.formControldiscipline.valueChanges.pipe(\n startWith(''),\n map(value => typeof value === 'string' ? value : value.AcademicDescription),\n map(AcademicDescription => AcademicDescription ? this._filterdiscipline(AcademicDescription) : this.alldiscipline.slice()),\n );\n }\n })\n }\n \n onchangeCountryCode(CountryCode: any) {\n this.CountryCode =CountryCode;\n }\n\n private _filterQuali(Qualification: string): Qualification[] {\n const filterValue = Qualification.toLowerCase();\n return this.allQualification.filter(\n option => option.Qualification?.toLowerCase().indexOf(filterValue) === 0\n );\n }\n\n displayFnForQuli(value: any) {\n return value ? value.Qualification : undefined;\n }\n\n private _filterdiscipline(AcademicDescription: string): AcademicDiscipline[] {\n const filterValue = AcademicDescription.toLowerCase();\n return this.alldiscipline.filter(\n option => option.AcademicDescription?.toLowerCase().indexOf(filterValue) === 0\n );\n }\n\n displayFnFordiscipline(value: any) {\n return value ? value.\n AcademicDescription : undefined;\n }\n\n private _filterSpecialization(SpecializationDescription: string): Specialization[] {\n const filterValue = SpecializationDescription.toLowerCase();\n return this.allspecialization.filter(\n option => option.SpecializationDescription?.toLowerCase().indexOf(filterValue) === 0\n );\n }\n\n displayFnForSpecialization(value: any) {\n return value ? value.\n SpecializationDescription : undefined;\n }\n\n toggleTag() {\n this.displayMe = true;\n }\n toggleTag1() {\n this.displayMe = false;\n }\n\n Uploadcompanylogo(event: any) {\n this.fileType = event.target.files[0].type\n var files = event.target.files;\n var file = files[0];\n if (files && file)\n {\n var reader = new FileReader();\n reader.onload = this._handleReaderLoadedCompany.bind(this);\n reader.readAsBinaryString(file);\n }\n }\n\n _handleReaderLoadedCompany(readerEvt) {\n var binaryString = readerEvt.target.result;\n this.base64textString.push('data:' + this.fileType + ';base64,' + btoa(readerEvt.target.result));\n }\n\n keyPressAlphaNumeric(event: { keyCode: number; preventDefault: () => void; }) {\n var inp = String.fromCharCode(event.keyCode);\n if (/[0-9 ]/.test(inp)) {\n return true;\n } else {\n event.preventDefault();\n return false;\n }\n }\n\n keyPressAlpha(event: { keyCode: number; preventDefault: () => void; }) {\n var inp = String.fromCharCode(event.keyCode);\n if (/[a-zA-Z ]/.test(inp)) {\n return true;\n } else {\n event.preventDefault();\n return false;\n }\n }\n\n ngOnDestroy(): void {\n\n }\n}\n","\n\n\n\n \n \n \n \n\n Document \n\n\n\n \n
\n\n
\n\n
\n
\n\n
\n
\n\n
\n\n
\n \n
\n\n \n \n
\n \n It only takes a couple of minutes to get started!\n
\n\n
Create an Account
\n
\n\n First Name *
\n \n\n Last Name *
\n \n\n\n Email *
\n \n\n Mobile Number *
\n \n\n \n \n Qualification *
\n \n\n Academic Discipline *
\n \n\n Specialization *
\n \n\n Profile Picture
\n \n\n
\n Register Now
\n \n\n
\n
\n\n\n\n","import { Component, OnInit } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { SharedService } from 'src/app/shared.service';\nimport { Observable } from 'rxjs';\nimport { cities, City, JobRole, Qualification, Qualificationa } from 'src/app/interface';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { GlobalService } from 'src/app/global.service';\nimport { map, startWith } from 'rxjs/operators';\nimport { ViewportScroller } from '@angular/common';\n\n@Component({\n selector: 'app-employers',\n templateUrl: './employers.component.html',\n styleUrls: ['./employers.component.scss']\n})\nexport class EmployersComponent implements OnInit {\n\n jobPostsInfo = [];\n //allJobRole: any;\n //allQualification: Observable;\n allcitie: Observable\n\n allCities!: cities[];\n filtercities?: Observable;\n citiesControl = new FormControl();\n\n obs: any;\n dataFilter1: number[] = [];\n dataFilter2: number[] = [];\n candidateform: FormGroup;\n data: any;\n citycontrol = new FormControl();\n EducationControl = new FormControl();\n jobRoleControl = new FormControl();\n datasource: any;\n allCompanyName: Observable;\n gender: number = 0;\n parttime: number = 0;\n workFromHome: number = 0;\n frehsherjob: number = 0;\n shifttype: number = 0;\n Internshipjob: number = 0;\n company: number = 0;\n Education: number = 0;\n\n jobType: number = 0;\n city: number = 0;\n page: number = 1;\n pagesize: number = 10;\n totalItems: number = 0;\n datapageInfo: any;\n\n jobrole: any;\n homecity: number = 0;\n education: number = 0;\n visible: boolean = false\n afterClickData: any\n info: any;\n\n allJobRole !: JobRole[];\n filterJobroles?: Observable;\n jobroleControl = new FormControl();\n\n allQualification!: Qualification[];\n filterQualifications?: Observable;\n QualificationsControl = new FormControl();\n\n constructor(\n // private jobsService: JobsService,\n private Service: SharedService,\n private router: Router,\n public Global: GlobalService,\n private formBuilder: FormBuilder,\n private scroller: ViewportScroller,\n\n ) {\n this.data = this.router.getCurrentNavigation().extras;\n if (this.data.queryParams != null) {\n if (this.data.queryParams.myArray[0] == \"searchString\") {\n this.dataFilter2 = [];\n this.jobRoleControl.setValue(this.data.queryParams.myArray[1]);\n this.citycontrol.setValue(this.data.queryParams.myArray[2]);\n this.EducationControl.setValue(this.data.queryParams.myArray[3]);\n this.dataFilter2.push(this.data.queryParams.myArray[1]);\n this.dataFilter2.push(this.data.queryParams.myArray[2]);\n this.dataFilter2.push(this.data.queryParams.myArray[3]);\n this.dataFilter2.push(this.data.queryParams.myArray[4]);\n this.dataFilter2.push(this.data.queryParams.myArray[5]);\n this.dataFilter2.push(this.data.queryParams.myArray[6]);\n this.dataFilter2.push(this.data.queryParams.myArray[7]);\n this.dataFilter2.push(this.data.queryParams.myArray[8]);\n this.dataFilter2.push(this.data.queryParams.myArray[9]);\n this.refreshListFilter();\n this.jobrole = this.dataFilter2[0];\n this.homecity = this.dataFilter2[1];\n this.education = this.dataFilter2[2];\n }\n }\n else if (this.data.queryParams == null) {\n this.dataFilter2 = [];\n this.refreshListFilter();\n }\n }\n\n ngOnInit(): void {\n\n this.candidateform = this.formBuilder.group({\n jobtype: ['', Validators.nullValidator],\n city: ['', Validators.nullValidator],\n });\n\n this.refreshListFilter();\n // this.getAllJobRole();\n // this.getAllQualification();\n // this.refreshListOfCompany();\n\n\n this.Service.Get('JobRole/GetJobRole?Id=0', null).subscribe(data => {\n if (data != null) {\n this.allJobRole = data;\n if (this.jobrole != 0) {\n for (let role of this.allJobRole) {\n if (role.Id == this.jobrole) {\n this.jobroleControl.setValue(role);\n }\n }\n }\n this.filterJobroles = this.jobroleControl.valueChanges.pipe(\n startWith(''),\n map(value => typeof value === 'string' ? value : value.JobRole),\n map(JobRole => JobRole ? this._filterJobRole(JobRole) : this.allJobRole.slice()),\n );\n }\n })\n\n\n\n this.Service.Get('Qualification/GetQualification?Id=0', null).subscribe(data => {\n if (data != null) {\n this.allQualification = data;\n if (this.education != 0) {\n for (let quali of this.allQualification) {\n if (quali.Id == this.education) {\n this.QualificationsControl.setValue(quali);\n }\n }\n }\n this.filterQualifications = this.QualificationsControl.valueChanges.pipe(\n startWith(''),\n map(value => typeof value === 'string' ? value : value.Qualification),\n map(Qualification => Qualification ? this._filterQualificationa(Qualification) : this.allQualification.slice())\n );\n }\n })\n\n this.Service.Get('City/GetCity?Id=0', null).subscribe(data => {\n if (data != null) {\n this.allCities = data;\n if (this.homecity != 0) {\n for (let city of this.allCities) {\n if (city.Id == this.homecity) {\n this.citiesControl.setValue(city);\n }\n }\n }\n this.filtercities = this.citiesControl.valueChanges.pipe(\n startWith(''),\n map(value => typeof value === 'string' ? value : value.\n CityName),\n map(CityName => CityName ? this._filterCity(CityName) : this.allCities.slice())\n );\n }\n })\n\n this.GetJobCount();\n\n }\n\n private _filterJobRole(jobrole: string): JobRole[] {\n const filterValue = jobrole.toLowerCase();\n\n return this.allJobRole.filter(\n option => option.JobRole?.toLowerCase().indexOf(filterValue) === 0\n );\n }\n\n displayFnForJobRole(value: any) {\n return value ? value.JobRole : undefined;\n }\n\n private _filterQualificationa(Qualification: string): Qualification[] {\n const filterValue = Qualification.toLowerCase();\n\n return this.allQualification.filter(\n option => option.Qualification?.toLowerCase().indexOf(filterValue) === 0\n );\n }\n displayFnForQualification(value: any) {\n return value ? value.Qualification : undefined;\n }\n\n\n private _filterCity(City: string): cities[] {\n const filterValue = City.toLowerCase();\n\n return this.allCities.filter(\n option => option.CityName?.toLowerCase().indexOf(filterValue) === 0\n );\n }\n\n displayFnForCity(value: any) {\n return value ? value.CityName : undefined;\n }\n\n pageChanged(value: any) {\n this.page = value;\n this.search();\n }\n\n // getAllJobRole() {\n // this.Service.Get('JobRole/GetJobRoleById?Id=' + this.jobrole, null).subscribe(jobrole => {\n // this.allJobRole = jobrole;\n // })\n // }\n // getAllQualification() {\n // this.Service.Get('Qualification/GetQualificationById?Id=' + this.education, null).subscribe(Qualificationa => {\n // this.allQualification = Qualificationa;\n // })\n // }\n Login() {\n this.router.navigate(['/login']);\n }\n onchangeJobRole(jobrole: any) {\n this.jobrole = jobrole;\n }\n\n\n onchangeQualification(Qualification: any) {\n this.education = Qualification;\n }\n\n // getAllCity() {\n // this.Service.Get('City/GetCity?Id=0', null).subscribe(city => {\n // this.allcitie = city;\n // // })\n // }\n\n refreshListOfCompany() {\n this.Service.Get('Company/GetCompanyDataSelection', null).subscribe(company => {\n this.allCompanyName = company;\n });\n }\n\n shift() {\n this.shifttype = 1;\n this.gender = 0;\n this.parttime = 0;\n this.frehsherjob = 0;\n this.workFromHome = 0;\n this.Internshipjob = 0;\n this.search();\n }\n\n search() {\n this.dataFilter2 = [];\n this.dataFilter2.push(Number(this.jobrole));\n this.dataFilter2.push(Number(this.homecity));\n this.dataFilter2.push(Number(this.education));\n this.dataFilter2.push(this.city);\n this.dataFilter2.push(this.workFromHome);\n this.dataFilter2.push(this.gender);\n this.dataFilter2.push(this.parttime);\n this.dataFilter2.push(this.frehsherjob);\n this.dataFilter2.push(this.Internshipjob);\n this.refreshListFilter();\n }\n\n refreshListFilter() {\n this.dataFilter2.push(this.page - 1);\n this.dataFilter2.push(this.pagesize);\n this.datasource = null;\n this.Service.Post('Job/GetJobsCardData', this.dataFilter2).subscribe(res => {\n this.jobPostsInfo = res[0];\n this.obs = this.jobPostsInfo;\n this.datapageInfo = res[1];\n this.totalItems = this.datapageInfo[0].length;\n this.CardClick(this.obs[0])\n })\n }\n\n onchangeCity(event: any) {\n this.visible = false\n this.city = event;\n this.search();\n }\n\n // SelectJobType(event: any) {\n // if (event == 'Work From Home') {\n // this.workFromHome = 1;\n // this.gender = 0;\n // this.parttime = 0;\n // this.frehsherjob = 0;\n // this.Internshipjob = 0;\n // this.search();\n // this.visible = false\n // }\n\n // else if (event == 'Part Time') {\n // this.parttime = 1;\n // this.workFromHome = 0;\n // this.gender = 0;\n // this.frehsherjob = 0;\n // this.Internshipjob = 0;\n // this.search();\n // this.visible = false\n // }\n\n // else if (event == 'Jobs For Women') {\n // this.workFromHome = 0;\n // this.gender = 1;\n // this.parttime = 0;\n // this.frehsherjob = 0;\n // this.Internshipjob = 0;\n // this.search();\n // this.visible = false\n // }\n\n // else if (event == 'Jobs For Freshers') {\n // this.workFromHome = 0;\n // this.frehsherjob = 1;\n // this.gender = 0;\n // this.parttime = 0;\n // this.Internshipjob = 0;\n // this.search();\n // this.visible = false\n // }\n\n // else if (event == 'Internship') {\n // this.workFromHome = 0;\n // this.frehsherjob = 0;\n // this.gender = 0;\n // this.parttime = 0;\n // this.Internshipjob = 1;\n // this.search();\n // this.visible = false\n // }\n // }\n\n\n // AllFilters() {\n // if (this.workFromHome == 1) {\n // this.workFromHome = 1;\n // this.parttime = 0;\n // this.gender = 0;\n // this.frehsherjob = 0;\n // this.Internshipjob = 0;\n // this.search();\n\n // }\n // else if (this.parttime == 1) {\n // this.workFromHome = 0;\n // this.parttime = 1;\n // this.gender = 0;\n // this.frehsherjob = 0;\n // this.Internshipjob = 0;\n // this.search();\n // }\n // else if (this.gender == 1) {\n // this.gender = 1;\n // this.frehsherjob = 0;\n // this.workFromHome = 0;\n // this.parttime = 0;\n // this.Internshipjob = 0;\n // this.search();\n // }\n\n // else if (this.shifttype == 1) {\n // this.shifttype = 1;\n // this.workFromHome = 0;\n // this.parttime = 0;\n // this.gender = 0;\n // this.frehsherjob = 0;\n // this.company;\n // this.Education;\n // this.Internshipjob = 0;\n // this.search();\n // }\n\n // else if (this.frehsherjob == 1) {\n // this.workFromHome = 0;\n // this.parttime = 0;\n // this.gender = 0;\n // this.frehsherjob = 1;\n // this.Internshipjob = 0;\n // this.search();\n // }\n // else if (this.Internshipjob == 1) {\n // this.workFromHome = 0;\n // this.parttime = 0;\n // this.gender = 0;\n // this.frehsherjob = 0;\n // this.Internshipjob = 1;\n // this.search();\n // }\n // else {\n // this.workFromHome = 0;\n // this.parttime = 0;\n // this.gender = 0;\n // this.frehsherjob = 0;\n // this.Internshipjob = 0;\n // this.search();\n // }\n // }\n\n\n CardClick(event) {\n this.scroller.scrollToAnchor(\"targetRed\");\n if (event == undefined) {\n this.visible = false;\n }\n else \n {\n this.visible = true;\n this.afterClickData = event;\n }\n }\n\n removefilter() {\n this.workFromHome = 0;\n this.parttime = 0;\n this.gender = 0;\n this.frehsherjob = 0;\n this.Internshipjob = 0;\n this.jobrole = 0;\n this.homecity = 0;\n this.education = 0\n this.dataFilter2 = [0];\n this.dataFilter2.push(0);\n this.dataFilter2.push(0);\n this.dataFilter2.push(0);\n this.dataFilter2.push(0);\n this.dataFilter2.push(0);\n this.dataFilter2.push(0);\n this.dataFilter2.push(0);\n this.dataFilter2.push(0);\n this.allJobRole = null;\n this.allQualification = null;\n this.refreshListFilter();\n this.GetJobCount();\n this.candidateform.reset();\n this.visible = false\n\n this.Service.Get('JobRole/GetJobRole?Id=0', null).subscribe(data => {\n if (data != null) {\n this.allJobRole = data;\n this.filterJobroles = this.jobroleControl.valueChanges.pipe(\n startWith(''),\n map(value => typeof value === 'string' ? value : value.JobRole),\n map(JobRole => JobRole ? this._filterJobRole(JobRole) : this.allJobRole.slice()),\n );\n }\n })\n\n this.Service.Get('Qualification/GetQualification?Id=0', null).subscribe(data => {\n if (data != null) {\n this.allQualification = data;\n\n this.filterQualifications = this.QualificationsControl.valueChanges.pipe(\n startWith(''),\n map(value => typeof value === 'string' ? value : value.Qualification),\n map(Qualification => Qualification ? this._filterQualificationa(Qualification) : this.allQualification.slice())\n );\n }\n })\n\n this.Service.Get('City/GetCity?Id=0', null).subscribe(data => {\n if (data != null) {\n this.allCities = data;\n this.filtercities = this.citiesControl.valueChanges.pipe(\n startWith(''),\n map(value => typeof value === 'string' ? value : value.\n CityName),\n map(CityName => CityName ? this._filterCity(CityName) : this.allCities.slice())\n );\n }\n })\n this.jobroleControl.setValue('');\n this.QualificationsControl.setValue('');\n this.citiesControl.setValue('');\n }\n\n isReadMore = true\n\n showText() {\n this.isReadMore = !this.isReadMore\n }\n\n GetJobCount() {\n this.Service.Get('Dashboard/GetDashboardData', null).subscribe(data => {\n this.info = data;\n })\n }\n}\n","\n \n\n\n