void m_cmd_delete_Click(object sender, EventArgs e)
{
try
{
var v_dr = m_grv.GetDataRow(m_grv.FocusedRowHandle);
if (m_grv.FocusedRowHandle < 0)
XtraMessageBox.Show("Bạn chưa chọn dòng dữ liệu để sửa", "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
else if (check_quy_tien_da_chot_yn(v_dr[2].ToString(), v_dr[3].ToString()))
XtraMessageBox.Show("Bạn không thể xóa quỹ tiền đã chốt!","Thông báo",MessageBoxButtons.OK,MessageBoxIcon.Stop);
else
{
US_GD_QUY_THU_NHAP_KHAC v_us = new US_GD_QUY_THU_NHAP_KHAC(CIPConvert.ToDecimal(v_dr[0].ToString()));
string v_str_confirm = "Bạn có chắc chắn muốn xóa quỹ tiền này?";
DialogResult v_dialog = XtraMessageBox.Show(v_str_confirm,"Xác nhận",MessageBoxButtons.YesNo,MessageBoxIcon.Question);
if (v_dialog == DialogResult.Yes)
{
xoa_quy_tien(v_us);
load_data_to_grid();
}
}
}
catch (Exception v_e)
{
CSystemLog_301.ExceptionHandle(v_e);
}
}