Document 2
Document 2
}
import java.util.ArrayList;
import java.util.List;
/*public QuanLyNhanVien() {
}*/
this.ds.add(nv);
this.ds.removeIf(nv->nv.getMaSo()==maSo);
for(NhanVien nv:this.ds){
if(nv.getCmnd().equals(cmnd)){
return nv;
return null;
if(nv.getHoTen().contains(hoTen)){
kq.add(nv);
return kq;
if(nv.getHoTen().equals(queQuan)){
kq.add(nv);
return kq;
System.out.println(nv);
}
import java.util.List;
import java.util.Scanner;
while(true){
System.out.print("\n6. Thoat");
sc.nextLine();
switch (chucNang) {
case 1:
NhanVien nv;
if(boPhan.equalsIgnoreCase("A")){
nv = new NhanVienA(cmnd,hoTen,queQuan,gioiTinh,dienThoai);
}else if(boPhan.equalsIgnoreCase("B")){
}else if(boPhan.equalsIgnoreCase("C")){
}else if(boPhan.equalsIgnoreCase("D")){
sc.nextLine();
}else{
continue;
ql.themNhanVien(nv);
break;
case 2:
ql.xoaNhanVien(maSo);
break;
case 3:
List<NhanVien> kq = ql.traCuuTheoTen(tuKhoa);
for(NhanVien n:kq){
System.out.println(n);
break;
case 4:
ql.hienThi();
break;
case 5:
sc.nextLine();
ql.tinhLuong(soNgayLam);
break;
case 6:
System.exit(0);
default:
}
}