public FormularioAsignado(Periodo_activa_por periodo, string Correo) { // Guardar correo desde el httpcontext this.Correo = Correo; // Guardar objeto de periodo this.Periodo = periodo; // Basado en el objeto, guardar nombre del formulario using (DataIntegradorEntities db = new DataIntegradorEntities()) { this.Nombre = db.Formulario.Find(this.Periodo.FCodigo).Nombre; this.NombreCurso = db.Curso.Find(this.Periodo.CSigla).Nombre; this.Estado = ObtenerEstadoFormulario(); db.Dispose(); } this.FechaInicioFormateada = FormatearFecha(this.Periodo.FechaInicio); this.FechaFinFormateada = FormatearFecha(this.Periodo.FechaFin); }
public FechasSolapadasInfo(Periodo_activa_por periodo, DateTime inicio, DateTime fin) { this.PeriodoOriginal = periodo; this.FechaInicioNueva = inicio; this.FechaFinNueva = fin; }