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

项目:AvoinApotti    文件:Logic.java   
private void populateRecordBrowser()
{
    SeenByHCPVoCollection allSennByHcp = domain.getAllSeenByHCP(form.getGlobalContext().Core.getCurrentCareContext());

    form.recbrSeenByHCP().clear();

    if (allSennByHcp == null || allSennByHcp.size() == 0)
    {
        return;
    }

    for (int i = 0; i < allSennByHcp.size(); i++)
    {
        SeenByHCPVo seenByHcp = allSennByHcp.get(i);

        if (seenByHcp == null)
            return;

        StringBuffer string = new StringBuffer();

        if (seenByHcp.getAllocatedDateTimeIsNotNull())
        {
            string.append("Allocated on: "+seenByHcp.getAllocatedDateTime());
        }

        if (seenByHcp.getAllocatedMedicIsNotNull())
        {
            string.append(" - "+seenByHcp.getAllocatedMedic().getName());
        }

        if (seenByHcp.getAllocatedNurseIsNotNull())
        {
            string.append(" - "+seenByHcp.getAllocatedNurse().getName());
        }

        if (seenByHcp.getSeenDateTimeIsNotNull())
        {
            string.append(" - Seen on: "+seenByHcp.getSeenDateTime());
        }

        if (seenByHcp.getCompletedDateTimeIsNotNull())
        {
            string.append(" - Completed on: "+seenByHcp.getCompletedDateTime());
        }

        //WDEV-17239
        if (i==0)
        {
            form.recbrSeenByHCP().newRow(i, seenByHcp, string.toString(),Color.Green);
        }
        else 
        {
            form.recbrSeenByHCP().newRow(i, seenByHcp, string.toString());
        }

    }

    if (allSennByHcp.size() > 0 && form.getLocalContext().getselectedSeenByHCP() == null)
    {
        form.getLocalContext().setselectedSeenByHCP(allSennByHcp.get(0));
    }

    form.recbrSeenByHCP().setValue(form.getLocalContext().getselectedSeenByHCP());  
}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser()
{
    SeenByHCPVoCollection allSennByHcp = domain.getAllSeenByHCP(form.getGlobalContext().Core.getCurrentCareContext());

    form.recbrSeenByHCP().clear();

    if (allSennByHcp == null || allSennByHcp.size() == 0)
    {
        return;
    }

    for (int i = 0; i < allSennByHcp.size(); i++)
    {
        SeenByHCPVo seenByHcp = allSennByHcp.get(i);

        if (seenByHcp == null)
            return;

        StringBuffer string = new StringBuffer();

        if (seenByHcp.getAllocatedDateTimeIsNotNull())
        {
            string.append("Allocated on: "+seenByHcp.getAllocatedDateTime());
        }

        if (seenByHcp.getAllocatedMedicIsNotNull())
        {
            string.append(" - "+seenByHcp.getAllocatedMedic().getName());
        }

        if (seenByHcp.getAllocatedNurseIsNotNull())
        {
            string.append(" - "+seenByHcp.getAllocatedNurse().getName());
        }

        if (seenByHcp.getSeenDateTimeIsNotNull())
        {
            string.append(" - Seen on: "+seenByHcp.getSeenDateTime());
        }

        if (seenByHcp.getCompletedDateTimeIsNotNull())
        {
            string.append(" - Completed on: "+seenByHcp.getCompletedDateTime());
        }

        //WDEV-17239
        if (i==0)
        {
            form.recbrSeenByHCP().newRow(i, seenByHcp, string.toString(),Color.Green);
        }
        else 
        {
            form.recbrSeenByHCP().newRow(i, seenByHcp, string.toString());
        }

    }

    if (allSennByHcp.size() > 0 && form.getLocalContext().getselectedSeenByHCP() == null)
    {
        form.getLocalContext().setselectedSeenByHCP(allSennByHcp.get(0));
    }

    form.recbrSeenByHCP().setValue(form.getLocalContext().getselectedSeenByHCP());  
}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser()
{
    SeenByHCPVoCollection allSennByHcp = domain.getAllSeenByHCP(form.getGlobalContext().Core.getCurrentCareContext());

    form.recbrSeenByHCP().clear();

    if (allSennByHcp == null || allSennByHcp.size() == 0)
    {
        return;
    }

    for (int i = 0; i < allSennByHcp.size(); i++)
    {
        SeenByHCPVo seenByHcp = allSennByHcp.get(i);

        if (seenByHcp == null)
            return;

        StringBuffer string = new StringBuffer();

        if (seenByHcp.getAllocatedDateTimeIsNotNull())
        {
            string.append("Allocated on: "+seenByHcp.getAllocatedDateTime());
        }

        if (seenByHcp.getAllocatedMedicIsNotNull())
        {
            string.append(" - "+seenByHcp.getAllocatedMedic().getName());
        }

        if (seenByHcp.getAllocatedNurseIsNotNull())
        {
            string.append(" - "+seenByHcp.getAllocatedNurse().getName());
        }

        if (seenByHcp.getSeenDateTimeIsNotNull())
        {
            string.append(" - Seen on: "+seenByHcp.getSeenDateTime());
        }

        if (seenByHcp.getCompletedDateTimeIsNotNull())
        {
            string.append(" - Completed on: "+seenByHcp.getCompletedDateTime());
        }

        //WDEV-17239
        if (i==0)
        {
            form.recbrSeenByHCP().newRow(i, seenByHcp, string.toString(),Color.Green);
        }
        else 
        {
            form.recbrSeenByHCP().newRow(i, seenByHcp, string.toString());
        }

    }

    if (allSennByHcp.size() > 0 && form.getLocalContext().getselectedSeenByHCP() == null)
    {
        form.getLocalContext().setselectedSeenByHCP(allSennByHcp.get(0));
    }

    form.recbrSeenByHCP().setValue(form.getLocalContext().getselectedSeenByHCP());  
}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser()
{
    SeenByHCPVoCollection allSennByHcp = domain.getAllSeenByHCP(form.getGlobalContext().Core.getCurrentCareContext());

    form.recbrSeenByHCP().clear();

    if (allSennByHcp == null || allSennByHcp.size() == 0)
    {
        return;
    }

    for (int i = 0; i < allSennByHcp.size(); i++)
    {
        SeenByHCPVo seenByHcp = allSennByHcp.get(i);

        if (seenByHcp == null)
            return;

        StringBuffer string = new StringBuffer();

        if (seenByHcp.getAllocatedDateTimeIsNotNull())
        {
            string.append("Allocated on: "+seenByHcp.getAllocatedDateTime());
        }

        if (seenByHcp.getAllocatedMedicIsNotNull())
        {
            string.append(" - "+seenByHcp.getAllocatedMedic().getName());
        }

        if (seenByHcp.getAllocatedNurseIsNotNull())
        {
            string.append(" - "+seenByHcp.getAllocatedNurse().getName());
        }

        if (seenByHcp.getSeenDateTimeIsNotNull())
        {
            string.append(" - Seen on: "+seenByHcp.getSeenDateTime());
        }

        if (seenByHcp.getCompletedDateTimeIsNotNull())
        {
            string.append(" - Completed on: "+seenByHcp.getCompletedDateTime());
        }

        //WDEV-17239
        if (i==0)
        {
            form.recbrSeenByHCP().newRow(i, seenByHcp, string.toString(),Color.Green);
        }
        else 
        {
            form.recbrSeenByHCP().newRow(i, seenByHcp, string.toString());
        }

    }

    if (allSennByHcp.size() > 0 && form.getLocalContext().getselectedSeenByHCP() == null)
    {
        form.getLocalContext().setselectedSeenByHCP(allSennByHcp.get(0));
    }

    form.recbrSeenByHCP().setValue(form.getLocalContext().getselectedSeenByHCP());  
}
项目:openmaxims-linux    文件:Logic.java   
private void populateRecordBrowser()
{
    SeenByHCPVoCollection allSennByHcp = domain.getAllSeenByHCP(form.getGlobalContext().Core.getCurrentCareContext());

    form.recbrSeenByHCP().clear();

    if (allSennByHcp == null || allSennByHcp.size() == 0)
    {
        return;
    }

    for (int i = 0; i < allSennByHcp.size(); i++)
    {
        SeenByHCPVo seenByHcp = allSennByHcp.get(i);

        if (seenByHcp == null)
            return;

        StringBuffer string = new StringBuffer();

        if (seenByHcp.getAllocatedDateTimeIsNotNull())
        {
            string.append("Allocated on: "+seenByHcp.getAllocatedDateTime());
        }

        if (seenByHcp.getAllocatedMedicIsNotNull())
        {
            string.append(" - "+seenByHcp.getAllocatedMedic().getName());
        }

        if (seenByHcp.getAllocatedNurseIsNotNull())
        {
            string.append(" - "+seenByHcp.getAllocatedNurse().getName());
        }

        if (seenByHcp.getSeenDateTimeIsNotNull())
        {
            string.append(" - Seen on: "+seenByHcp.getSeenDateTime());
        }

        if (seenByHcp.getCompletedDateTimeIsNotNull())
        {
            string.append(" - Completed on: "+seenByHcp.getCompletedDateTime());
        }

        //WDEV-17239
        if (i==0)
        {
            form.recbrSeenByHCP().newRow(i, seenByHcp, string.toString(),Color.Green);
        }
        else 
        {
            form.recbrSeenByHCP().newRow(i, seenByHcp, string.toString());
        }

    }

    if (allSennByHcp.size() > 0 && form.getLocalContext().getselectedSeenByHCP() == null)
    {
        form.getLocalContext().setselectedSeenByHCP(allSennByHcp.get(0));
    }

    form.recbrSeenByHCP().setValue(form.getLocalContext().getselectedSeenByHCP());  
}