Commit e897cb39 by Nattana Chaiyamat

ทะเบียนพนักงาน

parent e895511d
...@@ -253,11 +253,11 @@ export class SubEmployeeRegistrationComponent { ...@@ -253,11 +253,11 @@ export class SubEmployeeRegistrationComponent {
} }
employeeFilter() { employeeFilter() {
return this.employee.dataList.filter(x => return this.employee.dataList.filter(x =>
x.data.employeeId.includes(this.search) || x.data.employeeId.toLowerCase().includes(this.search.toLowerCase()) ||
x.data.fname.includes(this.search) || x.data.fname.toLowerCase().includes(this.search.toLowerCase()) ||
x.data.lname.includes(this.search) || x.data.lname.toLowerCase().includes(this.search.toLowerCase()) ||
x.data.position.tdesc.includes(this.search) || x.data.position.tdesc.toLowerCase().includes(this.search.toLowerCase()) ||
x.data.jobCode.tdesc.includes(this.search)) x.data.jobCode.tdesc.toLowerCase().includes(this.search.toLowerCase()))
} }
selectEmployee(data?: EmployeeModel) { selectEmployee(data?: EmployeeModel) {
this.employee.select = { ...new MyEmployeeModel(data || {}), dateIso: this.toISODate(data?.firstHireDate) } this.employee.select = { ...new MyEmployeeModel(data || {}), dateIso: this.toISODate(data?.firstHireDate) }
......
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