Example #1
0
 private void btnEstraiSingoloOdp_Click(object sender, EventArgs e)
 {
     txtMessaggio.Text = string.Empty;
     try
     {
         if (string.IsNullOrEmpty(txtNoOdP.Text))
         {
             txtMessaggio.Text = "Indicare un ODP";
             return;
         }
         BCServices bc = new BCServices();
         bc.CreaConnessione();
         ODPRilasciato odp = bc.EstraiOdPRilasciato(txtNoOdP.Text);
         StringBuilder sb  = new StringBuilder();
         sb.AppendLine(string.Format("{0} # {1} {2}", odp.No, odp.Source_No, odp.Description));
         txtMessaggio.Text      = sb.ToString();
         txtDescrizioneOdP.Text = odp.Description;
         txtDescrizione2.Text   = odp.Description_2;
     }
     catch (Exception ex)
     {
         txtMessaggio.Text = estraiErrore(ex);
     }
 }