private void btnadd_Click(object sender, EventArgs e) { try { KetNoi.excute("Insert into NguyenVong Values('" + txtmanv.Text + "','" + txtmahs.Text + "','" + txttenhs.Text + "','" + txtmanganh.Text + "','" + txttennganh.Text + "','" + txtthutunv.Text + "')"); Load_NguyenVong(); } catch { MessageBox.Show("Lỗi, không thêm được!"); } }
private void btnXoa_Click(object sender, EventArgs e) { ketnoi.excute("DELETE NguyenVong WHERE MaHS ='" + txtMaHS.Text + "' AND ThuTuNV='" + txtThuTuNV.Text + "'"); Load_DSHS(); }
private void btnChen_Click(object sender, EventArgs e) { ketnoi.excute("INSERT INTO DiemChuan Values('" + txtMaNganh.Text + "','" + txtTenNganh.Text + "','" + txtDiemChuan.Text + "')"); Load_DuLieu_DiemChuan(); }