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

项目:AvoinApotti    文件:TestEditImpl.java   
private void checkTemplatesAndProfiles(Integer idInvestigation, InvestigationIndexVo voInvestigationIndex, DomainFactory factory) throws DomainInterfaceException
{
    // a new investigation provider record
    if (idInvestigation == null)
        return;

    // get investigation provider from collection
    InvestigationShortVo voInv = null;
    for (int i = 0; i < voInvestigationIndex.getInvestigations().size(); i++)
    {
        if (voInvestigationIndex.getInvestigations().get(i).getID_InvestigationIsNotNull() && voInvestigationIndex.getInvestigations().get(i).getID_Investigation().equals(idInvestigation))
            voInv = voInvestigationIndex.getInvestigations().get(i);
    }

    if (voInv.getActiveStatusIsNotNull() && voInv.getActiveStatus().equals(PreActiveActiveInactiveStatus.INACTIVE))
    {
        Investigation doInvRecord = (Investigation) factory.getDomainObject(Investigation.class, voInv.getID_Investigation());
        if (doInvRecord.getActiveStatus().equals(getDomLookup(PreActiveActiveInactiveStatus.ACTIVE)))
        {
            // check if this record is associated with an active
            // templates\profiles\ordersets
            List items = getAssociatedItems(factory, doInvRecord.getId());
            handleErrors(items);
        }
    }
}
项目:openMAXIMS    文件:TestEditImpl.java   
private void checkTemplatesAndProfiles(Integer idInvestigation, InvestigationIndexVo voInvestigationIndex, DomainFactory factory) throws DomainInterfaceException
{
    // a new investigation provider record
    if (idInvestigation == null)
        return;

    // get investigation provider from collection
    InvestigationShortVo voInv = null;
    for (int i = 0; i < voInvestigationIndex.getInvestigations().size(); i++)
    {
        if (voInvestigationIndex.getInvestigations().get(i).getID_InvestigationIsNotNull() && voInvestigationIndex.getInvestigations().get(i).getID_Investigation().equals(idInvestigation))
            voInv = voInvestigationIndex.getInvestigations().get(i);
    }

    if (voInv.getActiveStatusIsNotNull() && voInv.getActiveStatus().equals(PreActiveActiveInactiveStatus.INACTIVE))
    {
        Investigation doInvRecord = (Investigation) factory.getDomainObject(Investigation.class, voInv.getID_Investigation());
        if (doInvRecord.getActiveStatus().equals(getDomLookup(PreActiveActiveInactiveStatus.ACTIVE)))
        {
            // check if this record is associated with an active
            // templates\profiles\ordersets
            List items = getAssociatedItems(factory, doInvRecord.getId());
            handleErrors(items);
        }
    }
}
项目:openMAXIMS    文件:TestEditImpl.java   
private void checkTemplatesAndProfiles(Integer idInvestigation, InvestigationIndexVo voInvestigationIndex, DomainFactory factory) throws DomainInterfaceException
{
    // a new investigation provider record
    if (idInvestigation == null)
        return;

    // get investigation provider from collection
    InvestigationShortVo voInv = null;
    for (int i = 0; i < voInvestigationIndex.getInvestigations().size(); i++)
    {
        if (voInvestigationIndex.getInvestigations().get(i).getID_InvestigationIsNotNull() && voInvestigationIndex.getInvestigations().get(i).getID_Investigation().equals(idInvestigation))
            voInv = voInvestigationIndex.getInvestigations().get(i);
    }

    if (voInv.getActiveStatusIsNotNull() && voInv.getActiveStatus().equals(PreActiveActiveInactiveStatus.INACTIVE))
    {
        Investigation doInvRecord = (Investigation) factory.getDomainObject(Investigation.class, voInv.getID_Investigation());
        if (doInvRecord.getActiveStatus().equals(getDomLookup(PreActiveActiveInactiveStatus.ACTIVE)))
        {
            // check if this record is associated with an active
            // templates\profiles\ordersets
            List items = getAssociatedItems(factory, doInvRecord.getId());
            handleErrors(items);
        }
    }
}
项目:openmaxims-linux    文件:TestEditImpl.java   
private void checkTemplatesAndProfiles(Integer idInvestigation, InvestigationIndexVo voInvestigationIndex, DomainFactory factory) throws DomainInterfaceException
{
    // a new investigation provider record
    if (idInvestigation == null)
        return;

    // get investigation provider from collection
    InvestigationShortVo voInv = null;
    for (int i = 0; i < voInvestigationIndex.getInvestigations().size(); i++)
    {
        if (voInvestigationIndex.getInvestigations().get(i).getID_InvestigationIsNotNull() && voInvestigationIndex.getInvestigations().get(i).getID_Investigation().equals(idInvestigation))
            voInv = voInvestigationIndex.getInvestigations().get(i);
    }

    if (voInv.getActiveStatusIsNotNull() && voInv.getActiveStatus().equals(PreActiveActiveInactiveStatus.INACTIVE))
    {
        Investigation doInvRecord = (Investigation) factory.getDomainObject(Investigation.class, voInv.getID_Investigation());
        if (doInvRecord.getActiveStatus().equals(getDomLookup(PreActiveActiveInactiveStatus.ACTIVE)))
        {
            // check if this record is associated with an active
            // templates\profiles\ordersets
            List items = getAssociatedItems(factory, doInvRecord.getId());
            handleErrors(items);
        }
    }
}