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

项目:AvoinApotti    文件:SpecimenContainerListImpl.java   
/**
* lists PathSpecimenContainers
*/
public ims.ocrr.vo.PathSpecimenContainerVoCollection listPathSpecimenContainers(PathSpecimenContainerVo filter)
{
    DomainFactory factory = getDomainFactory();
    IMSCriteria imsc= new IMSCriteria (PathSpecimenContainer.class,factory);
    imsc.addOrder("pathSpecimenOrder", ORDERMODE.ASC);
    if (filter!=null)
    {
        if (filter.getNameIsNotNull())
        {
            imsc.like("name", "%"+filter.getName()+"%");
        }
        if (filter.getManufacturerIsNotNull())
            imsc.equal("manufacturer.id", getDomLookup(filter.getManufacturer()).getId());
        if (filter.getIsActiveIsNotNull())
            imsc.equal("isActive", filter.getIsActive());
    }

    List<?> containers=imsc.find();
    return PathSpecimenContainerVoAssembler.createPathSpecimenContainerVoCollectionFromPathSpecimenContainer(containers);
}
项目:openMAXIMS    文件:SpecimenContainerListImpl.java   
/**
* lists PathSpecimenContainers
*/
public ims.ocrr.vo.PathSpecimenContainerVoCollection listPathSpecimenContainers(PathSpecimenContainerVo filter)
{
    DomainFactory factory = getDomainFactory();
    IMSCriteria imsc= new IMSCriteria (PathSpecimenContainer.class,factory);
    imsc.addOrder("pathSpecimenOrder", ORDERMODE.ASC);
    if (filter!=null)
    {
        if (filter.getNameIsNotNull())
        {
            imsc.like("name", "%"+filter.getName()+"%");
        }
        if (filter.getManufacturerIsNotNull())
            imsc.equal("manufacturer.id", getDomLookup(filter.getManufacturer()).getId());
        if (filter.getIsActiveIsNotNull())
            imsc.equal("isActive", filter.getIsActive());
    }

    List<?> containers=imsc.find();
    return PathSpecimenContainerVoAssembler.createPathSpecimenContainerVoCollectionFromPathSpecimenContainer(containers);
}
项目:openMAXIMS    文件:SpecimenContainerListImpl.java   
/**
* lists PathSpecimenContainers
*/
public ims.ocrr.vo.PathSpecimenContainerVoCollection listPathSpecimenContainers(PathSpecimenContainerVo filter)
{
    DomainFactory factory = getDomainFactory();
    IMSCriteria imsc= new IMSCriteria (PathSpecimenContainer.class,factory);
    imsc.addOrder("pathSpecimenOrder", ORDERMODE.ASC);
    if (filter!=null)
    {
        if (filter.getNameIsNotNull())
        {
            imsc.like("name", "%"+filter.getName()+"%");
        }
        if (filter.getManufacturerIsNotNull())
            imsc.equal("manufacturer.id", getDomLookup(filter.getManufacturer()).getId());
        if (filter.getIsActiveIsNotNull())
            imsc.equal("isActive", filter.getIsActive());
    }

    List<?> containers=imsc.find();
    return PathSpecimenContainerVoAssembler.createPathSpecimenContainerVoCollectionFromPathSpecimenContainer(containers);
}
项目:openmaxims-linux    文件:SpecimenContainerListImpl.java   
/**
* lists PathSpecimenContainers
*/
public ims.ocrr.vo.PathSpecimenContainerVoCollection listPathSpecimenContainers(PathSpecimenContainerVo filter)
{
    DomainFactory factory = getDomainFactory();
    IMSCriteria imsc= new IMSCriteria (PathSpecimenContainer.class,factory);
    imsc.addOrder("pathSpecimenOrder", ORDERMODE.ASC);
    if (filter!=null)
    {
        if (filter.getNameIsNotNull())
        {
            imsc.like("name", "%"+filter.getName()+"%");
        }
        if (filter.getManufacturerIsNotNull())
            imsc.equal("manufacturer.id", getDomLookup(filter.getManufacturer()).getId());
        if (filter.getIsActiveIsNotNull())
            imsc.equal("isActive", filter.getIsActive());
    }

    List<?> containers=imsc.find();
    return PathSpecimenContainerVoAssembler.createPathSpecimenContainerVoCollectionFromPathSpecimenContainer(containers);
}
项目:AvoinApotti    文件:Logic.java   
/**
 * 
 */
