示例#1
0
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     try
     {
         rapportbusinessGerant j = new rapportbusinessGerant();
         j.DataSource = StormSoft.classe.glossaire.GetInstance().sortieOperationBusDate(txtdate1.Text, users);
         ReportPrintTool printTool = new ReportPrintTool(j);
         printTool.ShowPreviewDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
示例#2
0
 private void pictureBox3_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "")
     {
         MessageBox.Show("Remplissez Id du client ");
     }
     else
     {
         try
         {
             rapportbusinessGerant j = new rapportbusinessGerant();
             j.DataSource = StormSoft.classe.glossaire.GetInstance().sortieOperationBusID(textBox1.Text, users);
             ReportPrintTool printTool = new ReportPrintTool(j);
             printTool.ShowPreviewDialog();
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
         }
     }
 }