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

项目:AvoinApotti    文件:Logic.java   
/**
 * load the config data
 * @param bSelectAll 
 */
private void prepopulateClinicTypeGrid(ServiceFunctionLiteVoCollection voCollServiceFunctions, boolean bSelectAll)
{
    form.grdClinicTypes().getRows().clear();

    if(voCollServiceFunctions == null)
        return;

    form.grdClinicTypes().setReadOnly(bSelectAll);
    for(ServiceFunctionLiteVo voServiceFunction : voCollServiceFunctions)
    {
        grdClinicTypesRow row = form.grdClinicTypes().getRows().newRow();
        row.setColClinicType((voServiceFunction != null && voServiceFunction.getFunctionIsNotNull()) ? voServiceFunction.getFunction().getText() : null);
        row.setColSelect(bSelectAll);
        row.setValue(voServiceFunction);
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onCmbServiceValueChanged()
        throws ims.framework.exceptions.PresentationLogicException {
    form.cmbClinicType().clear();

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

    ServiceFunctionLiteVoCollection voServiceFunctions = domain
            .listServiceFunctionsLite(form.cmbService().getValue());
    if (voServiceFunctions != null) {
        for (int i = 0; i < voServiceFunctions.size(); i++) {
            ServiceFunctionLiteVo voServiceFunctionLite = voServiceFunctions
                    .get(i);
            form.cmbClinicType().newRow(voServiceFunctionLite,
                    voServiceFunctionLite.getFunction().getText());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateFunctionsForOPA()
{
    form.lyrTabs().tabOPA().cmbFunction().clear();

    if(form.lyrTabs().tabOPA().cmbService().getValue() == null)
        return;

    ServiceFunctionLiteVoCollection serviceFunction = domain.listServiceFunctions(form.lyrTabs().tabOPA().cmbService().getValue());

    for(ServiceFunctionLiteVo function : serviceFunction)
    {
        if(function == null || function.getFunction() == null)
            continue;

        form.lyrTabs().tabOPA().cmbFunction().newRow(function.getFunction(), function.getFunction().getText());
    }   
}
项目:openMAXIMS    文件:Logic.java   
private void populateFunctionsForRecurringAppts()
{
    form.lyrTabs().tabRecurringAppts().cmbFunctionRecurring().clear();

    if(form.lyrTabs().tabRecurringAppts().cmbServiceRecurring().getValue() == null)
        return;

    ServiceFunctionLiteVoCollection serviceFunction = domain.listServiceFunctions(form.lyrTabs().tabRecurringAppts().cmbServiceRecurring().getValue());

    for(ServiceFunctionLiteVo function : serviceFunction)
    {
        if(function == null || function.getFunction() == null)
            continue;

        form.lyrTabs().tabRecurringAppts().cmbFunctionRecurring().newRow(function.getFunction(), function.getFunction().getText());
    }

}
项目:openMAXIMS    文件:Logic.java   
private boolean isFunctionInCollection(ServiceFunctionLiteVoCollection voCollServiceFunctions, ims.core.vo.lookups.ServiceFunction tempLkp)
{
    if( voCollServiceFunctions == null || voCollServiceFunctions.size() == 0 || tempLkp == null)
        return false;

    for(ServiceFunctionLiteVo tempVo : voCollServiceFunctions)
    {
        if( tempVo != null && tempVo.getFunctionIsNotNull())
        {
            if( tempVo.getFunction().equals(tempLkp))
                return true;
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isFunctionInCollection(ServiceFunctionLiteVoCollection voCollServiceFunctions, ims.core.vo.lookups.ServiceFunction tempLkp)
{
    if( voCollServiceFunctions == null || voCollServiceFunctions.size() == 0 || tempLkp == null)
        return false;

    for(ServiceFunctionLiteVo tempVo : voCollServiceFunctions)
    {
        if( tempVo != null && tempVo.getFunctionIsNotNull())
        {
            if( tempVo.getFunction().equals(tempLkp))
                return true;
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void populateServiceFunctionGrid(ServiceFunctionLiteVoCollection voCollServiceFunctions)
{
    form.lyrDetails().tabGeneralDetails().grdServiceFunctions().getRows().clear();
    if( voCollServiceFunctions == null || voCollServiceFunctions.size() == 0 )
        return;
    for( int i = 0; i < voCollServiceFunctions.size();i++ )
    {

        ServiceFunctionLiteVo tempVo = voCollServiceFunctions.get(i); 
        if( tempVo != null )
        {
            grdServiceFunctionsRow row = form.lyrDetails().tabGeneralDetails().grdServiceFunctions().getRows().newRow();
            row.setColumnFunctions(tempVo.getFunction().getText());
            row.setColumnSelect(false);
            row.setValue(tempVo.getFunction());


        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private boolean isFunctionInCollection(ServiceFunctionLiteVoCollection voCollServiceFunctions, ims.core.vo.lookups.ServiceFunction tempLkp)
{
    if( voCollServiceFunctions == null || voCollServiceFunctions.size() == 0 || tempLkp == null)
        return false;

    for(ServiceFunctionLiteVo tempVo : voCollServiceFunctions)
    {
        if( tempVo != null && tempVo.getFunctionIsNotNull())
        {
            if( tempVo.getFunction().equals(tempLkp))
                return true;
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void bindFunctionCombo(ServiceLiteVo value)
{
    form.cmbFunction().clear();

    if(value == null)
        return;

    ServiceFunctionLiteVoCollection serviceFunction = domain.listServiceFunctions(form.qmbService().getValue());

    for(ServiceFunctionLiteVo function : serviceFunction)
    {
        if(function == null || function.getFunction() == null)
            continue;

        form.cmbFunction().newRow(function.getFunction(), function.getFunction().getText());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateClinicTypeGridByServiceFunctionsGlobalContext(ServiceFunctionCollection ServiceFunctionsColl, boolean bSelectAll)
{
    form.grdClinicTypes().getRows().clear();

    if(ServiceFunctionsColl == null || ServiceFunctionsColl.size() == 0)
        return;

    ServiceFunctionLiteVoCollection voCollServiceFunctions = domain.listServiceFunctionByService(form.getGlobalContext().Scheduling.getProfileService());
    if( voCollServiceFunctions == null || voCollServiceFunctions.size() == 0)
        return;

    form.grdClinicTypes().setReadOnly(false);
    for(int i = 0; i < ServiceFunctionsColl.size();i++)
    {


        ServiceFunction serviceFunction = ServiceFunctionsColl.get(i);
        ServiceFunctionLiteVo tempVo =  getServiceFunctionByFunction(voCollServiceFunctions,serviceFunction);

        grdClinicTypesRow row = form.grdClinicTypes().getRows().newRow();
        row.setColClinicType(serviceFunction != null  ? serviceFunction.getText() : null);
        row.setColSelect(bSelectAll);
        row.setValue(tempVo);
    }
}
项目:openMAXIMS    文件:Logic.java   
private ServiceFunctionLiteVo getServiceFunctionByFunction(ServiceFunctionLiteVoCollection voCollServiceFunctions,ServiceFunction serviceFunction)
{
    if( voCollServiceFunctions == null || voCollServiceFunctions.size() == 0)
        return null;
    if( serviceFunction == null )
        return null;
    for(int i = 0; i < voCollServiceFunctions.size();i++)
    {
        ServiceFunctionLiteVo tenmpVo = voCollServiceFunctions.get(i); 
        if( tenmpVo != null && serviceFunction.equals(tenmpVo.getFunction()))
        {
            return tenmpVo;
        }
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * load the config data
 * @param bSelectAll 
 */
private void prepopulateClinicTypeGrid(ServiceFunctionLiteVoCollection voCollServiceFunctions, boolean bSelectAll)
{
    form.grdClinicTypes().getRows().clear();

    if(voCollServiceFunctions == null)
        return;

    form.grdClinicTypes().setReadOnly(bSelectAll);
    for(ServiceFunctionLiteVo voServiceFunction : voCollServiceFunctions)
    {
        grdClinicTypesRow row = form.grdClinicTypes().getRows().newRow();
        row.setColClinicType((voServiceFunction != null && voServiceFunction.getFunctionIsNotNull()) ? voServiceFunction.getFunction().getText() : null);
        row.setColSelect(bSelectAll);
        row.setValue(voServiceFunction);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void bindFunctions(ServiceLiteVo service)
{
    form.cmbFunction().clear();

    if(service == null || service.getID_Service() == null)
        return;

    ServiceFunctionLiteVoCollection functions = domain.listServiceFunctions(service);

    if(functions == null)
        return;

    for(ServiceFunctionLiteVo func : functions)
    {
        if(func == null)
            return;

        form.cmbFunction().newRow(func, func.getFunction().getText());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void updateClinicType(boolean isFlexible)
{
    ServiceFunctionRefVo storedValue = form.cmbClinicType().getValue();

    form.cmbClinicType().clear();
    form.cmbClinicType().setEnabled(false);

    if (form.cmbService().getValue() == null || isFlexible || Boolean.TRUE.equals(form.getGlobalContext().Scheduling.getWardAttendance()))
        return;

    ServiceFunctionLiteVoCollection voServiceFunctions = domain.listServiceFunctionsLite(form.cmbService().getValue());

    if (voServiceFunctions != null)
    {
        for (int i = 0; i < voServiceFunctions.size(); i++)
        {
            ServiceFunctionLiteVo voServiceFunctionLite = voServiceFunctions.get(i);
            form.cmbClinicType().newRow(voServiceFunctionLite, voServiceFunctionLite.getFunction().getText());
        }
    }

    form.cmbClinicType().setEnabled(voServiceFunctions != null);

    form.cmbClinicType().setValue(storedValue);

}
项目:openMAXIMS    文件:Logic.java   
/**
 * load the config data
 * @param bSelectAll 
 */
private void prepopulateClinicTypeGrid(ServiceFunctionLiteVoCollection voCollServiceFunctions, boolean bSelectAll)
{
    form.grdClinicTypes().getRows().clear();

    if(voCollServiceFunctions == null)
        return;

    form.grdClinicTypes().setReadOnly(bSelectAll);
    for(ServiceFunctionLiteVo voServiceFunction : voCollServiceFunctions)
    {
        grdClinicTypesRow row = form.grdClinicTypes().getRows().newRow();
        row.setColClinicType((voServiceFunction != null && voServiceFunction.getFunctionIsNotNull()) ? voServiceFunction.getFunction().getText() : null);
        row.setColSelect(bSelectAll);
        row.setValue(voServiceFunction);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onCmbServiceValueChanged()
        throws ims.framework.exceptions.PresentationLogicException {
    form.cmbClinicType().clear();

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

    ServiceFunctionLiteVoCollection voServiceFunctions = domain
            .listServiceFunctionsLite(form.cmbService().getValue());
    if (voServiceFunctions != null) {
        for (int i = 0; i < voServiceFunctions.size(); i++) {
            ServiceFunctionLiteVo voServiceFunctionLite = voServiceFunctions
                    .get(i);
            form.cmbClinicType().newRow(voServiceFunctionLite,
                    voServiceFunctionLite.getFunction().getText());
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * load the config data
 * @param bSelectAll 
 */
private void prepopulateClinicTypeGrid(ServiceFunctionLiteVoCollection voCollServiceFunctions, boolean bSelectAll)
{
    form.grdClinicTypes().getRows().clear();

    if(voCollServiceFunctions == null)
        return;

    form.grdClinicTypes().setReadOnly(bSelectAll);
    for(ServiceFunctionLiteVo voServiceFunction : voCollServiceFunctions)
    {
        grdClinicTypesRow row = form.grdClinicTypes().getRows().newRow();
        row.setColClinicType((voServiceFunction != null && voServiceFunction.getFunctionIsNotNull()) ? voServiceFunction.getFunction().getText() : null);
        row.setColSelect(bSelectAll);
        row.setValue(voServiceFunction);
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onCmbServiceValueChanged() throws PresentationLogicException
{
    if (ConfigFlag.GEN.CREATE_ICP_ON_ACCEPTANCE_OF_REFERRAL.getValue())
        form.qmbProcedure().clear();

    form.cmbClinicType().clear();
    if (form.cmbService().getValue() != null)
    {
        ServiceFunctionLiteVoCollection serviceFunctions = domain.listServiceFunctionsLite(form.cmbService().getValue());
        if (serviceFunctions != null)
        {
            for (int i = 0; i < serviceFunctions.size(); i++)
            {
                ServiceFunctionLiteVo voServiceFunctionLite = serviceFunctions.get(i);
                form.cmbClinicType().newRow(voServiceFunctionLite, voServiceFunctionLite.getFunction().getText());
            }
        }
    }
    //wdev-13647
    if(Boolean.TRUE.equals(ConfigFlag.UI.REFERRAL_DETAILS_DISPLAY_NEAREST_TREATMENT_CENTRE.getValue()))
    {
        getAndPopulateNearestTreatmentCenterLocation();
        if( form.cmbNearestTreatmentCentreLocation().getValue() == null)
            getAndPopulateNearestLocation();
    }
    //---------
    updateControlState();

}
项目:openMAXIMS    文件:Logic.java   
private void populateSlotsRow(GenForm.lyrDetailsLayer.tabSlotsContainer.grdSlotsGeneralRow row, Profile_SlotGenericVo vo, boolean selectable)
{
    row.setValue(vo);
    row.setcolSlotsActive(vo.getIsActive().booleanValue());
    if (vo.getActivityIsNotNull())
        row.setcolSlotsActivity(vo.getActivity().getName());
    if (vo.getDurationIsNotNull())
        row.setcolSlotsDuration(vo.getDuration().toString());
    if (vo.getPriorityIsNotNull())
        row.setcolSlotsPriority(vo.getPriority().getText());
    if (vo.getStartTmIsNotNull())
        row.setcolSlotsStartTime(vo.getStartTm().toString());
    row.setcolSlotsEndTime(vo.getEndTimeIsNotNull() ? vo.getEndTime().toString() : null); //WDEV-19702

    //wdev-20262
    if( vo.getFunctionsIsNotNull())
    {
        if( vo.getFunctions().size() > 0)
        {
            ServiceFunctionLiteVo tempServVo = domain.getServiceFunction(vo.getFunctions().get(0));
            row.setcolSlotsFunction(tempServVo != null && tempServVo.getFunctionIsNotNull() ? tempServVo.getFunction().getIItemText():null);

        }
        else
            row.setcolSlotsFunction(null);
    }
    else
        row.setcolSlotsFunction(null);

    row.setSelectable(selectable && FormMode.EDIT.equals(form.getMode())); //WDEV-23611 
}
项目:openMAXIMS    文件:Logic.java   
private void addRow(Profile_SlotGenericVo profileSlot)
{
    if (profileSlot==null)
        return;

    grdSlotsRow row = form.grdSlots().getRows().newRow();
    row.setValue(profileSlot);
    row.setcolSlotsActive(profileSlot.getIsActive());
    row.setcolSlotsActivity(profileSlot.getActivityIsNotNull() ? profileSlot.getActivity().getName() : null);
    row.setcolSlotsDuration(profileSlot.getDurationIsNotNull() ? profileSlot.getDuration().toString() : null);
    row.setcolSlotsPriority(profileSlot.getPriorityIsNotNull() ? profileSlot.getPriority().getText() : null);
    row.setcolSlotsStartTime(profileSlot.getStartTmIsNotNull() ? profileSlot.getStartTm().toString() : null);
    row.setcolSlotsEndTime(profileSlot.getEndTimeIsNotNull() ? profileSlot.getEndTime().toString() : null); //WDEV-19702

    if( profileSlot.getFunctionsIsNotNull())
    {
        if( profileSlot.getFunctions().size() > 0)
        {
            ServiceFunctionLiteVo tempServVo = domain.getServiceFunction(profileSlot.getFunctions().get(0));
            row.setcolSlotsFunction(tempServVo != null && tempServVo.getFunctionIsNotNull() ? tempServVo.getFunction().getIItemText():null);
        }
        else
            row.setcolSlotsFunction(null);
    }
    else
        row.setcolSlotsFunction(null);
    profileSlot.getStartTmIsNotNull();
}
项目:openMAXIMS    文件:FutureAppointmentWorklistImpl.java   
public ServiceFunctionLiteVo getServiceFunction(ServiceRefVo service, ServiceFunction function)
{
    if (service == null || service.getID_Service() == null || function == null)
        return null;

    List list = getDomainFactory().find("select servFunct from ServiceFunction as servFunct left join servFunct.service as serv left join servFunct.function as func where servFunct.isActive = 1 and serv.id = :serviceID and func.id = :functionID", 
            new String[] {"serviceID", "functionID"}, new Object[] {service.getID_Service(), function.getID()});

    if (list != null && list.size() > 0)
        return ServiceFunctionLiteVoAssembler.createServiceFunctionLiteVoCollectionFromServiceFunction(list).get(0);

    return null;
}
项目:openMAXIMS    文件:FutureAppointmentDetailsImpl.java   
public ServiceAndFunctionForFutureApptsVo getServiceAndFunctionForAppt(Booking_AppointmentRefVo appointment)
{
    if(appointment == null || appointment.getID_Booking_Appointment() == null)
        return null;

    ServiceAndFunctionForFutureApptsVo voServiceAndSlot = null;

    String hql = "select serviceFunc, session.service from Booking_Appointment as appt left join appt.session as session left join appt.serviceFunction as serviceFunc where (appt.id = :idAppt)";
    List items = getDomainFactory().find(hql, new String[]{"idAppt"}, new Object[]{appointment.getID_Booking_Appointment()});

    if(items != null && items.size() > 0)
    {
        Iterator it = items.iterator(); 

        if(it.hasNext())
        {
            Object[] item = (Object[]) it.next();
            ServiceFunction doServiceFunction = (ServiceFunction) item[0];
            Service doService = (Service) item[1];

            ServiceLiteVo service = ServiceLiteVoAssembler.create(doService);
            ServiceFunctionLiteVo serviceFunct = ServiceFunctionLiteVoAssembler.create(doServiceFunction);

            voServiceAndSlot = new ServiceAndFunctionForFutureApptsVo();
            voServiceAndSlot.setService(service);
            voServiceAndSlot.setFunction(serviceFunct);
        }
    }

    return voServiceAndSlot;
}
项目:openMAXIMS    文件:FutureAppointmentDetailsImpl.java   
public ServiceAndFunctionForFutureApptsVo getCatsReferralServiceAndfunction (CatsReferralRefVo catsReferralRef)
{
    if(catsReferralRef == null || catsReferralRef.getID_CatsReferral() == null)
        return null;

    ServiceAndFunctionForFutureApptsVo voServiceAndSlot = null;

    String hql = "select srv, func from CatsReferral as cats left join cats.referralDetails as det left join det.service as srv left join det.function as func where (cats.id = :idRef)";
    List<?> items = getDomainFactory().find(hql, new String[]{"idRef"}, new Object[]{catsReferralRef.getID_CatsReferral()});

    if(items != null && items.size() > 0)
    {
        Iterator it = items.iterator(); 

        if(it.hasNext())
        {
            Object[] item = (Object[]) it.next();
            Service doService = (Service) item[0];
            ServiceFunction doServiceFunction = (ServiceFunction) item[1];

            ServiceLiteVo service = ServiceLiteVoAssembler.create(doService);
            ServiceFunctionLiteVo serviceFunct = ServiceFunctionLiteVoAssembler.create(doServiceFunction);

            voServiceAndSlot = new ServiceAndFunctionForFutureApptsVo();
            voServiceAndSlot.setService(service);
            voServiceAndSlot.setFunction(serviceFunct);
        }           
    }
    return voServiceAndSlot;
}
项目:openMAXIMS    文件:ProfilesImpl.java   
public ServiceFunctionLiteVo getServiceFunction(ServiceFunctionRefVo serviceFunctionRef)
{
    DomainFactory factory = getDomainFactory();

    ServiceFunction domServiceFunction = (ServiceFunction)factory.getDomainObject(ServiceFunction.class, serviceFunctionRef.getID_ServiceFunction());
    ServiceFunctionLiteVo voServiceFunct = ServiceFunctionLiteVoAssembler.create(domServiceFunction);

    return voServiceFunct;
}
项目:openMAXIMS    文件:Logic.java   
private void populateFunctionCombo()
{
    form.cmbFunction().clear();
    ServiceFunctionLiteVoCollection voCollServiceFunctions = null;
    if( form.qmbService().getValue() != null )
    {
        voCollServiceFunctions = domain.listServiceFunctionByService(form.qmbService().getValue());
    }
    if( voCollServiceFunctions != null && voCollServiceFunctions.size() > 0)
    {

        form.lblFunction().setVisible(true);
        form.cmbFunction().setVisible(true);

        for( int k = 0; k < voCollServiceFunctions.size();k++)
        {
            ServiceFunctionLiteVo tempVo = voCollServiceFunctions.get(k);
            if( tempVo != null )
            {
                form.cmbFunction().newRow(tempVo, tempVo.getFunctionIsNotNull()? tempVo.getFunction().getText():null);
            }
        }
    }
    else
    {
        form.lblFunction().setVisible(false);
        form.cmbFunction().setVisible(false);
    }
}
项目:openMAXIMS    文件:ReferralAppointmentDetailsComponentImpl.java   
public ServiceFunctionLiteVo getServiceFunction(ServiceRefVo service, ServiceFunction function)
{
    if (service == null || service.getID_Service() == null || function == null)
        return null;

    List list = getDomainFactory().find("select servFunct from ServiceFunction as servFunct left join servFunct.service as serv left join servFunct.function as func where servFunct.isActive = 1 and serv.id = :serviceID and func.id = :functionID", 
            new String[] {"serviceID", "functionID"}, new Object[] {service.getID_Service(), function.getID()});

    if (list != null && list.size() > 0)
        return ServiceFunctionLiteVoAssembler.createServiceFunctionLiteVoCollectionFromServiceFunction(list).get(0);

    return null;
}
项目:openMAXIMS    文件:Logic.java   
protected void onCmbServiceValueChanged() throws PresentationLogicException
{
    if (ConfigFlag.GEN.CREATE_ICP_ON_ACCEPTANCE_OF_REFERRAL.getValue())
        form.qmbProcedure().clear();

    form.cmbClinicType().clear();
    if (form.cmbService().getValue() != null)
    {
        ServiceFunctionLiteVoCollection serviceFunctions = domain.listServiceFunctionsLite(form.cmbService().getValue());
        if (serviceFunctions != null)
        {
            for (int i = 0; i < serviceFunctions.size(); i++)
            {
                ServiceFunctionLiteVo voServiceFunctionLite = serviceFunctions.get(i);
                form.cmbClinicType().newRow(voServiceFunctionLite, voServiceFunctionLite.getFunction().getText());
            }
        }
    }
    //wdev-13647
    if(Boolean.TRUE.equals(ConfigFlag.UI.REFERRAL_DETAILS_DISPLAY_NEAREST_TREATMENT_CENTRE.getValue()))
    {
        getAndPopulateNearestTreatmentCenterLocation();
        if( form.cmbNearestTreatmentCentreLocation().getValue() == null)
            getAndPopulateNearestLocation();
    }
    //---------
    updateControlState();

}
项目:openMAXIMS    文件:Logic.java   
private void addSlotRow(SessionSlotVo voSlot)
{
    GenForm.lyrSessEditLayer.tabSlotDetailsContainer.grdSlotsRow sRow;
    sRow = form.lyrSessEdit().tabSlotDetails().grdSlots().getRows().newRow();
    if( voSlot.getActivityIsNotNull())
    {
        sRow.setcolActivity(voSlot.getActivity().getName());
        sRow.setTooltipForcolActivity(voSlot.getActivity().getName());

        //wdev-19496
        ActivityWithImageLiteVo tempVo = domain.getActivityWithImage(voSlot.getActivity());
        if( tempVo != null && tempVo.getActivityImageIsNotNull())
        {
            sRow.setColImageActivity(engine.getRegisteredImage(tempVo.getActivityImage().getID_AppImage().intValue()));
        }
        //-----------
    }

    sRow.setcolPriority(voSlot.getPriority());

    if (voSlot.getStartTmIsNotNull())
        sRow.setcolSTime(voSlot.getStartTm().toString());
    if (voSlot.getStartTmIsNotNull() && voSlot.getDurationIsNotNull())
        sRow.setcolETime(calculateEndTime(voSlot.getStartTm().copy(), voSlot.getDuration()));;

    StringBuffer functionsForFixedSlots = new StringBuffer();

    if (voSlot.getFunctions() != null)
    {
        for (int j = 0; j < voSlot.getFunctions().size(); j++)
        {
            ServiceFunctionLiteVo function = voSlot.getFunctions().get(j);

            if (function == null)
                continue;

            if (functionsForFixedSlots.length() > 0)
                functionsForFixedSlots.append(", ");

            functionsForFixedSlots.append(function.getFunction() != null ? function.getFunction().getText() : "");
        }
    }

    String functionsString = "";

    if (SchedulingPriority.URGENT.equals(voSlot.getPriority()))
        functionsString = "<font color = red >" +  functionsForFixedSlots.toString()  + "</font>";
    else
        functionsString = functionsForFixedSlots.toString();

    sRow.setColFunctions(functionsString);
    sRow.setTooltipForColFunctions(functionsForFixedSlots.toString());

    if (voSlot.getAppointmentIsNotNull())
        sRow.setcolBooked(true);
    if (voSlot.getDirectAccessSlotIsNotNull())
        sRow.setcolAccessType(voSlot.getDirectAccessSlot().toString());

    sRow.setcolImage(getImage(voSlot.getStatus()));
    sRow.setTooltipForcolImage(voSlot.getStatus() != null ? voSlot.getStatus().getText() : "");

    sRow.setColSlotOwner(voSlot.getSlotResp() != null && voSlot.getSlotResp().getHcp() != null && voSlot.getSlotResp().getHcp().getName() != null ? voSlot.getSlotResp().getHcp().getName().toString() : "");
    sRow.setTooltipForColSlotOwner(sRow.getColSlotOwner());

    sRow.setSelectable(false);

    if (SchedulingPriority.URGENT.equals(voSlot.getPriority()))
    {
        sRow.setTextColor(Color.Red);
    }

    sRow.setValue(voSlot);
}