private void LlenaComboBoxPacientes()
        {
            List <Paciente> lista = new RepositorioBase <Paciente>().GetList(x => true);

            PacienteDropDownList.DataSource     = null;
            PacienteDropDownList.DataSource     = lista;
            PacienteDropDownList.DataTextField  = "Nombre";
            PacienteDropDownList.DataValueField = "Id_Paciente";
            PacienteDropDownList.DataBind();
        }
Exemplo n.º 2
0
        private void PacienteLlenarDropDownList()
        {
            Pacientes paciente = new Pacientes();

            PacienteDropDownList.DataSource     = paciente.Listado(" * ", " 1=1 ", " ");
            PacienteDropDownList.DataTextField  = "Nombres";
            PacienteDropDownList.DataValueField = "PacienteId";
            PacienteDropDownList.DataBind();
            PacienteDropDownList.Items.Insert(0, "Selecionar");
        }
        public void LLenarCombo()
        {
            RepositorioBase <Pacientes> repositorio = new RepositorioBase <Pacientes>(new Contexto());
            var Lista = new List <Pacientes>();

            Lista = repositorio.GetList(a => true);
            PacienteDropDownList.DataSource     = Lista;
            PacienteDropDownList.DataValueField = "PacienteId";
            PacienteDropDownList.DataTextField  = "Nombres";
            PacienteDropDownList.DataBind();
        }
Exemplo n.º 4
0
        private void ValoresDePaciente()
        {
            RepositorioBase <Pacientes> repositorio = new RepositorioBase <Pacientes>();
            var list = new List <Pacientes>();

            list = repositorio.GetList(p => true);
            PacienteDropDownList.DataSource     = list;
            PacienteDropDownList.DataValueField = "PacienteId";
            PacienteDropDownList.DataTextField  = "PacienteId";
            PacienteDropDownList.DataBind();
        }
Exemplo n.º 5
0
        private void CargarPacientes()
        {
            if (!Page.IsPostBack)
            {
                RepositorioBase <Pacientes> db = new RepositorioBase <Pacientes>();


                PacienteDropDownList.DataSource     = db.GetList(t => true);
                PacienteDropDownList.DataValueField = "PacienteId";
                PacienteDropDownList.DataTextField  = "Nombre";
                PacienteDropDownList.DataBind();

                ViewState["Analisis"] = new Analisis();
            }
        }
Exemplo n.º 6
0
        private void LlenarDropDownListAnalisis()
        {
            RepositorioBase <TipoAnalisis> repositorio = new RepositorioBase <TipoAnalisis>();
            RepositorioBase <Pacientes>    pacientes   = new RepositorioBase <Pacientes>();

            var list  = new List <TipoAnalisis>();
            var lista = new List <Pacientes>();

            list  = repositorio.GetList(p => true);
            lista = pacientes.GetList(p => true);

            TipoAnalisisDropDownList.DataSource    = list;
            TipoAnalisisDropDownList.DataTextField = "Descripcion";
            TipoAnalisisDropDownList.DataBind();

            PacienteDropDownList.DataSource    = lista;
            PacienteDropDownList.DataTextField = "Nombres";
            PacienteDropDownList.DataBind();
        }