protected void Carga_Horario() { HorarioBL oHorario = new HorarioBL(); cboHorario.DataSource = oHorario.Listado("S", cboConsultorio.SelectedValue == ""?0: Convert.ToInt32(cboConsultorio.SelectedValue), txtId_orden_examen.Text == "" ? 0 : Convert.ToInt32(txtId_orden_examen.Text)); cboHorario.DataTextField = "Fecha"; cboHorario.DataValueField = "Id_horario"; cboHorario.DataBind(); }
protected void Carga_Especialista() { HorarioBL oHorario = new HorarioBL(); HorarioBE eHorario; eHorario = oHorario.Registro(cboHorario.SelectedValue == ""? 0: Convert.ToInt32(cboHorario.SelectedValue)); if (eHorario != null) { txtEspecialista.Text = eHorario.Medico; } else { txtEspecialista.Text = ""; } }
public HorarioController() { _db = new DapperSqlServerConnector(); _bl = new HorarioBL(_db); }