Java 类ims.ocrr.vo.PhlebotomyRoundShortVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void listRoundsByDate(Date date)
{
    form.dyngrdCollect().getRows().clear();
    form.cmbRound().clear();

    form.getLocalContext().setSelectedPatient(null);
    form.getLocalContext().setSelectedRound(null);

    if(date == null)
        return;

    PhlebotomyRoundShortVoCollection list = domain.listRoundsByDate(date);

    for (int i = 0; i < list.size(); i++)
    {
        PhlebotomyRoundShortVo item = list.get(i);

        StringBuffer sb = new StringBuffer();

        sb.append(item.getRoundToCollect().getText());
        sb.append(" - ");
        if(item.getCollectorIsNotNull() && item.getCollector().getName() != null)
        {
            if (item.getCollector().getName().getForename()!=null)//WDEV-12958
            {
                sb.append(item.getCollector().getName().getForename());
                sb.append(" ");
            }
            sb.append(item.getCollector().getName().getSurname());
        }
        for (int j = 0; j < item.getWards().size(); j++)
        {
            sb.append(", ");    
            sb.append(item.getWards().get(j).getName());
        }

        form.cmbRound().newRow(item, sb.toString());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void listRoundsByDate(Date date)
{
    form.dyngrdCollect().getRows().clear();
    form.cmbRound().clear();

    form.getLocalContext().setSelectedPatient(null);
    form.getLocalContext().setSelectedRound(null);
    form.chkSelectAll().setValue(false);

    if(date == null)
        return;

    PhlebotomyRoundShortVoCollection list = domain.listRoundsByDate(date);

    for (int i = 0; i < list.size(); i++)
    {
        PhlebotomyRoundShortVo item = list.get(i);

        StringBuffer sb = new StringBuffer();

        sb.append(item.getRoundToCollect().getText());
        sb.append(" - ");
        if(item.getCollectorIsNotNull() && item.getCollector().getName() != null)
        {
            if (item.getCollector().getName().getForename()!=null)//WDEV-12958
            {
                sb.append(item.getCollector().getName().getForename());
                sb.append(" ");
            }
            sb.append(item.getCollector().getName().getSurname());
        }
        for (int j = 0; j < item.getWards().size(); j++)
        {
            sb.append(", ");    
            sb.append(item.getWards().get(j).getName());
        }

        form.cmbRound().newRow(item, sb.toString());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void listRoundsByDate(Date date)
{
    form.dyngrdCollect().getRows().clear();
    form.cmbRound().clear();

    form.getLocalContext().setSelectedPatient(null);
    form.getLocalContext().setSelectedRound(null);

    if(date == null)
        return;

    PhlebotomyRoundShortVoCollection list = domain.listRoundsByDate(date);

    for (int i = 0; i < list.size(); i++)
    {
        PhlebotomyRoundShortVo item = list.get(i);

        StringBuffer sb = new StringBuffer();

        sb.append(item.getRoundToCollect().getText());
        sb.append(" - ");
        if(item.getCollectorIsNotNull() && item.getCollector().getName() != null)
        {
            if (item.getCollector().getName().getForename()!=null)//WDEV-12958
            {
                sb.append(item.getCollector().getName().getForename());
                sb.append(" ");
            }
            sb.append(item.getCollector().getName().getSurname());
        }
        for (int j = 0; j < item.getWards().size(); j++)
        {
            sb.append(", ");    
            sb.append(item.getWards().get(j).getName());
        }

        form.cmbRound().newRow(item, sb.toString());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void listRoundsByDate(Date date)
{
    form.dyngrdCollect().getRows().clear();
    form.cmbRound().clear();

    form.getLocalContext().setSelectedPatient(null);
    form.getLocalContext().setSelectedRound(null);

    if(date == null)
        return;

    PhlebotomyRoundShortVoCollection list = domain.listRoundsByDate(date);

    for (int i = 0; i < list.size(); i++)
    {
        PhlebotomyRoundShortVo item = list.get(i);

        StringBuffer sb = new StringBuffer();

        sb.append(item.getRoundToCollect().getText());
        sb.append(" - ");
        if(item.getCollectorIsNotNull() && item.getCollector().getName() != null)
        {
            if (item.getCollector().getName().getForename()!=null)//WDEV-12958
            {
                sb.append(item.getCollector().getName().getForename());
                sb.append(" ");
            }
            sb.append(item.getCollector().getName().getSurname());
        }
        for (int j = 0; j < item.getWards().size(); j++)
        {
            sb.append(", ");    
            sb.append(item.getWards().get(j).getName());
        }

        form.cmbRound().newRow(item, sb.toString());
    }
}