Java 类ims.clinical.vo.AMPVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void searchAMP() 
{
    try 
    {
        AMPVoCollection result = domain.searchAMPByName(form.txtName().getValue());
        form.ccDMD().setValues(result == null ? null : result.toIDMDValueArray(), DMDType.AMP);
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage(), "Error", MessageButtons.OK, MessageIcon.ERROR);
    }
}
项目:AvoinApotti    文件:DMDSearchImpl.java   
/**
* Search for AMP
* 
*/
public AMPVoCollection searchAMPByName(String name) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    return AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP am WHERE am.name like '" + name + "%'"));
}
项目:AvoinApotti    文件:DMDImpl.java   
public IDMDValue[] searchAMP(IDMDValue vmp) throws DomainInterfaceException 
{
    if(vmp == null || vmp.getIDMDValueId() == null || vmp.getIDMDValueType() != DMDType.VMP)
        throw new DomainInterfaceException("Invalid VMP reference");

    AMPVoCollection result = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP vm WHERE vm.vMP.id = " + vmp.getIDMDValueId()));
    if(result != null)
        return result.toIDMDValueArray();
    return new IDMDValue[] {};
}
项目:openMAXIMS    文件:Logic.java   
private void searchAMP() 
{
    try 
    {
        AMPVoCollection result = domain.searchAMPByName(form.txtName().getValue());
        form.ccDMD().setValues(result == null ? null : result.toIDMDValueArray(), DMDType.AMP);
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage(), "Error", MessageButtons.OK, MessageIcon.ERROR);
    }
}
项目:openMAXIMS    文件:DMDSearchImpl.java   
/**
* Search for AMP
* 
*/
public AMPVoCollection searchAMPByName(String name) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    return AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP am WHERE am.name like '" + name + "%'"));
}
项目:openMAXIMS    文件:DMDImpl.java   
public IDMDValue[] searchAMP(IDMDValue vmp) throws DomainInterfaceException 
{
    if(vmp == null || vmp.getIDMDValueId() == null || vmp.getIDMDValueType() != DMDType.VMP)
        throw new DomainInterfaceException("Invalid VMP reference");

    AMPVoCollection result = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP vm WHERE vm.vMP.id = " + vmp.getIDMDValueId()));
    if(result != null)
        return result.toIDMDValueArray();
    return new IDMDValue[] {};
}
项目:openMAXIMS    文件:DMDAdminImpl.java   
public AMPVo getAMP(String ampProductId) throws DomainInterfaceException 
{
    if(ampProductId == null)
        throw new DomainInterfaceException("Invalid AMP reference");

    AMPVoCollection ampCol = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP amp WHERE amp.productIdentifier = '" + ampProductId + "'"));
    if (ampCol != null && ampCol.size() > 0)
        return ampCol.get(0);
    else
        return null;
}
项目:openMAXIMS    文件:Logic.java   
private void searchAMP() 
{
    try 
    {
        AMPVoCollection result = domain.searchAMPByName(form.txtName().getValue());
        form.ccDMD().setValues(result == null ? null : result.toIDMDValueArray(), DMDType.AMP);
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage(), "Error", MessageButtons.OK, MessageIcon.ERROR);
    }
}
项目:openMAXIMS    文件:DMDSearchImpl.java   
/**
* Search for AMP
* 
*/
public AMPVoCollection searchAMPByName(String name) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    return AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP am WHERE am.name like '" + name + "%'"));
}
项目:openMAXIMS    文件:DMDImpl.java   
public IDMDValue[] searchAMP(IDMDValue vmp) throws DomainInterfaceException 
{
    if(vmp == null || vmp.getIDMDValueId() == null || vmp.getIDMDValueType() != DMDType.VMP)
        throw new DomainInterfaceException("Invalid VMP reference");

    AMPVoCollection result = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP vm WHERE vm.vMP.id = " + vmp.getIDMDValueId()));
    if(result != null)
        return result.toIDMDValueArray();
    return new IDMDValue[] {};
}
项目:openmaxims-linux    文件:Logic.java   
private void searchAMP() 
{
    try 
    {
        AMPVoCollection result = domain.searchAMPByName(form.txtName().getValue());
        form.ccDMD().setValues(result == null ? null : result.toIDMDValueArray(), DMDType.AMP);
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage(), "Error", MessageButtons.OK, MessageIcon.ERROR);
    }
}
项目:openmaxims-linux    文件:DMDSearchImpl.java   
/**
* Search for AMP
* 
*/
public AMPVoCollection searchAMPByName(String name) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    return AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP am WHERE am.name like '" + name + "%'"));
}
项目:openmaxims-linux    文件:DMDImpl.java   
public IDMDValue[] searchAMP(IDMDValue vmp) throws DomainInterfaceException 
{
    if(vmp == null || vmp.getIDMDValueId() == null || vmp.getIDMDValueType() != DMDType.VMP)
        throw new DomainInterfaceException("Invalid VMP reference");

    AMPVoCollection result = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP vm WHERE vm.vMP.id = " + vmp.getIDMDValueId()));
    if(result != null)
        return result.toIDMDValueArray();
    return new IDMDValue[] {};
}