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

项目:AvoinApotti    文件:Logic.java   
private String getBedStatusTooltip(BedAvailabilityForTrackingVo bedAvailability) 
{
    if(bedAvailability == null)
        return null;

    if(bedAvailability.getAvailableDateTime() != null)
        return "Bed Available";

    if(bedAvailability.getAwaitingDateTime() != null)
        return "Bed Awaiting";

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private Image getBedStatusImage(BedAvailabilityForTrackingVo bedAvailability) 
{
    if(bedAvailability == null)
        return null;

    if(bedAvailability.getAvailableDateTime() != null)
        return form.getImages().Emergency.Bed_Available;//WDEV-16987

    if(bedAvailability.getAwaitingDateTime() != null)
        return form.getImages().Emergency.Bed_Awaiting;//WDEV-16987

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private Image getBedStatusImage(BedAvailabilityForTrackingVo bedAvailability) 
{
    if(bedAvailability == null)
        return null;

    if(bedAvailability.getAvailableDateTime() != null)
        return form.getImages().Emergency.Bed_Available;

    if(bedAvailability.getAwaitingDateTime() != null)
        return form.getImages().Emergency.Bed_Awaiting;

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private Image getBedStatusImage(BedAvailabilityForTrackingVo bedAvailability) 
{
    if(bedAvailability == null)
        return null;

    if(bedAvailability.getAvailableDateTime() != null)
        return form.getImages().Emergency.Bed_Available;

    if(bedAvailability.getAwaitingDateTime() != null)
        return form.getImages().Emergency.Bed_Awaiting;

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private Image getBedStatusImage(BedAvailabilityForTrackingVo bedAvailability) 
{
    if(bedAvailability == null)
        return null;

    if(bedAvailability.getAvailableDateTime() != null)
        return form.getImages().Emergency.Bed_Available;//WDEV-16987

    if(bedAvailability.getAwaitingDateTime() != null)
        return form.getImages().Emergency.Bed_Awaiting;//WDEV-16987

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private String getBedStatusTooltip(BedAvailabilityForTrackingVo bedAvailability) 
{
    if(bedAvailability == null)
        return null;

    if(bedAvailability.getAvailableDateTime() != null)
        return "Bed Available";

    if(bedAvailability.getAwaitingDateTime() != null)
        return "Bed Awaiting";

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private Image getBedStatusImage(BedAvailabilityForTrackingVo bedAvailability) 
{
    if(bedAvailability == null)
        return null;

    if(bedAvailability.getAvailableDateTime() != null)
        return form.getImages().Emergency.Bed_Available;//WDEV-16987

    if(bedAvailability.getAwaitingDateTime() != null)
        return form.getImages().Emergency.Bed_Awaiting;//WDEV-16987

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private String getBedStatusTooltip(BedAvailabilityForTrackingVo bedAvailability) 
{
    if(bedAvailability == null)
        return null;

    if(bedAvailability.getAvailableDateTime() != null)
        return "Bed Available";

    if(bedAvailability.getAwaitingDateTime() != null)
        return "Bed Awaiting";

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private Image getBedStatusImage(BedAvailabilityForTrackingVo bedAvailability) 
{
    if(bedAvailability == null)
        return null;

    if(bedAvailability.getAvailableDateTime() != null)
        return form.getImages().Emergency.Bed_Available;//WDEV-16987

    if(bedAvailability.getAwaitingDateTime() != null)
        return form.getImages().Emergency.Bed_Awaiting;//WDEV-16987

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private String getBedStatusTooltip(TrackingForPendingEmergencyAdmitVo trackingForPendingEmergencyAdmission) 
{
    StringBuffer sb = new StringBuffer(); 
    BedAvailabilityForTrackingVo bedAvailability = trackingForPendingEmergencyAdmission.getBedAvailability();

    sb.append("<b>Requested by:</b> ");
    if (bedAvailability != null)
    {
        if (bedAvailability.getRequestedBy() != null)
        {
            if (bedAvailability.getRequestedBy().getName() != null && bedAvailability.getRequestedBy().getName().getSurname() != null)
                sb.append(bedAvailability.getRequestedBy().getName().getSurname()).append(" ");

            if (bedAvailability.getRequestedBy().getName() != null && bedAvailability.getRequestedBy().getName().getForename() != null)
                sb.append(bedAvailability.getRequestedBy().getName().getForename());
        }
    }
    sb.append("<br>");


    sb.append("<b>Decision to Admit Date Time:</b> ");
    if (trackingForPendingEmergencyAdmission != null && trackingForPendingEmergencyAdmission.getAssociatedPendingEmergencyAdmission() != null && trackingForPendingEmergencyAdmission.getAssociatedPendingEmergencyAdmission().getDTADateTime() != null)
    {
        sb.append(trackingForPendingEmergencyAdmission.getAssociatedPendingEmergencyAdmission().getDTADateTime());
    }
    sb.append("<br>");


    sb.append("<b>Requested Bed Type:</b> ");
    if (trackingForPendingEmergencyAdmission != null && trackingForPendingEmergencyAdmission.getAssociatedPendingEmergencyAdmission() != null && trackingForPendingEmergencyAdmission.getAssociatedPendingEmergencyAdmission().getBedTypeRequested() != null)
    {
        sb.append(trackingForPendingEmergencyAdmission.getAssociatedPendingEmergencyAdmission().getBedTypeRequested().getText());
    }
    sb.append("<br>");


    sb.append("<b>Hospital:</b> ");
    if (trackingForPendingEmergencyAdmission != null && trackingForPendingEmergencyAdmission.getAssociatedPendingEmergencyAdmission() != null && trackingForPendingEmergencyAdmission.getAssociatedPendingEmergencyAdmission().getHospital() != null)
    {
        sb.append(trackingForPendingEmergencyAdmission.getAssociatedPendingEmergencyAdmission().getHospital().getName());
    }
    sb.append("<br>");


    sb.append("<b>Ward:</b> ");
    if (trackingForPendingEmergencyAdmission != null && trackingForPendingEmergencyAdmission.getAssociatedPendingEmergencyAdmission() != null && trackingForPendingEmergencyAdmission.getAssociatedPendingEmergencyAdmission().getAllocatedWard() != null)
    {
        sb.append(trackingForPendingEmergencyAdmission.getAssociatedPendingEmergencyAdmission().getAllocatedWard().getName());
    }
    sb.append("<br><br>");


    sb.append("<b>Bed Available Date Time:</b> ");
    if (bedAvailability != null && bedAvailability.getAvailableDateTime() != null)
    {
        sb.append(bedAvailability.getAvailableDateTime());
    }
    sb.append("<br>");


    sb.append("<b>Bed Available Ward:</b> ");
    if (bedAvailability != null && bedAvailability.getWard() != null)
    {
        sb.append(bedAvailability.getWard().getName());
    }

    return sb.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String getBedStatusTooltip(PendingEmergencyAdmissionLiteVo pendingEmergencyAdmission) 
{
    StringBuffer sb = new StringBuffer();
    BedAvailabilityForTrackingVo bedAvailability = pendingEmergencyAdmission.getBedAvailability();
    sb.append("Requested by:<b> ");
    if (pendingEmergencyAdmission.getBedAvailability() != null)
    {
        if (bedAvailability.getRequestedBy() != null)
        {
            if (bedAvailability.getRequestedBy().getName() != null && bedAvailability.getRequestedBy().getName().getSurname() != null)
                sb.append(bedAvailability.getRequestedBy().getName().getSurname()).append(" ");

            if (bedAvailability.getRequestedBy().getName() != null && bedAvailability.getRequestedBy().getName().getForename() != null)
                sb.append(bedAvailability.getRequestedBy().getName().getForename());
        }
    }
    sb.append("</b><br>");


    sb.append("Decision to Admit Date/Time:<b> ");
    if (pendingEmergencyAdmission != null && pendingEmergencyAdmission.getDTADateTime() != null)
    {
        sb.append(pendingEmergencyAdmission.getDTADateTime());
    }
    sb.append("</b><br>");


    sb.append("Requested Bed Type:<b> ");
    if (pendingEmergencyAdmission != null && pendingEmergencyAdmission.getBedTypeRequested() != null)
    {
        sb.append(pendingEmergencyAdmission.getBedTypeRequested().getText());
    }
    sb.append("</b><br>");


    sb.append("Hospital:<b> ");
    if (pendingEmergencyAdmission != null && pendingEmergencyAdmission.getHospital() != null)
    {
        sb.append(pendingEmergencyAdmission.getHospital().getName());
    }
    sb.append("</b><br>");


    sb.append("Ward:<b> ");
    if (pendingEmergencyAdmission != null && pendingEmergencyAdmission.getAllocatedWard() != null)
    {
        sb.append(pendingEmergencyAdmission.getAllocatedWard().getName());
    }
    sb.append("</b><br><br>");


    sb.append("Bed Available Date/Time:<b> ");
    if (bedAvailability != null && bedAvailability.getAvailableDateTime() != null)
    {
        sb.append(bedAvailability.getAvailableDateTime());
    }
    sb.append("</b><br>");


    sb.append("Bed Available Ward:<b> ");
    if (bedAvailability != null && bedAvailability.getWard() != null)
    {
        sb.append(bedAvailability.getWard().getName() + "</b>");
    }

    return sb.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String getBedStatusTooltip(PendingEmergencyAdmissionForTrackingFormVo pendingEmergencyAdmission, BedAvailabilityForTrackingVo bedAvailability) 
{
    StringBuffer sb = new StringBuffer(); //wdev-19640

    sb.append("<b>Requested by:</b> ");
    if (bedAvailability != null)
    {
        if (bedAvailability.getRequestedBy() != null)
        {
            if (bedAvailability.getRequestedBy().getName() != null && bedAvailability.getRequestedBy().getName().getSurname() != null)
                sb.append(bedAvailability.getRequestedBy().getName().getSurname()).append(" ");

            if (bedAvailability.getRequestedBy().getName() != null && bedAvailability.getRequestedBy().getName().getForename() != null)
                sb.append(bedAvailability.getRequestedBy().getName().getForename());
        }
    }
    sb.append("<br>");


    sb.append("<b>Decision to Admit Date Time:</b> ");
    if (pendingEmergencyAdmission != null && pendingEmergencyAdmission.getDTADateTime() != null)
    {
        sb.append(pendingEmergencyAdmission.getDTADateTime());
    }
    sb.append("<br>");


    sb.append("<b>Requested Bed Type:</b> ");
    if (pendingEmergencyAdmission != null && pendingEmergencyAdmission.getBedTypeRequested() != null)
    {
        sb.append(pendingEmergencyAdmission.getBedTypeRequested().getText());
    }
    sb.append("<br>");


    sb.append("<b>Hospital:</b> ");
    if (pendingEmergencyAdmission != null && pendingEmergencyAdmission.getHospital() != null)
    {
        sb.append(pendingEmergencyAdmission.getHospital().getName());
    }
    sb.append("<br>");


    sb.append("<b>Ward:</b> ");
    if (pendingEmergencyAdmission != null && pendingEmergencyAdmission.getAllocatedWard() != null)
    {
        sb.append(pendingEmergencyAdmission.getAllocatedWard().getName());
    }
    sb.append("<br><br>");


    sb.append("<b>Bed Available Date Time:</b> ");
    if (bedAvailability != null && bedAvailability.getAvailableDateTime() != null)
    {
        sb.append(bedAvailability.getAvailableDateTime());
    }
    sb.append("<br>");


    sb.append("<b>Bed Available Ward:</b> ");
    if (bedAvailability != null && bedAvailability.getWard() != null)
    {
        sb.append(bedAvailability.getWard().getName());
    }

    return sb.toString();
}