/// <summary> /// Guardars the agenda. /// </summary> /// <param name="entidad">The entidad.</param> private void GuardarAgenda(AgendaActividades entidad) { objBLAgenda = new BLAgendaActividades(entidad); objBLAgenda.Save(); }
/// <summary> /// Obteners the valores pantalla. /// </summary> /// <returns></returns> private AgendaActividades ObtenerValoresDePantalla() { AgendaActividades entidad = new AgendaActividades(); entidad = propAgenda; if (!esNuevo) { entidad.idAgendaActividad = propAgenda.idAgendaActividad; entidad.cursoCicloLectivo.idCursoCicloLectivo = propAgenda.cursoCicloLectivo.idCursoCicloLectivo; } return entidad; }
/// <summary> /// Cargars the lista. /// </summary> /// <param name="entidad">The entidad.</param> private void CargarLista(AgendaActividades entidad) { entidad.activo = true; if (User.IsInRole(enumRoles.Docente.ToString())) entidad.usuario = ObjSessionDataUI.ObjDTUsuario.Nombre; objBLAgenda = new BLAgendaActividades(entidad); listaAgenda = objBLAgenda.GetAgendaActividades(entidad); }
/// <summary> /// Buscars the filtrando. /// </summary> private void BuscarFiltrando() { lblTitulo.Text = "Actividades"; //calfecha.ValidarRangoDesde(); AgendaActividades entidad = new AgendaActividades(); //entidad.cursoCicloLectivo.idCurso = Convert.ToInt32(ddlCurso.SelectedValue); entidad.cursoCicloLectivo.idCursoCicloLectivo = Convert.ToInt32(ddlCurso.SelectedValue); entidad.cursoCicloLectivo.idCicloLectivo = cicloLectivoActual.idCicloLectivo; //entidad.fechaCreacion = Convert.ToDateTime(calfecha.ValorFecha); //entidad.activo = chkActivo.Checked; propFiltroAgenda = entidad; BuscarAgenda(entidad); }
/// <summary> /// Buscars the entidads. /// </summary> /// <param name="entidad">The entidad.</param> private void BuscarAgenda(AgendaActividades entidad) { CargarLista(entidad); CargarGrilla(); }
/// <summary> /// Handles the Click event of the btnVolver control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected void btnVolver_Click(object sender, EventArgs e) { try { CargarPresentacion(); BuscarAgenda(propFiltroAgenda); propAgenda = new AgendaActividades(); } catch (Exception ex) { Master.ManageExceptions(ex); } }
/// <summary> /// Buscars the filtrando. /// </summary> private void BuscarFiltrando() { lblTitulo.Text = "Actividades"; AgendaActividades entidad = new AgendaActividades(); entidad.cursoCicloLectivo.idCicloLectivo = cicloLectivoActual.idCicloLectivo; propFiltroAgenda = entidad; BuscarAgenda(entidad); }