}
// Para cada local
for (Iterator iter = localList.iterator(); iter.hasNext();) {
LocalItemLit local = (LocalItemLit) iter.next();
// Criar uma c�lula com a seta e o nome do local
strTdSeta = new String (
"<td align='rigth' width='" + larguraLocal + "' height='25px' valign='top'>" +
" " +
" <table width='100%'> " +
" <tr>" +
" <td width='25%' align='right'>" +
" <img src='../../images/icon_seta_ident.gif'/>" +
" </td>" +
" <td width='75%'>" +
" " + local.getIdentificacaoLit() +
" " +
" </td>" +
" </tr>" +
" </table>" +
"</td>"
);
responseHTML.append("<tr>");
responseHTML.append(strTdSeta);
totalLocal = 0.0;
i = 0;
// Para cada exerc�cio
for (Iterator iterator = listaExercicios.iterator(); iterator.hasNext();) {
ExercicioExe exe = (ExercicioExe) iterator.next();
ItemEstrtIndResulLocalIettirl itemEstrtIndResulLocalIettirl = dao.getQtdePrevistaByLocal( codIettir, exe.getCodExe(), local.getCodLit() );
totalLocal += itemEstrtIndResulLocalIettirl.getQtdPrevistaIettirl().doubleValue();
totalExercicio [i] += itemEstrtIndResulLocalIettirl.getQtdPrevistaIettirl().doubleValue();
i++;
//if (local.getCodLit().intValue() == 418){
// Criar uma c�lula contendo um campo e uma imagem de informa��o.
strTdCampo = new String (
"<td width=\"" + larguraCampo + "\" align=\"center\" >" +
" <input " +
" type=\"text\"" +
" size=\"" + (larguraCaixaTexto - 3) + "\"" +
" onblur=\"" +
" copiarExercicio('" + local.getCodLit().toString() + "'); " +
" calcularTotalLocal('" + local.getCodLit().toString() + "');" +
" calcularTotalExercicio('"+exe.getCodExe().toString() + "');" +
" \"" +
" id=\"cmp|" + local.getCodLit().toString() + "|" + exe.getCodExe().toString() + "\"" +
" name=\"cmp|" + local.getCodLit().toString() + "|" + exe.getCodExe().toString() + "\"" +
" value=\"" + formatBrasil.format(itemEstrtIndResulLocalIettirl.getQtdPrevistaIettirl().doubleValue()) + "\"" +
" />" +
" " +
" <label " +
" id=\"label|" + local.getCodLit().toString() + "|" + exe.getCodExe().toString() + "\"" +
" class=\"dica\" " +
" onmouseover=\"" +
" montaTooltipMouseOver(this,\'"+ exe.getCodExe().toString() + "\',\'" + exe.getDescricaoExe() +"\',\'"+ local.getCodLit().toString() + "\',\'" + local.getIdentificacaoLit() +"\');" +
" \"" +
" onmouseout=\"" +
" montaTooltipMouseOut(\'"+ exe.getCodExe().toString() + "\',\'" + local.getCodLit().toString() +"\');" +
" \"" +
" />" +
" <img " +
" src=\"" + request.getContextPath() + "/images/dica.png\" " +
" align=\"absmiddle\" " +
" border=\"0\" " +
" onclick=\"" +
" montaTooltipMouseClick(\'"+ exe.getCodExe().toString() + "\',\'" + exe.getDescricaoExe() +"\',\'"+ local.getCodLit().toString() + "\',\'" + local.getIdentificacaoLit() +"\');" +
" \" " +
" /> " +
" " +
" <span id=\"span|" + local.getCodLit().toString() + "|" + exe.getCodExe().toString() + "\" ></span>" +
" " +
" </label>" +
"</td>"
);
responseHTML.append(strTdCampo);
}
// Criar uma c�lula de total por local
strTdTotalPorLocal = new String(
"<td align=\"center\" width=\"" + larguraTotal + "\" >" +
" <input " +
" type=\"text\"" +
" size=\"12\"" +
" readonly=\"true\"" +
" id=\"cmp|" + local.getCodLit().toString() + "|total\"" +
" name=\"cmp|" + local.getCodLit().toString() + "|total\"" +
" value=\"" + formatBrasil.format(totalLocal) + "\"" +
" style=\"background-color:#FFF9DC;\"" +
" />" +
"</td>"
);