Java 类ims.clinical.vo.domain.SurgicalOperationNotesShortVoAssembler 实例源码

项目:AvoinApotti    文件:EDischargeOpsProcsComponentImpl.java   
public SurgicalOperationNotesShortVo getSurgicalOperationNotesShort( CareContextRefVo careContextRef) 
{
    if( careContextRef == null)
        return null;
    DomainFactory factory = getDomainFactory();

    List result = factory.find("select s1_1 from SurgicalOperationNotes as s1_1 left join s1_1.careContext as c1_1  where (c1_1.id = :carecontextId)", new String[]{"carecontextId"}, new Object[]{careContextRef.getID_CareContext()});
    if(result != null && result.size() > 0)
    {
        SurgicalOperationNotesShortVoCollection tempColl = SurgicalOperationNotesShortVoAssembler.createSurgicalOperationNotesShortVoCollectionFromSurgicalOperationNotes(result);

        if( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);
    }

    return null;


}
项目:openMAXIMS    文件:EDischargeOpsProcsComponentImpl.java   
public SurgicalOperationNotesShortVo getSurgicalOperationNotesShort( CareContextRefVo careContextRef) 
{
    if( careContextRef == null)
        return null;
    DomainFactory factory = getDomainFactory();

    List result = factory.find("select s1_1 from SurgicalOperationNotes as s1_1 left join s1_1.careContext as c1_1  where (c1_1.id = :carecontextId)", new String[]{"carecontextId"}, new Object[]{careContextRef.getID_CareContext()});
    if(result != null && result.size() > 0)
    {
        SurgicalOperationNotesShortVoCollection tempColl = SurgicalOperationNotesShortVoAssembler.createSurgicalOperationNotesShortVoCollectionFromSurgicalOperationNotes(result);

        if( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);
    }

    return null;


}
项目:openMAXIMS    文件:EDischargeOpsProcsComponentImpl.java   
public SurgicalOperationNotesShortVo getSurgicalOperationNotesShort( CareContextRefVo careContextRef) 
{
    if( careContextRef == null)
        return null;
    DomainFactory factory = getDomainFactory();

    List result = factory.find("select s1_1 from SurgicalOperationNotes as s1_1 left join s1_1.careContext as c1_1  where (c1_1.id = :carecontextId)", new String[]{"carecontextId"}, new Object[]{careContextRef.getID_CareContext()});
    if(result != null && result.size() > 0)
    {
        SurgicalOperationNotesShortVoCollection tempColl = SurgicalOperationNotesShortVoAssembler.createSurgicalOperationNotesShortVoCollectionFromSurgicalOperationNotes(result);

        if( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);
    }

    return null;


}
项目:openmaxims-linux    文件:EDischargeOpsProcsComponentImpl.java   
public SurgicalOperationNotesShortVo getSurgicalOperationNotesShort( CareContextRefVo careContextRef) 
{
    if( careContextRef == null)
        return null;
    DomainFactory factory = getDomainFactory();

    List result = factory.find("select s1_1 from SurgicalOperationNotes as s1_1 left join s1_1.careContext as c1_1  where (c1_1.id = :carecontextId)", new String[]{"carecontextId"}, new Object[]{careContextRef.getID_CareContext()});
    if(result != null && result.size() > 0)
    {
        SurgicalOperationNotesShortVoCollection tempColl = SurgicalOperationNotesShortVoAssembler.createSurgicalOperationNotesShortVoCollectionFromSurgicalOperationNotes(result);

        if( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);
    }

    return null;


}