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

项目:AvoinApotti    文件:Logic.java   
private String getClosedRoundsMessage()
{
    StringBuffer message = new StringBuffer();
    PhlebotomyRoundShortVoCollection voCollClosedRounds = form.getLocalContext().getClosedRounds();
    if (voCollClosedRounds != null && voCollClosedRounds.size() > 0)
    {
        message.append("You cannot place this order as the following inpatient phlebotomy rounds are closed: ");
        for (int i = 0; i < voCollClosedRounds.size(); i++)
        {
            message.append(voCollClosedRounds.get(i).getDate().toString());
            message.append("  ");
            message.append(voCollClosedRounds.get(i).getRoundToCollect().getText());
            if (voCollClosedRounds.size() - i == 2)
            {
                message.append("\n");
            }
        }
    }
    return message.length() > 0 ? message.toString() : null;
}
项目:openMAXIMS    文件:Logic.java   
private String getClosedRoundsMessage()
{
    StringBuffer message = new StringBuffer();
    PhlebotomyRoundShortVoCollection voCollClosedRounds = form.getLocalContext().getClosedRounds();
    if (voCollClosedRounds != null && voCollClosedRounds.size() > 0)
    {
        message.append("You cannot place this order as the following inpatient phlebotomy rounds are closed: ");
        for (int i = 0; i < voCollClosedRounds.size(); i++)
        {
            message.append(voCollClosedRounds.get(i).getDate().toString());
            message.append("  ");
            message.append(voCollClosedRounds.get(i).getRoundToCollect().getText());
            if (voCollClosedRounds.size() - i == 2)
            {
                message.append("\n");
            }
        }
    }
    return message.length() > 0 ? message.toString() : null;
}
项目:openMAXIMS    文件:Logic.java   
private String getClosedRoundsMessage()
{
    StringBuffer message = new StringBuffer();
    PhlebotomyRoundShortVoCollection voCollClosedRounds = form.getLocalContext().getClosedRounds();
    if (voCollClosedRounds != null && voCollClosedRounds.size() > 0)
    {
        message.append("You cannot place this order as the following inpatient phlebotomy rounds are closed: ");
        for (int i = 0; i < voCollClosedRounds.size(); i++)
        {
            message.append(voCollClosedRounds.get(i).getDate().toString());
            message.append("  ");
            message.append(voCollClosedRounds.get(i).getRoundToCollect().getText());
            if (voCollClosedRounds.size() - i == 2)
            {
                message.append("\n");
            }
        }
    }
    return message.length() > 0 ? message.toString() : null;
}
项目:openmaxims-linux    文件:Logic.java   
private String getClosedRoundsMessage()
{
    StringBuffer message = new StringBuffer();
    PhlebotomyRoundShortVoCollection voCollClosedRounds = form.getLocalContext().getClosedRounds();
    if (voCollClosedRounds != null && voCollClosedRounds.size() > 0)
    {
        message.append("You cannot place this order as the following inpatient phlebotomy rounds are closed: ");
        for (int i = 0; i < voCollClosedRounds.size(); i++)
        {
            message.append(voCollClosedRounds.get(i).getDate().toString());
            message.append("  ");
            message.append(voCollClosedRounds.get(i).getRoundToCollect().getText());
            if (voCollClosedRounds.size() - i == 2)
            {
                message.append("\n");
            }
        }
    }
    return message.length() > 0 ? message.toString() : null;
}
项目: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());
    }
}
项目:AvoinApotti    文件:Logic.java   
private String getClosedRoundsMessage(SpecimenWorkListItemListVo voItem)
{
    LocationRefVo ward = null;
    if(voItem != null && voItem.getSpecimenIsNotNull() && voItem.getSpecimen().getOrderIsNotNull() && voItem.getSpecimen().getOrder().getPatientIsNotNull())
        ward = voItem.getSpecimen().getOrder().getPatient().getWard();
    //build up a list of closed rounds
    if(ward != null)
    {
        PhlebotomyRoundShortVoCollection voCollClosedRounds = domain.listClosedRounds(form.dteDate().getValue(), form.cmbRound().getValue(), ward );
        StringBuffer message = new StringBuffer();
        if (voCollClosedRounds != null && voCollClosedRounds.size() > 0)
        {
            message.append("You cannot place this order as the following inpatient phlebotomy rounds are closed: ");
            for (int i = 0; i < voCollClosedRounds.size(); i++)
            {
                message.append(voCollClosedRounds.get(i).getDate().toString());
                message.append("  ");
                message.append(voCollClosedRounds.get(i).getRoundToCollect().getText());
                if (voCollClosedRounds.size() - i == 2)
                {
                    message.append("\n");
                }
            }
        }
        return message.length() > 0 ? message.toString() : null;
    }

    return null;
}
项目:AvoinApotti    文件:MyOrderImpl.java   
public PhlebotomyRoundShortVoCollection listClosedRounds(Date date, SpecimenCollectionTime round, LocationRefVo ward)
{
    if (date == null || round == null || ward == null)
        return null;

    DomainFactory factory = getDomainFactory();

    String hql = "select pRound from PhlebotomyRound" + " as pRound left join pRound.wards as ward where pRound.date = :date and pRound.roundToCollect = :round and ward.id = :wardId";

    List items = factory.find(hql, new String[]{"date", "round", "wardId"}, new Object[]{date.getDate(), getDomLookup(round), ward.getID_Location()});
    if (items != null && items.size() > 0)
        return PhlebotomyRoundShortVoAssembler.createPhlebotomyRoundShortVoCollectionFromPhlebotomyRound(items);

    return null;
}
项目: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 String getClosedRoundsMessage(SpecimenWorkListItemListVo voItem)
{
    LocationRefVo ward = null;
    if(voItem != null && voItem.getSpecimenIsNotNull() && voItem.getSpecimen().getOrderIsNotNull() && voItem.getSpecimen().getOrder().getPatientIsNotNull())
        ward = voItem.getSpecimen().getOrder().getPatient().getWard();
    //build up a list of closed rounds
    if(ward != null)
    {
        PhlebotomyRoundShortVoCollection voCollClosedRounds = domain.listClosedRounds(form.dteDate().getValue(), form.cmbRound().getValue(), ward );
        StringBuffer message = new StringBuffer();
        if (voCollClosedRounds != null && voCollClosedRounds.size() > 0)
        {
            message.append("You cannot place this order as the following inpatient phlebotomy rounds are closed: ");
            for (int i = 0; i < voCollClosedRounds.size(); i++)
            {
                message.append(voCollClosedRounds.get(i).getDate().toString());
                message.append("  ");
                message.append(voCollClosedRounds.get(i).getRoundToCollect().getText());
                if (voCollClosedRounds.size() - i == 2)
                {
                    message.append("\n");
                }
            }
        }
        return message.length() > 0 ? message.toString() : null;
    }

    return null;
}
项目:openMAXIMS    文件:MyOrderImpl.java   
public PhlebotomyRoundShortVoCollection listClosedRounds(Date date, SpecimenCollectionTime round, LocationRefVo ward)
{
    if (date == null || round == null || ward == null)
        return null;

    DomainFactory factory = getDomainFactory();

    String hql = "select pRound from PhlebotomyRound" + " as pRound left join pRound.wards as ward where pRound.date = :date and pRound.roundToCollect = :round and ward.id = :wardId";

    List items = factory.find(hql, new String[]{"date", "round", "wardId"}, new Object[]{date.getDate(), getDomLookup(round), ward.getID_Location()});
    if (items != null && items.size() > 0)
        return PhlebotomyRoundShortVoAssembler.createPhlebotomyRoundShortVoCollectionFromPhlebotomyRound(items);

    return null;
}
项目: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    文件:Logic.java   
private String getClosedRoundsMessage(SpecimenWorkListItemListVo voItem)
{
    LocationRefVo ward = null;
    if(voItem != null && voItem.getSpecimenIsNotNull() && voItem.getSpecimen().getOrderIsNotNull() && voItem.getSpecimen().getOrder().getPatientIsNotNull())
        ward = voItem.getSpecimen().getOrder().getPatient().getWard();
    //build up a list of closed rounds
    if(ward != null)
    {
        PhlebotomyRoundShortVoCollection voCollClosedRounds = domain.listClosedRounds(form.dteDate().getValue(), form.cmbRound().getValue(), ward );
        StringBuffer message = new StringBuffer();
        if (voCollClosedRounds != null && voCollClosedRounds.size() > 0)
        {
            message.append("You cannot place this order as the following inpatient phlebotomy rounds are closed: ");
            for (int i = 0; i < voCollClosedRounds.size(); i++)
            {
                message.append(voCollClosedRounds.get(i).getDate().toString());
                message.append("  ");
                message.append(voCollClosedRounds.get(i).getRoundToCollect().getText());
                if (voCollClosedRounds.size() - i == 2)
                {
                    message.append("\n");
                }
            }
        }
        return message.length() > 0 ? message.toString() : null;
    }

    return null;
}
项目:openMAXIMS    文件:MyOrderImpl.java   
public PhlebotomyRoundShortVoCollection listClosedRounds(Date date, SpecimenCollectionTime round, LocationRefVo ward)
{
    if (date == null || round == null || ward == null)
        return null;

    DomainFactory factory = getDomainFactory();

    String hql = "select pRound from PhlebotomyRound" + " as pRound left join pRound.wards as ward where pRound.date = :date and pRound.roundToCollect = :round and ward.id = :wardId";

    List items = factory.find(hql, new String[]{"date", "round", "wardId"}, new Object[]{date.getDate(), getDomLookup(round), ward.getID_Location()});
    if (items != null && items.size() > 0)
        return PhlebotomyRoundShortVoAssembler.createPhlebotomyRoundShortVoCollectionFromPhlebotomyRound(items);

    return null;
}
项目: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());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private String getClosedRoundsMessage(SpecimenWorkListItemListVo voItem)
{
    LocationRefVo ward = null;
    if(voItem != null && voItem.getSpecimenIsNotNull() && voItem.getSpecimen().getOrderIsNotNull() && voItem.getSpecimen().getOrder().getPatientIsNotNull())
        ward = voItem.getSpecimen().getOrder().getPatient().getWard();
    //build up a list of closed rounds
    if(ward != null)
    {
        PhlebotomyRoundShortVoCollection voCollClosedRounds = domain.listClosedRounds(form.dteDate().getValue(), form.cmbRound().getValue(), ward );
        StringBuffer message = new StringBuffer();
        if (voCollClosedRounds != null && voCollClosedRounds.size() > 0)
        {
            message.append("You cannot place this order as the following inpatient phlebotomy rounds are closed: ");
            for (int i = 0; i < voCollClosedRounds.size(); i++)
            {
                message.append(voCollClosedRounds.get(i).getDate().toString());
                message.append("  ");
                message.append(voCollClosedRounds.get(i).getRoundToCollect().getText());
                if (voCollClosedRounds.size() - i == 2)
                {
                    message.append("\n");
                }
            }
        }
        return message.length() > 0 ? message.toString() : null;
    }

    return null;
}
项目:openmaxims-linux    文件:MyOrderImpl.java   
public PhlebotomyRoundShortVoCollection listClosedRounds(Date date, SpecimenCollectionTime round, LocationRefVo ward)
{
    if (date == null || round == null || ward == null)
        return null;

    DomainFactory factory = getDomainFactory();

    String hql = "select pRound from PhlebotomyRound" + " as pRound left join pRound.wards as ward where pRound.date = :date and pRound.roundToCollect = :round and ward.id = :wardId";

    List items = factory.find(hql, new String[]{"date", "round", "wardId"}, new Object[]{date.getDate(), getDomLookup(round), ward.getID_Location()});
    if (items != null && items.size() > 0)
        return PhlebotomyRoundShortVoAssembler.createPhlebotomyRoundShortVoCollectionFromPhlebotomyRound(items);

    return null;
}
项目:AvoinApotti    文件:WardSpecimenMoveToImpl.java   
public PhlebotomyRoundShortVoCollection listClosedRounds(Date date, SpecimenCollectionTime round, LocationRefVo ward)
{
    MyOrder myOrderImpl = (MyOrder) getDomainImpl(MyOrderImpl.class);
    return myOrderImpl.listClosedRounds(date, round, ward);

}
项目:openMAXIMS    文件:WardSpecimenMoveToImpl.java   
public PhlebotomyRoundShortVoCollection listClosedRounds(Date date, SpecimenCollectionTime round, LocationRefVo ward)
{
    MyOrder myOrderImpl = (MyOrder) getDomainImpl(MyOrderImpl.class);
    return myOrderImpl.listClosedRounds(date, round, ward);

}
项目:openMAXIMS    文件:WardSpecimenMoveToImpl.java   
public PhlebotomyRoundShortVoCollection listClosedRounds(Date date, SpecimenCollectionTime round, LocationRefVo ward)
{
    MyOrder myOrderImpl = (MyOrder) getDomainImpl(MyOrderImpl.class);
    return myOrderImpl.listClosedRounds(date, round, ward);

}
项目:openmaxims-linux    文件:WardSpecimenMoveToImpl.java   
public PhlebotomyRoundShortVoCollection listClosedRounds(Date date, SpecimenCollectionTime round, LocationRefVo ward)
{
    MyOrder myOrderImpl = (MyOrder) getDomainImpl(MyOrderImpl.class);
    return myOrderImpl.listClosedRounds(date, round, ward);

}