private void Showcongno(DateTime from, DateTime to)
 {
     DataTable dt = tcongno.SetData_NCC(from, to);
     RPT.rptTheodoicongno_ncc rpt = new RPT.rptTheodoicongno_ncc();
     rpt.SetDataSource(dt);
     crystalReportViewer1.ReportSource = rpt;
     crystalReportViewer1.Refresh();
     dt.Clear();
 }
        private void Showcongno(DateTime from, DateTime to)
        {
            DataTable dt = tcongno.SetData_NCC(from, to);

            RPT.rptTheodoicongno_ncc rpt = new RPT.rptTheodoicongno_ncc();
            rpt.SetDataSource(dt);
            crystalReportViewer1.ReportSource = rpt;
            crystalReportViewer1.Refresh();
            dt.Clear();
        }
Exemplo n.º 3
0
        private void ShowcongnoNCC(string ten, DateTime from, DateTime to)
        {
            DataTable dt = new DataTable();

            dt = tcongno.SetData_NCC(from, to);
            if (ten != "")
            {
                int i = 0;
                for (i = 0; i < dt.Rows.Count; i++)
                {
                    if (dt.Rows[i]["kh"].ToString() != ten)
                    {
                        dt.Rows[i].Delete();
                        i -= 1;
                    }
                }
            }
            RPT.rptTheodoicongno_ncc rpt = new RPT.rptTheodoicongno_ncc();
            rpt.SetDataSource(dt);
            crystalReportViewer1.ReportSource = rpt;
            crystalReportViewer1.Refresh();
            dt.Clear();
        }
Exemplo n.º 4
0
        private void ShowcongnoNCC(string ten, DateTime from, DateTime to)
        {
            DataTable dt = new DataTable();
             dt = tcongno.SetData_NCC(from, to);
            if (ten != "")
            {
                int i = 0;
                for (i = 0; i < dt.Rows.Count; i++)
                {
                    if (dt.Rows[i]["kh"].ToString() != ten)
                    {
                        dt.Rows[i].Delete();
                        i -=1;
                    }

                }
            }
             RPT.rptTheodoicongno_ncc rpt = new RPT.rptTheodoicongno_ncc();
                rpt.SetDataSource(dt);
                crystalReportViewer1.ReportSource = rpt;
                crystalReportViewer1.Refresh();
                dt.Clear();
        }