Commit 4bbdbad5 by Nattana Chaiyamat

นำเข้าข้อมูลบริษัท

parent 8c5761c6
......@@ -98,7 +98,7 @@ export class SubEmployeeRegistrationComponent {
const formData = new FormData();
formData.append('file', this.selectedFile);
this.employee.loading = true
this.fileService.uploadExcel(formData, '').subscribe({
this.fileService.uploadExcel(formData, 'memployee').subscribe({
next: response => {
if (response.success) {
this.showAlert(response.message, 'success')
......@@ -116,7 +116,7 @@ export class SubEmployeeRegistrationComponent {
})
}
downloadFile() {
const fileName = '.xlsx'
const fileName = 'IMPORT_MEMPLOYEE.xlsx'
this.fileService.downloadTemplate(fileName).subscribe({
next: response => {
const url = window.URL.createObjectURL(response);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment