1. Trang chủ
  2. » Luận Văn - Báo Cáo

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

106 3 0
Tài liệu được quét OCR, nội dung có thể không chính xác
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 106
Dung lượng 17,72 MB

Nội dung

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 1

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+"%'";

Trang 2

try {

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 3

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+"%'";

Trang 4

try {

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 5

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+"%'";

Trang 6

try {

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 7

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+"%'";

Trang 8

try {

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 9

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+"%'";

Trang 10

try {

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 11

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+"%'";

Trang 12

try {

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 13

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+"%'";

Trang 14

try {

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 15

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+"%'";

Trang 16

try {

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 17

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+"%'";

Trang 18

try {

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 19

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+"%'";

Trang 20

try {

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 21

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+"%'";

Trang 22

try {

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 23

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+"%'";

Trang 24

try {

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 25

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+"%'";

Trang 26

try {

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 27

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+"%'";

Trang 28

try {

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 29

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+"%'";

Trang 30

try {

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 31

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+"%'";

Trang 32

try {

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 33

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+"%'";

Trang 34

try {

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 35

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+"%'";

Trang 36

try {

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 37

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+"%'";

Trang 38

try {

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 39

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+"%'";

Trang 40

try {

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;

Ngày đăng: 11/07/2023, 10:09

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w