//lay cac thong tin bao cao no cho doi tuong,tao bao cao no
        private void butTao_Click(object sender, EventArgs e)
        {
            Thang          = int.Parse(cbThang.Text);
            Nam            = int.Parse(txtNam.Text);
            baocaono.Thang = int.Parse(cbThang.Text);
            baocaono.Nam   = int.Parse(txtNam.Text);
            if (objBaoCao.KiemTra(baocaono.Thang, baocaono.Nam) == true)
            {
                KhachHangBUS objKH = new KhachHangBUS();
                DataTable    dtKH  = objKH.GetKH();
                for (int i = 0; i < dtKH.Rows.Count; i++)
                {
                    baocaono.MaKH       = dtKH.Rows[i]["makh"].ToString();
                    baocaono.TenKH      = dtKH.Rows[i]["tenkh"].ToString();
                    baocaono.No         = GetNo(baocaono.Thang, baocaono.Nam, baocaono.MaKH);
                    baocaono.TienThu    = GetTienThu(baocaono.Thang, baocaono.Nam, baocaono.MaKH);
                    baocaono.NoPhatSinh = GetNoPhatSinh(baocaono.Thang, baocaono.Nam, baocaono.MaKH);
                    baocaono.No        += baocaono.NoPhatSinh - baocaono.TienThu;
                    if (objBaoCao.ThemBaoCao(baocaono) != true)
                    {
                        MessageBox.Show("Lỗi dữ liệu");
                        break;
                    }
                }
            }
            BangBaoCaoNo fr = new BangBaoCaoNo();

            fr.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            BangBaoCaoNo fr = new BangBaoCaoNo();

            fr.Show();
        }