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

项目:AvoinApotti    文件:TrackingConfigurationImpl.java   
public CubicleAllocationVoCollection getAllocationCubicle(TrackingCubicleRoomBedRefVo trackcubId)
{
    if( trackcubId == null)
        return null;
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append(" select c1_1 from CubicleAllocation as c1_1 left join c1_1.cubicleRoomBed as t1_1 where (t1_1.id = :trackcubid)"); 
    List<?> trackingList = factory.find(hql.toString(), new String[]{"trackcubid"}, new Object[]{trackcubId.getID_TrackingCubicleRoomBed()});

    if( trackingList != null && trackingList.size() > 0)
    {
        CubicleAllocationVoCollection tempColl = CubicleAllocationVoAssembler.createCubicleAllocationVoCollectionFromCubicleAllocation(trackingList);
        return  tempColl;
    }



    return null;
}
项目:AvoinApotti    文件:CubiclesRoomsBedsCCImpl.java   
public CubicleAllocationVoCollection getAllcotiobCubilce(TrackingCubicleRoomBedRefVo trackCubId)
{
    if( trackCubId == null)
        return null;
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append(" select c1_1 from CubicleAllocation as c1_1 left join c1_1.cubicleRoomBed as t1_1 where (t1_1.id = :trackcubid)"); 
    List<?> trackingList = factory.find(hql.toString(), new String[]{"trackcubid"}, new Object[]{trackCubId.getID_TrackingCubicleRoomBed()});

    if( trackingList != null && trackingList.size() > 0)
    {
        CubicleAllocationVoCollection tempColl = CubicleAllocationVoAssembler.createCubicleAllocationVoCollectionFromCubicleAllocation(trackingList);
        return  tempColl;
    }



    return null;
}
项目:openMAXIMS    文件:TrackingConfigurationImpl.java   
public CubicleAllocationVoCollection getAllocationCubicle(TrackingCubicleRoomBedRefVo trackcubId)
{
    if( trackcubId == null)
        return null;
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append(" select c1_1 from CubicleAllocation as c1_1 left join c1_1.cubicleRoomBed as t1_1 where (t1_1.id = :trackcubid)"); 
    List<?> trackingList = factory.find(hql.toString(), new String[]{"trackcubid"}, new Object[]{trackcubId.getID_TrackingCubicleRoomBed()});

    if( trackingList != null && trackingList.size() > 0)
    {
        CubicleAllocationVoCollection tempColl = CubicleAllocationVoAssembler.createCubicleAllocationVoCollectionFromCubicleAllocation(trackingList);
        return  tempColl;
    }



    return null;
}
项目:openMAXIMS    文件:CubiclesRoomsBedsCCImpl.java   
public CubicleAllocationVoCollection getAllcotiobCubilce(TrackingCubicleRoomBedRefVo trackCubId)
{
    if( trackCubId == null)
        return null;
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append(" select c1_1 from CubicleAllocation as c1_1 left join c1_1.cubicleRoomBed as t1_1 where (t1_1.id = :trackcubid)"); 
    List<?> trackingList = factory.find(hql.toString(), new String[]{"trackcubid"}, new Object[]{trackCubId.getID_TrackingCubicleRoomBed()});

    if( trackingList != null && trackingList.size() > 0)
    {
        CubicleAllocationVoCollection tempColl = CubicleAllocationVoAssembler.createCubicleAllocationVoCollectionFromCubicleAllocation(trackingList);
        return  tempColl;
    }



    return null;
}
项目:openMAXIMS    文件:TrackingConfigurationImpl.java   
public CubicleAllocationVoCollection getAllocationCubicle(TrackingCubicleRoomBedRefVo trackcubId)
{
    if( trackcubId == null)
        return null;
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append(" select c1_1 from CubicleAllocation as c1_1 left join c1_1.cubicleRoomBed as t1_1 where (t1_1.id = :trackcubid)"); 
    List<?> trackingList = factory.find(hql.toString(), new String[]{"trackcubid"}, new Object[]{trackcubId.getID_TrackingCubicleRoomBed()});

    if( trackingList != null && trackingList.size() > 0)
    {
        CubicleAllocationVoCollection tempColl = CubicleAllocationVoAssembler.createCubicleAllocationVoCollectionFromCubicleAllocation(trackingList);
        return  tempColl;
    }



    return null;
}
项目:openMAXIMS    文件:CubiclesRoomsBedsCCImpl.java   
public CubicleAllocationVoCollection getAllcotiobCubilce(TrackingCubicleRoomBedRefVo trackCubId)
{
    if( trackCubId == null)
        return null;
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append(" select c1_1 from CubicleAllocation as c1_1 left join c1_1.cubicleRoomBed as t1_1 where (t1_1.id = :trackcubid)"); 
    List<?> trackingList = factory.find(hql.toString(), new String[]{"trackcubid"}, new Object[]{trackCubId.getID_TrackingCubicleRoomBed()});

    if( trackingList != null && trackingList.size() > 0)
    {
        CubicleAllocationVoCollection tempColl = CubicleAllocationVoAssembler.createCubicleAllocationVoCollectionFromCubicleAllocation(trackingList);
        return  tempColl;
    }



    return null;
}
项目:openmaxims-linux    文件:TrackingConfigurationImpl.java   
public CubicleAllocationVoCollection getAllocationCubicle(TrackingCubicleRoomBedRefVo trackcubId)
{
    if( trackcubId == null)
        return null;
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append(" select c1_1 from CubicleAllocation as c1_1 left join c1_1.cubicleRoomBed as t1_1 where (t1_1.id = :trackcubid)"); 
    List<?> trackingList = factory.find(hql.toString(), new String[]{"trackcubid"}, new Object[]{trackcubId.getID_TrackingCubicleRoomBed()});

    if( trackingList != null && trackingList.size() > 0)
    {
        CubicleAllocationVoCollection tempColl = CubicleAllocationVoAssembler.createCubicleAllocationVoCollectionFromCubicleAllocation(trackingList);
        return  tempColl;
    }



    return null;
}
项目:openmaxims-linux    文件:CubiclesRoomsBedsCCImpl.java   
public CubicleAllocationVoCollection getAllcotiobCubilce(TrackingCubicleRoomBedRefVo trackCubId)
{
    if( trackCubId == null)
        return null;
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append(" select c1_1 from CubicleAllocation as c1_1 left join c1_1.cubicleRoomBed as t1_1 where (t1_1.id = :trackcubid)"); 
    List<?> trackingList = factory.find(hql.toString(), new String[]{"trackcubid"}, new Object[]{trackCubId.getID_TrackingCubicleRoomBed()});

    if( trackingList != null && trackingList.size() > 0)
    {
        CubicleAllocationVoCollection tempColl = CubicleAllocationVoAssembler.createCubicleAllocationVoCollectionFromCubicleAllocation(trackingList);
        return  tempColl;
    }



    return null;
}
项目:AvoinApotti    文件:Logic.java   
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setEditCubicleRoomBed(null);
    switch (menuItemID)
    {
        case ims.emergency.forms.cubiclesroomsbedscc.GenForm.ContextMenus.EmergencyNamespace.CubiclesRoomBed.ADD:
            form.getGlobalContext().setEmergencyCubiclesRoomsBed(null);
            form.getLocalContext().setEditCubicleRoomBed(Boolean.FALSE);
            engine.open(form.getForms().Emergency.CubicleRoomBedDlg);
            break;
        case ims.emergency.forms.cubiclesroomsbedscc.GenForm.ContextMenus.EmergencyNamespace.CubiclesRoomBed.EDIT:
            form.getGlobalContext().setEmergencyCubiclesRoomsBed(form.grdCubiclesRoomsBeds().getSelectedRow().getValue());
            form.getLocalContext().setEditCubicleRoomBed(Boolean.TRUE);
            engine.open(form.getForms().Emergency.CubicleRoomBedDlg);
            break;
        case ims.emergency.forms.cubiclesroomsbedscc.GenForm.ContextMenus.EmergencyNamespace.CubiclesRoomBed.REMOVE:
            CubicleAllocationVoCollection tempColl = domain.getAllcotiobCubilce(form.grdCubiclesRoomsBeds().getValue());
            if( tempColl == null)
            {
                if( form.grdCubiclesRoomsBeds().getSelectedRow() != null)
                    form.grdCubiclesRoomsBeds().removeSelectedRow();
            }
            else
            {
                engine.showMessage(" The Cubicle/Room/Bed cannot be removed as it is currently assigned to a patient.");
            }

            updateControlsState();
            break;  


    }

}
项目:openMAXIMS    文件:Logic.java   
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setEditCubicleRoomBed(null);
    switch (menuItemID)
    {
        case ims.emergency.forms.cubiclesroomsbedscc.GenForm.ContextMenus.EmergencyNamespace.CubiclesRoomBed.ADD:
            form.getGlobalContext().setEmergencyCubiclesRoomsBed(null);
            form.getLocalContext().setEditCubicleRoomBed(Boolean.FALSE);
            engine.open(form.getForms().Emergency.CubicleRoomBedDlg);
            break;
        case ims.emergency.forms.cubiclesroomsbedscc.GenForm.ContextMenus.EmergencyNamespace.CubiclesRoomBed.EDIT:
            form.getGlobalContext().setEmergencyCubiclesRoomsBed(form.grdCubiclesRoomsBeds().getSelectedRow().getValue());
            form.getLocalContext().setEditCubicleRoomBed(Boolean.TRUE);
            engine.open(form.getForms().Emergency.CubicleRoomBedDlg);
            break;
        case ims.emergency.forms.cubiclesroomsbedscc.GenForm.ContextMenus.EmergencyNamespace.CubiclesRoomBed.REMOVE:
            CubicleAllocationVoCollection tempColl = domain.getAllcotiobCubilce(form.grdCubiclesRoomsBeds().getValue());
            if( tempColl == null)
            {
                if( form.grdCubiclesRoomsBeds().getSelectedRow() != null)
                    form.grdCubiclesRoomsBeds().removeSelectedRow();
            }
            else
            {
                engine.showMessage(" The Cubicle/Room/Bed cannot be removed as it is currently assigned to a patient.");
            }

            updateControlsState();
            break;  


    }

}
项目:openMAXIMS    文件:Logic.java   
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setEditCubicleRoomBed(null);
    switch (menuItemID)
    {
        case ims.emergency.forms.cubiclesroomsbedscc.GenForm.ContextMenus.EmergencyNamespace.CubiclesRoomBed.ADD:
            form.getGlobalContext().setEmergencyCubiclesRoomsBed(null);
            form.getLocalContext().setEditCubicleRoomBed(Boolean.FALSE);
            engine.open(form.getForms().Emergency.CubicleRoomBedDlg);
            break;
        case ims.emergency.forms.cubiclesroomsbedscc.GenForm.ContextMenus.EmergencyNamespace.CubiclesRoomBed.EDIT:
            form.getGlobalContext().setEmergencyCubiclesRoomsBed(form.grdCubiclesRoomsBeds().getSelectedRow().getValue());
            form.getLocalContext().setEditCubicleRoomBed(Boolean.TRUE);
            engine.open(form.getForms().Emergency.CubicleRoomBedDlg);
            break;
        case ims.emergency.forms.cubiclesroomsbedscc.GenForm.ContextMenus.EmergencyNamespace.CubiclesRoomBed.REMOVE:
            CubicleAllocationVoCollection tempColl = domain.getAllcotiobCubilce(form.grdCubiclesRoomsBeds().getValue());
            if( tempColl == null)
            {
                if( form.grdCubiclesRoomsBeds().getSelectedRow() != null)
                    form.grdCubiclesRoomsBeds().removeSelectedRow();
            }
            else
            {
                engine.showMessage(" The Cubicle/Room/Bed cannot be removed as it is currently assigned to a patient.");
            }

            updateControlsState();
            break;  


    }

}
项目:openmaxims-linux    文件:Logic.java   
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setEditCubicleRoomBed(null);
    switch (menuItemID)
    {
        case ims.emergency.forms.cubiclesroomsbedscc.GenForm.ContextMenus.EmergencyNamespace.CubiclesRoomBed.ADD:
            form.getGlobalContext().setEmergencyCubiclesRoomsBed(null);
            form.getLocalContext().setEditCubicleRoomBed(Boolean.FALSE);
            engine.open(form.getForms().Emergency.CubicleRoomBedDlg);
            break;
        case ims.emergency.forms.cubiclesroomsbedscc.GenForm.ContextMenus.EmergencyNamespace.CubiclesRoomBed.EDIT:
            form.getGlobalContext().setEmergencyCubiclesRoomsBed(form.grdCubiclesRoomsBeds().getSelectedRow().getValue());
            form.getLocalContext().setEditCubicleRoomBed(Boolean.TRUE);
            engine.open(form.getForms().Emergency.CubicleRoomBedDlg);
            break;
        case ims.emergency.forms.cubiclesroomsbedscc.GenForm.ContextMenus.EmergencyNamespace.CubiclesRoomBed.REMOVE:
            CubicleAllocationVoCollection tempColl = domain.getAllcotiobCubilce(form.grdCubiclesRoomsBeds().getValue());
            if( tempColl == null)
            {
                if( form.grdCubiclesRoomsBeds().getSelectedRow() != null)
                    form.grdCubiclesRoomsBeds().removeSelectedRow();
            }
            else
            {
                engine.showMessage(" The Cubicle/Room/Bed cannot be removed as it is currently assigned to a patient.");
            }

            updateControlsState();
            break;  


    }

}
项目:AvoinApotti    文件:Logic.java   
public Boolean removedCubicleAreUsed()
{
    TrackingAreaCubiclesVo tempVo = domain.getTrackingAreaCubicle(form.cmbArea().getValue());
    TrackingCubicleRoomBedVoCollection collRemovedCubicle=new TrackingCubicleRoomBedVoCollection();
    if( tempVo != null && tempVo.getCubiclesRoomsBedsIsNotNull()&& tempVo.getCubiclesRoomsBeds().size() > 0 )
    {
        TrackingCubicleRoomBedVoCollection collCubicleFromDB = tempVo.getCubiclesRoomsBeds();

        TrackingCubicleRoomBedVoCollection collCubicleFromScreen = new TrackingCubicleRoomBedVoCollection();
        if( form.grdCubiclesRoomsBeds().getRows().size() > 0)
        {
            for(int i = 0; i < form.grdCubiclesRoomsBeds().getRows().size();i++)
            {
                collCubicleFromScreen.add(form.grdCubiclesRoomsBeds().getRows().get(i).getValue());
            }
        }
        else
            collCubicleFromScreen = null;

        for(int i = 0; i < collCubicleFromDB.size();i++)
        {
            if (collCubicleFromDB!=null && collCubicleFromScreen!=null && !collCubicleFromScreen.contains(collCubicleFromDB.get(i)))
            {
                collRemovedCubicle.add(collCubicleFromDB.get(i));
            }
        }
    }

    if (collRemovedCubicle==null || collRemovedCubicle.size()==0)
        return false;

    for (int i=0;i<collRemovedCubicle.size();i++)
    {
        CubicleAllocationVoCollection tempColl = domain.getAllcotiobCubilce(collRemovedCubicle.get(i));

        if( tempColl != null)
        {
            return true;
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
public Boolean removedCubicleAreUsed()
{
    TrackingAreaCubiclesVo tempVo = domain.getTrackingAreaCubicle(form.cmbArea().getValue());
    TrackingCubicleRoomBedVoCollection collRemovedCubicle=new TrackingCubicleRoomBedVoCollection();
    if( tempVo != null && tempVo.getCubiclesRoomsBedsIsNotNull()&& tempVo.getCubiclesRoomsBeds().size() > 0 )
    {
        TrackingCubicleRoomBedVoCollection collCubicleFromDB = tempVo.getCubiclesRoomsBeds();

        TrackingCubicleRoomBedVoCollection collCubicleFromScreen = new TrackingCubicleRoomBedVoCollection();
        if( form.grdCubiclesRoomsBeds().getRows().size() > 0)
        {
            for(int i = 0; i < form.grdCubiclesRoomsBeds().getRows().size();i++)
            {
                collCubicleFromScreen.add(form.grdCubiclesRoomsBeds().getRows().get(i).getValue());
            }
        }
        else
            collCubicleFromScreen = null;

        for(int i = 0; i < collCubicleFromDB.size();i++)
        {
            if (collCubicleFromDB!=null && collCubicleFromScreen!=null && !collCubicleFromScreen.contains(collCubicleFromDB.get(i)))
            {
                collRemovedCubicle.add(collCubicleFromDB.get(i));
            }
        }
    }

    if (collRemovedCubicle==null || collRemovedCubicle.size()==0)
        return false;

    for (int i=0;i<collRemovedCubicle.size();i++)
    {
        CubicleAllocationVoCollection tempColl = domain.getAllcotiobCubilce(collRemovedCubicle.get(i));

        if( tempColl != null)
        {
            return true;
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
public Boolean removedCubicleAreUsed()
{
    TrackingAreaCubiclesVo tempVo = domain.getTrackingAreaCubicle(form.cmbArea().getValue());
    TrackingCubicleRoomBedVoCollection collRemovedCubicle=new TrackingCubicleRoomBedVoCollection();
    if( tempVo != null && tempVo.getCubiclesRoomsBedsIsNotNull()&& tempVo.getCubiclesRoomsBeds().size() > 0 )
    {
        TrackingCubicleRoomBedVoCollection collCubicleFromDB = tempVo.getCubiclesRoomsBeds();

        TrackingCubicleRoomBedVoCollection collCubicleFromScreen = new TrackingCubicleRoomBedVoCollection();
        if( form.grdCubiclesRoomsBeds().getRows().size() > 0)
        {
            for(int i = 0; i < form.grdCubiclesRoomsBeds().getRows().size();i++)
            {
                collCubicleFromScreen.add(form.grdCubiclesRoomsBeds().getRows().get(i).getValue());
            }
        }
        else
            collCubicleFromScreen = null;

        for(int i = 0; i < collCubicleFromDB.size();i++)
        {
            if (collCubicleFromDB!=null && collCubicleFromScreen!=null && !collCubicleFromScreen.contains(collCubicleFromDB.get(i)))
            {
                collRemovedCubicle.add(collCubicleFromDB.get(i));
            }
        }
    }

    if (collRemovedCubicle==null || collRemovedCubicle.size()==0)
        return false;

    for (int i=0;i<collRemovedCubicle.size();i++)
    {
        CubicleAllocationVoCollection tempColl = domain.getAllcotiobCubilce(collRemovedCubicle.get(i));

        if( tempColl != null)
        {
            return true;
        }
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
public Boolean removedCubicleAreUsed()
{
    TrackingAreaCubiclesVo tempVo = domain.getTrackingAreaCubicle(form.cmbArea().getValue());
    TrackingCubicleRoomBedVoCollection collRemovedCubicle=new TrackingCubicleRoomBedVoCollection();
    if( tempVo != null && tempVo.getCubiclesRoomsBedsIsNotNull()&& tempVo.getCubiclesRoomsBeds().size() > 0 )
    {
        TrackingCubicleRoomBedVoCollection collCubicleFromDB = tempVo.getCubiclesRoomsBeds();

        TrackingCubicleRoomBedVoCollection collCubicleFromScreen = new TrackingCubicleRoomBedVoCollection();
        if( form.grdCubiclesRoomsBeds().getRows().size() > 0)
        {
            for(int i = 0; i < form.grdCubiclesRoomsBeds().getRows().size();i++)
            {
                collCubicleFromScreen.add(form.grdCubiclesRoomsBeds().getRows().get(i).getValue());
            }
        }
        else
            collCubicleFromScreen = null;

        for(int i = 0; i < collCubicleFromDB.size();i++)
        {
            if (collCubicleFromDB!=null && collCubicleFromScreen!=null && !collCubicleFromScreen.contains(collCubicleFromDB.get(i)))
            {
                collRemovedCubicle.add(collCubicleFromDB.get(i));
            }
        }
    }

    if (collRemovedCubicle==null || collRemovedCubicle.size()==0)
        return false;

    for (int i=0;i<collRemovedCubicle.size();i++)
    {
        CubicleAllocationVoCollection tempColl = domain.getAllcotiobCubilce(collRemovedCubicle.get(i));

        if( tempColl != null)
        {
            return true;
        }
    }

    return false;
}