Java 类ims.emergency.vo.ProblemTriageProtocolVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
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();
}
项目:openMAXIMS    文件:Logic.java   
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();
}
项目:openmaxims-linux    文件:Logic.java   
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();
}
项目:AvoinApotti    文件:ManchesterTreatmentProtocolAdminImpl.java   
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();
}
项目:openMAXIMS    文件:ManchesterTreatmentProtocolAdminImpl.java   
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();
}
项目:openmaxims-linux    文件:ManchesterTreatmentProtocolAdminImpl.java   
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();
}