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

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onGrdAMPSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{       
    form.grdVTM().getRows().clear();
    form.grdVMP().getRows().clear();

    try 
    {
        IDMDValue amp = form.grdAMP().getValue();

        VMPRefVo vmpRef = ((AMPVo)amp).getVMP();
        if(vmpRef != null)
        {
            VMPVo vmp = domain.getVMP(((AMPVo)amp).getVMP());

            if(vmp != null)
            {
                addVMPItem(vmp);
                if (vmp.getVTM() != null)  //VTMID is optional SN.
                    addVTMItem(domain.getVTM(vmp.getVTM()));
            }
        }
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage(), "Error", MessageButtons.OK, MessageIcon.ERROR);
    }

    form.fireCustomControlValueChanged();
}
项目:AvoinApotti    文件:Logic.java   
public AMPVo getAMP() 
{
    if(form.grdAMP().getValue() != null)
        return (AMPVo)form.grdAMP().getValue();

    return null;
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onGrdAMPSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{       
    form.grdVTM().getRows().clear();
    form.grdVMP().getRows().clear();

    try 
    {
        IDMDValue amp = form.grdAMP().getValue();

        VMPRefVo vmpRef = ((AMPVo)amp).getVMP();
        if(vmpRef != null)
        {
            VMPVo vmp = domain.getVMP(((AMPVo)amp).getVMP());

            if(vmp != null)
            {
                addVMPItem(vmp);
                if (vmp.getVTM() != null)  //VTMID is optional SN.
                    addVTMItem(domain.getVTM(vmp.getVTM()));
            }
        }
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage(), "Error", MessageButtons.OK, MessageIcon.ERROR);
    }

    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
public AMPVo getAMP() 
{
    if(form.grdAMP().getValue() != null)
        return (AMPVo)form.grdAMP().getValue();

    return null;
}
项目: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   
@Override
protected void onGrdAMPSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{       
    form.grdVTM().getRows().clear();
    form.grdVMP().getRows().clear();

    try 
    {
        IDMDValue amp = form.grdAMP().getValue();

        VMPRefVo vmpRef = ((AMPVo)amp).getVMP();
        if(vmpRef != null)
        {
            VMPVo vmp = domain.getVMP(((AMPVo)amp).getVMP());

            if(vmp != null)
            {
                addVMPItem(vmp);
                if (vmp.getVTM() != null)  //VTMID is optional SN.
                    addVTMItem(domain.getVTM(vmp.getVTM()));
            }
        }
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage(), "Error", MessageButtons.OK, MessageIcon.ERROR);
    }

    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
public AMPVo getAMP() 
{
    if(form.grdAMP().getValue() != null)
        return (AMPVo)form.grdAMP().getValue();

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onGrdAMPSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{       
    form.grdVTM().getRows().clear();
    form.grdVMP().getRows().clear();

    try 
    {
        IDMDValue amp = form.grdAMP().getValue();

        VMPRefVo vmpRef = ((AMPVo)amp).getVMP();
        if(vmpRef != null)
        {
            VMPVo vmp = domain.getVMP(((AMPVo)amp).getVMP());

            if(vmp != null)
            {
                addVMPItem(vmp);
                if (vmp.getVTM() != null)  //VTMID is optional SN.
                    addVTMItem(domain.getVTM(vmp.getVTM()));
            }
        }
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage(), "Error", MessageButtons.OK, MessageIcon.ERROR);
    }

    form.fireCustomControlValueChanged();
}
项目:openmaxims-linux    文件:Logic.java   
public AMPVo getAMP() 
{
    if(form.grdAMP().getValue() != null)
        return (AMPVo)form.grdAMP().getValue();

    return null;
}
项目:AvoinApotti    文件:Logic.java   
public AMPVo getAMP() 
{
    return form.ccDMD().getAMP();
}
项目:openMAXIMS    文件:Logic.java   
public AMPVo getAMP() 
{
    return form.ccDMD().getAMP();
}
项目:openMAXIMS    文件:AMPLoader.java   
public AMPLoader() 
 {
super();
amp = new AMPVo();
loadErrors=false;
 }
项目:openMAXIMS    文件:Logic.java   
public AMPVo getAMP() 
{
    return form.ccDMD().getAMP();
}
项目:openmaxims-linux    文件:Logic.java   
public AMPVo getAMP() 
{
    return form.ccDMD().getAMP();
}