Java 类ims.clinical.vo.SurgeryDetailsListVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void open(SurgeryDetailsVo voSelected) 
{
    clearScreen();
    updateContextMenus();
    form.getLocalContext().setSelectedSurgeryDetails(null);

    SurgeryDetailsListVoCollection voColl = domain.listSurgeryDetails(form.getGlobalContext().Core.getEpisodeofCareShort());
    fillBrowser(voColl, voSelected != null ? voSelected.getID_SurgeryDetails() : null);
    form.btnEdit().setVisible(false);
    browseRecord();
    //wdev-11473
    //form.lyrSurgeryDetails().showtabGenDet();
}
项目:AvoinApotti    文件:Logic.java   
private void fillBrowser(SurgeryDetailsListVoCollection voColl, Integer idSelected)
{
form.recbrPreviousSurgeries().clear();

    SurgeryDetailsListVo voSelected = new SurgeryDetailsListVo();

    for (int i = 0 ; voColl != null && i < voColl.size() ; i++)
    {
        StringBuffer sb = new StringBuffer();
        if(voColl.get(i).getPatientProcedureIsNotNull()){
            sb.append(voColl.get(i).getPatientProcedure().getProcDateIsNotNull() ? voColl.get(i).getPatientProcedure().getProcDate().toString() : "");
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getPeformedByIsNotNull() ? voColl.get(i).getPatientProcedure().getPeformedBy().toString() : "");
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getProcedureIsNotNull() && voColl.get(i).getPatientProcedure().getProcedure().getProcedureNameIsNotNull() ? voColl.get(i).getPatientProcedure().getProcedure().getProcedureName() : voColl.get(i).getPatientProcedure().getProcedureDescription());
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getProcedureIntentIsNotNull() ? voColl.get(i).getPatientProcedure().getProcedureIntent().toString() : "");
        }

        form.recbrPreviousSurgeries().newRow(voColl.get(i), sb.toString());
        if(idSelected==null)
            idSelected=voColl.get(i).getID_SurgeryDetails();
        if (voColl.get(i).getID_SurgeryDetails().equals(idSelected))
            voSelected = voColl.get(i);
    }

    if(voSelected == null && voColl != null && voColl.size() > 0)
        form.recbrPreviousSurgeries().setValue(voColl.get(0));
    else
        form.recbrPreviousSurgeries().setValue(voSelected);
}
项目:AvoinApotti    文件:TheatreSessionImpl.java   
/**
* listSurgeryDetails
*/

public SurgeryDetailsListVoCollection listSurgeryDetails(EpisodeOfCareRefVo episodeOfCare)
{
    if (episodeOfCare == null || !episodeOfCare.getID_EpisodeOfCareIsNotNull())
        throw new DomainRuntimeException("Can not search for surgery details after a null or invalid episode of care");

    DomainFactory factory = getDomainFactory();
    String hql = "from SurgeryDetails sd where sd.episodeOfCare.id = " + episodeOfCare.getID_EpisodeOfCare();

    return SurgeryDetailsListVoAssembler.createSurgeryDetailsListVoCollectionFromSurgeryDetails((factory.find(hql))).sort();
}
项目:openMAXIMS    文件:Logic.java   
private void open(SurgeryDetailsVo voSelected) 
{
    clearScreen();
    updateContextMenus();
    form.getLocalContext().setSelectedSurgeryDetails(null);

    SurgeryDetailsListVoCollection voColl = domain.listSurgeryDetails(form.getGlobalContext().Core.getEpisodeofCareShort());
    fillBrowser(voColl, voSelected != null ? voSelected.getID_SurgeryDetails() : null);
    form.btnEdit().setVisible(false);
    browseRecord();
    //wdev-11473
    //form.lyrSurgeryDetails().showtabGenDet();
}
项目:openMAXIMS    文件:Logic.java   
private void fillBrowser(SurgeryDetailsListVoCollection voColl, Integer idSelected)
{
form.recbrPreviousSurgeries().clear();

    SurgeryDetailsListVo voSelected = new SurgeryDetailsListVo();

    for (int i = 0 ; voColl != null && i < voColl.size() ; i++)
    {
        StringBuffer sb = new StringBuffer();
        if(voColl.get(i).getPatientProcedureIsNotNull()){
            sb.append(voColl.get(i).getPatientProcedure().getProcDateIsNotNull() ? voColl.get(i).getPatientProcedure().getProcDate().toString() : "");
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getPeformedByIsNotNull() ? voColl.get(i).getPatientProcedure().getPeformedBy().toString() : "");
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getProcedureIsNotNull() && voColl.get(i).getPatientProcedure().getProcedure().getProcedureNameIsNotNull() ? voColl.get(i).getPatientProcedure().getProcedure().getProcedureName() : voColl.get(i).getPatientProcedure().getProcedureDescription());
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getProcedureIntentIsNotNull() ? voColl.get(i).getPatientProcedure().getProcedureIntent().toString() : "");
        }

        form.recbrPreviousSurgeries().newRow(voColl.get(i), sb.toString());
        if(idSelected==null)
            idSelected=voColl.get(i).getID_SurgeryDetails();
        if (voColl.get(i).getID_SurgeryDetails().equals(idSelected))
            voSelected = voColl.get(i);
    }

    if(voSelected == null && voColl != null && voColl.size() > 0)
        form.recbrPreviousSurgeries().setValue(voColl.get(0));
    else
        form.recbrPreviousSurgeries().setValue(voSelected);
}
项目:openMAXIMS    文件:TheatreSessionImpl.java   
/**
* listSurgeryDetails
*/

