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

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

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

            Devis_Reporting rp = new Devis_Reporting();

            rp.SetDataSource(dt);

            crystalReportViewer1.ReportSource = rp;
        }
示例#2
0
        void PrintDevisInitializ(string numdevis)
        {
            foreach (Control c in groupBox1.Controls)
            {
                c.Visible = false;
            }
            Devis_Reporting rp = new Devis_Reporting();
            DataTable       dt = DA.GetDevisInfos(numdevis);

            rp.SetDataSource(dt);

            crystalReportViewer1.ReportSource = rp;
        }