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

项目:AvoinApotti    文件:Logic.java   
private void populateRecordBrowser(CubicleAllocationShortVoCollection tempColl)
{
    if( tempColl == null || tempColl.size() == 0)
        return;

    tempColl.sort(new AllocatedDateComparator(SortOrder.DESCENDING));       
    for(int i = 0; i < tempColl.size();i++)
    {
        CubicleAllocationShortVo tempVo = tempColl.get(i);
        if(tempVo != null)
        {
            String s1 = tempVo.getAllocatedCubicleDateTimeIsNotNull() ? tempVo.getAllocatedCubicleDateTime().toString():"";
            String s2 = tempVo.getCubicleRoomBed() != null ? tempVo.getCubicleRoomBed().getCubicleRoomBedName():"";
            String s3 = (tempVo.getTrackingAreaIsNotNull() && tempVo.getTrackingArea().getAreaDisplayNameIsNotNull()) ? tempVo.getTrackingArea().getAreaDisplayName():"";
            String s4 = tempVo.getAllocatedByIsNotNull() ? tempVo.getAllocatedBy().getName().toString():"";
            String s5 = s1+" - "+s2+" - "+s3+" - "+s4 ;
            form.recbrAllocateCubicle().newRow(tempVo, s5);
        }
    }
    if( form.getLocalContext().getCurrentCubicleAllocationIsNotNull() && form.getLocalContext().getCurrentCubicleAllocation().getID_CubicleAllocationIsNotNull())
        form.recbrAllocateCubicle().setValue(getCunicleShort(tempColl,form.getLocalContext().getCurrentCubicleAllocation()));
    else
        form.recbrAllocateCubicle().setValue(tempColl.get(0));
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    clear();

    //WDEV-20720
    if( form.getGlobalContext().Emergency.getTracking() != null)
        form.getLocalContext().setCurrentTracking(domain.getTracking(form.getGlobalContext().Emergency.getTracking()));

    CubicleAllocationShortVoCollection tempColl = domain.listCubicleAllocationShortVo(form.getGlobalContext().Core.getCurrentCareContext());
    populateRecordBrowser(tempColl);
    if( form.recbrAllocateCubicle().getValue() != null)
        recordBrowserSelectChanged();

    form.setMode(FormMode.VIEW);

}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser(CubicleAllocationShortVoCollection tempColl)
{
    if( tempColl == null || tempColl.size() == 0)
        return;

    tempColl.sort(new AllocatedDateComparator(SortOrder.DESCENDING));       
    for(int i = 0; i < tempColl.size();i++)
    {
        CubicleAllocationShortVo tempVo = tempColl.get(i);
        if(tempVo != null)
        {
            String s1 = tempVo.getAllocatedCubicleDateTimeIsNotNull() ? tempVo.getAllocatedCubicleDateTime().toString():"";
            String s2 = tempVo.getCubicleRoomBed() != null ? tempVo.getCubicleRoomBed().getCubicleRoomBedName():"";
            String s3 = (tempVo.getTrackingAreaIsNotNull() && tempVo.getTrackingArea().getAreaDisplayNameIsNotNull()) ? tempVo.getTrackingArea().getAreaDisplayName():"";
            String s4 = tempVo.getAllocatedByIsNotNull() ? tempVo.getAllocatedBy().getName().toString():"";
            String s5 = s1+" - "+s2+" - "+s3+" - "+s4 ;
            form.recbrAllocateCubicle().newRow(tempVo, s5);
        }
    }
    if( form.getLocalContext().getCurrentCubicleAllocationIsNotNull() && form.getLocalContext().getCurrentCubicleAllocation().getID_CubicleAllocationIsNotNull())
        form.recbrAllocateCubicle().setValue(getCunicleShort(tempColl,form.getLocalContext().getCurrentCubicleAllocation()));
    else
        form.recbrAllocateCubicle().setValue(tempColl.get(0));
}
项目:openmaxims-linux    文件:Logic.java   
private void populateRecordBrowser(CubicleAllocationShortVoCollection tempColl)
{
    if( tempColl == null || tempColl.size() == 0)
        return;

    tempColl.sort(new AllocatedDateComparator(SortOrder.DESCENDING));       
    for(int i = 0; i < tempColl.size();i++)
    {
        CubicleAllocationShortVo tempVo = tempColl.get(i);
        if(tempVo != null)
        {
            String s1 = tempVo.getAllocatedCubicleDateTimeIsNotNull() ? tempVo.getAllocatedCubicleDateTime().toString():"";
            String s2 = tempVo.getCubicleRoomBed() != null ? tempVo.getCubicleRoomBed().getCubicleRoomBedName():"";
            String s3 = (tempVo.getTrackingAreaIsNotNull() && tempVo.getTrackingArea().getAreaDisplayNameIsNotNull()) ? tempVo.getTrackingArea().getAreaDisplayName():"";
            String s4 = tempVo.getAllocatedByIsNotNull() ? tempVo.getAllocatedBy().getName().toString():"";
            String s5 = s1+" - "+s2+" - "+s3+" - "+s4 ;
            form.recbrAllocateCubicle().newRow(tempVo, s5);
        }
    }
    if( form.getLocalContext().getCurrentCubicleAllocationIsNotNull() && form.getLocalContext().getCurrentCubicleAllocation().getID_CubicleAllocationIsNotNull())
        form.recbrAllocateCubicle().setValue(getCunicleShort(tempColl,form.getLocalContext().getCurrentCubicleAllocation()));
    else
        form.recbrAllocateCubicle().setValue(tempColl.get(0));
}
项目:AvoinApotti    文件:Logic.java   
private void open()
{
    clear();
    CubicleAllocationShortVoCollection tempColl = domain.listCubicleAllocationShortVo(form.getGlobalContext().Core.getCurrentCareContext());
    populateRecordBrowser(tempColl);
    if( form.recbrAllocateCubicle().getValue() != null)
        recordBrowserSelectChanged();

    form.setMode(FormMode.VIEW);

}
项目:AvoinApotti    文件:Logic.java   
private CubicleAllocationShortVo getCunicleShort(CubicleAllocationShortVoCollection tempColl,CubicleAllocationVo cubic)
{
    if(tempColl == null || tempColl.size() == 0 )
        return null;
    for(int i = 0; i < tempColl.size();i++)
    {
        CubicleAllocationShortVo tempVo = tempColl.get(i);
        if(tempVo!= null)
        {
            if(cubic.getID_CubicleAllocationIsNotNull() && cubic.getID_CubicleAllocation().equals(tempVo.getID_CubicleAllocation()))
                return tempVo;
        }
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser(CubicleAllocationShortVoCollection tempColl)
{
    if( tempColl == null || tempColl.size() == 0)
        return;

    tempColl.sort(new AllocatedDateComparator(SortOrder.DESCENDING));       
    for(int i = 0; i < tempColl.size();i++)
    {
        CubicleAllocationShortVo tempVo = tempColl.get(i);
        if(tempVo != null)
        {
            String s1 = tempVo.getAllocatedCubicleDateTimeIsNotNull() ? tempVo.getAllocatedCubicleDateTime().toString():"";
            String s2 = tempVo.getCubicleRoomBed() != null ? tempVo.getCubicleRoomBed().getCubicleRoomBedName():"";
            String s3 = (tempVo.getTrackingAreaIsNotNull() && tempVo.getTrackingArea().getAreaDisplayNameIsNotNull()) ? tempVo.getTrackingArea().getAreaDisplayName():"";
            String s4 = tempVo.getAllocatedByIsNotNull() ? tempVo.getAllocatedBy().getName().toString():"";
            String s5 = s1+" - "+s2+" - "+s3+" - "+s4 ;

            //WDEV-20720
            if (form.getLocalContext().getCurrentTracking().getCurrentCubicle()!=null && form.getLocalContext().getCurrentTracking().getCurrentCubicle().getID_CubicleAllocation().equals(tempVo.getID_CubicleAllocation()))
            {
                form.recbrAllocateCubicle().newRow(tempVo, s5, Color.Green);
            }
            else
            {
                form.recbrAllocateCubicle().newRow(tempVo, s5);
            }
        }
    }
    if( form.getLocalContext().getCurrentCubicleAllocationIsNotNull() && form.getLocalContext().getCurrentCubicleAllocation().getID_CubicleAllocationIsNotNull())
        form.recbrAllocateCubicle().setValue(getCunicleShort(tempColl,form.getLocalContext().getCurrentCubicleAllocation()));
    else
        form.recbrAllocateCubicle().setValue(tempColl.get(0));
}
项目:openMAXIMS    文件:Logic.java   
private CubicleAllocationShortVo getCunicleShort(CubicleAllocationShortVoCollection tempColl,CubicleAllocationVo cubic)
{
    if(tempColl == null || tempColl.size() == 0 )
        return null;
    for(int i = 0; i < tempColl.size();i++)
    {
        CubicleAllocationShortVo tempVo = tempColl.get(i);
        if(tempVo!= null)
        {
            if(cubic.getID_CubicleAllocationIsNotNull() && cubic.getID_CubicleAllocation().equals(tempVo.getID_CubicleAllocation()))
                return tempVo;
        }
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    clear();
    CubicleAllocationShortVoCollection tempColl = domain.listCubicleAllocationShortVo(form.getGlobalContext().Core.getCurrentCareContext());
    populateRecordBrowser(tempColl);
    if( form.recbrAllocateCubicle().getValue() != null)
        recordBrowserSelectChanged();

    form.setMode(FormMode.VIEW);

}
项目:openMAXIMS    文件:Logic.java   
private CubicleAllocationShortVo getCunicleShort(CubicleAllocationShortVoCollection tempColl,CubicleAllocationVo cubic)
{
    if(tempColl == null || tempColl.size() == 0 )
        return null;
    for(int i = 0; i < tempColl.size();i++)
    {
        CubicleAllocationShortVo tempVo = tempColl.get(i);
        if(tempVo!= null)
        {
            if(cubic.getID_CubicleAllocationIsNotNull() && cubic.getID_CubicleAllocation().equals(tempVo.getID_CubicleAllocation()))
                return tempVo;
        }
    }
    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void open()
{
    clear();
    CubicleAllocationShortVoCollection tempColl = domain.listCubicleAllocationShortVo(form.getGlobalContext().Core.getCurrentCareContext());
    populateRecordBrowser(tempColl);
    if( form.recbrAllocateCubicle().getValue() != null)
        recordBrowserSelectChanged();

    form.setMode(FormMode.VIEW);

}
项目:openmaxims-linux    文件:Logic.java   
private CubicleAllocationShortVo getCunicleShort(CubicleAllocationShortVoCollection tempColl,CubicleAllocationVo cubic)
{
    if(tempColl == null || tempColl.size() == 0 )
        return null;
    for(int i = 0; i < tempColl.size();i++)
    {
        CubicleAllocationShortVo tempVo = tempColl.get(i);
        if(tempVo!= null)
        {
            if(cubic.getID_CubicleAllocationIsNotNull() && cubic.getID_CubicleAllocation().equals(tempVo.getID_CubicleAllocation()))
                return tempVo;
        }
    }
    return null;
}
项目:AvoinApotti    文件:AllocateCubicleImpl.java   
public ims.emergency.vo.CubicleAllocationShortVoCollection listCubicleAllocationShortVo(ims.core.admin.vo.CareContextRefVo careContextRef)
{
    if( careContextRef == null)
        throw new CodingRuntimeException("Care Context not provided");

    DomainFactory factory = getDomainFactory();

    String hsql = "select c1_1  from CubicleAllocation as c1_1 left join c1_1.attendance as c2_1 where  (c2_1.id = :id)";


    List cubicle = factory.find(hsql, new String[] {"id"}, new Object[] {careContextRef.getID_CareContext()});
    if(cubicle != null && cubicle.size() > 0)
    {
        CubicleAllocationShortVoCollection tempColl = CubicleAllocationShortVoAssembler.createCubicleAllocationShortVoCollectionFromCubicleAllocation(cubicle);
        return tempColl;
    }


    return null;

}
项目:openMAXIMS    文件:AllocateCubicleImpl.java   
public ims.emergency.vo.CubicleAllocationShortVoCollection listCubicleAllocationShortVo(ims.core.admin.vo.CareContextRefVo careContextRef)
{
    if( careContextRef == null)
        throw new CodingRuntimeException("Care Context not provided");

    DomainFactory factory = getDomainFactory();

    String hsql = "select c1_1  from CubicleAllocation as c1_1 left join c1_1.attendance as c2_1 where  (c2_1.id = :id)";


    List cubicle = factory.find(hsql, new String[] {"id"}, new Object[] {careContextRef.getID_CareContext()});
    if(cubicle != null && cubicle.size() > 0)
    {
        CubicleAllocationShortVoCollection tempColl = CubicleAllocationShortVoAssembler.createCubicleAllocationShortVoCollectionFromCubicleAllocation(cubicle);
        return tempColl;
    }


    return null;

}
项目:openMAXIMS    文件:AllocateCubicleImpl.java   
public ims.emergency.vo.CubicleAllocationShortVoCollection listCubicleAllocationShortVo(ims.core.admin.vo.CareContextRefVo careContextRef)
{
    if( careContextRef == null)
        throw new CodingRuntimeException("Care Context not provided");

    DomainFactory factory = getDomainFactory();

    String hsql = "select c1_1  from CubicleAllocation as c1_1 left join c1_1.attendance as c2_1 where  (c2_1.id = :id)";


    List cubicle = factory.find(hsql, new String[] {"id"}, new Object[] {careContextRef.getID_CareContext()});
    if(cubicle != null && cubicle.size() > 0)
    {
        CubicleAllocationShortVoCollection tempColl = CubicleAllocationShortVoAssembler.createCubicleAllocationShortVoCollectionFromCubicleAllocation(cubicle);
        return tempColl;
    }


    return null;

}
项目:openmaxims-linux    文件:AllocateCubicleImpl.java   
public ims.emergency.vo.CubicleAllocationShortVoCollection listCubicleAllocationShortVo(ims.core.admin.vo.CareContextRefVo careContextRef)
{
    if( careContextRef == null)
        throw new CodingRuntimeException("Care Context not provided");

    DomainFactory factory = getDomainFactory();

    String hsql = "select c1_1  from CubicleAllocation as c1_1 left join c1_1.attendance as c2_1 where  (c2_1.id = :id)";


    List cubicle = factory.find(hsql, new String[] {"id"}, new Object[] {careContextRef.getID_CareContext()});
    if(cubicle != null && cubicle.size() > 0)
    {
        CubicleAllocationShortVoCollection tempColl = CubicleAllocationShortVoAssembler.createCubicleAllocationShortVoCollectionFromCubicleAllocation(cubicle);
        return tempColl;
    }


    return null;

}