Exemple #1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            DataGridViewRow row = DGVSoTietKiem.Rows[DGVSoTietKiem.Rows.Count - 1];

            //DataRowView row = (DataRowView)BindingNavigatorSoTietKiem.BindingSource.Current;
            if (row != null)
            {
                string chuoi = row.Cells["colMaSoTietKiem"].Value.ToString();
                IList <InPhieuThuInfo> Info     = InPhieuThuCtrl.LayDsSoTietKiemTheoMa(chuoi);
                frmPhieuThu_PhieuGui   PhieuThu = new frmPhieuThu_PhieuGui();
                PhieuThu.Show();
            }
        }
Exemple #2
0
        private void btnTruyXuat_Click(object sender, EventArgs e)
        {
            IList <InPhieuThuInfo> ketqua = InPhieuThuCtrl.LayDsSoTietKiemTheoMa(cmbMaSo.SelectedValue.ToString());

            Num2Str num    = new Num2Str();
            string  soTien = InPhieuThuCtrl.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.ReportViewerInPhieuThu.LocalReport.SetParameters(param);
            this.InPhieuThuInfoBindingSource.DataSource = ketqua;
            this.ReportViewerInPhieuThu.RefreshReport();
        }