private void btnTruyXuat_Click(object sender, EventArgs e)
        {
            IList <InPhieuChiInfo> ketqua = InPhieuChiRutLaiCtrl.LayDsSoTietKiemTheoMa(cmbMaSo.SelectedValue.ToString());

            Num2Str num    = new Num2Str();
            string  soTien = InPhieuChiRutLaiCtrl.LaySoTienTheoMa(cmbMaSo.SelectedValue.ToString());

            IList <ReportParameter> param = new List <ReportParameter>();

            param.Add(new ReportParameter("BangChu", num.NumberToString(soTien)));
            param.Add(new ReportParameter("Ngay", DateTime.Today.Day + "/" + DateTime.Today.Month + "/" + DateTime.Today.Year));

            this.ReportViewerInPhieuChi.LocalReport.SetParameters(param);
            this.InPhieuChiInfoBindingSource.DataSource = ketqua;
            this.ReportViewerInPhieuChi.RefreshReport();
        }
        private void frmPhieuThu_PhieuGui_Load(object sender, EventArgs e)
        {
            IList <InPhieuThuInfo> ketqua = InPhieuThuCtrl.LayDsSoTietKiemTheoMa();

            Num2Str num    = new Num2Str();
            string  soTien = InPhieuThuCtrl.LaySoTienTheoMa(ctrl.LayMaSo());

            IList <ReportParameter> param = new List <ReportParameter>();

            param.Add(new ReportParameter("BangChu", num.NumberToString(soTien)));
            param.Add(new ReportParameter("Ngay", DateTime.Today.Day + "/" + DateTime.Today.Month + "/" + DateTime.Today.Year));

            this.ReportViewerInPhieuThu.LocalReport.SetParameters(param);

            this.InPhieuThuInfoBindingSource.DataSource = ketqua;
            this.ReportViewerInPhieuThu.RefreshReport();
        }