private void populateSpecContainerGrid(PathSpecimenContainerVoCollection voCollPathSpecimenContainer)
{
    form.grdSpecContainers().getRows().clear();
    if (voCollPathSpecimenContainer == null)
        return;
    GenForm.grdSpecContainersRow row;
    for(int i=0; i<voCollPathSpecimenContainer.size(); i++){
        row = form.grdSpecContainers().getRows().newRow();

        if(voCollPathSpecimenContainer.get(i).getNameIsNotNull())
            row.setcolName(voCollPathSpecimenContainer.get(i).getName());   
        if(voCollPathSpecimenContainer.get(i).getIsActiveIsNotNull())
            row.setcolStatus(voCollPathSpecimenContainer.get(i).getIsActive().booleanValue());



        String volUnits = "";
        if(voCollPathSpecimenContainer.get(i).getVolumeIsNotNull())
            volUnits = voCollPathSpecimenContainer.get(i).getVolume().toString();

        if(voCollPathSpecimenContainer.get(i).getVolumeUnitsIsNotNull())
            volUnits += " " + voCollPathSpecimenContainer.get(i).getVolumeUnits().toString();

        row.setColVolume(volUnits);

        if(voCollPathSpecimenContainer.get(i).getColourIsNotNull())
            row.setcolColour(voCollPathSpecimenContainer.get(i).getColour().getText());

        row.setValue(voCollPathSpecimenContainer.get(i));
        form.btnSave().setEnabled(false);
    }

}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws PresentationLogicException 
{
    PathSpecimenContainerVoCollection specimens=new PathSpecimenContainerVoCollection();
    for (int i=0;i<form.grdSpecContainers().getRows().size();i++)
    {
        PathSpecimenContainerVo specimen= form.grdSpecContainers().getRows().get(i).getValue();
        specimen.setPathSpecimenOrder(i);
        specimens.add(specimen);
    }

    if (specimens!=null)
        try 
        {
            domain.savePathSpecimenContainers(specimens);
            form.getLocalContext().setinitialOrder(specimens);
        } 
        catch (StaleObjectException e) 
        {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        }

    form.grdSpecContainers().setValue(null);
    form.getLocalContext().setHasOrderBeenChanged(false);
    setControlState();
    form.btnSave().setEnabled(false);
    populateSearchCriteria();
    doSearch(true);
}
项目:AvoinApotti    文件:SpecimenContainerListImpl.java   
public void savePathSpecimenContainers(PathSpecimenContainerVoCollection specimens) throws StaleObjectException 
{
    DomainFactory factory = getDomainFactory();

    for (int i=0;i<specimens.size();i++)
    {
        factory.save(PathSpecimenContainerVoAssembler.extractPathSpecimenContainer(factory, specimens.get(i)));
    }

}
项目:openMAXIMS    文件:Logic.java   
/**
 * 
 */
