private string obtenerAsuntos(string sTarea, string sOrden, string sAscDesc, byte iEstado, int iTipo)
    {
        StringBuilder strBuilder = new StringBuilder();
        int           nT;
        string        sIdAsunto, sDesAsunto, sFecha, sIdResponsable;

        nT = int.Parse(quitaPuntos(sTarea));

        strBuilder.Append("<table id='tblDatos1' class='texto MA' style='WIDTH: 940px; BORDER-COLLAPSE: collapse; ' cellSpacing='0' border='0'>");
        strBuilder.Append("<colgroup><col style='width:297px;' /><col style='width:190px;' /><col style='width:90px;' /><col style='width:90px;' /><col style='width:90px;' /><col style='width:90px;' /><col style='width:90px;' /></colgroup>");
        strBuilder.Append("<tbody>");
        SqlDataReader dr = ASUNTO_T.Catalogo(nT, "", iEstado, null, null, null, null, null, null, null, "", null, "", null, null,
                                             null, "", iTipo, byte.Parse(sOrden), byte.Parse(sAscDesc));

        while (dr.Read())
        {
            sIdAsunto      = dr["t600_idasunto"].ToString();
            sDesAsunto     = HttpUtility.HtmlEncode(dr["t600_desasunto"].ToString());
            sIdResponsable = dr["t600_responsable"].ToString();
            strBuilder.Append("<tr id='" + sIdAsunto + "' idR='" + sIdResponsable + "' ondblclick='mDetAsunto(this.id)' onclick='ms(this);obtenerAcciones(" + sIdAsunto + ")' style='height:16px; padding-left:3px;' onmouseover='TTip(event)'>");
            strBuilder.Append("<td><nobr class='NBR W300'>" + sDesAsunto + "</nobr></td>");
            strBuilder.Append("<td><nobr class='NBR W180'>" + dr["t384_destipo"].ToString() + "</nobr></td>");
            strBuilder.Append("<td>" + dr["t600_severidad"].ToString() + "</td>");
            strBuilder.Append("<td>" + dr["t600_prioridad"].ToString() + "</td>");
            sFecha = dr["t600_flimite"].ToString();
            if (sFecha != "")
            {
                sFecha = DateTime.Parse(dr["t600_flimite"].ToString()).ToShortDateString();
            }
            strBuilder.Append("<td>" + sFecha + "</td>");
            sFecha = dr["t600_fnotificacion"].ToString();
            if (sFecha != "")
            {
                sFecha = DateTime.Parse(dr["t600_fnotificacion"].ToString()).ToShortDateString();
            }
            strBuilder.Append("<td>" + sFecha + "</td>");
            strBuilder.Append("<td>" + dr["t600_estado"].ToString() + "</td>");

            strBuilder.Append("</tr>");
        }
        dr.Close();
        dr.Dispose();
        strBuilder.Append("</tbody>");
        strBuilder.Append("</table>");
        strTablaHtmlAsunto = strBuilder.ToString();
        return("OK@#@" + strTablaHtmlAsunto);
    }
    private void ObtenerDatosAsunto(int nTarea)
    {
        StringBuilder strBuilder = new StringBuilder();
        string        sIdAsunto, sDesAsunto, sFecha;

        strBuilder.Append("<table id='tblDatos1' class='texto MA' style='WIDTH: 940px; BORDER-COLLAPSE: collapse; ' cellSpacing='0' border='0'>");
        strBuilder.Append("<colgroup><col style='width:297px;' /><col style='width:190px;' /><col style='width:90px;' /><col style='width:90px;' /><col style='width:90px;' /><col style='width:90px;' /><col style='width:90px;' /></colgroup>");
        strBuilder.Append("<tbody>");
        SqlDataReader dr = ASUNTO_T.Catalogo(nTarea, "", null, null, null, null, null, null, null, null, "", null, "", null, null,
                                             null, "", null, 8, 0);

        while (dr.Read())
        {
            sIdAsunto  = dr["t600_idasunto"].ToString();
            sDesAsunto = HttpUtility.HtmlEncode(dr["t600_desasunto"].ToString());
            strBuilder.Append("<tr id='" + sIdAsunto + "' ondblclick='mDetAsunto(this.id)' onclick='ms(this);obtenerAcciones(" + sIdAsunto + ")' style='height:16px;' onmouseover='TTip(event)'>");
            strBuilder.Append("<td STYLE='padding-left:3px;'><nobr class='NBR W300'>" + sDesAsunto + "</nobr></td>");
            strBuilder.Append("<td><nobr class='NBR W180'>" + dr["t384_destipo"].ToString() + "</nobr></td>");
            strBuilder.Append("<td>" + dr["t600_severidad"].ToString() + "</td>");
            strBuilder.Append("<td>" + dr["t600_prioridad"].ToString() + "</td>");
            sFecha = dr["t600_flimite"].ToString();
            if (sFecha != "")
            {
                sFecha = DateTime.Parse(dr["t600_flimite"].ToString()).ToShortDateString();
            }
            strBuilder.Append("<td>" + sFecha + "</td>");
            sFecha = dr["t600_fnotificacion"].ToString();
            if (sFecha != "")
            {
                sFecha = DateTime.Parse(dr["t600_fnotificacion"].ToString()).ToShortDateString();
            }
            strBuilder.Append("<td>" + sFecha + "</td>");
            strBuilder.Append("<td>" + dr["t600_estado"].ToString() + "</td>");

            strBuilder.Append("</tr>");
        }
        dr.Close();
        dr.Dispose();
        strBuilder.Append("</tbody>");
        strBuilder.Append("</table>");
        strTablaHtmlAsunto = strBuilder.ToString();
    }