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

项目:AvoinApotti    文件:Logic.java   
private void addActivity()
{
    if(form.getLocalContext().getProfileActivities() == null || form.getLocalContext().getProfileActivities().size() == 0)
    {
        engine.showErrors(new String[] {"No Available Activities"});
        return;
    }

    GenForm.lyrDetailsLayer.tabActivitiesContainer.grdActivitiesRow aRow = form.lyrDetails().tabActivities().grdActivities().getRows().newRow(true);

    if(form.getLocalContext().getProfileActivities() != null)
    {
        for (ActivityLiteVo voActivity : form.getLocalContext().getProfileActivities())
            aRow.getcolActivity().newRow(voActivity, voActivity.getName());

        if(form.getLocalContext().getProfileActivities().size() == 1)
            aRow.getcolActivity().setValue(form.getLocalContext().getProfileActivities().get(0));
    }

    aRow.setcolActive(true);
    aRow.setValue(new ProfileActivityVo());
    aRow.setReadOnly(false);
}
项目:openMAXIMS    文件:Logic.java   
private boolean isActivityAlreadyAdded(ActivityLiteVo activity)
{
    if(activity == null)
        return false;

    for(int i=0; i<form.lyrService().tabActivityandFunctions().grdAppointmentTypes().getRows().size(); i++)
    {
         ServiceActivityForServiceConfigurationVo serviceActivity = form.lyrService().tabActivityandFunctions().grdAppointmentTypes().getRows().get(i).getValue();

        if(serviceActivity == null)
            continue;

        if(serviceActivity.getActivity() != null && serviceActivity.getActivity().equals(activity))
        {
            form.lyrService().tabActivityandFunctions().grdAppointmentTypes().setValue(serviceActivity);
            return true;
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void addActivity()
{
    if(form.getLocalContext().getProfileActivities() == null || form.getLocalContext().getProfileActivities().size() == 0)
    {
        engine.showErrors(new String[] {"No Available Activities"});
        return;
    }

    GenForm.lyrDetailsLayer.tabActivitiesContainer.grdActivitiesRow aRow = form.lyrDetails().tabActivities().grdActivities().getRows().newRow(true);

    if(form.getLocalContext().getProfileActivities() != null)
    {
        for (ActivityLiteVo voActivity : form.getLocalContext().getProfileActivities())
            aRow.getcolActivity().newRow(voActivity, voActivity.getName());

        if(form.getLocalContext().getProfileActivities().size() == 1)
            aRow.getcolActivity().setValue(form.getLocalContext().getProfileActivities().get(0));
    }

    aRow.setcolActive(true);
    aRow.setValue(new ProfileActivityVo());
    aRow.setReadOnly(false);
}
项目:openmaxims-linux    文件:Logic.java   
private void addActivity()
{
    if(form.getLocalContext().getProfileActivities() == null || form.getLocalContext().getProfileActivities().size() == 0)
    {
        engine.showErrors(new String[] {"No Available Activities"});
        return;
    }

    GenForm.lyrDetailsLayer.tabActivitiesContainer.grdActivitiesRow aRow = form.lyrDetails().tabActivities().grdActivities().getRows().newRow(true);

    if(form.getLocalContext().getProfileActivities() != null)
    {
        for (ActivityLiteVo voActivity : form.getLocalContext().getProfileActivities())
            aRow.getcolActivity().newRow(voActivity, voActivity.getName());

        if(form.getLocalContext().getProfileActivities().size() == 1)
            aRow.getcolActivity().setValue(form.getLocalContext().getProfileActivities().get(0));
    }

    aRow.setcolActive(true);
    aRow.setValue(new ProfileActivityVo());
    aRow.setReadOnly(false);
}
项目: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);  
        }
    }   
}
项目: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    文件: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 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    文件: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);  
        }
    }   
}