Java 类ims.emergency.vo.TreatmentInterventionForAdviceLeafletVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private boolean collectionHasInterventionTreatmentAlready(InterventionTreatmentDetailForAdviceLeafletVoCollection intreatDetCollVo, TreatmentInterventionForAdviceLeafletVo tempVo )
{
    if( intreatDetCollVo != null && intreatDetCollVo.size() > 0 && tempVo != null )
    {
        for( int i = 0; i < intreatDetCollVo.size();i++ )
        {
            InterventionTreatmentDetailForAdviceLeafletVo intreatVo = intreatDetCollVo.get(i); 
            if( intreatVo != null && intreatVo.getTreatmentInterventionIsNotNull())
            {
                if( intreatVo.getTreatmentIntervention().getID_TreatmentInterventionIsNotNull() && intreatVo.getTreatmentIntervention().getID_TreatmentIntervention().equals(tempVo.getID_TreatmentIntervention()))
                    return true;
            }
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean collectionHasInterventionTreatmentAlready(InterventionTreatmentDetailForAdviceLeafletVoCollection intreatDetCollVo, TreatmentInterventionForAdviceLeafletVo tempVo )
{
    if( intreatDetCollVo != null && intreatDetCollVo.size() > 0 && tempVo != null )
    {
        for( int i = 0; i < intreatDetCollVo.size();i++ )
        {
            InterventionTreatmentDetailForAdviceLeafletVo intreatVo = intreatDetCollVo.get(i); 
            if( intreatVo != null && intreatVo.getTreatmentInterventionIsNotNull())
            {
                if( intreatVo.getTreatmentIntervention().getID_TreatmentInterventionIsNotNull() && intreatVo.getTreatmentIntervention().getID_TreatmentIntervention().equals(tempVo.getID_TreatmentIntervention()))
                    return true;
            }
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean collectionHasInterventionTreatmentAlready(InterventionTreatmentDetailForAdviceLeafletVoCollection intreatDetCollVo, TreatmentInterventionForAdviceLeafletVo tempVo )
{
    if( intreatDetCollVo != null && intreatDetCollVo.size() > 0 && tempVo != null )
    {
        for( int i = 0; i < intreatDetCollVo.size();i++ )
        {
            InterventionTreatmentDetailForAdviceLeafletVo intreatVo = intreatDetCollVo.get(i); 
            if( intreatVo != null && intreatVo.getTreatmentInterventionIsNotNull())
            {
                if( intreatVo.getTreatmentIntervention().getID_TreatmentInterventionIsNotNull() && intreatVo.getTreatmentIntervention().getID_TreatmentIntervention().equals(tempVo.getID_TreatmentIntervention()))
                    return true;
            }
        }
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean collectionHasInterventionTreatmentAlready(InterventionTreatmentDetailForAdviceLeafletVoCollection intreatDetCollVo, TreatmentInterventionForAdviceLeafletVo tempVo )
{
    if( intreatDetCollVo != null && intreatDetCollVo.size() > 0 && tempVo != null )
    {
        for( int i = 0; i < intreatDetCollVo.size();i++ )
        {
            InterventionTreatmentDetailForAdviceLeafletVo intreatVo = intreatDetCollVo.get(i); 
            if( intreatVo != null && intreatVo.getTreatmentInterventionIsNotNull())
            {
                if( intreatVo.getTreatmentIntervention().getID_TreatmentInterventionIsNotNull() && intreatVo.getTreatmentIntervention().getID_TreatmentIntervention().equals(tempVo.getID_TreatmentIntervention()))
                    return true;
            }
        }
    }

    return false;
}
项目:AvoinApotti    文件:DischargePlanning_AdviceMobilityEquipmentImpl.java   
public TreatmentInterventionForAdviceLeafletVo getTreatmentIntervention(TaxonomyType taxonomyType, String taxonomyCode) 
{

    if( taxonomyType == null && taxonomyCode == null)
        throw new CodingRuntimeException("TaxonomyType and taxonomyCode are null.");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();


    hql.append("select t1_1 from TreatmentIntervention as t1_1 left join t1_1.taxonomyMap as t2_1 left join t2_1.taxonomyName as l1_1 where (t2_1.taxonomyCode = :taxonomyCode and l1_1.id = :taxonomyType and t1_1.isActive = 1)");

    List<?> list = factory.find(hql.toString(), new String[] {"taxonomyCode","taxonomyType"}, new Object[] {taxonomyCode,taxonomyType.getID()});

    if( list != null && list.size() > 0 )
        return TreatmentInterventionForAdviceLeafletVoAssembler.createTreatmentInterventionForAdviceLeafletVoCollectionFromTreatmentIntervention(list).get(0);


    return null;
}
项目:openMAXIMS    文件:DischargePlanning_AdviceMobilityEquipmentImpl.java   
public TreatmentInterventionForAdviceLeafletVo getTreatmentIntervention(TaxonomyType taxonomyType, String taxonomyCode) 
{

    if( taxonomyType == null && taxonomyCode == null)
        throw new CodingRuntimeException("TaxonomyType and taxonomyCode are null.");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();


    hql.append("select t1_1 from TreatmentIntervention as t1_1 left join t1_1.taxonomyMap as t2_1 left join t2_1.taxonomyName as l1_1 where (t2_1.taxonomyCode = :taxonomyCode and l1_1.id = :taxonomyType and t1_1.isActive = 1)");

    List<?> list = factory.find(hql.toString(), new String[] {"taxonomyCode","taxonomyType"}, new Object[] {taxonomyCode,taxonomyType.getID()});

    if( list != null && list.size() > 0 )
        return TreatmentInterventionForAdviceLeafletVoAssembler.createTreatmentInterventionForAdviceLeafletVoCollectionFromTreatmentIntervention(list).get(0);


    return null;
}
项目:openMAXIMS    文件:DischargePlanning_AdviceMobilityEquipmentImpl.java   
public TreatmentInterventionForAdviceLeafletVo getTreatmentIntervention(TaxonomyType taxonomyType, String taxonomyCode) 
{

    if( taxonomyType == null && taxonomyCode == null)
        throw new CodingRuntimeException("TaxonomyType and taxonomyCode are null.");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();


    hql.append("select t1_1 from TreatmentIntervention as t1_1 left join t1_1.taxonomyMap as t2_1 left join t2_1.taxonomyName as l1_1 where (t2_1.taxonomyCode = :taxonomyCode and l1_1.id = :taxonomyType and t1_1.isActive = 1)");

    List<?> list = factory.find(hql.toString(), new String[] {"taxonomyCode","taxonomyType"}, new Object[] {taxonomyCode,taxonomyType.getID()});

    if( list != null && list.size() > 0 )
        return TreatmentInterventionForAdviceLeafletVoAssembler.createTreatmentInterventionForAdviceLeafletVoCollectionFromTreatmentIntervention(list).get(0);


    return null;
}
项目:openmaxims-linux    文件:DischargePlanning_AdviceMobilityEquipmentImpl.java   
public TreatmentInterventionForAdviceLeafletVo getTreatmentIntervention(TaxonomyType taxonomyType, String taxonomyCode) 
{

    if( taxonomyType == null && taxonomyCode == null)
        throw new CodingRuntimeException("TaxonomyType and taxonomyCode are null.");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();


    hql.append("select t1_1 from TreatmentIntervention as t1_1 left join t1_1.taxonomyMap as t2_1 left join t2_1.taxonomyName as l1_1 where (t2_1.taxonomyCode = :taxonomyCode and l1_1.id = :taxonomyType and t1_1.isActive = 1)");

    List<?> list = factory.find(hql.toString(), new String[] {"taxonomyCode","taxonomyType"}, new Object[] {taxonomyCode,taxonomyType.getID()});

    if( list != null && list.size() > 0 )
        return TreatmentInterventionForAdviceLeafletVoAssembler.createTreatmentInterventionForAdviceLeafletVoCollectionFromTreatmentIntervention(list).get(0);


    return null;
}