public void LLenarDDLEstados() { try { IDAOFactura facturabd = FabricaDAOSQLServer.ObtenerFabricaDAO().ObtenerDAOFactura(); IList <String> estados = facturabd.ConsultarEstados(); for (int i = estados.Count - 1; i >= 0; i--) { _vista.Estado.Items.Add(estados[i].ToString()); } } catch (WebException e) { _vista.Pintar("Error WEB consultando"); _vista.MensajeVisible = true; } catch (ConsultarException e) { _vista.Pintar(e.Message); _vista.MensajeVisible = true; } catch (Exception e) { _vista.Pintar(e.Message); _vista.MensajeVisible = true; } }
public override bool Ejecutar() { IDAOLibreta accion = FabricaDAOSQLServer.CrearFabricaDeDAO(1).CrearDAOLibreta(); if (log.IsInfoEnabled) { log.Info("Clase: " + System.Reflection.MethodBase.GetCurrentMethod().DeclaringType + " libreta: " + (libreta as Clases.Libreta).ToString()); } estado = accion.EditarLibreta(libreta); return(estado); }