Java 类ims.core.vo.domain.AneAttendanceVoAssembler 实例源码

项目:AvoinApotti    文件:ADTImpl.java   
public AneAttendanceVo getAnEAttendance(PasEventVo pasEventVo)
{
    DomainFactory factory = getDomainFactory();

    PASEvent domEvent = PASEvent.getPASEventFrompasevent_unq1(factory, (Patient)factory.getDomainObject(Patient.class, pasEventVo.getPatient().getID_Patient()), pasEventVo.getPasEventId());
    if (domEvent != null)
    {
        String hql = " from AEAttendance o where o.pasEvent.id = :pasEvent";
        List<?> lst = factory.find(hql, new String[]{"pasEvent"}, new Object[]{domEvent.getId()});
        if (lst != null && lst.size() == 1)
            return AneAttendanceVoAssembler.create((AEAttendance) lst.get(0));
    }

    return null;
}
项目:openMAXIMS    文件:ADTImpl.java   
public AneAttendanceVo getAnEAttendance(PasEventVo pasEventVo)
{
    DomainFactory factory = getDomainFactory();

    PASEvent domEvent = PASEvent.getPASEventFrompasevent_unq1(factory, (Patient)factory.getDomainObject(Patient.class, pasEventVo.getPatient().getID_Patient()), pasEventVo.getPasEventId());
    if (domEvent != null)
    {
        String hql = " from AEAttendance o where o.pasEvent.id = :pasEvent";
        List<?> lst = factory.find(hql, new String[]{"pasEvent"}, new Object[]{domEvent.getId()});
        if (lst != null && lst.size() == 1)
            return AneAttendanceVoAssembler.create((AEAttendance) lst.get(0));
    }

    return null;
}
项目:openMAXIMS    文件:ADTImpl.java   
public AneAttendanceVo getAnEAttendance(PasEventVo pasEventVo)
{
    DomainFactory factory = getDomainFactory();

    PASEvent domEvent = PASEvent.getPASEventFrompasevent_unq1(factory, (Patient)factory.getDomainObject(Patient.class, pasEventVo.getPatient().getID_Patient()), pasEventVo.getPasEventId());
    if (domEvent != null)
    {
        String hql = " from AEAttendance o where o.pasEvent.id = :pasEvent";
        List<?> lst = factory.find(hql, new String[]{"pasEvent"}, new Object[]{domEvent.getId()});
        if (lst != null && lst.size() == 1)
            return AneAttendanceVoAssembler.create((AEAttendance) lst.get(0));
    }

    return null;
}
项目:openmaxims-linux    文件:ADTImpl.java   
public AneAttendanceVo getAnEAttendance(PasEventVo pasEventVo)
{
    DomainFactory factory = getDomainFactory();

    PASEvent domEvent = PASEvent.getPASEventFrompasevent_unq1(factory, (Patient)factory.getDomainObject(Patient.class, pasEventVo.getPatient().getID_Patient()), pasEventVo.getPasEventId());
    if (domEvent != null)
    {
        String hql = " from AEAttendance o where o.pasEvent.id = :pasEvent";
        List<?> lst = factory.find(hql, new String[]{"pasEvent"}, new Object[]{domEvent.getId()});
        if (lst != null && lst.size() == 1)
            return AneAttendanceVoAssembler.create((AEAttendance) lst.get(0));
    }

    return null;
}