private WSInfoCarreras.ParametrosCarrera _getParametrosCarrera() { WSInfoCarreras.ParametrosCarrera pc = new WSInfoCarreras.ParametrosCarrera(); try { WSInfoCarreras.InfoCarreras ic = new WSInfoCarreras.InfoCarreras(); pc = ic.GetParametrosCarrera(this.UsuarioActual.CarreraActual.Codigo.ToString()); } catch (Exception ex) { Errores err = new Errores(); err.SetError(ex, "_getParametrosCarrera"); } return(pc); }
protected WSInfoCarreras.ParametrosCarrera _getParametrosCarreraPA(string strCodCarrera) { WSInfoCarreras.ParametrosCarrera pc = new WSInfoCarreras.ParametrosCarrera(); try { WSInfoCarreras.InfoCarreras ic = new WSInfoCarreras.InfoCarreras(); pc = ic.GetParametrosCarrera(strCodCarrera); } catch (Exception ex) { Errores err = new Errores(); err.SetError(ex, "_getParametrosCarrera"); } return(pc); }
private IEnumerable <ReportParameter> _getParametrosGeneralesReporte() { WSInfoCarreras.ParametrosCarrera pc = this._getParametrosCarrera(); List <ReportParameter> lstPrmRptHorarioAcademico = new List <ReportParameter>(); string lblFacultad = "FACULTAD:"; string lblCarrera = "CARRERA:"; string lblEscuela = "ESCUELA:"; string facultad = default(string); string carrera = default(string); string escuela = default(string); string strDocente = default(string); try { ReportParameter prmRptHorarioAcademico = new ReportParameter(); lstPrmRptHorarioAcademico.Add(new ReportParameter("strPeriodoAcademico", _dsPeriodoVigente.Periodos[0]["strDescripcion"].ToString().ToUpper())); strDocente = getNombreDocente(); switch (UsuarioActual.CarreraActual.TipoEntidad.ToString()) { case "CAR": facultad = pc.NombreFacultad; carrera = pc.NombreCarrera; escuela = pc.NombreEscuela; break; case "CAA": lblFacultad = ""; lblCarrera = ""; lblEscuela = ""; facultad = pc.NombreFacultad; carrera = pc.NombreCarrera; escuela = ""; break; } lstPrmRptHorarioAcademico.Add(new ReportParameter("strInstitucion", Language.es_ES.STR_INSTITUCION)); lstPrmRptHorarioAcademico.Add(new ReportParameter("strLblHorarioAcademico", Language.es_ES.STR_HORARIO_ACADEMICO)); lstPrmRptHorarioAcademico.Add(new ReportParameter("strLblHorarioExamenes", Language.es_ES.STR_HORARIO_EXAMENES)); lstPrmRptHorarioAcademico.Add(new ReportParameter("strLblPeriodoAcademico", Language.es_ES.STR_PERIODO_ACADEMICO)); lstPrmRptHorarioAcademico.Add(new ReportParameter("strLblFacultad", lblFacultad)); lstPrmRptHorarioAcademico.Add(new ReportParameter("strLblCarrera", lblCarrera)); lstPrmRptHorarioAcademico.Add(new ReportParameter("strLblEscuela", lblEscuela)); lstPrmRptHorarioAcademico.Add(new ReportParameter("strFacultad", facultad)); lstPrmRptHorarioAcademico.Add(new ReportParameter("strEscuela", carrera)); lstPrmRptHorarioAcademico.Add(new ReportParameter("strCarrera", escuela)); lstPrmRptHorarioAcademico.Add(new ReportParameter("strDocente", strDocente)); lstPrmRptHorarioAcademico.Add(new ReportParameter("strFuente", Language.es_ES.STR_FUENTE_REPORTE)); } catch (Exception ex) { Errores err = new Errores(); err.SetError(ex, "_getDatosGeneralesReporte"); } return(lstPrmRptHorarioAcademico); }
private IEnumerable <ReportParameter> _getParametrosGeneralesReporte() { WSInfoCarreras.ParametrosCarrera pc = this._getParametrosCarrera(); List <ReportParameter> lstPrmRptMatriculaEstudiante = new List <ReportParameter>(); string facultad = default(string); string carrera = default(string); string escuela = default(string); string strDocente = default(string); ObtenerValoresUnidadAcademica(); try { ReportParameter prmRptMatriculaEstudiante = new ReportParameter(); switch (UsuarioActual.CarreraActual.TipoEntidad.ToString()) { case "CAR": facultad = pc.NombreFacultad; carrera = pc.NombreCarrera; escuela = pc.NombreEscuela; break; case "CAA": facultad = pc.NombreFacultad; carrera = pc.NombreCarrera; escuela = ""; break; } //Director if (this.fSexoDirector == "MAS") { fFirmaDirector = "DIRECTOR ESCUELA DE " + carrera.Trim().ToUpper(); } else { if (this.fSexoDirector == "FEM") { fFirmaDirector = "DIRECTORA ESCUELA DE " + carrera.Trim().ToUpper(); } else { fFirmaDirector = "DIRECTOR(A) ESCUELA DE " + carrera.Trim().ToUpper(); } } //Secretaria Académica fFirmaSecretaria = "SECRETARIA ACADÉMICA ESCUELA DE " + carrera.Trim().ToUpper(); lstPrmRptMatriculaEstudiante.Add(new ReportParameter("strInstitucion", Language.es_ES.STR_INSTITUCION)); lstPrmRptMatriculaEstudiante.Add(new ReportParameter("strFacultad", facultad)); lstPrmRptMatriculaEstudiante.Add(new ReportParameter("strEscuela", carrera)); lstPrmRptMatriculaEstudiante.Add(new ReportParameter("strCarrera", escuela)); lstPrmRptMatriculaEstudiante.Add(new ReportParameter("strFuente", Language.es_ES.STR_FUENTE_REPORTE)); lstPrmRptMatriculaEstudiante.Add(new ReportParameter("strDirectorEscuela", this.fDirectorEscuela.ToUpper().Trim())); lstPrmRptMatriculaEstudiante.Add(new ReportParameter("strFirmaDirector", fFirmaDirector.ToUpper().Trim())); lstPrmRptMatriculaEstudiante.Add(new ReportParameter("strSecretariaAcademica", this.fSecretariaAcademica.ToUpper().Trim())); lstPrmRptMatriculaEstudiante.Add(new ReportParameter("strFirmaSecretaria", fFirmaSecretaria.ToUpper().Trim())); } catch (Exception ex) { Errores err = new Errores(); err.SetError(ex, "_getDatosGeneralesReporte"); } return(lstPrmRptMatriculaEstudiante); }
private List <ReportParameter> _getDatosGeneralesReporte() { WSInfoCarreras.ParametrosCarrera pc = this._getParametrosCarrera(); List <ReportParameter> lstPrmRptHorarioAcademico = new List <ReportParameter>(); string lblFacultad = "FACULTAD:"; string lblCarrera = "CARRERA:"; string lblEscuela = "ESCUELA:"; string facultad = default(string); string carrera = default(string); string escuela = default(string); try { ReportParameter prmRptHorarioAcademico = new ReportParameter(); lstPrmRptHorarioAcademico.Add(new ReportParameter("strPeriodoAcademico", _dsPeriodoVigente.Periodos[0]["strCodigo"].ToString().ToUpper())); switch (UsuarioActual.CarreraActual.TipoEntidad.ToString()) { case "CAR": facultad = pc.NombreFacultad; carrera = pc.NombreCarrera; escuela = pc.NombreEscuela; break; case "CAA": lblFacultad = ""; lblCarrera = ""; lblEscuela = ""; facultad = pc.NombreFacultad; carrera = pc.NombreCarrera; escuela = ""; break; } lstPrmRptHorarioAcademico.Add(new ReportParameter("strLblFacultad", lblFacultad)); lstPrmRptHorarioAcademico.Add(new ReportParameter("strLblCarrera", lblCarrera)); lstPrmRptHorarioAcademico.Add(new ReportParameter("strLblEscuela", lblEscuela)); lstPrmRptHorarioAcademico.Add(new ReportParameter("strFacultad", facultad)); lstPrmRptHorarioAcademico.Add(new ReportParameter("strEscuela", carrera)); lstPrmRptHorarioAcademico.Add(new ReportParameter("strCarrera", escuela)); lstPrmRptHorarioAcademico.Add(new ReportParameter("strCurso", "PRUEBA CURSO")); lstPrmRptHorarioAcademico.Add(new ReportParameter("strFuente", "ESPOCH - DTIC")); } catch (Exception ex) { Errores err = new Errores(); err.SetError(ex, "_getDatosGeneralesReporte"); } return(lstPrmRptHorarioAcademico); }
private IEnumerable <ReportParameter> _getParametrosGeneralesReporte() { WSInfoCarreras.ParametrosCarrera pc = this._getParametrosCarrera(); List <ReportParameter> lstPrmRptEvAcumulativa = new List <ReportParameter>(); string lblFacultad = "FACULTAD:"; string lblCarrera = "CARRERA:"; string lblEscuela = "ESCUELA:"; string facultad = default(string); string carrera = default(string); string escuela = default(string); string strAsignatura = string.Empty; string strNivel = string.Empty; string strPeriodo = string.Empty; string strDocente = string.Empty; string strSistema = string.Empty; float numCreditos = default(float); byte fHorasTeo = default(byte); byte fHorasPra = default(byte); try { ReportParameter prmRptHorarioAcademico = new ReportParameter(); this._getDatosMateria(ref strAsignatura, ref strNivel, ref strPeriodo, ref strDocente, ref strSistema, ref numCreditos, ref fHorasTeo, ref fHorasPra); switch (UsuarioActual.CarreraActual.TipoEntidad.ToString()) { case "CAR": facultad = pc.NombreFacultad; carrera = pc.NombreCarrera; escuela = pc.NombreEscuela; break; case "CAA": lblFacultad = ""; lblCarrera = ""; lblEscuela = ""; facultad = pc.NombreFacultad; carrera = pc.NombreCarrera; escuela = ""; break; } lstPrmRptEvAcumulativa.Add(new ReportParameter("strInstitucion", Language.es_ES.STR_INSTITUCION)); lstPrmRptEvAcumulativa.Add(new ReportParameter("strPeriodoAcademico", this._dtstPeriodoVigente.Periodos[0]["strDescripcion"].ToString())); lstPrmRptEvAcumulativa.Add(new ReportParameter("strLblFacultad", lblFacultad)); lstPrmRptEvAcumulativa.Add(new ReportParameter("strLblCarrera", lblCarrera)); lstPrmRptEvAcumulativa.Add(new ReportParameter("strLblEscuela", lblEscuela)); lstPrmRptEvAcumulativa.Add(new ReportParameter("strAsignatura", strAsignatura)); lstPrmRptEvAcumulativa.Add(new ReportParameter("strCodMateria", this._strCodAsignatura.ToString().ToUpper())); lstPrmRptEvAcumulativa.Add(new ReportParameter("strCreditos", Convert.ToString(numCreditos))); lstPrmRptEvAcumulativa.Add(new ReportParameter("strDocente", this.UsuarioActual.Nombre.ToString().ToUpper())); lstPrmRptEvAcumulativa.Add(new ReportParameter("strNivel", this._strCodNivel.ToString())); lstPrmRptEvAcumulativa.Add(new ReportParameter("strParalelo", this._strCodParalelo.ToString())); lstPrmRptEvAcumulativa.Add(new ReportParameter("strFacultad", facultad)); lstPrmRptEvAcumulativa.Add(new ReportParameter("strEscuela", escuela)); lstPrmRptEvAcumulativa.Add(new ReportParameter("strCarrera", carrera)); lstPrmRptEvAcumulativa.Add(new ReportParameter("strURLImagen", "")); lstPrmRptEvAcumulativa.Add(new ReportParameter("strURLImagenDTIC", "")); } catch (Exception ex) { Errores err = new Errores(); err.SetError(ex, "_getDatosGeneralesReporte"); } return(lstPrmRptEvAcumulativa); }