private void btnXacNhan_Click(object sender, EventArgs e) { //Cập nhật thuộc tính StatusPhieuNhap=1 if (bd.CapNhatTrangThaiPhieuNhap(ref err, ref rows, maPhieuNhap)) { statusPhieuNhap = true; //Thực hiện In Phiếu nhập Frm_InPhieuNhap frmInPhieuNhap = new Frm_InPhieuNhap(maPhieuNhap); frmInPhieuNhap.ShowDialog(); maPhieuNhap = string.Empty; this.Close(); } }
private void btninlai_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(maPhieuNhap)) { //gọi hàm xóa Frm_InPhieuNhap frmInPhieuNhap = new Frm_InPhieuNhap(maPhieuNhap); frmInPhieuNhap.ShowDialog(); maPhieuNhap = string.Empty; } else { MessageBox.Show("Chưa chọn mã phiếu nhập", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } }