Ejemplo n.º 1
0
        /// <summary>
        /// Obteners the valores pantalla.
        /// </summary>
        /// <returns></returns>
        private Reunion ObtenerValoresDePantalla()
        {
            Reunion evento = new Reunion();
            evento = propEvento;

            if (!esNuevo)
            {
                evento.idAgendaActividad = propAgenda.idAgendaActividad;
                evento.idEventoAgenda = propEvento.idEventoAgenda;
            }

            evento.fechaEvento = Convert.ToDateTime(calFechaEvento.ValorFecha);
            evento.horario = Convert.ToDateTime(txtHoraEdit.Text.Trim());
            evento.descripcion = txtDescripcionEdit.Text.Trim();
            evento.activo = chkActivoEdit.Checked;
            evento.usuario.username = ObjSessionDataUI.ObjDTUsuario.Nombre;
            evento.fechaAlta = DateTime.Now;

            return evento;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Registrar el evento.
        /// </summary>
        /// <param name="evento">The evento.</param>
        private void GuardarEvento(Reunion evento)
        {
            objBLAgenda = new BLAgendaActividades(propAgenda);
            objBLAgenda.GetById();
            objBLAgenda.VerificarAgendaReuniones(evento);

            objBLAgenda.Data.listaReuniones.Add(evento);
            objBLAgenda.Save();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Buscars the filtrando.
        /// </summary>
        private void BuscarFiltrando()
        {
            calfechas.ValidarRangoDesdeHasta(false);
            Reunion evento = new Reunion();

            evento.activo = chkActivo.Checked;
            evento.fechaEventoDesde = Convert.ToDateTime(calfechas.ValorFechaDesde);
            evento.fechaEventoHasta = Convert.ToDateTime(calfechas.ValorFechaHasta);

            if (txtHoraEdit.Text.Trim().Length > 1)
                evento.horario = Convert.ToDateTime(txtHoraEdit.Text);

            propFiltroEvento = evento;
            BuscarAgenda(evento);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Cargars the lista.
 /// </summary>
 /// <param name="evento">The evento.</param>
 private void CargarLista(Reunion evento)
 {
     objBLAgenda = new BLAgendaActividades();
     evento.idAgendaActividad = propAgenda.idAgendaActividad;
     listaEventos = objBLAgenda.GetReunionesAgenda(evento);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Buscars the eventos.
 /// </summary>
 /// <param name="evento">The evento.</param>
 private void BuscarAgenda(Reunion evento)
 {
     CargarLista(evento);
     CargarGrilla();
 }