private void populateSpecContainerGrid(PathSpecimenContainerVoCollection voCollPathSpecimenContainer)
{
    form.grdSpecContainers().getRows().clear();
    if (voCollPathSpecimenContainer == null)
        return;
    GenForm.grdSpecContainersRow row;
    for(int i=0; i<voCollPathSpecimenContainer.size(); i++){
        row = form.grdSpecContainers().getRows().newRow();

        if(voCollPathSpecimenContainer.get(i).getNameIsNotNull())
            row.setcolName(voCollPathSpecimenContainer.get(i).getName());   
        if(voCollPathSpecimenContainer.get(i).getIsActiveIsNotNull())
            row.setcolStatus(voCollPathSpecimenContainer.get(i).getIsActive().booleanValue());



        String volUnits = "";
        if(voCollPathSpecimenContainer.get(i).getVolumeIsNotNull())
            volUnits = voCollPathSpecimenContainer.get(i).getVolume().toString();

        if(voCollPathSpecimenContainer.get(i).getVolumeUnitsIsNotNull())
            volUnits += " " + voCollPathSpecimenContainer.get(i).getVolumeUnits().toString();

        row.setColVolume(volUnits);

        if(voCollPathSpecimenContainer.get(i).getColourIsNotNull())
            row.setcolColour(voCollPathSpecimenContainer.get(i).getColour().getText());

        row.setValue(voCollPathSpecimenContainer.get(i));
        form.btnSave().setEnabled(false);
    }

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws PresentationLogicException 
{
    PathSpecimenContainerVoCollection specimens=new PathSpecimenContainerVoCollection();
    for (int i=0;i<form.grdSpecContainers().getRows().size();i++)
    {
        PathSpecimenContainerVo specimen= form.grdSpecContainers().getRows().get(i).getValue();
        specimen.setPathSpecimenOrder(i);
        specimens.add(specimen);
    }

    if (specimens!=null)
        try 
        {
            domain.savePathSpecimenContainers(specimens);
            form.getLocalContext().setinitialOrder(specimens);
        } 
        catch (StaleObjectException e) 
        {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        }

    form.grdSpecContainers().setValue(null);
    form.getLocalContext().setHasOrderBeenChanged(false);
    setControlState();
    form.btnSave().setEnabled(false);
    populateSearchCriteria();
    doSearch(true);
}
项目:openMAXIMS    文件:SpecimenContainerListImpl.java   
public void savePathSpecimenContainers(PathSpecimenContainerVoCollection specimens) throws StaleObjectException 
{
    DomainFactory factory = getDomainFactory();

    for (int i=0;i<specimens.size();i++)
    {
        factory.save(PathSpecimenContainerVoAssembler.extractPathSpecimenContainer(factory, specimens.get(i)));
    }

}
项目:openMAXIMS    文件:Logic.java   
/**
 * 
 */
private void populateSpecContainerGrid(PathSpecimenContainerVoCollection voCollPathSpecimenContainer)
{
    form.grdSpecContainers().getRows().clear();
    if (voCollPathSpecimenContainer == null)
        return;
    GenForm.grdSpecContainersRow row;
    for(int i=0; i<voCollPathSpecimenContainer.size(); i++){
        row = form.grdSpecContainers().getRows().newRow();

        if(voCollPathSpecimenContainer.get(i).getNameIsNotNull())
            row.setcolName(voCollPathSpecimenContainer.get(i).getName());   
        if(voCollPathSpecimenContainer.get(i).getIsActiveIsNotNull())
            row.setcolStatus(voCollPathSpecimenContainer.get(i).getIsActive().booleanValue());



        String volUnits = "";
        if(voCollPathSpecimenContainer.get(i).getVolumeIsNotNull())
            volUnits = voCollPathSpecimenContainer.get(i).getVolume().toString();

        if(voCollPathSpecimenContainer.get(i).getVolumeUnitsIsNotNull())
            volUnits += " " + voCollPathSpecimenContainer.get(i).getVolumeUnits().toString();

        row.setColVolume(volUnits);

        if(voCollPathSpecimenContainer.get(i).getColourIsNotNull())
            row.setcolColour(voCollPathSpecimenContainer.get(i).getColour().getText());

        row.setValue(voCollPathSpecimenContainer.get(i));
        form.btnSave().setEnabled(false);
    }

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws PresentationLogicException 
{
    PathSpecimenContainerVoCollection specimens=new PathSpecimenContainerVoCollection();
    for (int i=0;i<form.grdSpecContainers().getRows().size();i++)
    {
        PathSpecimenContainerVo specimen= form.grdSpecContainers().getRows().get(i).getValue();
        specimen.setPathSpecimenOrder(i);
        specimens.add(specimen);
    }

    if (specimens!=null)
        try 
        {
            domain.savePathSpecimenContainers(specimens);
            form.getLocalContext().setinitialOrder(specimens);
        } 
        catch (StaleObjectException e) 
        {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        }

    form.grdSpecContainers().setValue(null);
    form.getLocalContext().setHasOrderBeenChanged(false);
    setControlState();
    form.btnSave().setEnabled(false);
    populateSearchCriteria();
    doSearch(true);
}
项目:openMAXIMS    文件:SpecimenContainerListImpl.java   
public void savePathSpecimenContainers(PathSpecimenContainerVoCollection specimens) throws StaleObjectException 
{
    DomainFactory factory = getDomainFactory();

    for (int i=0;i<specimens.size();i++)
    {
        factory.save(PathSpecimenContainerVoAssembler.extractPathSpecimenContainer(factory, specimens.get(i)));
    }

}
项目:openmaxims-linux    文件:Logic.java   
/**
 * 
 */
private void populateSpecContainerGrid(PathSpecimenContainerVoCollection voCollPathSpecimenContainer)
{
    form.grdSpecContainers().getRows().clear();
    if (voCollPathSpecimenContainer == null)
        return;
    GenForm.grdSpecContainersRow row;
    for(int i=0; i<voCollPathSpecimenContainer.size(); i++){
        row = form.grdSpecContainers().getRows().newRow();

        if(voCollPathSpecimenContainer.get(i).getNameIsNotNull())
            row.setcolName(voCollPathSpecimenContainer.get(i).getName());   
        if(voCollPathSpecimenContainer.get(i).getIsActiveIsNotNull())
            row.setcolStatus(voCollPathSpecimenContainer.get(i).getIsActive().booleanValue());



        String volUnits = "";
        if(voCollPathSpecimenContainer.get(i).getVolumeIsNotNull())
            volUnits = voCollPathSpecimenContainer.get(i).getVolume().toString();

        if(voCollPathSpecimenContainer.get(i).getVolumeUnitsIsNotNull())
            volUnits += " " + voCollPathSpecimenContainer.get(i).getVolumeUnits().toString();

        row.setColVolume(volUnits);

        if(voCollPathSpecimenContainer.get(i).getColourIsNotNull())
            row.setcolColour(voCollPathSpecimenContainer.get(i).getColour().getText());

        row.setValue(voCollPathSpecimenContainer.get(i));
        form.btnSave().setEnabled(false);
    }

}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws PresentationLogicException 
{
    PathSpecimenContainerVoCollection specimens=new PathSpecimenContainerVoCollection();
    for (int i=0;i<form.grdSpecContainers().getRows().size();i++)
    {
        PathSpecimenContainerVo specimen= form.grdSpecContainers().getRows().get(i).getValue();
        specimen.setPathSpecimenOrder(i);
        specimens.add(specimen);
    }

    if (specimens!=null)
        try 
        {
            domain.savePathSpecimenContainers(specimens);
            form.getLocalContext().setinitialOrder(specimens);
        } 
        catch (StaleObjectException e) 
        {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        }

    form.grdSpecContainers().setValue(null);
    form.getLocalContext().setHasOrderBeenChanged(false);
    setControlState();
    form.btnSave().setEnabled(false);
    populateSearchCriteria();
    doSearch(true);
}
项目:openmaxims-linux    文件:SpecimenContainerListImpl.java   
public void savePathSpecimenContainers(PathSpecimenContainerVoCollection specimens) throws StaleObjectException 
{
    DomainFactory factory = getDomainFactory();

    for (int i=0;i<specimens.size();i++)
    {
        factory.save(PathSpecimenContainerVoAssembler.extractPathSpecimenContainer(factory, specimens.get(i)));
    }

}