Ejemplo n.º 1
0
 private void btnEstraiOdP_Click(object sender, EventArgs e)
 {
     txtMessaggio.Text = string.Empty;
     try
     {
         string     azienda = (string)ddlAziende.SelectedItem;
         BCServices bc      = new BCServices();
         bc.CreaConnessione(azienda);
         List <ODPConfermato> odps = bc.EstraiOdPConfermati();
         StringBuilder        sb   = new StringBuilder();
         sb.AppendLine(string.Format("Trovati {0} odp confermati", odps.Count));
         sb.AppendLine(string.Empty);
         foreach (ODPConfermato o in odps)
         {
             sb.AppendLine(string.Format("{0} # {1}", o.No, o.Source_No));
         }
         txtMessaggio.Text = sb.ToString();
     }
     catch (Exception ex)
     {
         txtMessaggio.Text = estraiErrore(ex);
     }
 }