public SurgeryDetailsListVoCollection listSurgeryDetails(EpisodeOfCareRefVo episodeOfCare)
{
    if (episodeOfCare == null || !episodeOfCare.getID_EpisodeOfCareIsNotNull())
        throw new DomainRuntimeException("Can not search for surgery details after a null or invalid episode of care");

    DomainFactory factory = getDomainFactory();
    String hql = "from SurgeryDetails sd where sd.episodeOfCare.id = " + episodeOfCare.getID_EpisodeOfCare();

    return SurgeryDetailsListVoAssembler.createSurgeryDetailsListVoCollectionFromSurgeryDetails((factory.find(hql))).sort();
}
项目:openMAXIMS    文件:Logic.java   
private void open(SurgeryDetailsVo voSelected) 
{
    clearScreen();
    updateContextMenus();
    form.getLocalContext().setSelectedSurgeryDetails(null);

    SurgeryDetailsListVoCollection voColl = domain.listSurgeryDetails(form.getGlobalContext().Core.getEpisodeofCareShort());
    fillBrowser(voColl, voSelected != null ? voSelected.getID_SurgeryDetails() : null);
    form.btnEdit().setVisible(false);
    browseRecord();
    //wdev-11473
    //form.lyrSurgeryDetails().showtabGenDet();
}
项目:openMAXIMS    文件:Logic.java   
private void fillBrowser(SurgeryDetailsListVoCollection voColl, Integer idSelected)
{
form.recbrPreviousSurgeries().clear();

    SurgeryDetailsListVo voSelected = new SurgeryDetailsListVo();

    for (int i = 0 ; voColl != null && i < voColl.size() ; i++)
    {
        StringBuffer sb = new StringBuffer();
        if(voColl.get(i).getPatientProcedureIsNotNull()){
            sb.append(voColl.get(i).getPatientProcedure().getProcDateIsNotNull() ? voColl.get(i).getPatientProcedure().getProcDate().toString() : "");
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getPeformedByIsNotNull() ? voColl.get(i).getPatientProcedure().getPeformedBy().toString() : "");
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getProcedureIsNotNull() && voColl.get(i).getPatientProcedure().getProcedure().getProcedureNameIsNotNull() ? voColl.get(i).getPatientProcedure().getProcedure().getProcedureName() : voColl.get(i).getPatientProcedure().getProcedureDescription());
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getProcedureIntentIsNotNull() ? voColl.get(i).getPatientProcedure().getProcedureIntent().toString() : "");
        }

        form.recbrPreviousSurgeries().newRow(voColl.get(i), sb.toString());
        if(idSelected==null)
            idSelected=voColl.get(i).getID_SurgeryDetails();
        if (voColl.get(i).getID_SurgeryDetails().equals(idSelected))
            voSelected = voColl.get(i);
    }

    if(voSelected == null && voColl != null && voColl.size() > 0)
        form.recbrPreviousSurgeries().setValue(voColl.get(0));
    else
        form.recbrPreviousSurgeries().setValue(voSelected);
}
项目:openMAXIMS    文件:TheatreSessionImpl.java   
/**
* listSurgeryDetails
*/

