public void HuyNl()
        {
            HuyNguyenLieuDTO huynl = new HuyNguyenLieuDTO();

            huynl.TenDn = TenDn ?? "admin";
            bool t = huynl_bus.HuyNl_Insert(huynl);

            for (int i = 0; i < datanguyenlieuhuy.Rows.Count - 1; i++)
            {
                CtHuyNguyenLieuDTO cthuynl = new CtHuyNguyenLieuDTO();
                cthuynl.MaNl    = datanguyenlieuhuy.Rows[i].Cells[0].Value.ToString();
                cthuynl.DVt     = datanguyenlieuhuy.Rows[i].Cells[1].Value.ToString();
                cthuynl.SoLuong = datanguyenlieuhuy.Rows[i].Cells[2].Value.ToString();
                cthuynl.HSd     = datanguyenlieuhuy.Rows[i].Cells[3].Value.ToString();
                cthuynl.LyDoHuy = datanguyenlieuhuy.Rows[i].Cells[4].Value.ToString();
                cthuynl_bus.CtHuyNl_Insert(cthuynl);
            }
            CtHuyNl_DeleteNl();
            HoaDonHuy  hdh  = new HoaDonHuy(TenDn);
            HoaDonHuyy hdhy = new HoaDonHuyy();

            hdh.crvhoadonhuy.ReportSource = hdhy;
            this.Hide();
            hdh.ShowDialog();
        }
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            HoaDonHuyy rpt = new HoaDonHuyy();

            rpt.Site = this.Site;
            return(rpt);
        }