protected override void ResumenAction() { if (_entity == null) { return; } List <RegistroResumenPlanDocente> lista_teoricas = null; List <RegistroResumenPlanDocente> lista_practicas = null; PgMng.Reset(2, 1, Resources.Messages.LOADING_DATA, this); try { lista_teoricas = RegistroResumenPlanDocente.ContabilizaClasesTeoricas(_entity.Oid); PgMng.Grow(); lista_practicas = RegistroResumenPlanDocente.ContabilizaClasesPracticas(_entity.Oid); } finally { PgMng.FillUp(); } ResumenPlanDocenteForm form = new ResumenPlanDocenteForm(true, lista_teoricas, lista_practicas, this); form.ShowDialog(); }
protected override void ResumenAction() { if (_entity == null) { return; } List <RegistroResumenPlanDocente> lista_extras = null; PgMng.Reset(1, 1, Resources.Messages.LOADING_DATA, this); try { lista_extras = RegistroResumenPlanDocente.ContabilizaClases(EntityInfo.CExtras); } finally { PgMng.FillUp(); } ResumenPlanExtraForm form = new ResumenPlanExtraForm(true, lista_extras, this); form.ShowDialog(); }
private void GeneraCronogramaAction(bool comparativa, bool restantes = false) { if (!comparativa) { PgMng.Reset(10, 1, Resources.Messages.GENERANDO_CRONOGRAMA, this); try { int total_dias = DoGeneraCronograma(false, DateTime.MaxValue, restantes); if (_cronograma != null && _cronograma.Sesiones != null && _cronograma.Sesiones.Count > 0) { ClasesRestantesCronogramaMngForm cform = new ClasesRestantesCronogramaMngForm(true, this, _cronograma, total_dias); cform.ShowDialog(); } } catch { } finally { PgMng.FillUp(); } } else { DateSelectForm form = new DateSelectForm(EntityInfo, true, this); form.ShowDialog(); if (form.ActionResult == DialogResult.OK) { PgMng.Reset(10, 1, Resources.Messages.GENERANDO_CRONOGRAMA, this); try { DoGeneraCronograma(true, form.Fecha); if (_cronograma != null && _cronograma.Sesiones != null && _cronograma.Sesiones.Count > 0) { CronogramaReportMng reportMng = new CronogramaReportMng(AppContext.ActiveSchema); List <RegistroResumenPlanDocente> teoricas = RegistroResumenPlanDocente.GetComparativaTeoricasCronogramaHorarios(_cronograma, form.Fecha); if (teoricas.Count > 0) { ReportViewer.SetReport(reportMng.GetComparativaClases(EntityInfo, form.Fecha, teoricas)); ReportViewer.ShowDialog(); } List <RegistroResumenPlanDocente> practicas1 = RegistroResumenPlanDocente.GetComparativaPracticasCronogramaHorarios(_cronograma, form.Fecha, 1); if (practicas1.Count > 0) { ReportViewer.SetReport(reportMng.GetComparativaClases(EntityInfo, form.Fecha, practicas1, 1)); ReportViewer.ShowDialog(); } List <RegistroResumenPlanDocente> practicas2 = RegistroResumenPlanDocente.GetComparativaPracticasCronogramaHorarios(_cronograma, form.Fecha, 2); if (practicas2.Count > 0) { ReportViewer.SetReport(reportMng.GetComparativaClases(EntityInfo, form.Fecha, practicas2, 2)); ReportViewer.ShowDialog(); } } } catch { } finally { PgMng.FillUp(); } } } }