protected void btnConsultar_Click(object sender, EventArgs e) { CargaOrden(); CargaProgramacion(); if (txtEstado_orden_examen.Text.Trim() != "") { if (txtEstado_orden_examen.Text.Substring(0, 1) == "A" || txtEstado_orden_examen.Text.Substring(0, 1) == "C") { btnProgramar.Visible = false; btnReProgramar.Visible = false; } } Programacion_ExamenBL oProgramacion_Examen = new Programacion_ExamenBL(); grvProgramacion.DataSource = oProgramacion_Examen.Listado(txtId_orden_examen.Text == "" ? 0 : Convert.ToInt32(txtId_orden_examen.Text), 0, "", "", 0, 0); grvProgramacion.DataBind(); if (grvProgramacion.Rows.Count == 0) { lblHistorial.Visible = false; } else { lblHistorial.Visible = true; } }
protected void btnBuscar_Click(object sender, EventArgs e) { Programacion_ExamenBL oProgramacion_Examen = new Programacion_ExamenBL(); grvLista.DataSource = oProgramacion_Examen.Listado(txtId_orden_examen.Text == "" ? 0 : Convert.ToInt32(txtId_orden_examen.Text), 0, "", txtPaciente.Text.Trim(), txtId_orden_interna.Text == "" ? 0 : Convert.ToInt32(txtId_orden_interna.Text), txtId_historia.Text == "" ? 0 : Convert.ToInt32(txtId_historia.Text)); grvLista.DataBind(); }
protected void btnBuscar_Click(object sender, EventArgs e) { //if (txtFecha.Text.Trim() == "") //{ // lblMensaje.Text = "Indique fecha"; // txtFecha.Focus(); // return; //} Programacion_ExamenBL oProgramacion_Examen = new Programacion_ExamenBL(); grvLista.DataSource = oProgramacion_Examen.Listado(txtId_orden_examen.Text == "" ? 0 : Convert.ToInt32(txtId_orden_examen.Text), cboConsultorio.SelectedValue == "" ? 0 : Convert.ToInt32(cboConsultorio.SelectedValue), txtFecha.Text, txtPaciente.Text.Trim(), 0, 0); grvLista.DataBind(); }