Beispiel #1
0
 Boolean AnularDatos()
 {
     try
     {
         string msg = "";
         get_Bodega();
         tb_Bodega_Bus bus_pvta = new tb_Bodega_Bus();
         if (ValidarDatos())
         {
             if (bus_pvta.EliminarDB(info, ref msg))
             {
                 ucGe_Menu.Enabled_bntAnular = false;
                 MessageBox.Show("Bodega Anulada Exitosamente", "SISTEMA", MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
             else
             {
                 MessageBox.Show(msg, "SISTEMA", MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
         }
         return(true);
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return(false);
     }
 }