protected void Carga_Catalogos() { iCom_BusinessEntity.Usuario oBE = new iCom_BusinessEntity.Usuario(); iCom_BusinessLogic.PeriodoEscolar oBL = new iCom_BusinessLogic.PeriodoEscolar(); oBE.idusuario = int.Parse(Session["id"].ToString()); try { dtDatos = oBL.ConsultarAlumno(oBE); if (dtDatos.Rows.Count > 0) { DdlPeriodo.DataSource = dtDatos; DdlPeriodo.DataTextField = "periodoescolar"; DdlPeriodo.DataValueField = "idperiodoescolar"; DdlPeriodo.DataBind(); DdlPeriodo.Focus(); } } catch (Exception ex) { ResgitraLog(ex.Message); return; } }
protected void Carga_Periodos() { try { // Periodos iCom_BusinessEntity.Materia oBE = new iCom_BusinessEntity.Materia(); iCom_BusinessLogic.Materia oBL = new iCom_BusinessLogic.Materia(); oBE.idusuariodocente = int.Parse(Application["idusuario"].ToString()); oBE.periodoB = true; oBE.carreaB = false; oBE.idcarrera = 0; oBE.materiaB = false; dtDatos = oBL.ConsultarDocente(oBE); if (dtDatos.Rows.Count > 0) { DdlPeriodo.DataSource = dtDatos; DdlPeriodo.DataTextField = "periodoescolar"; DdlPeriodo.DataValueField = "idperiodoescolar"; DdlPeriodo.DataBind(); DdlPeriodo.Focus(); } } catch (Exception ex) { ResgitraLog(ex.Message); return; } }