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

项目:openMAXIMS    文件:Logic.java   
private void populateSearch(VTMVoCollection list) 
{
    form.grdSearch().getRows().clear();
    //added for WDEV-7627 && list.size()>0
    if(list != null && list.size()>0)
    {
        for(int x = 0; x < list.size(); x++)
        {
            if(!isSelected(list.get(x)))
            {
                addSearchItem(list.get(x));
            }
        }
    }       
    //added for WDEV-7627 
    else {
        engine.showMessage("No results found. Please change your search criteria", "No Results", MessageButtons.OK, MessageIcon.INFORMATION);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateVTMHotlist(Specialty specialty) 
{
    form.lyrBrowser().tabHotlist().grdVTMHotlist().getRows().clear();

    if(specialty != null)
    {
        try 
        {
            VTMVoCollection list = domain.listVTMHotlist(specialty);

            if(list != null)
            {
                for(int x = 0; x < list.size(); x++)
                {
                    addVTMHotlistItem(list.get(x));
                }
            }                   
        } 
        catch (DomainInterfaceException e) 
        {
            engine.showMessage(e.getMessage());
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void searchVTM() 
{
    try 
    {
        VTMVoCollection result = domain.searchVTMByName(form.txtName().getValue(), form.chkHotlistOnly().getValue() ? form.getLocalContext().getSpecialty() : null);            
        form.ccDMD().setValues(result == null ? null : result.toIDMDValueArray(), DMDType.VTM);
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage(), "Error", MessageButtons.OK, MessageIcon.ERROR);
    }
}
项目:AvoinApotti    文件:DMDSearchImpl.java   
/**
* Search for VTM
*/  
public VTMVoCollection searchVTMByName(String name, Specialty specialty) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    DomainFactory domainFactory = getDomainFactory();

    if(specialty == null)
        return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find("from VTM vt WHERE vt.name like '" + name + "%'"));

    String hql = "select hli.vTM from VTMHotlist as hl join hl.hotListItem as hli left join hli.vTM as vtm where (vtm.name like '" + name + "%' and hl.specialty.id = " + specialty.getID() + ")";
    return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find(hql));        
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    VTMVoCollection list = new VTMVoCollection();

    for(int x = 0; x < form.grdSelection().getRows().size(); x++)
    {       
        list.add(form.grdSelection().getRows().get(x).getValue());
    }

    form.getGlobalContext().Admin.DMDVTMSelection.setSelectedItems(list);

    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
private void searchVTM() 
{
    try 
    {
        VTMVoCollection result = domain.searchVTMByName(form.txtName().getValue(), form.chkHotlistOnly().getValue() ? form.getLocalContext().getSpecialty() : null);            
        form.ccDMD().setValues(result == null ? null : result.toIDMDValueArray(), DMDType.VTM);
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage(), "Error", MessageButtons.OK, MessageIcon.ERROR);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addToHotlist() 
{
    VTMVoCollection list = new VTMVoCollection();
    for(int x = 0; x < form.lyrBrowser().tabHotlist().grdVTMHotlist().getRows().size(); x++)
    {
        list.add((VTMVo)form.lyrBrowser().tabHotlist().grdVTMHotlist().getRows().get(x).getValue());
    }
    form.getGlobalContext().Admin.DMDVTMSelection.setAlreadySelectedItems(list);
    engine.open(form.getForms().Admin.DMDVTMSelection);
}
项目:openMAXIMS    文件:DMDSearchImpl.java   
/**
* Search for VTM
*/  
public VTMVoCollection searchVTMByName(String name, Specialty specialty) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    DomainFactory domainFactory = getDomainFactory();

    if(specialty == null)
        return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find("from VTM vt WHERE vt.name like '" + name + "%'"));

    String hql = "select hli.vTM from VTMHotlist as hl join hl.hotListItem as hli left join hli.vTM as vtm where (vtm.name like '" + name + "%' and hl.specialty.id = " + specialty.getID() + ")";
    return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find(hql));        
}
项目:openMAXIMS    文件:DMDAdminImpl.java   
public VTMVo getVTM(String vtmId) throws DomainInterfaceException 
{
    if(vtmId == null)
        throw new DomainInterfaceException("Invalid VTM reference");

    VTMVoCollection vtmCol = VTMVoAssembler.createVTMVoCollectionFromVTM(getDomainFactory().find("from VTM vtm WHERE vtm.moietyIdentifier = '" + vtmId + "'"));
    if (vtmCol != null && vtmCol.size() > 0)
        return vtmCol.get(0);
    else
        return null;
}
项目:openMAXIMS    文件:DMDAdminImpl.java   
public VTMVoCollection listVTMHotlist(Specialty specialty) throws DomainInterfaceException 
{
    if(specialty == null)
        throw new DomainInterfaceException("Invalid specialty");

    DomainFactory domainFactory = getDomainFactory();

    String hql = "select hli.vTM from VTMHotlist as hl join hl.hotListItem as hli left join hli.vTM as vtm where (hl.specialty.id = " + specialty.getID() + ")";
    return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find(hql));
}
项目:openMAXIMS    文件:DMDAdminImpl.java   
public void addToHotlist(Specialty specialty, VTMVoCollection vtm) throws StaleObjectException
{
    for(int x = 0; x < vtm.size(); x++)
    {
        addToHotlist(specialty, vtm.get(x));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void searchVTM() 
{
    try 
    {
        VTMVoCollection result = domain.searchVTMByName(form.txtName().getValue(), form.chkHotlistOnly().getValue() ? form.getLocalContext().getSpecialty() : null);            
        form.ccDMD().setValues(result == null ? null : result.toIDMDValueArray(), DMDType.VTM);
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage(), "Error", MessageButtons.OK, MessageIcon.ERROR);
    }
}
项目:openMAXIMS    文件:DMDSearchImpl.java   
/**
* Search for VTM
*/  
public VTMVoCollection searchVTMByName(String name, Specialty specialty) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    DomainFactory domainFactory = getDomainFactory();

    if(specialty == null)
        return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find("from VTM vt WHERE vt.name like '" + name + "%'"));

    String hql = "select hli.vTM from VTMHotlist as hl join hl.hotListItem as hli left join hli.vTM as vtm where (vtm.name like '" + name + "%' and hl.specialty.id = " + specialty.getID() + ")";
    return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find(hql));        
}
项目:openmaxims-linux    文件:Logic.java   
private void searchVTM() 
{
    try 
    {
        VTMVoCollection result = domain.searchVTMByName(form.txtName().getValue(), form.chkHotlistOnly().getValue() ? form.getLocalContext().getSpecialty() : null);            
        form.ccDMD().setValues(result == null ? null : result.toIDMDValueArray(), DMDType.VTM);
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage(), "Error", MessageButtons.OK, MessageIcon.ERROR);
    }
}
项目:openmaxims-linux    文件:DMDSearchImpl.java   
/**
* Search for VTM
*/  
public VTMVoCollection searchVTMByName(String name, Specialty specialty) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    DomainFactory domainFactory = getDomainFactory();

    if(specialty == null)
        return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find("from VTM vt WHERE vt.name like '" + name + "%'"));

    String hql = "select hli.vTM from VTMHotlist as hl join hl.hotListItem as hli left join hli.vTM as vtm where (vtm.name like '" + name + "%' and hl.specialty.id = " + specialty.getID() + ")";
    return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find(hql));        
}