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

项目:AvoinApotti    文件:Logic.java   
private void loadActivities()
{
    form.cmbActivity().clear();

    ActivitySchedVoCollection voCollActivities = domain.listActivitiesForType(ActivityType.APPOINTMENTTYPES);
    //wdev-12812
    if(voCollActivities != null)
    {
        voCollActivities.sort(new ActivityComparator(SortOrder.ASCENDING)); //wdev-12812
        for (int i = 0; i < voCollActivities.size(); i++)
        {
            if (voCollActivities.get(i).getNameIsNotNull())
                form.cmbActivity().newRow(voCollActivities.get(i), voCollActivities.get(i).getName());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadActivities()
{
    form.cmbActivity().clear();

    ActivitySchedVoCollection voCollActivities = domain.listActivitiesForType(ActivityType.APPOINTMENTTYPES);
    //wdev-12812
    if(voCollActivities != null)
    {
        voCollActivities.sort(new ActivityComparator(SortOrder.ASCENDING)); //wdev-12812
        for (int i = 0; i < voCollActivities.size(); i++)
        {
            if (voCollActivities.get(i).getNameIsNotNull())
                form.cmbActivity().newRow(voCollActivities.get(i), voCollActivities.get(i).getName());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadActivities()
{
    form.cmbActivity().clear();

    ActivitySchedVoCollection voCollActivities = domain.listActivitiesForType(ActivityType.APPOINTMENTTYPES);
    //wdev-12812
    if(voCollActivities != null)
    {
        voCollActivities.sort(new ActivityComparator(SortOrder.ASCENDING)); //wdev-12812
        for (int i = 0; i < voCollActivities.size(); i++)
        {
            if (voCollActivities.get(i).getNameIsNotNull())
                form.cmbActivity().newRow(voCollActivities.get(i), voCollActivities.get(i).getName());
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void loadActivities()
{
    form.cmbActivity().clear();

    ActivitySchedVoCollection voCollActivities = domain.listActivitiesForType(ActivityType.APPOINTMENTTYPES);
    //wdev-12812
    if(voCollActivities != null)
    {
        voCollActivities.sort(new ActivityComparator(SortOrder.ASCENDING)); //wdev-12812
        for (int i = 0; i < voCollActivities.size(); i++)
        {
            if (voCollActivities.get(i).getNameIsNotNull())
                form.cmbActivity().newRow(voCollActivities.get(i), voCollActivities.get(i).getName());
        }
    }
}
项目:AvoinApotti    文件:ActivityImpl.java   
public ActivitySchedVoCollection listSchedActivities(Boolean isActive)
{   
    DomainFactory factory = getDomainFactory();

    if(isActive == null)
        return ActivitySchedVoAssembler.createActivitySchedVoCollectionFromActivity(factory.listDomainObjects(Activity.class));

    return ActivitySchedVoAssembler.createActivitySchedVoCollectionFromActivity(factory.find(" select act from Activity act left join act.activityType as type where act.isActive = :isActive and type.id=-599" , new String[]{"isActive"},new Object[]{isActive}));
}
项目:AvoinApotti    文件:Logic.java   
private void loadActivities() {
    form.cmbActivity().clear();

    ActivitySchedVoCollection voCollActivities = domain
            .listActivitiesForType(ActivityType.APPOINTMENTTYPES,
                    form.getGlobalContext().RefMan.getCatsReferral());
    if (voCollActivities != null) {
        for (int i = 0; i < voCollActivities.size(); i++) {
            if (voCollActivities.get(i).getNameIsNotNull())
                form.cmbActivity().newRow(voCollActivities.get(i),
                        voCollActivities.get(i).getName());
        }
    }
}
项目:openMAXIMS    文件:ActivityImpl.java   
public ActivitySchedVoCollection listSchedActivities(Boolean isActive)
{   
    DomainFactory factory = getDomainFactory();

    if(isActive == null)
        return ActivitySchedVoAssembler.createActivitySchedVoCollectionFromActivity(factory.listDomainObjects(Activity.class));

    return ActivitySchedVoAssembler.createActivitySchedVoCollectionFromActivity(factory.find(" select act from Activity act left join act.activityType as type where act.isActive = :isActive and type.id=-599" , new String[]{"isActive"},new Object[]{isActive}));
}
项目:openMAXIMS    文件:Logic.java   
private void loadActivities()
{
    form.cmbActivity().clear();

    ActivitySchedVoCollection voCollActivities = domain.listActivitiesForType(ActivityType.APPOINTMENTTYPES, form.getGlobalContext().RefMan.getCatsReferral(), form.cmbService().getValue());

    if (voCollActivities != null)
    {
        for (int i = 0; i < voCollActivities.size(); i++)
        {
            if (voCollActivities.get(i).getNameIsNotNull())
                form.cmbActivity().newRow(voCollActivities.get(i), voCollActivities.get(i).getName());
        }
    }
}
项目:openMAXIMS    文件:ActivityImpl.java   
public ActivitySchedVoCollection listSchedActivities(Boolean isActive)
{   
    DomainFactory factory = getDomainFactory();

    if(isActive == null)
        return ActivitySchedVoAssembler.createActivitySchedVoCollectionFromActivity(factory.listDomainObjects(Activity.class));

    return ActivitySchedVoAssembler.createActivitySchedVoCollectionFromActivity(factory.find(" select act from Activity act left join act.activityType as type where act.isActive = :isActive and type.id=-599" , new String[]{"isActive"},new Object[]{isActive}));
}
项目:openMAXIMS    文件:Logic.java   
private void loadActivities() {
    form.cmbActivity().clear();

    ActivitySchedVoCollection voCollActivities = domain
            .listActivitiesForType(ActivityType.APPOINTMENTTYPES,
                    form.getGlobalContext().RefMan.getCatsReferral());
    if (voCollActivities != null) {
        for (int i = 0; i < voCollActivities.size(); i++) {
            if (voCollActivities.get(i).getNameIsNotNull())
                form.cmbActivity().newRow(voCollActivities.get(i),
                        voCollActivities.get(i).getName());
        }
    }
}
项目:openmaxims-linux    文件:ActivityImpl.java   
public ActivitySchedVoCollection listSchedActivities(Boolean isActive)
{   
    DomainFactory factory = getDomainFactory();

    if(isActive == null)
        return ActivitySchedVoAssembler.createActivitySchedVoCollectionFromActivity(factory.listDomainObjects(Activity.class));

    return ActivitySchedVoAssembler.createActivitySchedVoCollectionFromActivity(factory.find(" select act from Activity act left join act.activityType as type where act.isActive = :isActive and type.id=-599" , new String[]{"isActive"},new Object[]{isActive}));
}
项目:AvoinApotti    文件:BookAppointmentImpl.java   
public ActivitySchedVoCollection listActivitiesForType(ActivityType actType)
{
    DomainFactory factory = getDomainFactory();
    return ActivitySchedVoAssembler.createActivitySchedVoCollectionFromActivity(factory.find("from Activity act where act.activityType = :actType and act.isActive = :isActive", new String[]{"actType", "isActive"}, new Object[]{getDomLookup(actType), Boolean.TRUE}));
}
项目:openMAXIMS    文件:BookAppointmentImpl.java   
public ActivitySchedVoCollection listActivitiesForType(ActivityType actType)
{
    DomainFactory factory = getDomainFactory();
    return ActivitySchedVoAssembler.createActivitySchedVoCollectionFromActivity(factory.find("from Activity act where act.activityType = :actType and act.isActive = :isActive", new String[]{"actType", "isActive"}, new Object[]{getDomLookup(actType), Boolean.TRUE}));
}
项目:openMAXIMS    文件:BookAppointmentImpl.java   
public ActivitySchedVoCollection listActivitiesForType(ActivityType actType)
{
    DomainFactory factory = getDomainFactory();
    return ActivitySchedVoAssembler.createActivitySchedVoCollectionFromActivity(factory.find("from Activity act where act.activityType = :actType and act.isActive = :isActive", new String[]{"actType", "isActive"}, new Object[]{getDomLookup(actType), Boolean.TRUE}));
}
项目:openmaxims-linux    文件:BookAppointmentImpl.java   
public ActivitySchedVoCollection listActivitiesForType(ActivityType actType)
{
    DomainFactory factory = getDomainFactory();
    return ActivitySchedVoAssembler.createActivitySchedVoCollectionFromActivity(factory.find("from Activity act where act.activityType = :actType and act.isActive = :isActive", new String[]{"actType", "isActive"}, new Object[]{getDomLookup(actType), Boolean.TRUE}));
}