public SurgeryDetailsListVoCollection listSurgeryDetails(EpisodeOfCareRefVo episodeOfCare)
{
    if (episodeOfCare == null || !episodeOfCare.getID_EpisodeOfCareIsNotNull())
        throw new DomainRuntimeException("Can not search for surgery details after a null or invalid episode of care");

    DomainFactory factory = getDomainFactory();
    String hql = "from SurgeryDetails sd where sd.episodeOfCare.id = " + episodeOfCare.getID_EpisodeOfCare();

    return SurgeryDetailsListVoAssembler.createSurgeryDetailsListVoCollectionFromSurgeryDetails((factory.find(hql))).sort();
}
项目:openmaxims-linux    文件:Logic.java   
private void open(SurgeryDetailsVo voSelected) 
{
    clearScreen();
    updateContextMenus();
    form.getLocalContext().setSelectedSurgeryDetails(null);

    SurgeryDetailsListVoCollection voColl = domain.listSurgeryDetails(form.getGlobalContext().Core.getEpisodeofCareShort());
    fillBrowser(voColl, voSelected != null ? voSelected.getID_SurgeryDetails() : null);
    form.btnEdit().setVisible(false);
    browseRecord();
    //wdev-11473
    //form.lyrSurgeryDetails().showtabGenDet();
}
项目:openmaxims-linux    文件:Logic.java   
private void fillBrowser(SurgeryDetailsListVoCollection voColl, Integer idSelected)
{
form.recbrPreviousSurgeries().clear();

    SurgeryDetailsListVo voSelected = new SurgeryDetailsListVo();

    for (int i = 0 ; voColl != null && i < voColl.size() ; i++)
    {
        StringBuffer sb = new StringBuffer();
        if(voColl.get(i).getPatientProcedureIsNotNull()){
            sb.append(voColl.get(i).getPatientProcedure().getProcDateIsNotNull() ? voColl.get(i).getPatientProcedure().getProcDate().toString() : "");
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getPeformedByIsNotNull() ? voColl.get(i).getPatientProcedure().getPeformedBy().toString() : "");
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getProcedureIsNotNull() && voColl.get(i).getPatientProcedure().getProcedure().getProcedureNameIsNotNull() ? voColl.get(i).getPatientProcedure().getProcedure().getProcedureName() : voColl.get(i).getPatientProcedure().getProcedureDescription());
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getProcedureIntentIsNotNull() ? voColl.get(i).getPatientProcedure().getProcedureIntent().toString() : "");
        }

        form.recbrPreviousSurgeries().newRow(voColl.get(i), sb.toString());
        if(idSelected==null)
            idSelected=voColl.get(i).getID_SurgeryDetails();
        if (voColl.get(i).getID_SurgeryDetails().equals(idSelected))
            voSelected = voColl.get(i);
    }

    if(voSelected == null && voColl != null && voColl.size() > 0)
        form.recbrPreviousSurgeries().setValue(voColl.get(0));
    else
        form.recbrPreviousSurgeries().setValue(voSelected);
}
项目:openmaxims-linux    文件:TheatreSessionImpl.java   
/**
* listSurgeryDetails
*/

public SurgeryDetailsListVoCollection listSurgeryDetails(EpisodeOfCareRefVo episodeOfCare)
{
    if (episodeOfCare == null || !episodeOfCare.getID_EpisodeOfCareIsNotNull())
        throw new DomainRuntimeException("Can not search for surgery details after a null or invalid episode of care");

    DomainFactory factory = getDomainFactory();
    String hql = "from SurgeryDetails sd where sd.episodeOfCare.id = " + episodeOfCare.getID_EpisodeOfCare();

    return SurgeryDetailsListVoAssembler.createSurgeryDetailsListVoCollectionFromSurgeryDetails((factory.find(hql))).sort();
}