private void EditValue(int rowhandle)
        {
            if (rowhandle < 0)
            {
                return;
            }
            NhapHangTraMuaInfor item = (NhapHangTraMuaInfor)grvDanhSach.GetRow(rowhandle);

            if (item != null)
            {
                if (item.LoaiChungTu == (int)TransactionType.NHAPTRAHANGMUA)
                {
                    frmChiTietYeuCauNhapLaiHangMua frm = new frmChiTietYeuCauNhapLaiHangMua(item);
                    if (frm.ShowDialog() == DialogResult.OK)
                    {
                        LoadDataSource();
                    }
                }
                else if (item.LoaiChungTu == (int)TransactionType.DON_HANG_NHAP_LAI && nguoiDung.SupperUser == 1)
                {
                    frmChiTietYeuCauNhapLaiKhac frm = new frmChiTietYeuCauNhapLaiKhac(item);
                    if (frm.ShowDialog() == DialogResult.OK)
                    {
                        LoadDataSource();
                    }
                }
            }
        }
        private void AddNew()
        {
            frmChiTietYeuCauNhapLaiHangMua frm = new frmChiTietYeuCauNhapLaiHangMua();

            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.OK)
            {
                LoadDataSource();
            }
        }
        private void btnLapDonHangTraLai_Click(object sender, EventArgs e)
        {
            if (gvListChungTu.FocusedRowHandle < 0)
            {
                return;
            }
            ChungTuBanHangInfor ct = (ChungTuBanHangInfor)gvListChungTu.GetRow(gvListChungTu.FocusedRowHandle);

            if (ct != null)
            {
                frmChiTietYeuCauNhapLaiHangMua frm = new frmChiTietYeuCauNhapLaiHangMua(ct);
                frm.HideMenu();
                frm.ShowDialog();
            }
        }