Java 类ims.core.vo.PendingTransfersLiteVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
@SuppressWarnings("unused")
private boolean isInpatientEpisodeonTransefrOutList(InpatientEpisodeRefVo voInpatEpis)
{
    if(voInpatEpis == null)
        throw new CodingRuntimeException("voInpatEpis is null in method isInpatientEpisodeonTransefrOutList");

    PendingTransfersLiteVoCollection voCollTransfersOut = form.getLocalContext().getTransfersOut();
    if(voCollTransfersOut == null)
        return false;

    for(PendingTransfersLiteVo voTransferOut : voCollTransfersOut)
    {
        if(voTransferOut.getInpatientEpisodeIsNotNull() && voTransferOut.getInpatientEpisode().equals(voInpatEpis))
            return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private PendingTransfersLiteVo isInpatientEpisodeonTransferOutList(InpatientEpisodeRefVo voInpatEpis)
{
    if (voInpatEpis == null)
        return null;

    PendingTransfersLiteVoCollection voCollTransfersOut = form.getGlobalContext().Core.getADTTransfersOut();
    if (voCollTransfersOut == null)
        return null;

    for (PendingTransfersLiteVo voTransferOut : voCollTransfersOut)
    {
        if (voTransferOut.getInpatientEpisodeIsNotNull() && voTransferOut.getInpatientEpisode().equals(voInpatEpis))
            return voTransferOut;
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private boolean isInpatientEpisodeonTransefrOutList(InpatientEpisodeRefVo voInpatEpis)
{
    if(voInpatEpis == null)
        throw new CodingRuntimeException("voInpatEpis is null in method isInpatientEpisodeonTransefrOutList");

    PendingTransfersLiteVoCollection voCollTransfersOut = form.getLocalContext().getTransfersOut();
    if(voCollTransfersOut == null)
        return false;

    for(PendingTransfersLiteVo voTransferOut : voCollTransfersOut)
    {
        if(voTransferOut.getInpatientEpisodeIsNotNull() && voTransferOut.getInpatientEpisode().equals(voInpatEpis))
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
@SuppressWarnings("unused")
private boolean isInpatientEpisodeonTransefrOutList(InpatientEpisodeRefVo voInpatEpis)
{
    if(voInpatEpis == null)
        throw new CodingRuntimeException("voInpatEpis is null in method isInpatientEpisodeonTransefrOutList");

    PendingTransfersLiteVoCollection voCollTransfersOut = form.getLocalContext().getTransfersOut();
    if(voCollTransfersOut == null)
        return false;

    for(PendingTransfersLiteVo voTransferOut : voCollTransfersOut)
    {
        if(voTransferOut.getInpatientEpisodeIsNotNull() && voTransferOut.getInpatientEpisode().equals(voInpatEpis))
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private PendingTransfersLiteVo isInpatientEpisodeonTransferOutList(InpatientEpisodeRefVo voInpatEpis)
{
    if (ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("MAXIMS") && form.getGlobalContext().Core.getADTPendingTransferIsNotNull())
        return form.getGlobalContext().Core.getADTPendingTransfer();

    if (voInpatEpis == null)
        return null;

    PendingTransfersLiteVoCollection voCollTransfersOut = form.getGlobalContext().Core.getADTTransfersOut();
    if (voCollTransfersOut == null)
        return null;

    for (PendingTransfersLiteVo voTransferOut : voCollTransfersOut)
    {
        if (voTransferOut.getInpatientEpisodeIsNotNull() && voTransferOut.getInpatientEpisode().equals(voInpatEpis))
            return voTransferOut;
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isInpatientEpisodeonTransefrOutList(InpatientEpisodeRefVo voInpatEpis)
{
    if(voInpatEpis == null)
        return false;

    PendingTransfersLiteVoCollection voCollTransfersOut = form.getLocalContext().getTransfersOut();
    if(voCollTransfersOut == null)
        return false;

    for(PendingTransfersLiteVo voTransferOut : voCollTransfersOut)
    {
        if(voTransferOut.getInpatientEpisodeIsNotNull() && voTransferOut.getInpatientEpisode().equals(voInpatEpis))
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
@SuppressWarnings("unused")
private boolean isInpatientEpisodeonTransefrOutList(InpatientEpisodeRefVo voInpatEpis)
{
    if(voInpatEpis == null)
        throw new CodingRuntimeException("voInpatEpis is null in method isInpatientEpisodeonTransefrOutList");

    PendingTransfersLiteVoCollection voCollTransfersOut = form.getLocalContext().getTransfersOut();
    if(voCollTransfersOut == null)
        return false;

    for(PendingTransfersLiteVo voTransferOut : voCollTransfersOut)
    {
        if(voTransferOut.getInpatientEpisodeIsNotNull() && voTransferOut.getInpatientEpisode().equals(voInpatEpis))
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private PendingTransfersLiteVo isInpatientEpisodeonTransferOutList(InpatientEpisodeRefVo voInpatEpis)
{
    if (voInpatEpis == null)
        return null;

    PendingTransfersLiteVoCollection voCollTransfersOut = form.getGlobalContext().Core.getADTTransfersOut();
    if (voCollTransfersOut == null)
        return null;

    for (PendingTransfersLiteVo voTransferOut : voCollTransfersOut)
    {
        if (voTransferOut.getInpatientEpisodeIsNotNull() && voTransferOut.getInpatientEpisode().equals(voInpatEpis))
            return voTransferOut;
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isInpatientEpisodeonTransefrOutList(InpatientEpisodeRefVo voInpatEpis)
{
    if(voInpatEpis == null)
        throw new CodingRuntimeException("voInpatEpis is null in method isInpatientEpisodeonTransefrOutList");

    PendingTransfersLiteVoCollection voCollTransfersOut = form.getLocalContext().getTransfersOut();
    if(voCollTransfersOut == null)
        return false;

    for(PendingTransfersLiteVo voTransferOut : voCollTransfersOut)
    {
        if(voTransferOut.getInpatientEpisodeIsNotNull() && voTransferOut.getInpatientEpisode().equals(voInpatEpis))
            return true;
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
@SuppressWarnings("unused")
private boolean isInpatientEpisodeonTransefrOutList(InpatientEpisodeRefVo voInpatEpis)
{
    if(voInpatEpis == null)
        throw new CodingRuntimeException("voInpatEpis is null in method isInpatientEpisodeonTransefrOutList");

    PendingTransfersLiteVoCollection voCollTransfersOut = form.getLocalContext().getTransfersOut();
    if(voCollTransfersOut == null)
        return false;

    for(PendingTransfersLiteVo voTransferOut : voCollTransfersOut)
    {
        if(voTransferOut.getInpatientEpisodeIsNotNull() && voTransferOut.getInpatientEpisode().equals(voInpatEpis))
            return true;
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private PendingTransfersLiteVo isInpatientEpisodeonTransferOutList(InpatientEpisodeRefVo voInpatEpis)
{
    if (voInpatEpis == null)
        return null;

    PendingTransfersLiteVoCollection voCollTransfersOut = form.getGlobalContext().Core.getADTTransfersOut();
    if (voCollTransfersOut == null)
        return null;

    for (PendingTransfersLiteVo voTransferOut : voCollTransfersOut)
    {
        if (voTransferOut.getInpatientEpisodeIsNotNull() && voTransferOut.getInpatientEpisode().equals(voInpatEpis))
            return voTransferOut;
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean isInpatientEpisodeonTransefrOutList(InpatientEpisodeRefVo voInpatEpis)
{
    if(voInpatEpis == null)
        throw new CodingRuntimeException("voInpatEpis is null in method isInpatientEpisodeonTransefrOutList");

    PendingTransfersLiteVoCollection voCollTransfersOut = form.getLocalContext().getTransfersOut();
    if(voCollTransfersOut == null)
        return false;

    for(PendingTransfersLiteVo voTransferOut : voCollTransfersOut)
    {
        if(voTransferOut.getInpatientEpisodeIsNotNull() && voTransferOut.getInpatientEpisode().equals(voInpatEpis))
            return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void populateTransferInListFromData()
{   
    enableTransferInControls(false);

    form.lyrDetail().tabTransfer().lyrTransfer().tabIn().grdTransferIn().getRows().clear();

    PendingTransfersLiteVoCollection voCollTransfersIn = form.getGlobalContext().Core.getADTTransfersIn();
    if (voCollTransfersIn == null)
        return;

    for (PendingTransfersLiteVo voTransfer : voCollTransfersIn)
    {
        grdTransferInRow tRow = form.lyrDetail().tabTransfer().lyrTransfer().tabIn().grdTransferIn().getRows().newRow();
        tRow.setColName(voTransfer.getPatientString());

        if (voTransfer.getInpatientEpisodeIsNotNull() && voTransfer.getInpatientEpisode().getPasEventIsNotNull() && voTransfer.getInpatientEpisode().getPasEvent().getConsultantIsNotNull())
            tRow.setColConsultant(voTransfer.getInpatientEpisode().getPasEvent().getConsultant().getIMosName());

        if (voTransfer.getInpatientEpisodeIsNotNull() && voTransfer.getInpatientEpisode().getPasEventIsNotNull() && voTransfer.getInpatientEpisode().getPasEvent().getSpecialtyIsNotNull())
            tRow.setColSpecialty(voTransfer.getInpatientEpisode().getPasEvent().getSpecialty().getText());

        if (voTransfer.getInpatientEpisodeIsNotNull() && voTransfer.getInpatientEpisode().getPasEventIsNotNull() && voTransfer.getInpatientEpisode().getPasEvent().getLocationIsNotNull())
            tRow.setColWard(voTransfer.getInpatientEpisode().getPasEvent().getLocation().getName());

        if (voTransfer.getTransferRequestDateTimeIsNotNull())
            tRow.setColRequestDate(voTransfer.getTransferRequestDateTime().toString());

        tRow.setValue(voTransfer);
    }

    if (form.lyrDetail().tabTransfer().lyrTransfer().tabIn().grdTransferIn().getRows().size() == 0)
        form.lyrDetail().tabTransfer().btnCancelTransfer().setVisible(false);
    else
        form.lyrDetail().tabTransfer().btnCancelTransfer().setEnabled(false);
}
项目:AvoinApotti    文件:WardViewImpl.java   
public PendingTransfersLiteVoCollection listPendingTransfersInByWard(LocationRefVo destWard)
{
    if(destWard == null || destWard.getID_Location() == null)
        throw new CodingRuntimeException("destWard is null or id not provided in method listPendingTransfersInByWard");

    String hql = "from PendingTransfers pend where pend.destinationWard.id = :idWard and pend.currentStatus = :status";
    List pendingTrans = getDomainFactory().find(hql, new String[]{"idWard","status"}, new Object[]{destWard.getID_Location(), getDomLookup(TransferStatus.PENDING)});
    return PendingTransfersLiteVoAssembler.createPendingTransfersLiteVoCollectionFromPendingTransfers(pendingTrans);
}
项目:AvoinApotti    文件:WardViewImpl.java   
public PendingTransfersLiteVoCollection listPendingTransfersOutByWard(LocationRefVo currentLocation)
{
    if(currentLocation == null || currentLocation.getID_Location() == null)
        throw new CodingRuntimeException("currentLocation is null or id not provided in method listPendingTransfersOutByWard");

    String hql = "from PendingTransfers pend where pend.inpatientEpisode.pasEvent.location.id = :idWard and pend.currentStatus = :status order by pend.inpatientEpisode.pasEvent.patient.name.upperSurname asc, pend.inpatientEpisode.pasEvent.patient.name.upperForename asc";
    List pendingTrans = getDomainFactory().find(hql, new String[]{"idWard","status"}, new Object[]{currentLocation.getID_Location(), getDomLookup(TransferStatus.PENDING)});
    return PendingTransfersLiteVoAssembler.createPendingTransfersLiteVoCollectionFromPendingTransfers(pendingTrans);
}
项目:openMAXIMS    文件:Logic.java   
private void populateTransferInListFromData()
{   
    enableTransferInControls(false);

    form.lyrDetail().tabTransfer().lyrTransfer().tabIn().grdTransferIn().getRows().clear();

    PendingTransfersLiteVoCollection voCollTransfersIn = form.getGlobalContext().Core.getADTTransfersIn();
    if (voCollTransfersIn == null)
        return;

    for (PendingTransfersLiteVo voTransfer : voCollTransfersIn)
    {
        grdTransferInRow tRow = form.lyrDetail().tabTransfer().lyrTransfer().tabIn().grdTransferIn().getRows().newRow();
        tRow.setColName(voTransfer.getPatientString());

        if (voTransfer.getInpatientEpisodeIsNotNull() && voTransfer.getInpatientEpisode().getPasEventIsNotNull() && voTransfer.getInpatientEpisode().getPasEvent().getConsultantIsNotNull())
            tRow.setColConsultant(voTransfer.getInpatientEpisode().getPasEvent().getConsultant().getIMosName());

        if (voTransfer.getInpatientEpisodeIsNotNull() && voTransfer.getInpatientEpisode().getPasEventIsNotNull() && voTransfer.getInpatientEpisode().getPasEvent().getSpecialtyIsNotNull())
            tRow.setColSpecialty(voTransfer.getInpatientEpisode().getPasEvent().getSpecialty().getText());

        if (voTransfer.getInpatientEpisodeIsNotNull() && voTransfer.getInpatientEpisode().getPasEventIsNotNull() && voTransfer.getInpatientEpisode().getPasEvent().getLocationIsNotNull())
            tRow.setColWard(voTransfer.getInpatientEpisode().getPasEvent().getLocation().getName());

        if (voTransfer.getTransferRequestDateTimeIsNotNull())
            tRow.setColRequestDate(voTransfer.getTransferRequestDateTime().toString());

        tRow.setValue(voTransfer);
    }

    if (form.lyrDetail().tabTransfer().lyrTransfer().tabIn().grdTransferIn().getRows().size() == 0)
        form.lyrDetail().tabTransfer().btnCancelTransfer().setVisible(false);
    else
        form.lyrDetail().tabTransfer().btnCancelTransfer().setEnabled(false);
}
项目:openMAXIMS    文件:WardViewImpl.java   
public PendingTransfersLiteVoCollection listPendingTransfersInByWard(LocationRefVo destWard)
{
    if(destWard == null || destWard.getID_Location() == null)
        throw new CodingRuntimeException("destWard is null or id not provided in method listPendingTransfersInByWard");

    String hql = "from PendingTransfers pend where pend.destinationWard.id = :idWard and pend.currentStatus = :status";
    List pendingTrans = getDomainFactory().find(hql, new String[]{"idWard","status"}, new Object[]{destWard.getID_Location(), getDomLookup(TransferStatus.PENDING)});
    return PendingTransfersLiteVoAssembler.createPendingTransfersLiteVoCollectionFromPendingTransfers(pendingTrans);
}
项目:openMAXIMS    文件:WardViewImpl.java   
public PendingTransfersLiteVoCollection listPendingTransfersOutByWard(LocationRefVo currentLocation)
{
    if(currentLocation == null || currentLocation.getID_Location() == null)
        throw new CodingRuntimeException("currentLocation is null or id not provided in method listPendingTransfersOutByWard");

    String hql = "from PendingTransfers pend where pend.inpatientEpisode.pasEvent.location.id = :idWard and pend.currentStatus = :status order by pend.inpatientEpisode.pasEvent.patient.name.upperSurname asc, pend.inpatientEpisode.pasEvent.patient.name.upperForename asc";
    List pendingTrans = getDomainFactory().find(hql, new String[]{"idWard","status"}, new Object[]{currentLocation.getID_Location(), getDomLookup(TransferStatus.PENDING)});
    return PendingTransfersLiteVoAssembler.createPendingTransfersLiteVoCollectionFromPendingTransfers(pendingTrans);
}
项目:openMAXIMS    文件:Logic.java   
private void populateTransferInListFromData()
{   
    enableTransferInControls(false);

    form.lyrDetail().tabTransfer().lyrTransfer().tabIn().grdTransferIn().getRows().clear();

    PendingTransfersLiteVoCollection voCollTransfersIn = form.getGlobalContext().Core.getADTTransfersIn();
    if (voCollTransfersIn == null)
        return;

    for (PendingTransfersLiteVo voTransfer : voCollTransfersIn)
    {
        grdTransferInRow tRow = form.lyrDetail().tabTransfer().lyrTransfer().tabIn().grdTransferIn().getRows().newRow();
        tRow.setColName(voTransfer.getPatientString());

        if (voTransfer.getInpatientEpisodeIsNotNull() && voTransfer.getInpatientEpisode().getPasEventIsNotNull() && voTransfer.getInpatientEpisode().getPasEvent().getConsultantIsNotNull())
            tRow.setColConsultant(voTransfer.getInpatientEpisode().getPasEvent().getConsultant().getIMosName());

        if (voTransfer.getInpatientEpisodeIsNotNull() && voTransfer.getInpatientEpisode().getPasEventIsNotNull() && voTransfer.getInpatientEpisode().getPasEvent().getSpecialtyIsNotNull())
            tRow.setColSpecialty(voTransfer.getInpatientEpisode().getPasEvent().getSpecialty().getText());

        if (voTransfer.getInpatientEpisodeIsNotNull() && voTransfer.getInpatientEpisode().getPasEventIsNotNull() && voTransfer.getInpatientEpisode().getPasEvent().getLocationIsNotNull())
            tRow.setColWard(voTransfer.getInpatientEpisode().getPasEvent().getLocation().getName());

        if (voTransfer.getTransferRequestDateTimeIsNotNull())
            tRow.setColRequestDate(voTransfer.getTransferRequestDateTime().toString());

        tRow.setValue(voTransfer);
    }

    if (form.lyrDetail().tabTransfer().lyrTransfer().tabIn().grdTransferIn().getRows().size() == 0)
        form.lyrDetail().tabTransfer().btnCancelTransfer().setVisible(false);
    else
        form.lyrDetail().tabTransfer().btnCancelTransfer().setEnabled(false);
}
项目:openMAXIMS    文件:WardViewImpl.java   
public PendingTransfersLiteVoCollection listPendingTransfersInByWard(LocationRefVo destWard)
{
    if(destWard == null || destWard.getID_Location() == null)
        throw new CodingRuntimeException("destWard is null or id not provided in method listPendingTransfersInByWard");

    String hql = "from PendingTransfers pend where pend.destinationWard.id = :idWard and pend.currentStatus = :status";
    List pendingTrans = getDomainFactory().find(hql, new String[]{"idWard","status"}, new Object[]{destWard.getID_Location(), getDomLookup(TransferStatus.PENDING)});
    return PendingTransfersLiteVoAssembler.createPendingTransfersLiteVoCollectionFromPendingTransfers(pendingTrans);
}
项目:openMAXIMS    文件:WardViewImpl.java   
public PendingTransfersLiteVoCollection listPendingTransfersOutByWard(LocationRefVo currentLocation)
{
    if(currentLocation == null || currentLocation.getID_Location() == null)
        throw new CodingRuntimeException("currentLocation is null or id not provided in method listPendingTransfersOutByWard");

    String hql = "from PendingTransfers pend where pend.inpatientEpisode.pasEvent.location.id = :idWard and pend.currentStatus = :status order by pend.inpatientEpisode.pasEvent.patient.name.upperSurname asc, pend.inpatientEpisode.pasEvent.patient.name.upperForename asc";
    List pendingTrans = getDomainFactory().find(hql, new String[]{"idWard","status"}, new Object[]{currentLocation.getID_Location(), getDomLookup(TransferStatus.PENDING)});
    return PendingTransfersLiteVoAssembler.createPendingTransfersLiteVoCollectionFromPendingTransfers(pendingTrans);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateTransferInListFromData()
{   
    enableTransferInControls(false);

    form.lyrDetail().tabTransfer().lyrTransfer().tabIn().grdTransferIn().getRows().clear();

    PendingTransfersLiteVoCollection voCollTransfersIn = form.getGlobalContext().Core.getADTTransfersIn();
    if (voCollTransfersIn == null)
        return;

    for (PendingTransfersLiteVo voTransfer : voCollTransfersIn)
    {
        grdTransferInRow tRow = form.lyrDetail().tabTransfer().lyrTransfer().tabIn().grdTransferIn().getRows().newRow();
        tRow.setColName(voTransfer.getPatientString());

        if (voTransfer.getInpatientEpisodeIsNotNull() && voTransfer.getInpatientEpisode().getPasEventIsNotNull() && voTransfer.getInpatientEpisode().getPasEvent().getConsultantIsNotNull())
            tRow.setColConsultant(voTransfer.getInpatientEpisode().getPasEvent().getConsultant().getIMosName());

        if (voTransfer.getInpatientEpisodeIsNotNull() && voTransfer.getInpatientEpisode().getPasEventIsNotNull() && voTransfer.getInpatientEpisode().getPasEvent().getSpecialtyIsNotNull())
            tRow.setColSpecialty(voTransfer.getInpatientEpisode().getPasEvent().getSpecialty().getText());

        if (voTransfer.getInpatientEpisodeIsNotNull() && voTransfer.getInpatientEpisode().getPasEventIsNotNull() && voTransfer.getInpatientEpisode().getPasEvent().getLocationIsNotNull())
            tRow.setColWard(voTransfer.getInpatientEpisode().getPasEvent().getLocation().getName());

        if (voTransfer.getTransferRequestDateTimeIsNotNull())
            tRow.setColRequestDate(voTransfer.getTransferRequestDateTime().toString());

        tRow.setValue(voTransfer);
    }

    if (form.lyrDetail().tabTransfer().lyrTransfer().tabIn().grdTransferIn().getRows().size() == 0)
        form.lyrDetail().tabTransfer().btnCancelTransfer().setVisible(false);
    else
        form.lyrDetail().tabTransfer().btnCancelTransfer().setEnabled(false);
}
项目:openmaxims-linux    文件:WardViewImpl.java   
public PendingTransfersLiteVoCollection listPendingTransfersInByWard(LocationRefVo destWard)
{
    if(destWard == null || destWard.getID_Location() == null)
        throw new CodingRuntimeException("destWard is null or id not provided in method listPendingTransfersInByWard");

    String hql = "from PendingTransfers pend where pend.destinationWard.id = :idWard and pend.currentStatus = :status";
    List pendingTrans = getDomainFactory().find(hql, new String[]{"idWard","status"}, new Object[]{destWard.getID_Location(), getDomLookup(TransferStatus.PENDING)});
    return PendingTransfersLiteVoAssembler.createPendingTransfersLiteVoCollectionFromPendingTransfers(pendingTrans);
}
项目:openmaxims-linux    文件:WardViewImpl.java   
public PendingTransfersLiteVoCollection listPendingTransfersOutByWard(LocationRefVo currentLocation)
{
    if(currentLocation == null || currentLocation.getID_Location() == null)
        throw new CodingRuntimeException("currentLocation is null or id not provided in method listPendingTransfersOutByWard");

    String hql = "from PendingTransfers pend where pend.inpatientEpisode.pasEvent.location.id = :idWard and pend.currentStatus = :status order by pend.inpatientEpisode.pasEvent.patient.name.upperSurname asc, pend.inpatientEpisode.pasEvent.patient.name.upperForename asc";
    List pendingTrans = getDomainFactory().find(hql, new String[]{"idWard","status"}, new Object[]{currentLocation.getID_Location(), getDomLookup(TransferStatus.PENDING)});
    return PendingTransfersLiteVoAssembler.createPendingTransfersLiteVoCollectionFromPendingTransfers(pendingTrans);
}