Java 类ims.therapies.vo.HandRangeOfMovementVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateRecordBrowser(HandRangeOfMovementVoCollection voCollHandRangeOfMovements)
{
    if (voCollHandRangeOfMovements == null)
        return;

    form.recbrHandRangeOfMovements().clear();
    for (int i = 0; i < voCollHandRangeOfMovements.size(); i++)
    {
        if (form.getGlobalContext().Core.getCurrentClinicalContact() != null && voCollHandRangeOfMovements.get(i).getClinicalContact().equals(form.getGlobalContext().Core.getCurrentClinicalContact()))
        {
            form.recbrHandRangeOfMovements().newRow(voCollHandRangeOfMovements.get(i), buildBrowserLine(voCollHandRangeOfMovements.get(i)), null, Color.Green);
            form.recbrHandRangeOfMovements().setValue(voCollHandRangeOfMovements.get(i));
            selectHandRangeOfMovement();
        }
        else
        {
            form.recbrHandRangeOfMovements().newRow(voCollHandRangeOfMovements.get(i), buildBrowserLine(voCollHandRangeOfMovements.get(i)));
        }
    }

    if (form.recbrHandRangeOfMovements().size() > 0)
        selectHandRangeOfMovement();

}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser(HandRangeOfMovementVoCollection voCollHandRangeOfMovements)
{
    if (voCollHandRangeOfMovements == null)
        return;

    form.recbrHandRangeOfMovements().clear();
    for (int i = 0; i < voCollHandRangeOfMovements.size(); i++)
    {
        if (form.getGlobalContext().Core.getCurrentClinicalContact() != null && voCollHandRangeOfMovements.get(i).getClinicalContact().equals(form.getGlobalContext().Core.getCurrentClinicalContact()))
        {
            form.recbrHandRangeOfMovements().newRow(voCollHandRangeOfMovements.get(i), buildBrowserLine(voCollHandRangeOfMovements.get(i)), null, Color.Green);
            form.recbrHandRangeOfMovements().setValue(voCollHandRangeOfMovements.get(i));
            selectHandRangeOfMovement();
        }
        else
        {
            form.recbrHandRangeOfMovements().newRow(voCollHandRangeOfMovements.get(i), buildBrowserLine(voCollHandRangeOfMovements.get(i)));
        }
    }

    if (form.recbrHandRangeOfMovements().size() > 0)
        selectHandRangeOfMovement();

}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser(HandRangeOfMovementVoCollection voCollHandRangeOfMovements)
{
    if (voCollHandRangeOfMovements == null)
        return;

    form.recbrHandRangeOfMovements().clear();
    for (int i = 0; i < voCollHandRangeOfMovements.size(); i++)
    {
        if (form.getGlobalContext().Core.getCurrentClinicalContact() != null && voCollHandRangeOfMovements.get(i).getClinicalContact().equals(form.getGlobalContext().Core.getCurrentClinicalContact()))
        {
            form.recbrHandRangeOfMovements().newRow(voCollHandRangeOfMovements.get(i), buildBrowserLine(voCollHandRangeOfMovements.get(i)), null, Color.Green);
            form.recbrHandRangeOfMovements().setValue(voCollHandRangeOfMovements.get(i));
            selectHandRangeOfMovement();
        }
        else
        {
            form.recbrHandRangeOfMovements().newRow(voCollHandRangeOfMovements.get(i), buildBrowserLine(voCollHandRangeOfMovements.get(i)));
        }
    }

    if (form.recbrHandRangeOfMovements().size() > 0)
        selectHandRangeOfMovement();

}
项目:openmaxims-linux    文件:Logic.java   
private void populateRecordBrowser(HandRangeOfMovementVoCollection voCollHandRangeOfMovements)
{
    if (voCollHandRangeOfMovements == null)
        return;

    form.recbrHandRangeOfMovements().clear();
    for (int i = 0; i < voCollHandRangeOfMovements.size(); i++)
    {
        if (form.getGlobalContext().Core.getCurrentClinicalContact() != null && voCollHandRangeOfMovements.get(i).getClinicalContact().equals(form.getGlobalContext().Core.getCurrentClinicalContact()))
        {
            form.recbrHandRangeOfMovements().newRow(voCollHandRangeOfMovements.get(i), buildBrowserLine(voCollHandRangeOfMovements.get(i)), null, Color.Green);
            form.recbrHandRangeOfMovements().setValue(voCollHandRangeOfMovements.get(i));
            selectHandRangeOfMovement();
        }
        else
        {
            form.recbrHandRangeOfMovements().newRow(voCollHandRangeOfMovements.get(i), buildBrowserLine(voCollHandRangeOfMovements.get(i)));
        }
    }

    if (form.recbrHandRangeOfMovements().size() > 0)
        selectHandRangeOfMovement();

}
项目:AvoinApotti    文件:HandRangeOfMovementImpl.java   
public HandRangeOfMovementVo getHandRangeOfMovementByClinicalContact(ClinicalContactRefVo voRefClinicalContact) 
{
    DomainFactory factory = getDomainFactory();             
    String hql;
    hql = " from HandRangeOfMovement m where m.clinicalContact.id = " + voRefClinicalContact.getID_ClinicalContact();

    HandRangeOfMovementVoCollection voCollHandRangeOfMovements =  HandRangeOfMovementVoAssembler.createHandRangeOfMovementVoCollectionFromHandRangeOfMovement(factory.find(hql));

    if (voCollHandRangeOfMovements.size() == 1)
        return voCollHandRangeOfMovements.get(0);
    else 
        return null;
}
项目:openMAXIMS    文件:HandRangeOfMovementImpl.java   
public HandRangeOfMovementVo getHandRangeOfMovementByClinicalContact(ClinicalContactRefVo voRefClinicalContact) 
{
    DomainFactory factory = getDomainFactory();             
    String hql;
    hql = " from HandRangeOfMovement m where m.clinicalContact.id = " + voRefClinicalContact.getID_ClinicalContact();

    HandRangeOfMovementVoCollection voCollHandRangeOfMovements =  HandRangeOfMovementVoAssembler.createHandRangeOfMovementVoCollectionFromHandRangeOfMovement(factory.find(hql));

    if (voCollHandRangeOfMovements.size() == 1)
        return voCollHandRangeOfMovements.get(0);
    else 
        return null;
}
项目:openMAXIMS    文件:HandRangeOfMovementImpl.java   
public HandRangeOfMovementVo getHandRangeOfMovementByClinicalContact(ClinicalContactRefVo voRefClinicalContact) 
{
    DomainFactory factory = getDomainFactory();             
    String hql;
    hql = " from HandRangeOfMovement m where m.clinicalContact.id = " + voRefClinicalContact.getID_ClinicalContact();

    HandRangeOfMovementVoCollection voCollHandRangeOfMovements =  HandRangeOfMovementVoAssembler.createHandRangeOfMovementVoCollectionFromHandRangeOfMovement(factory.find(hql));

    if (voCollHandRangeOfMovements.size() == 1)
        return voCollHandRangeOfMovements.get(0);
    else 
        return null;
}
项目:openmaxims-linux    文件:HandRangeOfMovementImpl.java   
public HandRangeOfMovementVo getHandRangeOfMovementByClinicalContact(ClinicalContactRefVo voRefClinicalContact) 
{
    DomainFactory factory = getDomainFactory();             
    String hql;
    hql = " from HandRangeOfMovement m where m.clinicalContact.id = " + voRefClinicalContact.getID_ClinicalContact();

    HandRangeOfMovementVoCollection voCollHandRangeOfMovements =  HandRangeOfMovementVoAssembler.createHandRangeOfMovementVoCollectionFromHandRangeOfMovement(factory.find(hql));

    if (voCollHandRangeOfMovements.size() == 1)
        return voCollHandRangeOfMovements.get(0);
    else 
        return null;
}
项目:AvoinApotti    文件:HandRangeOfMovementImpl.java   
public ims.therapies.vo.HandRangeOfMovementVoCollection listHandRangeOfMovementsForCareContext(ims.core.admin.vo.CareContextRefVo voRefCareContact)
{
    DomainFactory factory = getDomainFactory();
    String hql = " from HandRangeOfMovement h where h.clinicalContact.careContext.id = " + voRefCareContact.getID_CareContext();
    return HandRangeOfMovementVoAssembler.createHandRangeOfMovementVoCollectionFromHandRangeOfMovement(factory.find(hql));
}
项目:openMAXIMS    文件:HandRangeOfMovementImpl.java   
public ims.therapies.vo.HandRangeOfMovementVoCollection listHandRangeOfMovementsForCareContext(ims.core.admin.vo.CareContextRefVo voRefCareContact)
{
    DomainFactory factory = getDomainFactory();
    String hql = " from HandRangeOfMovement h where h.clinicalContact.careContext.id = " + voRefCareContact.getID_CareContext();
    return HandRangeOfMovementVoAssembler.createHandRangeOfMovementVoCollectionFromHandRangeOfMovement(factory.find(hql));
}
项目:openMAXIMS    文件:HandRangeOfMovementImpl.java   
public ims.therapies.vo.HandRangeOfMovementVoCollection listHandRangeOfMovementsForCareContext(ims.core.admin.vo.CareContextRefVo voRefCareContact)
{
    DomainFactory factory = getDomainFactory();
    String hql = " from HandRangeOfMovement h where h.clinicalContact.careContext.id = " + voRefCareContact.getID_CareContext();
    return HandRangeOfMovementVoAssembler.createHandRangeOfMovementVoCollectionFromHandRangeOfMovement(factory.find(hql));
}
项目:openmaxims-linux    文件:HandRangeOfMovementImpl.java   
public ims.therapies.vo.HandRangeOfMovementVoCollection listHandRangeOfMovementsForCareContext(ims.core.admin.vo.CareContextRefVo voRefCareContact)
{
    DomainFactory factory = getDomainFactory();
    String hql = " from HandRangeOfMovement h where h.clinicalContact.careContext.id = " + voRefCareContact.getID_CareContext();
    return HandRangeOfMovementVoAssembler.createHandRangeOfMovementVoCollectionFromHandRangeOfMovement(factory.find(hql));
}