private void bt_inlaihd_Click(object sender, EventArgs e)
        {
            if (this.iGirDataSource == null || this.iGirDataSource.Rows.Count <= 0)
            {
                XtraMessageBox.Show(Commons.NoData, Commons.Notify, MessageBoxButtons.OK);
                return;
            }
            dtReport();
            if (dtReport() == null || dtReport().Rows.Count <= 0)
            {
                XtraMessageBox.Show(Commons.NoData, Commons.Notify, MessageBoxButtons.OK);
                return;
            }
            RP_PrintReBill don = new RP_PrintReBill(dtReport(), dtReportHeard());

            don.ShowDialog();
        }
 private void btnInHD_Click(object sender, EventArgs e)
 {
     if (XtraMessageBox.Show(ScanBarcode.BanCoMuonXuatHD, Commons.Notify, MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.No)
     {
         if (XuatHoaDonDoiTra())
         {
             DataTable      dtReport = _doiModel.GetDataBill(txtMaHD.Text);
             RP_PrintReBill don      = new RP_PrintReBill(dtReport, dtReport);
             don.ShowDialog();
             this.iGridDataSource.Clear();
             this.iGridDataSourceScanBarCode.Clear();
             this.iGridHangDoi.Clear();
             this.grdHangDoi.DataSource     = iGridHangDoi.Copy();
             this.grdPhieuNhap.DataSource   = iGridDataSource.Copy();
             this.grdScanBarCode.DataSource = iGridDataSourceScanBarCode.Copy();
             XtraMessageBox.Show(Commons.LuuThanhCong, Commons.Notify, MessageBoxButtons.OK);
             return;
         }
         XtraMessageBox.Show(Commons.LuuBai, Commons.Notify, MessageBoxButtons.OK);
     }
 }