public void open() throws ims.framework.exceptions.PresentationLogicException { form.grdList().getRows().clear(); ProblemTriageProtocolVoCollection collPTP = domain.listProblemTriageProtocols(form.chkActive().getValue()); for(int i = 0 ; collPTP != null && i < collPTP.size() ; i++) { grdListRow row = form.grdList().getRows().newRow(); row.getcolProblem().newRow(collPTP.get(i).getProblem(), collPTP.get(i).getProblem().getPCName()); row.getcolProblem().setValue(collPTP.get(i).getProblem()); row.getcolAssessment().newRow(collPTP.get(i).getTriageProtocol(), collPTP.get(i).getTriageProtocol().getName()); row.getcolAssessment().setValue(collPTP.get(i).getTriageProtocol()); row.setValue(collPTP.get(i)); if ( ! collPTP.get(i).getIsActive().booleanValue()) row.setBackColor(Color.RosyBrown); } enableEditButton(); }
public ProblemTriageProtocolVoCollection listProblemTriageProtocols(Boolean activeOnly) { if (activeOnly.booleanValue()) return ProblemTriageProtocolVoAssembler.createProblemTriageProtocolVoCollectionFromProblemTriageProtocol(getDomainFactory().find(" from ProblemTriageProtocol ptp where ptp.isActive = " + activeOnly)).sort(); else return ProblemTriageProtocolVoAssembler.createProblemTriageProtocolVoCollectionFromProblemTriageProtocol(getDomainFactory().find(" from ProblemTriageProtocol ")).sort(); }