private void cargarNodos() { try { StringBuilder sb = new StringBuilder(); SqlDataReader dr = NODO.CatalogoGastosFinancieros(); string sTootTip = ""; sb.Append("<table id='tblNodos' class='texto MANO' style='width: 970px;'>"); sb.Append("<colgroup><col style='width:50px;' /><col style='width:70px;' /><col style='width:380px;' /><col style='width:340px;' /><col style='width:40px; text-align:right; padding-right:2px;' /><col style='width:90px; text-align:center;' /></colgroup>"); sb.Append("<tbody>"); while (dr.Read()) { sTootTip = ""; if (Utilidades.EstructuraActiva("SN4")) { sTootTip += "<label style='width:60px'>" + Estructura.getDefCorta(Estructura.sTipoElem.SUPERNODO4) + ":</label> " + dr["t394_denominacion"].ToString() + "<br>"; } if (Utilidades.EstructuraActiva("SN3")) { sTootTip += "<label style='width:60px'>" + Estructura.getDefCorta(Estructura.sTipoElem.SUPERNODO3) + ":</label> " + dr["t393_denominacion"].ToString() + "<br>"; } if (Utilidades.EstructuraActiva("SN2")) { sTootTip += "<label style='width:60px'>" + Estructura.getDefCorta(Estructura.sTipoElem.SUPERNODO2) + ":</label> " + dr["t392_denominacion"].ToString() + "<br>"; } if (Utilidades.EstructuraActiva("SN1")) { sTootTip += "<label style='width:60px'>" + Estructura.getDefCorta(Estructura.sTipoElem.SUPERNODO1) + ":</label> " + dr["t391_denominacion"].ToString(); } sb.Append("<tr id='" + dr["t303_idnodo"].ToString() + "' style='height:20px;' onclick=\"ms(this);AccionBotonera('historial', 'H');\">"); if ((bool)dr["t303_defectocalcularGF"]) { sb.Append("<td style='text-align:center;'><input type='checkbox' class='check' checked onclick='setEstadistica()'></td>"); } else { sb.Append("<td style='text-align:center;'><input type='checkbox' class='check' onclick='setEstadistica()'></td>"); } sb.Append("<td style='text-align:right;padding-right:3px'>" + dr["t303_idnodo"].ToString() + "</td>"); sb.Append("<td style='padding-left:8px'><div class='NBR W340' style='noWrap:true;' title=\"cssbody=[dvbdy] cssheader=[dvhdr] header=[<img src='../../../images/info.gif' style='vertical-align:middle'> Estructura] body=[" + sTootTip + "] hideselects=[off]\">" + dr["t303_denominacion"].ToString() + "</div></td>"); sb.Append("<td><div class='NBR W330'>" + dr["t313_denominacion"].ToString() + "</div></td>"); sb.Append("<td>" + double.Parse(dr["t303_interesGF"].ToString()).ToString("N") + "</td>"); if (dr["t469_anomes"].ToString() != "") { sb.Append("<td>" + Fechas.AnnomesAFechaDescLarga((int)dr["t469_anomes"]) + "</td>"); } else { sb.Append("<td></td>"); } sb.Append("</tr>"); } dr.Close(); dr.Dispose(); sb.Append("</tbody>"); sb.Append("</table>"); strTablaHTML = sb.ToString(); } catch (Exception ex) { Master.sErrores += Errores.mostrarError("Error al cargar los nodos", ex); } }