Beispiel #1
0
        private void btnRegMag_Click(object sender, EventArgs e)
        {
            txtMessaggio.Text = string.Empty;
            try
            {
                string azienda = (string)ddlAziende.SelectedItem;

                BCServices bc = new BCServices();
                bc.CreaConnessione(azienda);
                bc.CreaRegistrazioneMagazzino(txtUbiRegMag.Text, txtCollocazioneRegMag.Text, 1000, txtNrDocRegMag.Text, nQuntitàRegMag.Value, txtAnagRegMag.Text);
                txtMessaggio.Text = "Operazione terminata con successo";
            }
            catch (Exception ex)
            {
                txtMessaggio.Text = estraiErrore(ex);
            }
        }