private string getDocumento(string sUsuTicks, string sIdFicepi)
    {
        string sRes = "";

        try
        {
            if (Utilidades.isNumeric(sUsuTicks))
            {
                //dr = DOCUOF.Catalogo(int.Parse(st610_idordenfac));
                //sRes += dr["t624_nombrearchivo"].ToString();
                SUPER.BLL.Examen oExamen = SUPER.BLL.Examen.SelectDoc(null, int.Parse(sUsuTicks), int.Parse(sIdFicepi));
                sRes = oExamen.T591_NDOC + "@#@S@#@" + oExamen.t2_iddocumento.ToString();
            }
            else
            {
                SUPER.BLL.DocuAux oDoc = SUPER.BLL.DocuAux.GetDocumento(null, sUsuTicks);
                sRes = oDoc.t686_nombre + "@#@N@#@" + sUsuTicks;
            }

            return(sRes);
        }
        catch (Exception ex)
        {
            return("Error@#@" + Errores.mostrarError("Error al obtener documento del examen", ex));
        }
    }
    private string getDocumento(string sUsuTicks, string sTipo)
    {
        string sRes = "";

        try
        {
            if (Utilidades.isNumeric(sUsuTicks))
            {
                SUPER.BLL.Titulacion oTit = SUPER.BLL.Titulacion.SelectDocs(null, int.Parse(sUsuTicks));
                if (sTipo == "TAD")
                {
                    sRes = oTit.NDOC + "@#@S@#@" + oTit.t2_iddocumento.ToString();
                }
                else
                {
                    sRes = oTit.NDOCEXPTE + "@#@S@#@" + oTit.t2_iddocumentoExpte.ToString();
                }
            }
            else
            {
                SUPER.BLL.DocuAux oDoc = SUPER.BLL.DocuAux.GetDocumento(null, sUsuTicks);
                sRes = oDoc.t686_nombre + "@#@N@#@" + sUsuTicks;
            }
            sRes += "@#@" + sTipo;

            return(sRes);
        }
        catch (Exception ex)
        {
            return("Error@#@" + Errores.mostrarError("Error al obtener documento", ex));
        }
    }
Ejemplo n.º 3
0
        public static DocuAux GetDocumento(SqlTransaction tr, string t686_usuticks)
        {
            SUPER.DAL.DocuAux oDocumento = SUPER.DAL.DocuAux.GetDocumento(tr, t686_usuticks);

            DocuAux oDoc = new DocuAux();

            oDoc.t2_iddocumento = oDocumento.t2_iddocumento;
            oDoc.t686_nombre    = oDocumento.t686_nombre;

            return(oDoc);
        }
    private string getDocumento(string sUsuTicks, string sIdFicepi)
    {
        string sRes = "";

        try
        {
            if (Utilidades.isNumeric(sUsuTicks))
            {
                SUPER.BLL.Curso oCurso = SUPER.BLL.Curso.SelectDoc(null, int.Parse(sUsuTicks), int.Parse(sIdFicepi));
                sRes = oCurso.T575_NDOC + "@#@S@#@" + oCurso.t2_iddocumento.ToString();
            }
            else
            {
                SUPER.BLL.DocuAux oDoc = SUPER.BLL.DocuAux.GetDocumento(null, sUsuTicks);
                sRes = oDoc.t686_nombre + "@#@N@#@" + sUsuTicks;
            }

            return(sRes);
        }
        catch (Exception ex)
        {
            return("Error@#@" + Errores.mostrarError("Error al obtener documento del curso recibido", ex));
        }
    }
    private string getDocumento(string sUsuTicks)
    {
        string sRes = "";

        try
        {
            if (Utilidades.isNumeric(sUsuTicks))
            {
                SUPER.BLL.TituloIdiomaFic oTit = SUPER.BLL.TituloIdiomaFic.SelectDoc(null, int.Parse(sUsuTicks));
                sRes = oTit.T021_NDOC + "@#@S@#@" + oTit.t2_iddocumento.ToString();
            }
            else
            {
                SUPER.BLL.DocuAux oDoc = SUPER.BLL.DocuAux.GetDocumento(null, sUsuTicks);
                sRes = oDoc.t686_nombre + "@#@N@#@" + sUsuTicks;
            }

            return(sRes);
        }
        catch (Exception ex)
        {
            return("Error@#@" + Errores.mostrarError("Error al obtener documento del título del idioma", ex));
        }
    }