Khóa luận tốt nghiệp Kinh tế đối ngoại: Phân tích hiệu quả hoạt động kinh doanh tại Ngân hàng Sacombank chi nhánh Vĩnh Long được thực hiện với mục tiêu nhằm phân tích kết quả kinh doanh đạt được của Ngân hàng Sacombank Chi nhánh Vĩnh Long; phân tích các nhân tố ảnh hưởng đến kết quả hoạt động kinh doanh của Ngân hàng Sacombank Chi nhánh Vĩnh Long;... Đề tài Hoàn thiện công tác quản trị nhân sự tại Công ty TNHH Mộc Khải Tuyên được nghiên cứu nhằm giúp công ty TNHH Mộc Khải Tuyên làm rõ được thực trạng công tác quản trị nhân sự trong công ty như thế nào từ đó đề ra các giải pháp giúp công ty hoàn thiện công tác quản trị nhân sự tốt hơn trong thời gian tới.
Trang 1pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 2try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace();
} }
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance(); Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 3pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 4try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 5pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance(); Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 6try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 7pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 8try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 9pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 10try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 11pstm.close();
} catch (SQLException e2) {
e2.printStackTrace();
}
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 12try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 13pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 14try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 15pstm.close();
} catch (SQLException e2) {
e2.printStackTrace();
}
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 16try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace();
}
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 17pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 18try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace();
}
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 19pstm.close();
} catch (SQLException e2) {
e2.printStackTrace();
} }
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance(); Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 20try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 21pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 22try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace();
} }
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance(); Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 23pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 24try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 25pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 26try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace();
}
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 27pstm.close();
} catch (SQLException e2) {
e2.printStackTrace();
}
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 28try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 29pstm.close();
} catch (SQLException e2) {
e2.printStackTrace();
}
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 30try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace();
} }
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance(); Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 31pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 32try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 33pstm.close();
} catch (SQLException e2) {
e2.printStackTrace();
} }
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance(); Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 34try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace();
} }
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance(); Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 35pstm.close();
} catch (SQLException e2) {
e2.printStackTrace();
} }
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance(); Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 36try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace();
}
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 37pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 38try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace();
}
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;
Trang 39pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection();
try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Trang 40try {
pstm.close();
} catch (SQLException e2) {
e2.printStackTrace(); }
}
return n > 0;
}
public ArrayList<NhanVien> getTimKiem(String ma){
ArrayList<NhanVien> dsnv = new ArrayList<NhanVien>();
ConnectDB.getInstance();
Connection
con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
Statement stm = con.createStatement(); ResultSet rs = stm.executeQuery(sql); while(rs.next()) { dsnv.add(new NhanVien(rs.getString("maNV"), rs.getString("ho"), rs.getString("ten"), rs.getInt("tuoi"), rs.getBoolean("phai"), dao_pb.getPBTheoMa(rs.getString("maPhong")), rs.getFloat("tienLuong"))); } } catch (SQLException e) {
// TODO: handle exception
e.printStackTrace(); }
return dsnv;