コード例 #1
0
        private void CargarTickets()
        {
            EventosDetalleClass Ticket = new EventosDetalleClass();

            TicketDropDownList.DataSource     = Ticket.Listado("PrecioTicket, DescTicket", "EventoId='" + EventoDropDownList.SelectedValue + "'", "");
            TicketDropDownList.DataTextField  = "DescTicket";
            TicketDropDownList.DataValueField = "PrecioTicket";
            TicketDropDownList.DataBind();
        }
コード例 #2
0
        private void LlenarDropDown()
        {
            RepositorioBase <Cliente> cliente = new RepositorioBase <Cliente>();

            ClienteDropDownList.DataSource     = cliente.GetList(x => true);
            ClienteDropDownList.DataValueField = "CLienteId";
            ClienteDropDownList.DataTextField  = "Nombres";
            ClienteDropDownList.DataBind();

            RepositorioBase <Ticket> ticket = new RepositorioBase <Ticket>();

            TicketDropDownList.DataSource     = ticket.GetList(x => true);
            TicketDropDownList.DataValueField = "TicketId";
            TicketDropDownList.DataTextField  = "NombreEvento";
            TicketDropDownList.DataBind();
        }
コード例 #3
0
        private void CargarDropDownList()
        {
            UsuariosClass Usuario = new UsuariosClass();

            UsuarioIdDropDownList.DataSource     = Usuario.Listado(" * ", "1=1", "");
            UsuarioIdDropDownList.DataTextField  = "NombreUsuario";
            UsuarioIdDropDownList.DataValueField = "UsuarioId";
            UsuarioIdDropDownList.DataBind();

            EventosClass Evento = new EventosClass();

            EventoDropDownList.DataSource     = Evento.Listado(" * ", "1=1", "");
            EventoDropDownList.DataTextField  = "NombreEvento";
            EventoDropDownList.DataValueField = "EventoId";
            EventoDropDownList.DataBind();

            EventosDetalleClass Ticket = new EventosDetalleClass();

            TicketDropDownList.DataSource     = Ticket.Listado(" * ", "1=1", "");
            TicketDropDownList.DataTextField  = "DescTicket";
            TicketDropDownList.DataValueField = "PrecioTicket";
            TicketDropDownList.DataBind();
        }