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

项目:AvoinApotti    文件:Logic.java   
private void doSearch()
{
    form.grdProtocol().getRows().clear();
    clearInstanceControls();

    ManchesterTriageProtocolConfigLiteVoCollection triageProtocols = domain.listTriageProtocols(form.txtName().getValue(), form.qmbProblemSearch().getValue(), form.cmbStatusSearch().getValue());

    if (triageProtocols == null || triageProtocols.size() == 0)
    {
        form.getLocalContext().setSelectedTriageProtocol(null);
        updateControlsState();
        engine.showMessage("There are no Records for the Search Criteria Provided");
        return;
    }

    populateScreenFromData(triageProtocols);
    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(ManchesterTriageProtocolConfigLiteVoCollection triageProtocols)
{

    for (int i = 0; i < triageProtocols.size(); i++)
    {
        grdProtocolRow newRow = form.grdProtocol().getRows().newRow();

        newRow.setcolProtocol(triageProtocols.get(i).getProtocolName());
        newRow.setcolProblem(triageProtocols.get(i).getProblem().getPCName());
        newRow.setcolStatus(triageProtocols.get(i).getActiveStatus().toString());
        newRow.setValue(triageProtocols.get(i));
    }

    if (form.getLocalContext().getSelectedTriageProtocolIsNotNull())
    {
        form.grdProtocol().setValue(form.getLocalContext().getSelectedTriageProtocol());

        if (form.grdProtocol().getSelectedRow() != null)
        {
            populateInstanceControlsFromData(form.getLocalContext().getSelectedTriageProtocol());
        }
    }

}
项目:AvoinApotti    文件:ManchesterTriageProtocolConfigImpl.java   
public ManchesterTriageProtocolConfigLiteVoCollection checkAlreadyActive(ManchesterTriageProtocolConfigLiteVo triageProtocol)
{
    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (triageProtocol == null)
    {
        throw new CodingRuntimeException("Cannot get ManchesterTriageProtocolConfigVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();

    hql.append(" select triageProtocol from ManchesterTriageProtocolConfiguration as triageProtocol left join triageProtocol.problem as problem left join triageProtocol.activeStatus as active where problem.id = :problemID and active.id = :idActive ");

    markers.add("problemID");
    values.add(triageProtocol.getProblem().getID_ClinicalProblem());
    markers.add("idActive");
    values.add(PreActiveActiveInactiveStatus.ACTIVE.getID());

    return ManchesterTriageProtocolConfigLiteVoAssembler.createManchesterTriageProtocolConfigLiteVoCollectionFromManchesterTriageProtocolConfiguration(factory.find(hql.toString(), markers, values));

}
项目:openMAXIMS    文件:Logic.java   
private void doSearch()
{
    form.grdProtocol().getRows().clear();
    clearInstanceControls();

    ManchesterTriageProtocolConfigLiteVoCollection triageProtocols = domain.listTriageProtocols(form.txtName().getValue(), form.qmbProblemSearch().getValue(), form.cmbStatusSearch().getValue());

    if (triageProtocols == null || triageProtocols.size() == 0)
    {
        form.getLocalContext().setSelectedTriageProtocol(null);
        updateControlsState();
        engine.showMessage("There are no Records for the Search Criteria Provided");
        return;
    }

    populateScreenFromData(triageProtocols);
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(ManchesterTriageProtocolConfigLiteVoCollection triageProtocols)
{

    for (int i = 0; i < triageProtocols.size(); i++)
    {
        grdProtocolRow newRow = form.grdProtocol().getRows().newRow();

        newRow.setcolProtocol(triageProtocols.get(i).getProtocolName());
        newRow.setcolProblem(triageProtocols.get(i).getProblem().getPCName());
        newRow.setcolStatus(triageProtocols.get(i).getActiveStatus().toString());
        newRow.setValue(triageProtocols.get(i));
    }

    if (form.getLocalContext().getSelectedTriageProtocolIsNotNull())
    {
        form.grdProtocol().setValue(form.getLocalContext().getSelectedTriageProtocol());

        if (form.grdProtocol().getSelectedRow() != null)
        {
            populateInstanceControlsFromData(form.getLocalContext().getSelectedTriageProtocol());
        }
    }

}
项目:openMAXIMS    文件:ManchesterTriageProtocolConfigImpl.java   
public ManchesterTriageProtocolConfigLiteVoCollection checkAlreadyActive(ManchesterTriageProtocolConfigLiteVo triageProtocol)
{
    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (triageProtocol == null)
    {
        throw new CodingRuntimeException("Cannot get ManchesterTriageProtocolConfigVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();

    hql.append(" select triageProtocol from ManchesterTriageProtocolConfiguration as triageProtocol left join triageProtocol.problem as problem left join triageProtocol.activeStatus as active where problem.id = :problemID and active.id = :idActive ");

    markers.add("problemID");
    values.add(triageProtocol.getProblem().getID_ClinicalProblem());
    markers.add("idActive");
    values.add(PreActiveActiveInactiveStatus.ACTIVE.getID());

    return ManchesterTriageProtocolConfigLiteVoAssembler.createManchesterTriageProtocolConfigLiteVoCollectionFromManchesterTriageProtocolConfiguration(factory.find(hql.toString(), markers, values));

}
项目:openMAXIMS    文件:Logic.java   
private void doSearch()
{
    form.grdProtocol().getRows().clear();
    clearInstanceControls();

    ManchesterTriageProtocolConfigLiteVoCollection triageProtocols = domain.listTriageProtocols(form.txtName().getValue(), form.qmbProblemSearch().getValue(), form.cmbStatusSearch().getValue());

    if (triageProtocols == null || triageProtocols.size() == 0)
    {
        form.getLocalContext().setSelectedTriageProtocol(null);
        updateControlsState();
        engine.showMessage("There are no Records for the Search Criteria Provided");
        return;
    }

    populateScreenFromData(triageProtocols);
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(ManchesterTriageProtocolConfigLiteVoCollection triageProtocols)
{

    for (int i = 0; i < triageProtocols.size(); i++)
    {
        grdProtocolRow newRow = form.grdProtocol().getRows().newRow();

        newRow.setcolProtocol(triageProtocols.get(i).getProtocolName());
        newRow.setcolProblem(triageProtocols.get(i).getProblem().getPCName());
        newRow.setcolStatus(triageProtocols.get(i).getActiveStatus().toString());
        newRow.setValue(triageProtocols.get(i));
    }

    if (form.getLocalContext().getSelectedTriageProtocolIsNotNull())
    {
        form.grdProtocol().setValue(form.getLocalContext().getSelectedTriageProtocol());

        if (form.grdProtocol().getSelectedRow() != null)
        {
            populateInstanceControlsFromData(form.getLocalContext().getSelectedTriageProtocol());
        }
    }

}
项目:openMAXIMS    文件:ManchesterTriageProtocolConfigImpl.java   
public ManchesterTriageProtocolConfigLiteVoCollection checkAlreadyActive(ManchesterTriageProtocolConfigLiteVo triageProtocol)
{
    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (triageProtocol == null)
    {
        throw new CodingRuntimeException("Cannot get ManchesterTriageProtocolConfigVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();

    hql.append(" select triageProtocol from ManchesterTriageProtocolConfiguration as triageProtocol left join triageProtocol.problem as problem left join triageProtocol.activeStatus as active where problem.id = :problemID and active.id = :idActive ");

    markers.add("problemID");
    values.add(triageProtocol.getProblem().getID_ClinicalProblem());
    markers.add("idActive");
    values.add(PreActiveActiveInactiveStatus.ACTIVE.getID());

    return ManchesterTriageProtocolConfigLiteVoAssembler.createManchesterTriageProtocolConfigLiteVoCollectionFromManchesterTriageProtocolConfiguration(factory.find(hql.toString(), markers, values));

}
项目:openmaxims-linux    文件:Logic.java   
private void doSearch()
{
    form.grdProtocol().getRows().clear();
    clearInstanceControls();

    ManchesterTriageProtocolConfigLiteVoCollection triageProtocols = domain.listTriageProtocols(form.txtName().getValue(), form.qmbProblemSearch().getValue(), form.cmbStatusSearch().getValue());

    if (triageProtocols == null || triageProtocols.size() == 0)
    {
        form.getLocalContext().setSelectedTriageProtocol(null);
        updateControlsState();
        engine.showMessage("There are no Records for the Search Criteria Provided");
        return;
    }

    populateScreenFromData(triageProtocols);
    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(ManchesterTriageProtocolConfigLiteVoCollection triageProtocols)
{

    for (int i = 0; i < triageProtocols.size(); i++)
    {
        grdProtocolRow newRow = form.grdProtocol().getRows().newRow();

        newRow.setcolProtocol(triageProtocols.get(i).getProtocolName());
        newRow.setcolProblem(triageProtocols.get(i).getProblem().getPCName());
        newRow.setcolStatus(triageProtocols.get(i).getActiveStatus().toString());
        newRow.setValue(triageProtocols.get(i));
    }

    if (form.getLocalContext().getSelectedTriageProtocolIsNotNull())
    {
        form.grdProtocol().setValue(form.getLocalContext().getSelectedTriageProtocol());

        if (form.grdProtocol().getSelectedRow() != null)
        {
            populateInstanceControlsFromData(form.getLocalContext().getSelectedTriageProtocol());
        }
    }

}
项目:openmaxims-linux    文件:ManchesterTriageProtocolConfigImpl.java   
public ManchesterTriageProtocolConfigLiteVoCollection checkAlreadyActive(ManchesterTriageProtocolConfigLiteVo triageProtocol)
{
    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (triageProtocol == null)
    {
        throw new CodingRuntimeException("Cannot get ManchesterTriageProtocolConfigVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();

    hql.append(" select triageProtocol from ManchesterTriageProtocolConfiguration as triageProtocol left join triageProtocol.problem as problem left join triageProtocol.activeStatus as active where problem.id = :problemID and active.id = :idActive ");

    markers.add("problemID");
    values.add(triageProtocol.getProblem().getID_ClinicalProblem());
    markers.add("idActive");
    values.add(PreActiveActiveInactiveStatus.ACTIVE.getID());

    return ManchesterTriageProtocolConfigLiteVoAssembler.createManchesterTriageProtocolConfigLiteVoCollectionFromManchesterTriageProtocolConfiguration(factory.find(hql.toString(), markers, values));

}
项目:AvoinApotti    文件:ManchesterTriageProtocolConfigImpl.java   
public ManchesterTriageProtocolConfigLiteVoCollection listTriageProtocols(String triageName, ClinicalProblemShortVo clinicalProblem, LookupInstVo triageStatus)
{
    DomainFactory factory = getDomainFactory();

    String hql = " select triage from ManchesterTriageProtocolConfiguration as triage ";
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (triageName != null)
    {
        triageName.trim();
        triageName = triageName.toUpperCase();
        triageName = "%" + triageName + "%";
        condStr.append(andStr + " where upper(triage.protocolName) like :protocolName");
        markers.add("protocolName");
        values.add(triageName);
        andStr = " and ";
    }
    else
        andStr = " where ";

    if (clinicalProblem != null)
    {
        condStr.append(andStr + " triage.problem.id = :pName");
        markers.add("pName");
        values.add(clinicalProblem.getID_ClinicalProblem());
        andStr = " and ";
    }

    if (triageStatus != null)
    {
        condStr.append(andStr + " triage.activeStatus.id = :tStatus");
        markers.add("tStatus");
        values.add(triageStatus.getID());
    }

    hql += condStr.toString();
    return ManchesterTriageProtocolConfigLiteVoAssembler.createManchesterTriageProtocolConfigLiteVoCollectionFromManchesterTriageProtocolConfiguration(factory.find(hql, markers, values)).sort();
}
项目:openMAXIMS    文件:ManchesterTriageProtocolConfigImpl.java   
public ManchesterTriageProtocolConfigLiteVoCollection listTriageProtocols(String triageName, ClinicalProblemShortVo clinicalProblem, LookupInstVo triageStatus)
{
    DomainFactory factory = getDomainFactory();

    String hql = " select triage from ManchesterTriageProtocolConfiguration as triage ";
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (triageName != null)
    {
        triageName.trim();
        triageName = triageName.toUpperCase();
        triageName = "%" + triageName + "%";
        condStr.append(andStr + " where upper(triage.protocolName) like :protocolName");
        markers.add("protocolName");
        values.add(triageName);
        andStr = " and ";
    }
    else
        andStr = " where ";

    if (clinicalProblem != null)
    {
        condStr.append(andStr + " triage.problem.id = :pName");
        markers.add("pName");
        values.add(clinicalProblem.getID_ClinicalProblem());
        andStr = " and ";
    }

    if (triageStatus != null)
    {
        condStr.append(andStr + " triage.activeStatus.id = :tStatus");
        markers.add("tStatus");
        values.add(triageStatus.getID());
    }

    hql += condStr.toString();
    return ManchesterTriageProtocolConfigLiteVoAssembler.createManchesterTriageProtocolConfigLiteVoCollectionFromManchesterTriageProtocolConfiguration(factory.find(hql, markers, values)).sort();
}
项目:openMAXIMS    文件:ManchesterTriageProtocolConfigImpl.java   
public ManchesterTriageProtocolConfigLiteVoCollection listTriageProtocols(String triageName, ClinicalProblemShortVo clinicalProblem, LookupInstVo triageStatus)
{
    DomainFactory factory = getDomainFactory();

    String hql = " select triage from ManchesterTriageProtocolConfiguration as triage ";
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (triageName != null)
    {
        triageName.trim();
        triageName = triageName.toUpperCase();
        triageName = "%" + triageName + "%";
        condStr.append(andStr + " where upper(triage.protocolName) like :protocolName");
        markers.add("protocolName");
        values.add(triageName);
        andStr = " and ";
    }
    else
        andStr = " where ";

    if (clinicalProblem != null)
    {
        condStr.append(andStr + " triage.problem.id = :pName");
        markers.add("pName");
        values.add(clinicalProblem.getID_ClinicalProblem());
        andStr = " and ";
    }

    if (triageStatus != null)
    {
        condStr.append(andStr + " triage.activeStatus.id = :tStatus");
        markers.add("tStatus");
        values.add(triageStatus.getID());
    }

    hql += condStr.toString();
    return ManchesterTriageProtocolConfigLiteVoAssembler.createManchesterTriageProtocolConfigLiteVoCollectionFromManchesterTriageProtocolConfiguration(factory.find(hql, markers, values)).sort();
}
项目:openmaxims-linux    文件:ManchesterTriageProtocolConfigImpl.java   
public ManchesterTriageProtocolConfigLiteVoCollection listTriageProtocols(String triageName, ClinicalProblemShortVo clinicalProblem, LookupInstVo triageStatus)
{
    DomainFactory factory = getDomainFactory();

    String hql = " select triage from ManchesterTriageProtocolConfiguration as triage ";
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (triageName != null)
    {
        triageName.trim();
        triageName = triageName.toUpperCase();
        triageName = "%" + triageName + "%";
        condStr.append(andStr + " where upper(triage.protocolName) like :protocolName");
        markers.add("protocolName");
        values.add(triageName);
        andStr = " and ";
    }
    else
        andStr = " where ";

    if (clinicalProblem != null)
    {
        condStr.append(andStr + " triage.problem.id = :pName");
        markers.add("pName");
        values.add(clinicalProblem.getID_ClinicalProblem());
        andStr = " and ";
    }

    if (triageStatus != null)
    {
        condStr.append(andStr + " triage.activeStatus.id = :tStatus");
        markers.add("tStatus");
        values.add(triageStatus.getID());
    }

    hql += condStr.toString();
    return ManchesterTriageProtocolConfigLiteVoAssembler.createManchesterTriageProtocolConfigLiteVoCollectionFromManchesterTriageProtocolConfiguration(factory.find(hql, markers, values)).sort();
}