public void RegMag(string Anagrafica, DateTime Due_Date, decimal Quantity, string Location_Code, string Description, string Description2)

        {
            NAV.ODPRilasciato oDP = new ODPRilasciato();
            oDP.Source_No     = Anagrafica;
            oDP.Due_Date      = Due_Date;
            oDP.Location_Code = Location_Code;
            oDP.Quantity      = Quantity;
            oDP.Description   = Description;
            oDP.Description_2 = Description2;
            oDP.Status        = "Rilasciato";
            oDP.No            = string.Empty;
            _nav.AddToODPRilasciato(oDP);
            Salva();
        }
Ejemplo n.º 2
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);
     }
 }