private void cargarDropDownListVersiones(Modelo m)
        {
            try
            {
                DatosVersion datosVersion = new DatosVersion(); //ERROR SIN SENTIDO ??
                List<Negocio.Entidades.Version> listaVersiones = datosVersion.GetTodasVersiones(m);
                if (listaVersiones.Count > 0)
                {
                    this.DrDoListVersion.DataSource = listaVersiones;
                    this.DrDoListVersion.DataTextField = "Nombre";
                    this.DrDoListVersion.DataValueField = "IdVersion";
                    this.DrDoListVersion.DataBind();
                }
                else
                {
                    Page.Response.Write("No hay Versiones cargadas");
                }
            }
            catch (Exception ex)
            {
                Page.Response.Write("Error inesperado");
            }

        }
示例#2
0
 public DatosModelo()
 {
     connection = new SqlConnection(ConnString.GetConnectionString());
     datosVersion = new DatosVersion();
 }
示例#3
0
 public LogicaVersion()
 {
     datosVersion = new DatosVersion();
 }