Java 类ims.core.vo.ActivityLiteVoCollection 实例源码

项目:openMAXIMS    文件:ProfilesImpl.java   
public ActivityLiteVoCollection listActivityByService(ServiceRefVo serviceRef, Boolean isFlexible)
{

    if( serviceRef == null )
        return null;

    DomainFactory factory = getDomainFactory();
    String hql = null;
    if( Boolean.TRUE.equals(isFlexible))
    {
        hql = "select s1_1.activity from ServiceActivity as s1_1 left join s1_1.service as s2_1 left join s1_1.activity as a1_1 where (s1_1.isActive = 1 and s2_1.id = :serviceId  and s1_1.isFlexible = 1 and a1_1.isActive = 1)";   //wdev-20262
    }
    else
    {
        hql = "select s1_1.activity from ServiceActivity as s1_1 left join s1_1.service as s2_1 left join s1_1.activity as a1_1 where (s1_1.isActive = 1 and s2_1.id = :serviceId  and s1_1.isFlexible = 0 and a1_1.isActive = 1)";     //wdev-20262
    }
    List lst = factory.find(hql, new String[]{"serviceId"}, new Object[]{new Integer(serviceRef.getID_Service())});

    return (ActivityLiteVoAssembler.createActivityLiteVoCollectionFromActivity(lst));
}
项目:openMAXIMS    文件:ServiceConfigurationImpl.java   
public ActivityLiteVoCollection listActivities(String searchText)
{
    DomainFactory factory = getDomainFactory();
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    String hql = "select act from Activity as act left join act.activityType as actType where actType.id = :AppointmentType and act.isActive = 1 ";
    markers.add("AppointmentType");
    values.add(ActivityType.APPOINTMENTTYPES.getID());

    if(searchText != null)
    {
        hql += " and UPPER(act.name) like :ActivityName ";
        markers.add("ActivityName");
        values.add(searchText.toUpperCase() + "%");
    }

    hql += " order by UPPER(act.name) asc";

    List<?> list = factory.find(hql, markers, values);

    return ActivityLiteVoAssembler.createActivityLiteVoCollectionFromActivity(list);
}
项目:AvoinApotti    文件:Logic.java   
private void populateActivityCombo()
{
    ActivityLiteVoCollection activities = domain.listActivities();

    form.ctnDetails().cmbActivity().clear();
    for (int i = 0; i < activities.size(); i++)
    {
        form.ctnDetails().cmbActivity().newRow(activities.get(i), activities.get(i).getName());
    }

}
项目:AvoinApotti    文件:Logic.java   
private void populateActivities(ActivityStatusToPathwayEventVoCollection activitiesToPathVoColl)
{
    ActivityStatusToPathwayEventVoCollection counted = activitiesToPathVoColl.sort();
    ActivityStatusToPathwayEventVoCollection sorted = counted;

    ActivityLiteVoCollection activities = new ActivityLiteVoCollection();
    ActivityLiteVoCollection countedActivity = new ActivityLiteVoCollection();

    for (int g = 0; g < activitiesToPathVoColl.size(); g++)
    {
        activities.add(activitiesToPathVoColl.get(g).getActivity());
    }

    int j;

    for (j = 0; j < counted.size(); j++)
    {

        if (activities.contains(counted.get(j).getActivity()) && (!countedActivity.contains(counted.get(j).getActivity())))
        {
            countedActivity.add(counted.get(j).getActivity());
            form.treList().getNodes().add(activitiesToPathVoColl.get(j), " Activity: " + activitiesToPathVoColl.get(j).getActivity().getName().toString());

        }

    }

}
项目:AvoinApotti    文件:Logic.java   
private void addActivityRow(SessionActivityLiteVo voSessionAct)
{
    GenForm.lyrSessEditLayer.tabActivityContainer.grdActivitiesRow aRow;
    aRow = form.lyrSessEdit().tabActivity().grdActivities().getRows().newRow();

    if(voSessionAct == null)
    {
        ActivityLiteVoCollection voCollActivity = domain.listActivity();
        if(voCollActivity != null)
        {
            for(ActivityLiteVo voAct : voCollActivity)
            {
                aRow.getcolActivity().newRow(voAct, voAct.getName());
            }
            if(voCollActivity.size() == 1)
                aRow.getcolActivity().setValue(voCollActivity.get(0));
            else if(voCollActivity.size() > 1)
                aRow.getcolActivity().showOpened();     

            aRow.setValue(new SessionActivityLiteVo());
        }

    }
    else
    {
        if (voSessionAct.getActivityIsNotNull())
        {
            aRow.getcolActivity().newRow(voSessionAct.getActivity(), voSessionAct.getActivity().getName());
            aRow.getcolActivity().setValue(voSessionAct.getActivity());

            aRow.setcolActive(voSessionAct.getIsActive());
            aRow.setValue(voSessionAct);
            aRow.setSelectable(false);  
        }
    }   
}
项目:AvoinApotti    文件:ProfilesImpl.java   
public ActivityLiteVoCollection listActivity()
{
    DomainFactory factory = getDomainFactory();
    String hql = "from Activity act";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";
    StringBuffer condStr = new StringBuffer();

    condStr.append(andStr + " act.isActive = :active");
    markers.add("active");
    values.add(Boolean.TRUE);   
    andStr = " and ";

    condStr.append(andStr + " act.activityType != :investigation");
    markers.add("investigation");
    values.add(getDomLookup(ActivityType.INVESTIGATION));   
    andStr = " and ";

    if(andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();  
    List activities =  factory.find(hql, markers, values);
    return ActivityLiteVoAssembler.createActivityLiteVoCollectionFromActivity(activities);
}
项目:openMAXIMS    文件:Logic.java   
private void populateActivityCombo()
{
    ActivityLiteVoCollection activities = domain.listActivities();

    form.ctnDetails().cmbActivity().clear();
    for (int i = 0; i < activities.size(); i++)
    {
        form.ctnDetails().cmbActivity().newRow(activities.get(i), activities.get(i).getName());
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateActivities(ActivityStatusToPathwayEventVoCollection activitiesToPathVoColl)
{
    ActivityStatusToPathwayEventVoCollection counted = activitiesToPathVoColl.sort();
    ActivityStatusToPathwayEventVoCollection sorted = counted;

    ActivityLiteVoCollection activities = new ActivityLiteVoCollection();
    ActivityLiteVoCollection countedActivity = new ActivityLiteVoCollection();

    for (int g = 0; g < activitiesToPathVoColl.size(); g++)
    {
        activities.add(activitiesToPathVoColl.get(g).getActivity());
    }

    int j;

    for (j = 0; j < counted.size(); j++)
    {

        if (activities.contains(counted.get(j).getActivity()) && (!countedActivity.contains(counted.get(j).getActivity())))
        {
            countedActivity.add(counted.get(j).getActivity());
            form.treList().getNodes().add(activitiesToPathVoColl.get(j), " Activity: " + activitiesToPathVoColl.get(j).getActivity().getName().toString());

        }

    }

}
项目:openMAXIMS    文件:Logic.java   
private void addFlexibleActivityRow(SessionActivityLiteVo voSessionAct)
{
    grdActivitiesSlotsRow aRow = form.lyrSessEdit().tabActivitiesWithSlots().grdActivitiesSlots().getRows().newRow();

    if(voSessionAct == null)
    {
        ActivityLiteVoCollection voCollActivity = domain.listActivity();

        if(voCollActivity != null)
        {
            for(ActivityLiteVo voAct : voCollActivity)
            {
                aRow.getColActivity().newRow(voAct, voAct.getName());
            }

            if(voCollActivity.size() == 1)
                aRow.getColActivity().setValue(voCollActivity.get(0));
            else if(voCollActivity.size() > 1)
                aRow.getColActivity().showOpened();     

            aRow.setValue(new SessionActivityLiteVo());
        }

    }
    else if (voSessionAct.getActivity() != null)
    {

        aRow.getColActivity().newRow(voSessionAct.getActivity(), voSessionAct.getActivity().getName());
        aRow.getColActivity().setValue(voSessionAct.getActivity());

        aRow.setColActive(voSessionAct.getIsActive());
        aRow.setValue(voSessionAct);
        aRow.setSelectable(false);  
    }

}
项目:openMAXIMS    文件:Logic.java   
private void addActivityRow(SessionActivityLiteVo voSessionAct)
{
    GenForm.lyrSessEditLayer.tabActivityContainer.grdActivitiesRow aRow;
    aRow = form.lyrSessEdit().tabActivity().grdActivities().getRows().newRow();

    if(voSessionAct == null)
    {
        ActivityLiteVoCollection voCollActivity = domain.listActivity();
        if(voCollActivity != null)
        {
            for(ActivityLiteVo voAct : voCollActivity)
            {
                aRow.getcolActivity().newRow(voAct, voAct.getName());
            }
            if(voCollActivity.size() == 1)
                aRow.getcolActivity().setValue(voCollActivity.get(0));
            else if(voCollActivity.size() > 1)
                aRow.getcolActivity().showOpened();     

            aRow.setValue(new SessionActivityLiteVo());
        }

    }
    else
    {
        if (voSessionAct.getActivityIsNotNull())
        {
            aRow.getcolActivity().newRow(voSessionAct.getActivity(), voSessionAct.getActivity().getName());
            aRow.getcolActivity().setValue(voSessionAct.getActivity());

            aRow.setcolActive(voSessionAct.getIsActive());
            aRow.setValue(voSessionAct);
            aRow.setSelectable(false);  
        }
    }   
}
项目:openMAXIMS    文件:ProfilesImpl.java   
public ActivityLiteVoCollection listActivity()
{
    DomainFactory factory = getDomainFactory();
    String hql = "from Activity act";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";
    StringBuffer condStr = new StringBuffer();

    condStr.append(andStr + " act.isActive = :active");
    markers.add("active");
    values.add(Boolean.TRUE);   
    andStr = " and ";

    condStr.append(andStr + " act.activityType != :investigation");
    markers.add("investigation");
    values.add(getDomLookup(ActivityType.INVESTIGATION));   
    andStr = " and ";

    if(andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();  
    List activities =  factory.find(hql, markers, values);
    return ActivityLiteVoAssembler.createActivityLiteVoCollectionFromActivity(activities);
}
项目:openMAXIMS    文件:Logic.java   
private void searchActivities(String value)
{
    form.lyrService().tabActivityandFunctions().qmbAppointmentType().clear();

    if(value == null || value.length() == 0)
        return;

    ActivityLiteVoCollection activities = domain.listActivities(value);

    if(activities != null)
    {
        for(int i=0; i<activities.size(); i++)
        {
            ActivityLiteVo activity = activities.get(i);

            if(activity == null)
                continue;

            form.lyrService().tabActivityandFunctions().qmbAppointmentType().newRow(activity, activity.getName());
        }

        if(activities.size() == 1)
        {
            form.lyrService().tabActivityandFunctions().qmbAppointmentType().setValue(activities.get(0));
        }
        else
        {
            form.lyrService().tabActivityandFunctions().qmbAppointmentType().showOpened();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateActivityCombo()
{
    ActivityLiteVoCollection activities = domain.listActivities();

    form.ctnDetails().cmbActivity().clear();
    for (int i = 0; i < activities.size(); i++)
    {
        form.ctnDetails().cmbActivity().newRow(activities.get(i), activities.get(i).getName());
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateActivities(ActivityStatusToPathwayEventVoCollection activitiesToPathVoColl)
{
    ActivityStatusToPathwayEventVoCollection counted = activitiesToPathVoColl.sort();
    ActivityStatusToPathwayEventVoCollection sorted = counted;

    ActivityLiteVoCollection activities = new ActivityLiteVoCollection();
    ActivityLiteVoCollection countedActivity = new ActivityLiteVoCollection();

    for (int g = 0; g < activitiesToPathVoColl.size(); g++)
    {
        activities.add(activitiesToPathVoColl.get(g).getActivity());
    }

    int j;

    for (j = 0; j < counted.size(); j++)
    {

        if (activities.contains(counted.get(j).getActivity()) && (!countedActivity.contains(counted.get(j).getActivity())))
        {
            countedActivity.add(counted.get(j).getActivity());
            form.treList().getNodes().add(activitiesToPathVoColl.get(j), " Activity: " + activitiesToPathVoColl.get(j).getActivity().getName().toString());

        }

    }

}
项目:openMAXIMS    文件:Logic.java   
private void addActivityRow(SessionActivityLiteVo voSessionAct)
{
    GenForm.lyrSessEditLayer.tabActivityContainer.grdActivitiesRow aRow;
    aRow = form.lyrSessEdit().tabActivity().grdActivities().getRows().newRow();

    if(voSessionAct == null)
    {
        ActivityLiteVoCollection voCollActivity = domain.listActivity();
        if(voCollActivity != null)
        {
            for(ActivityLiteVo voAct : voCollActivity)
            {
                aRow.getcolActivity().newRow(voAct, voAct.getName());
            }
            if(voCollActivity.size() == 1)
                aRow.getcolActivity().setValue(voCollActivity.get(0));
            else if(voCollActivity.size() > 1)
                aRow.getcolActivity().showOpened();     

            aRow.setValue(new SessionActivityLiteVo());
        }

    }
    else
    {
        if (voSessionAct.getActivityIsNotNull())
        {
            aRow.getcolActivity().newRow(voSessionAct.getActivity(), voSessionAct.getActivity().getName());
            aRow.getcolActivity().setValue(voSessionAct.getActivity());

            aRow.setcolActive(voSessionAct.getIsActive());
            aRow.setValue(voSessionAct);
            aRow.setSelectable(false);  
        }
    }   
}
项目:openMAXIMS    文件:ProfilesImpl.java   
public ActivityLiteVoCollection listActivity()
{
    DomainFactory factory = getDomainFactory();
    String hql = "from Activity act";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";
    StringBuffer condStr = new StringBuffer();

    condStr.append(andStr + " act.isActive = :active");
    markers.add("active");
    values.add(Boolean.TRUE);   
    andStr = " and ";

    condStr.append(andStr + " act.activityType != :investigation");
    markers.add("investigation");
    values.add(getDomLookup(ActivityType.INVESTIGATION));   
    andStr = " and ";

    if(andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();  
    List activities =  factory.find(hql, markers, values);
    return ActivityLiteVoAssembler.createActivityLiteVoCollectionFromActivity(activities);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateActivityCombo()
{
    ActivityLiteVoCollection activities = domain.listActivities();

    form.ctnDetails().cmbActivity().clear();
    for (int i = 0; i < activities.size(); i++)
    {
        form.ctnDetails().cmbActivity().newRow(activities.get(i), activities.get(i).getName());
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void populateActivities(ActivityStatusToPathwayEventVoCollection activitiesToPathVoColl)
{
    ActivityStatusToPathwayEventVoCollection counted = activitiesToPathVoColl.sort();
    ActivityStatusToPathwayEventVoCollection sorted = counted;

    ActivityLiteVoCollection activities = new ActivityLiteVoCollection();
    ActivityLiteVoCollection countedActivity = new ActivityLiteVoCollection();

    for (int g = 0; g < activitiesToPathVoColl.size(); g++)
    {
        activities.add(activitiesToPathVoColl.get(g).getActivity());
    }

    int j;

    for (j = 0; j < counted.size(); j++)
    {

        if (activities.contains(counted.get(j).getActivity()) && (!countedActivity.contains(counted.get(j).getActivity())))
        {
            countedActivity.add(counted.get(j).getActivity());
            form.treList().getNodes().add(activitiesToPathVoColl.get(j), " Activity: " + activitiesToPathVoColl.get(j).getActivity().getName().toString());

        }

    }

}
项目:openmaxims-linux    文件:Logic.java   
private void addActivityRow(SessionActivityLiteVo voSessionAct)
{
    GenForm.lyrSessEditLayer.tabActivityContainer.grdActivitiesRow aRow;
    aRow = form.lyrSessEdit().tabActivity().grdActivities().getRows().newRow();

    if(voSessionAct == null)
    {
        ActivityLiteVoCollection voCollActivity = domain.listActivity();
        if(voCollActivity != null)
        {
            for(ActivityLiteVo voAct : voCollActivity)
            {
                aRow.getcolActivity().newRow(voAct, voAct.getName());
            }
            if(voCollActivity.size() == 1)
                aRow.getcolActivity().setValue(voCollActivity.get(0));
            else if(voCollActivity.size() > 1)
                aRow.getcolActivity().showOpened();     

            aRow.setValue(new SessionActivityLiteVo());
        }

    }
    else
    {
        if (voSessionAct.getActivityIsNotNull())
        {
            aRow.getcolActivity().newRow(voSessionAct.getActivity(), voSessionAct.getActivity().getName());
            aRow.getcolActivity().setValue(voSessionAct.getActivity());

            aRow.setcolActive(voSessionAct.getIsActive());
            aRow.setValue(voSessionAct);
            aRow.setSelectable(false);  
        }
    }   
}
项目:openmaxims-linux    文件:ProfilesImpl.java   
public ActivityLiteVoCollection listActivity()
{
    DomainFactory factory = getDomainFactory();
    String hql = "from Activity act";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";
    StringBuffer condStr = new StringBuffer();

    condStr.append(andStr + " act.isActive = :active");
    markers.add("active");
    values.add(Boolean.TRUE);   
    andStr = " and ";

    condStr.append(andStr + " act.activityType != :investigation");
    markers.add("investigation");
    values.add(getDomLookup(ActivityType.INVESTIGATION));   
    andStr = " and ";

    if(andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();  
    List activities =  factory.find(hql, markers, values);
    return ActivityLiteVoAssembler.createActivityLiteVoCollectionFromActivity(activities);
}
项目:AvoinApotti    文件:SessionAdminImpl.java   
public ActivityLiteVoCollection listActivity()
{
    Profiles impl = (Profiles) getDomainImpl(ProfilesImpl.class);
    return impl.listActivity();
}
项目:openMAXIMS    文件:SessionAdminImpl.java   
public ActivityLiteVoCollection listActivity()
{
    Profiles impl = (Profiles) getDomainImpl(ProfilesImpl.class);
    return impl.listActivity();
}
项目:openmaxims-linux    文件:SessionAdminImpl.java   
public ActivityLiteVoCollection listActivity()
{
    Profiles impl = (Profiles) getDomainImpl(ProfilesImpl.class);
    return impl.listActivity();
}
项目:AvoinApotti    文件:LinkActivitiesToPathwayEventsImpl.java   
public ActivityLiteVoCollection listActivities()
{
    ActivityLiteVoCollection activities = new ActivityLiteVoCollection(); 

    DomainFactory factory = getDomainFactory();

    List activityList = factory.find("from Activity");

    activities = ActivityLiteVoAssembler.createActivityLiteVoCollectionFromActivity(activityList);

    return activities;

}
项目:openMAXIMS    文件:LinkActivitiesToPathwayEventsImpl.java   
public ActivityLiteVoCollection listActivities()
{
    ActivityLiteVoCollection activities = new ActivityLiteVoCollection(); 

    DomainFactory factory = getDomainFactory();

    List activityList = factory.find("from Activity");

    activities = ActivityLiteVoAssembler.createActivityLiteVoCollectionFromActivity(activityList);

    return activities;

}
项目:openMAXIMS    文件:SessionAdminImpl.java   
public ActivityLiteVoCollection listActivity()
{
    Profiles impl = (Profiles) getDomainImpl(ProfilesImpl.class);
    return impl.listActivity();
}
项目:openMAXIMS    文件:LinkActivitiesToPathwayEventsImpl.java   
public ActivityLiteVoCollection listActivities()
{
    ActivityLiteVoCollection activities = new ActivityLiteVoCollection(); 

    DomainFactory factory = getDomainFactory();

    List activityList = factory.find("from Activity");

    activities = ActivityLiteVoAssembler.createActivityLiteVoCollectionFromActivity(activityList);

    return activities;

}
项目:openmaxims-linux    文件:LinkActivitiesToPathwayEventsImpl.java   
public ActivityLiteVoCollection listActivities()
{
    ActivityLiteVoCollection activities = new ActivityLiteVoCollection(); 

    DomainFactory factory = getDomainFactory();

    List activityList = factory.find("from Activity");

    activities = ActivityLiteVoAssembler.createActivityLiteVoCollectionFromActivity(activityList);

    return activities;

}