From d74d7322bd912cf237b01964fea72f3da7704389 Mon Sep 17 00:00:00 2001 From: maroni Date: Mon, 5 Mar 2012 17:46:53 -0300 Subject: [PATCH] --- .../simdecs/mb/editarcasos/EditarCasoBean.java | 46 ++++++++++--------- 1 files changed, 24 insertions(+), 22 deletions(-) diff --git a/src/java/org/ufcspa/simdecs/mb/editarcasos/EditarCasoBean.java b/src/java/org/ufcspa/simdecs/mb/editarcasos/EditarCasoBean.java index df38e91..ff69f37 100644 --- a/src/java/org/ufcspa/simdecs/mb/editarcasos/EditarCasoBean.java +++ b/src/java/org/ufcspa/simdecs/mb/editarcasos/EditarCasoBean.java @@ -198,53 +198,55 @@ public class EditarCasoBean extends DefaultManagedBean { unBUtil.abreRede(paciente.getRede()); // Sinais e Sintomas -System.out.println("####SOURCENOVO: " + sinaisSintomas.getSource()); - Iterator itSrcSS = sinaisSintomas.getSource().iterator(); - while(itSrcSS.hasNext()) { - ProbabilisticNode pn = unBUtil.getNodeByName((String) itSrcSS.next()); + Iterator it = sinaisSintomas.getSource().iterator(); + while(it.hasNext()) { + ProbabilisticNode pn = unBUtil.getNodeByName((String) it.next()); unBUtil.desativarNodo(pn); } -// for (Object nodo : sinaisSintomas.getSource()) { - // ProbabilisticNode pn = unBUtil.getNodeByName((String) nodo); - // unBUtil.desativarNodo(pn); - // } - for (Object nodo : sinaisSintomas.getTarget()) { - ProbabilisticNode pn = unBUtil.getNodeByName((String) nodo); + it = sinaisSintomas.getTarget().iterator(); + while(it.hasNext()) { + ProbabilisticNode pn = unBUtil.getNodeByName((String) it.next()); unBUtil.ativarNodo(pn); } // Historicos - for (Object nodo : historicos.getSource()) { - ProbabilisticNode pn = unBUtil.getNodeByName((String) nodo); + it = historicos.getSource().iterator(); + while(it.hasNext()) { + ProbabilisticNode pn = unBUtil.getNodeByName((String) it.next()); unBUtil.desativarNodo(pn); } - for (Object nodo : historicos.getTarget()) { - ProbabilisticNode pn = unBUtil.getNodeByName((String) nodo); + it = historicos.getTarget().iterator(); + while(it.hasNext()) { + ProbabilisticNode pn = unBUtil.getNodeByName((String) it.next()); unBUtil.ativarNodo(pn); } // Exames Físicos - for (Object nodo : examesFisicos.getSource()) { - ProbabilisticNode pn = unBUtil.getNodeByName((String) nodo); + it = examesFisicos.getSource().iterator(); + while(it.hasNext()) { + ProbabilisticNode pn = unBUtil.getNodeByName((String) it.next()); unBUtil.desativarNodo(pn); } - for (Object nodo : examesFisicos.getTarget()) { - ProbabilisticNode pn = unBUtil.getNodeByName((String) nodo); + it = examesFisicos.getTarget().iterator(); + while(it.hasNext()) { + ProbabilisticNode pn = unBUtil.getNodeByName((String) it.next()); unBUtil.ativarNodo(pn); } // Exames Complementares - for (Object nodo : examesComplementares.getSource()) { - ProbabilisticNode pn = unBUtil.getNodeByName((String) nodo); + it = examesComplementares.getSource().iterator(); + while(it.hasNext()) { + ProbabilisticNode pn = unBUtil.getNodeByName((String) it.next()); unBUtil.desativarNodo(pn); } - for (Object nodo : examesComplementares.getTarget()) { - ProbabilisticNode pn = unBUtil.getNodeByName((String) nodo); + it = examesComplementares.getTarget().iterator(); + while(it.hasNext()) { + ProbabilisticNode pn = unBUtil.getNodeByName((String) it.next()); unBUtil.ativarNodo(pn); } -- 1.7.6.4