예제 #1
0
        private void bunifuImageButton3_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(textBox1.Text))
            {
                MessageBox.Show("le champe est Vide Entrer Num de Bon de Livraison");
                return;
            }

            else if (textBox1.Text.Length < 10)
            {
                MessageBox.Show("Num de BL est Incorecte !!!");
                return;
            }
            DataTable dt = DA.GetBLInfos(textBox1.Text);

            if (dt.Rows.Count == 0)
            {
                MessageBox.Show("Cette Num Pas Existe !");
                return;
            }

            BL_Reporting rp = new BL_Reporting();

            rp.SetDataSource(dt);

            crystalReportViewer1.ReportSource = rp;
        }
예제 #2
0
        void PrintBLInitializ(string numdevis)
        {
            foreach (Control c in groupBox1.Controls)
            {
                c.Visible = false;
            }
            BL_Reporting rp = new BL_Reporting();
            DataTable    dt = DA.GetBLInfos(numdevis);

            rp.SetDataSource(dt);

            crystalReportViewer1.ReportSource = rp;
        }