Java 类ims.core.vo.domain.FloorBedSpaceLayoutVoAssembler 实例源码

项目:AvoinApotti    文件:WardViewImpl.java   
public FloorBedSpaceLayoutVo listLayoutForCurrentBay(ILocation location)
{
        if(location == null )
        throw new DomainRuntimeException("Invalid ILocation");

    String hql = "select layout from BayConfig as bc left join bc.bay as bay left join bc.floorBedSpaceLayout as layout where layout.status.id = " + PreActiveActiveInactiveStatus.ACTIVE.getID() +  " and  bay.id = " + location.getID();
    List layout = getDomainFactory().find(hql);

    FloorBedSpaceLayoutVoCollection voColl = FloorBedSpaceLayoutVoAssembler.createFloorBedSpaceLayoutVoCollectionFromFloorBedSpaceLayout(layout);

    if (voColl != null &&
            voColl.size() > 0)
        return voColl.get(voColl.size()-1);     

    return null;
}
项目:openMAXIMS    文件:AllocateBedsPriorAdmissionImpl.java   
public FloorBedSpaceLayoutVo listLayoutForCurrentBay(ILocation selectedBay)
{
    if(selectedBay == null )
        throw new DomainRuntimeException("Invalid ILocation");

    String hql = "select layout from BayConfig as bc left join bc.bay as bay left join bc.floorBedSpaceLayout as layout where layout.status.id = " + PreActiveActiveInactiveStatus.ACTIVE.getID() +  " and  bay.id = " + selectedBay.getID();
    List layout = getDomainFactory().find(hql);

    FloorBedSpaceLayoutVoCollection voColl = FloorBedSpaceLayoutVoAssembler.createFloorBedSpaceLayoutVoCollectionFromFloorBedSpaceLayout(layout);

    if (voColl != null &&
            voColl.size() > 0)
        return voColl.get(voColl.size()-1);     

    return null;
}
项目:openMAXIMS    文件:WardViewImpl.java   
public FloorBedSpaceLayoutVo listLayoutForCurrentBay(ILocation location)
{
        if(location == null )
        throw new DomainRuntimeException("Invalid ILocation");

    String hql = "select layout from BayConfig as bc left join bc.bay as bay left join bc.floorBedSpaceLayout as layout where layout.status.id = " + PreActiveActiveInactiveStatus.ACTIVE.getID() +  " and  bay.id = " + location.getID();
    List<?> layout = getDomainFactory().find(hql);

    FloorBedSpaceLayoutVoCollection voColl = FloorBedSpaceLayoutVoAssembler.createFloorBedSpaceLayoutVoCollectionFromFloorBedSpaceLayout(layout);

    if (voColl != null &&
            voColl.size() > 0)
        return voColl.get(voColl.size()-1);     

    return null;
}
项目:openMAXIMS    文件:WardViewImpl.java   
public FloorBedSpaceLayoutVo listLayoutForCurrentBay(ILocation location)
{
        if(location == null )
        throw new DomainRuntimeException("Invalid ILocation");

    String hql = "select layout from BayConfig as bc left join bc.bay as bay left join bc.floorBedSpaceLayout as layout where layout.status.id = " + PreActiveActiveInactiveStatus.ACTIVE.getID() +  " and  bay.id = " + location.getID();
    List layout = getDomainFactory().find(hql);

    FloorBedSpaceLayoutVoCollection voColl = FloorBedSpaceLayoutVoAssembler.createFloorBedSpaceLayoutVoCollectionFromFloorBedSpaceLayout(layout);

    if (voColl != null &&
            voColl.size() > 0)
        return voColl.get(voColl.size()-1);     

    return null;
}
项目:openmaxims-linux    文件:WardViewImpl.java   
public FloorBedSpaceLayoutVo listLayoutForCurrentBay(ILocation location)
{
        if(location == null )
        throw new DomainRuntimeException("Invalid ILocation");

    String hql = "select layout from BayConfig as bc left join bc.bay as bay left join bc.floorBedSpaceLayout as layout where layout.status.id = " + PreActiveActiveInactiveStatus.ACTIVE.getID() +  " and  bay.id = " + location.getID();
    List layout = getDomainFactory().find(hql);

    FloorBedSpaceLayoutVoCollection voColl = FloorBedSpaceLayoutVoAssembler.createFloorBedSpaceLayoutVoCollectionFromFloorBedSpaceLayout(layout);

    if (voColl != null &&
            voColl.size() > 0)
        return voColl.get(voColl.size()-1);     

    return null;
}
项目:AvoinApotti    文件:BayBedSpaceLayoutDesignerImpl.java   
public ims.core.vo.FloorBedSpaceLayoutVo get(ims.core.layout.vo.FloorBedSpaceLayoutRefVo id)
{
    if(id == null)
        throw new DomainRuntimeException("Invalid Floor Bed Space Layout");

    return FloorBedSpaceLayoutVoAssembler.create((FloorBedSpaceLayout)getDomainFactory().getDomainObject(id));
}
项目:AvoinApotti    文件:WardViewImpl.java   
public ims.core.vo.FloorBedSpaceLayoutVo get(ims.core.layout.vo.FloorBedSpaceLayoutRefVo id)
{
    if(id == null)
        throw new DomainRuntimeException("Invalid Floor Bed Layout");

    return FloorBedSpaceLayoutVoAssembler.create((FloorBedSpaceLayout)getDomainFactory().getDomainObject(id));
}
项目:openMAXIMS    文件:BayBedSpaceLayoutDesignerImpl.java   
public ims.core.vo.FloorBedSpaceLayoutVo get(ims.core.layout.vo.FloorBedSpaceLayoutRefVo id)
{
    if(id == null)
        throw new DomainRuntimeException("Invalid Floor Bed Space Layout");

    return FloorBedSpaceLayoutVoAssembler.create((FloorBedSpaceLayout)getDomainFactory().getDomainObject(id));
}
项目:openMAXIMS    文件:WardViewImpl.java   
public ims.core.vo.FloorBedSpaceLayoutVo get(ims.core.layout.vo.FloorBedSpaceLayoutRefVo id)
{
    if(id == null)
        throw new DomainRuntimeException("Invalid Floor Bed Layout");

    return FloorBedSpaceLayoutVoAssembler.create((FloorBedSpaceLayout)getDomainFactory().getDomainObject(id));
}
项目:openMAXIMS    文件:BayBedSpaceLayoutDesignerImpl.java   
public ims.core.vo.FloorBedSpaceLayoutVo get(ims.core.layout.vo.FloorBedSpaceLayoutRefVo id)
{
    if(id == null)
        throw new DomainRuntimeException("Invalid Floor Bed Space Layout");

    return FloorBedSpaceLayoutVoAssembler.create((FloorBedSpaceLayout)getDomainFactory().getDomainObject(id));
}
项目:openMAXIMS    文件:WardViewImpl.java   
public ims.core.vo.FloorBedSpaceLayoutVo get(ims.core.layout.vo.FloorBedSpaceLayoutRefVo id)
{
    if(id == null)
        throw new DomainRuntimeException("Invalid Floor Bed Layout");

    return FloorBedSpaceLayoutVoAssembler.create((FloorBedSpaceLayout)getDomainFactory().getDomainObject(id));
}
项目:openmaxims-linux    文件:BayBedSpaceLayoutDesignerImpl.java   
public ims.core.vo.FloorBedSpaceLayoutVo get(ims.core.layout.vo.FloorBedSpaceLayoutRefVo id)
{
    if(id == null)
        throw new DomainRuntimeException("Invalid Floor Bed Space Layout");

    return FloorBedSpaceLayoutVoAssembler.create((FloorBedSpaceLayout)getDomainFactory().getDomainObject(id));
}
项目:openmaxims-linux    文件:WardViewImpl.java   
public ims.core.vo.FloorBedSpaceLayoutVo get(ims.core.layout.vo.FloorBedSpaceLayoutRefVo id)
{
    if(id == null)
        throw new DomainRuntimeException("Invalid Floor Bed Layout");

    return FloorBedSpaceLayoutVoAssembler.create((FloorBedSpaceLayout)getDomainFactory().getDomainObject(id));
}