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

项目:AvoinApotti    文件:EventHistoryImpl.java   
public ReferralToSpecialtyTeamForEventHistoryVoCollection getReferralsToSpecialty(CareContextRefVo careContextRef)
{
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get ReferralToSpecialtyTeamForEventHistoryVoCollection on null Id for CareContext ");
    }

    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    StringBuffer hql = new StringBuffer();

    hql.append(" select referral from ReferralToSpecTeam as referral left join referral.attendance as contextID where contextID.id = :contextID");
    markers.add("contextID");
    values.add(careContextRef.getID_CareContext());

    return ReferralToSpecialtyTeamForEventHistoryVoAssembler.createReferralToSpecialtyTeamForEventHistoryVoCollectionFromReferralToSpecTeam(factory.find(hql.toString(), markers, values));
}
项目:openMAXIMS    文件:EventHistoryImpl.java   
public ReferralToSpecialtyTeamForEventHistoryVoCollection getReferralsToSpecialty(CareContextRefVo careContextRef)
{
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get ReferralToSpecialtyTeamForEventHistoryVoCollection on null Id for CareContext ");
    }

    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    StringBuffer hql = new StringBuffer();

    hql.append(" select referral from ReferralToSpecTeam as referral left join referral.attendance as contextID where contextID.id = :contextID");
    markers.add("contextID");
    values.add(careContextRef.getID_CareContext());

    return ReferralToSpecialtyTeamForEventHistoryVoAssembler.createReferralToSpecialtyTeamForEventHistoryVoCollectionFromReferralToSpecTeam(factory.find(hql.toString(), markers, values));
}
项目:openMAXIMS    文件:EventHistoryImpl.java   
public ReferralToSpecialtyTeamForEventHistoryVoCollection getReferralsToSpecialty(CareContextRefVo careContextRef)
{
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get ReferralToSpecialtyTeamForEventHistoryVoCollection on null Id for CareContext ");
    }

    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    StringBuffer hql = new StringBuffer();

    hql.append(" select referral from ReferralToSpecTeam as referral left join referral.attendance as contextID where contextID.id = :contextID");
    markers.add("contextID");
    values.add(careContextRef.getID_CareContext());

    return ReferralToSpecialtyTeamForEventHistoryVoAssembler.createReferralToSpecialtyTeamForEventHistoryVoCollectionFromReferralToSpecTeam(factory.find(hql.toString(), markers, values));
}
项目:openmaxims-linux    文件:EventHistoryImpl.java   
public ReferralToSpecialtyTeamForEventHistoryVoCollection getReferralsToSpecialty(CareContextRefVo careContextRef)
{
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get ReferralToSpecialtyTeamForEventHistoryVoCollection on null Id for CareContext ");
    }

    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    StringBuffer hql = new StringBuffer();

    hql.append(" select referral from ReferralToSpecTeam as referral left join referral.attendance as contextID where contextID.id = :contextID");
    markers.add("contextID");
    values.add(careContextRef.getID_CareContext());

    return ReferralToSpecialtyTeamForEventHistoryVoAssembler.createReferralToSpecialtyTeamForEventHistoryVoCollectionFromReferralToSpecTeam(factory.find(hql.toString(), markers, values));
}
项目:AvoinApotti    文件:Logic.java   
private void populateGrids()
{
    SeenByHcpForEventHistoryVoCollection seenByHcp = domain.getSeenByHcp(form.getGlobalContext().Core.getCurrentCareContext());//WDEV-16816
    ReferralToSpecialtyTeamForEventHistoryVoCollection referralsToSpecialty = domain.getReferralsToSpecialty(form.getGlobalContext().Core.getCurrentCareContext());
    TrackingAttendanceStatusForEventHistoryVoCollection attendanceStatuses = domain.getTrackingAttendanceStatuses(form.getGlobalContext().Core.getCurrentCareContext());
    TrackingMovementTimesForEventHistoryVoCollection trackingMovementTimes = domain.getTrackingMovementTimes(form.getGlobalContext().Core.getCurrentCareContext());

    //WDEV-16816
    for (int i = 0; i < seenByHcp.size(); i++)
    {
        addSeenByHCPRowToGrid(seenByHcp.get(i));
    }

    for (int i = 0; i < referralsToSpecialty.size(); i++)
    {
        addReferralRowToGrid(referralsToSpecialty.get(i));
    }

    for (int i = 0; i < attendanceStatuses.size(); i++)
    {
        addAttendanceStatusRowToGrid(attendanceStatuses.get(i));
    }

    for (int i = 0; i < trackingMovementTimes.size(); i++)
    {
        addMovementTimeRowToGrid(trackingMovementTimes.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateSeenByHCPGrid()
{
    form.ctnTimes().grdSeenHCP().getRows().clear();

    if(form.recbrEmergencyAttendance().getValue() == null)
        return;

    SeenByHcpForEventHistoryVoCollection seenByHcp = domain.listSeenByHcp(form.recbrEmergencyAttendance().getValue().getCareContext());
    ReferralToSpecialtyTeamForEventHistoryVoCollection referralsToSpecialty = domain.listReferralsToSpecialty(form.recbrEmergencyAttendance().getValue().getCareContext());

    List<ValueObject> values = new ArrayList<ValueObject>();

    for (int i = 0; i < seenByHcp.size(); i++)
    {
        values.add(seenByHcp.get(i));
    }

    for (int i = 0; i < referralsToSpecialty.size(); i++)
    {
        values.add(referralsToSpecialty.get(i));
    }

    Collections.sort(values, new SeenByAndReferralToSpecialtyDateComparator(SortOrder.DESCENDING));

    for(int i = 0; i < values.size(); i++)
    {
        if(values.get(i) instanceof SeenByHcpForEventHistoryVo)
        {
            addSeenByHCPRowToGrid((SeenByHcpForEventHistoryVo) values.get(i));
        }
        else if(values.get(i) instanceof ReferralToSpecialtyTeamForEventHistoryVo)
        {
            addReferralRowToGrid((ReferralToSpecialtyTeamForEventHistoryVo) values.get(i));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrids()
{
    SeenByHcpForEventHistoryVoCollection seenByHcp = domain.getSeenByHcp(form.getGlobalContext().Core.getCurrentCareContext());//WDEV-16816
    ReferralToSpecialtyTeamForEventHistoryVoCollection referralsToSpecialty = domain.getReferralsToSpecialty(form.getGlobalContext().Core.getCurrentCareContext());
    TrackingAttendanceStatusForEventHistoryVoCollection attendanceStatuses = domain.getTrackingAttendanceStatuses(form.getGlobalContext().Core.getCurrentCareContext());
    TrackingMovementTimesForEventHistoryVoCollection trackingMovementTimes = domain.getTrackingMovementTimes(form.getGlobalContext().Core.getCurrentCareContext());

    //WDEV-16816
    for (int i = 0; i < seenByHcp.size(); i++)
    {
        addSeenByHCPRowToGrid(seenByHcp.get(i));
    }

    for (int i = 0; i < referralsToSpecialty.size(); i++)
    {
        addReferralRowToGrid(referralsToSpecialty.get(i));
    }

    for (int i = 0; i < attendanceStatuses.size(); i++)
    {
        addAttendanceStatusRowToGrid(attendanceStatuses.get(i));
    }

    for (int i = 0; i < trackingMovementTimes.size(); i++)
    {
        addMovementTimeRowToGrid(trackingMovementTimes.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrids()
{
    SeenByHcpForEventHistoryVoCollection seenByHcp = domain.getSeenByHcp(form.getGlobalContext().Core.getCurrentCareContext());//WDEV-16816
    ReferralToSpecialtyTeamForEventHistoryVoCollection referralsToSpecialty = domain.getReferralsToSpecialty(form.getGlobalContext().Core.getCurrentCareContext());
    TrackingAttendanceStatusForEventHistoryVoCollection attendanceStatuses = domain.getTrackingAttendanceStatuses(form.getGlobalContext().Core.getCurrentCareContext());
    TrackingMovementTimesForEventHistoryVoCollection trackingMovementTimes = domain.getTrackingMovementTimes(form.getGlobalContext().Core.getCurrentCareContext());

    //WDEV-16816
    for (int i = 0; i < seenByHcp.size(); i++)
    {
        addSeenByHCPRowToGrid(seenByHcp.get(i));
    }

    for (int i = 0; i < referralsToSpecialty.size(); i++)
    {
        addReferralRowToGrid(referralsToSpecialty.get(i));
    }

    for (int i = 0; i < attendanceStatuses.size(); i++)
    {
        addAttendanceStatusRowToGrid(attendanceStatuses.get(i));
    }

    for (int i = 0; i < trackingMovementTimes.size(); i++)
    {
        addMovementTimeRowToGrid(trackingMovementTimes.get(i));
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateGrids()
{
    SeenByHcpForEventHistoryVoCollection seenByHcp = domain.getSeenByHcp(form.getGlobalContext().Core.getCurrentCareContext());//WDEV-16816
    ReferralToSpecialtyTeamForEventHistoryVoCollection referralsToSpecialty = domain.getReferralsToSpecialty(form.getGlobalContext().Core.getCurrentCareContext());
    TrackingAttendanceStatusForEventHistoryVoCollection attendanceStatuses = domain.getTrackingAttendanceStatuses(form.getGlobalContext().Core.getCurrentCareContext());
    TrackingMovementTimesForEventHistoryVoCollection trackingMovementTimes = domain.getTrackingMovementTimes(form.getGlobalContext().Core.getCurrentCareContext());

    //WDEV-16816
    for (int i = 0; i < seenByHcp.size(); i++)
    {
        addSeenByHCPRowToGrid(seenByHcp.get(i));
    }

    for (int i = 0; i < referralsToSpecialty.size(); i++)
    {
        addReferralRowToGrid(referralsToSpecialty.get(i));
    }

    for (int i = 0; i < attendanceStatuses.size(); i++)
    {
        addAttendanceStatusRowToGrid(attendanceStatuses.get(i));
    }

    for (int i = 0; i < trackingMovementTimes.size(); i++)
    {
        addMovementTimeRowToGrid(trackingMovementTimes.get(i));
    }
}
项目:openMAXIMS    文件:EmergencyAttendanceTimeAmendmentsImpl.java   
public ReferralToSpecialtyTeamForEventHistoryVoCollection listReferralsToSpecialty(CareContextRefVo careContextRef)
{
    EventHistory impl = (EventHistory)getDomainImpl(EventHistoryImpl.class);
    return impl.getReferralsToSpecialty(careContextRef);
}