Java 类ims.core.vo.FloorBedSpaceLayoutLiteVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
public void open() throws PresentationLogicException 
{
    clearInstanceControls();

    FloorBedSpaceLayoutLiteVoCollection list = domain.list(form.chkTemplatesOnly().getValue(), form.cmbStatus().getValue());

    if(list != null && list.size() > 0)
    {
        for(int x = 0; x < list.size(); x++)
        {
            add(list.get(x));
        }
    }
    else
    {
        engine.showMessage("No records found."); //WDEV-15335
    }

    updateControlsState();
}
项目:AvoinApotti    文件:WardBayConfigDialogImpl.java   
public ims.core.vo.FloorBedSpaceLayoutLiteVoCollection listFloorBedLayouts()
{
    DomainFactory factory = getDomainFactory();
    String hql = " from FloorBedSpaceLayout fl";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    hql += " where fl.status.id = :status";
    markers.add("status");
    values.add(PreActiveActiveInactiveStatus.ACTIVE.getID());

    hql += " and fl.isTemplate = :isTemplate";
    markers.add("isTemplate");
    values.add(Boolean.TRUE);

    //hql += " and fl.id not in ( select distinct fl.id from BayConfig as bc left join bc.floorBedSpaceLayout as fl ) ";

    FloorBedSpaceLayoutLiteVoCollection voCollFloorBedLayout = FloorBedSpaceLayoutLiteVoAssembler.createFloorBedSpaceLayoutLiteVoCollectionFromFloorBedSpaceLayout(factory.find(hql, markers, values)); 

    return voCollFloorBedLayout;
}
项目:openMAXIMS    文件:Logic.java   
public void open() throws PresentationLogicException 
{
    clearInstanceControls();

    FloorBedSpaceLayoutLiteVoCollection list = domain.list(form.chkTemplatesOnly().getValue(), form.cmbStatus().getValue());

    if(list != null && list.size() > 0)
    {
        for(int x = 0; x < list.size(); x++)
        {
            add(list.get(x));
        }
    }
    else
    {
        engine.showMessage("No records found."); //WDEV-15335
    }

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void addAvailableFloorLayouts(grdLayoutsRow row)
{
    FloorBedSpaceLayoutLiteVoCollection voCollLayout = form.getLocalContext().getActiveLayouts();
    if(voCollLayout != null)
    {
        for (FloorBedSpaceLayoutLiteVo voFloorBedSpace : voCollLayout)
        {
            if(voFloorBedSpace != null)
                row.getBayBedSpaceLayout().newRow(voFloorBedSpace, voFloorBedSpace.getName());
        }
        if (voCollLayout.size() > 0 && row.getValue() != null && row.getValue().getID_BayConfig() == null)
        {
            if (voCollLayout.size() == 1)
                row.getBayBedSpaceLayout().setValue(voCollLayout.get(0));
            else
            {
                row.getBayBedSpaceLayout().showOpened();
            }
        }
    }
}
项目:openMAXIMS    文件:WardBayConfigDialogImpl.java   
public ims.core.vo.FloorBedSpaceLayoutLiteVoCollection listFloorBedLayouts()
{
    DomainFactory factory = getDomainFactory();
    String hql = " from FloorBedSpaceLayout fl";

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    hql += " where fl.status.id = :status";
    markers.add("status");
    values.add(PreActiveActiveInactiveStatus.ACTIVE.getID());

    hql += " and fl.isTemplate = :isTemplate";
    markers.add("isTemplate");
    values.add(Boolean.TRUE);

    //hql += " and fl.id not in ( select distinct fl.id from BayConfig as bc left join bc.floorBedSpaceLayout as fl ) ";

    FloorBedSpaceLayoutLiteVoCollection voCollFloorBedLayout = FloorBedSpaceLayoutLiteVoAssembler.createFloorBedSpaceLayoutLiteVoCollectionFromFloorBedSpaceLayout(factory.find(hql, markers, values)); 

    return voCollFloorBedLayout;
}
项目:openMAXIMS    文件:Logic.java   
public void open() throws PresentationLogicException 
{
    clearInstanceControls();

    FloorBedSpaceLayoutLiteVoCollection list = domain.list(form.chkTemplatesOnly().getValue(), form.cmbStatus().getValue());

    if(list != null && list.size() > 0)
    {
        for(int x = 0; x < list.size(); x++)
        {
            add(list.get(x));
        }
    }
    else
    {
        engine.showMessage("No records found."); //WDEV-15335
    }

    updateControlsState();
}
项目:openMAXIMS    文件:WardBayConfigDialogImpl.java   
public ims.core.vo.FloorBedSpaceLayoutLiteVoCollection listFloorBedLayouts()
{
    DomainFactory factory = getDomainFactory();
    String hql = " from FloorBedSpaceLayout fl";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    hql += " where fl.status.id = :status";
    markers.add("status");
    values.add(PreActiveActiveInactiveStatus.ACTIVE.getID());

    hql += " and fl.isTemplate = :isTemplate";
    markers.add("isTemplate");
    values.add(Boolean.TRUE);

    //hql += " and fl.id not in ( select distinct fl.id from BayConfig as bc left join bc.floorBedSpaceLayout as fl ) ";

    FloorBedSpaceLayoutLiteVoCollection voCollFloorBedLayout = FloorBedSpaceLayoutLiteVoAssembler.createFloorBedSpaceLayoutLiteVoCollectionFromFloorBedSpaceLayout(factory.find(hql, markers, values)); 

    return voCollFloorBedLayout;
}
项目:openmaxims-linux    文件:Logic.java   
public void open() throws PresentationLogicException 
{
    clearInstanceControls();

    FloorBedSpaceLayoutLiteVoCollection list = domain.list(form.chkTemplatesOnly().getValue(), form.cmbStatus().getValue());

    if(list != null && list.size() > 0)
    {
        for(int x = 0; x < list.size(); x++)
        {
            add(list.get(x));
        }
    }
    else
    {
        engine.showMessage("No records found."); //WDEV-15335
    }

    updateControlsState();
}
项目:openmaxims-linux    文件:WardBayConfigDialogImpl.java   
public ims.core.vo.FloorBedSpaceLayoutLiteVoCollection listFloorBedLayouts()
{
    DomainFactory factory = getDomainFactory();
    String hql = " from FloorBedSpaceLayout fl";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    hql += " where fl.status.id = :status";
    markers.add("status");
    values.add(PreActiveActiveInactiveStatus.ACTIVE.getID());

    hql += " and fl.isTemplate = :isTemplate";
    markers.add("isTemplate");
    values.add(Boolean.TRUE);

    //hql += " and fl.id not in ( select distinct fl.id from BayConfig as bc left join bc.floorBedSpaceLayout as fl ) ";

    FloorBedSpaceLayoutLiteVoCollection voCollFloorBedLayout = FloorBedSpaceLayoutLiteVoAssembler.createFloorBedSpaceLayoutLiteVoCollectionFromFloorBedSpaceLayout(factory.find(hql, markers, values)); 

    return voCollFloorBedLayout;
}
项目:AvoinApotti    文件:Logic.java   
private void addAvailableFloorLayouts(grdLayoutsRow row)
{
    FloorBedSpaceLayoutLiteVoCollection voCollLayout = form.getLocalContext().getActiveLayouts();
    if(voCollLayout != null)
    {
        for (FloorBedSpaceLayoutLiteVo voFloorBedSpace : voCollLayout)
        {
            if(voFloorBedSpace != null)
                row.getBayBedSpaceLayout().newRow(voFloorBedSpace, voFloorBedSpace.getName());
        }
    }
}
项目:AvoinApotti    文件:BayLayoutConfigImpl.java   
@SuppressWarnings("unchecked")
public FloorBedSpaceLayoutLiteVoCollection listFloorBedLayouts() 
{       
    DomainFactory factory = getDomainFactory();
    String hql = " from FloorBedSpaceLayout fl";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    hql += " where fl.status.id = :status";
    markers.add("status");
    values.add(PreActiveActiveInactiveStatus.ACTIVE.getID());   

    return FloorBedSpaceLayoutLiteVoAssembler.createFloorBedSpaceLayoutLiteVoCollectionFromFloorBedSpaceLayout(factory.find(hql, markers, values));     
}
项目:openMAXIMS    文件:BayLayoutConfigImpl.java   
@SuppressWarnings("unchecked")
public FloorBedSpaceLayoutLiteVoCollection listFloorBedLayouts() 
{       
    DomainFactory factory = getDomainFactory();
    String hql = " from FloorBedSpaceLayout fl";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    hql += " where fl.status.id = :status";
    markers.add("status");
    values.add(PreActiveActiveInactiveStatus.ACTIVE.getID());   

    return FloorBedSpaceLayoutLiteVoAssembler.createFloorBedSpaceLayoutLiteVoCollectionFromFloorBedSpaceLayout(factory.find(hql, markers, values));     
}
项目:openMAXIMS    文件:Logic.java   
private void addAvailableFloorLayouts(grdLayoutsRow row)
{
    FloorBedSpaceLayoutLiteVoCollection voCollLayout = form.getLocalContext().getActiveLayouts();
    if(voCollLayout != null)
    {
        for (FloorBedSpaceLayoutLiteVo voFloorBedSpace : voCollLayout)
        {
            if(voFloorBedSpace != null)
                row.getBayBedSpaceLayout().newRow(voFloorBedSpace, voFloorBedSpace.getName());
        }
    }
}
项目:openMAXIMS    文件:BayLayoutConfigImpl.java   
@SuppressWarnings("unchecked")
public FloorBedSpaceLayoutLiteVoCollection listFloorBedLayouts() 
{       
    DomainFactory factory = getDomainFactory();
    String hql = " from FloorBedSpaceLayout fl";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    hql += " where fl.status.id = :status";
    markers.add("status");
    values.add(PreActiveActiveInactiveStatus.ACTIVE.getID());   

    return FloorBedSpaceLayoutLiteVoAssembler.createFloorBedSpaceLayoutLiteVoCollectionFromFloorBedSpaceLayout(factory.find(hql, markers, values));     
}
项目:openmaxims-linux    文件:Logic.java   
private void addAvailableFloorLayouts(grdLayoutsRow row)
{
    FloorBedSpaceLayoutLiteVoCollection voCollLayout = form.getLocalContext().getActiveLayouts();
    if(voCollLayout != null)
    {
        for (FloorBedSpaceLayoutLiteVo voFloorBedSpace : voCollLayout)
        {
            if(voFloorBedSpace != null)
                row.getBayBedSpaceLayout().newRow(voFloorBedSpace, voFloorBedSpace.getName());
        }
    }
}
项目:openmaxims-linux    文件:BayLayoutConfigImpl.java   
@SuppressWarnings("unchecked")
public FloorBedSpaceLayoutLiteVoCollection listFloorBedLayouts() 
{       
    DomainFactory factory = getDomainFactory();
    String hql = " from FloorBedSpaceLayout fl";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    hql += " where fl.status.id = :status";
    markers.add("status");
    values.add(PreActiveActiveInactiveStatus.ACTIVE.getID());   

    return FloorBedSpaceLayoutLiteVoAssembler.createFloorBedSpaceLayoutLiteVoCollectionFromFloorBedSpaceLayout(factory.find(hql, markers, values));     
}