Exemplo n.º 1
0
 protected void Limpiar()
 {
     PacienteDropDownList.ClearSelection();
     TipoAnalisisDropDownList.ClearSelection();
     ResultadoTextBox.Text = string.Empty;
     MontoTextBox.Text     = 0.ToString();
     BalanceTextBox.Text   = 0.ToString();
     this.BindGrid();
 }
        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.º 3
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.º 5
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.º 6
0
 private void Limpiar()
 {
     FechaLabel.Text         = FechaLabel.Text;
     IdTextBox.Text          = string.Empty;
     CentroSaludTextBox.Text = "";
     ProvinciaDropDownList.ClearSelection();
     MunicipioDropDownList.ClearSelection();
     PacienteDropDownList.ClearSelection();
     VacunaDropDownList.ClearSelection();
     DosisTextBox.Text            = string.Empty;
     FechaVacunaTextBox.Text      = string.Empty;
     HistorialGridView.DataSource = null;
     HistorialGridView.DataBind();
 }
Exemplo n.º 7
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.º 8
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();
        }