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

项目: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());
        }
    }
}
项目:AvoinApotti    文件:ReferralDetailsComponentImpl.java   
public ServiceFunctionLiteVoCollection listServiceFunctionsLite(ServiceRefVo service)
{
    if (service == null || service.getID_Service() == null)
        throw new CodingRuntimeException("service is null or id not provided for method listServiceFunctionsLite");

    ServiceFunctionLiteVoCollection services = new ServiceFunctionLiteVoCollection();
    DomainFactory factory = getDomainFactory();
    IMSCriteria imsc = new IMSCriteria(ims.core.clinical.domain.objects.ServiceFunction.class, factory);
    imsc.equal("this.service.id", service.getID_Service());
    imsc.equal("this.isActive", true);
    List serviceFunctions = imsc.find();
    for (int i = 0; i < serviceFunctions.size(); i++)
    {
        services.add(ServiceFunctionLiteVoAssembler.create((ims.core.clinical.domain.objects.ServiceFunction) serviceFunctions.get(i)));
    }
    if (services.size() > 0)
        return services;
    return null;

}
项目: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 ims.core.vo.lookups.ServiceFunctionCollection getServiceFunctionsFromProfile(ProfileForProfileRippleVo profile)
{
    if (profile==null)
    {
        return null;
    }

    ServiceFunctionLiteVoCollection voCollServiceFunctions = domain.listServiceFunctionByService(profile.getService());
    ims.core.vo.lookups.ServiceFunctionCollection tempColl = new ServiceFunctionCollection();
    ServiceFunctionCollection collFunctions = profile.getFunction();

    for(int i = 0; collFunctions!=null && i < collFunctions.size();i++)
    {
            if( isFunctionInCollection(voCollServiceFunctions,collFunctions.get(i)) == true)             
                    tempColl.add(collFunctions.get(i));         
    }

    if( tempColl != null && tempColl.size() == 0)
        tempColl = null;

    return tempColl;
}
项目: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 ims.core.vo.lookups.ServiceFunctionCollection getServiceFunctionsFromProfile(ProfileForProfileRippleVo profile)
{
    if (profile==null)
    {
        return null;
    }

    ServiceFunctionLiteVoCollection voCollServiceFunctions = domain.listServiceFunctionByService(profile.getService());
    ims.core.vo.lookups.ServiceFunctionCollection tempColl = new ServiceFunctionCollection();
    ServiceFunctionCollection collFunctions = profile.getFunction();

    for(int i = 0; collFunctions!=null && i < collFunctions.size();i++)
    {
            if( isFunctionInCollection(voCollServiceFunctions,collFunctions.get(i)) == true)             
                    tempColl.add(collFunctions.get(i));         
    }

    if( tempColl != null && tempColl.size() == 0)
        tempColl = null;

    return tempColl;
}
项目: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 ims.core.vo.lookups.ServiceFunctionCollection getFunctionsCollFromGeneralDetailsTab()
{
    ServiceFunctionLiteVoCollection voCollServiceFunctions = domain.listServiceFunctionByService(form.lyrDetails().tabGeneralDetails().cmbSpeciality().getValue());
    ims.core.vo.lookups.ServiceFunctionCollection tempColl = new ServiceFunctionCollection();
    if( form.lyrDetails().tabGeneralDetails().grdServiceFunctions().getRows().size() >  0)
    {
        for(int m = 0; m < form.lyrDetails().tabGeneralDetails().grdServiceFunctions().getRows().size();m++)
        {
            grdServiceFunctionsRow rowF = form.lyrDetails().tabGeneralDetails().grdServiceFunctions().getRows().get(m);
            if( rowF.getColumnSelect() == true)
            {
                if( isFunctionInCollection(voCollServiceFunctions,rowF.getValue()) == true)          
                    tempColl.add(rowF.getValue());          //take only active function from  - "Clinic Type / Function" grid in general details tab
            }
        }
    }
    if( tempColl != null && tempColl.size() == 0)
        tempColl = null;

    return tempColl;
}
项目: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    文件:ReferralDetailsComponentImpl.java   
public ServiceFunctionLiteVoCollection listServiceFunctionsLite(ServiceRefVo service)
{
    if (service == null || service.getID_Service() == null)
        throw new CodingRuntimeException("service is null or id not provided for method listServiceFunctionsLite");

    ServiceFunctionLiteVoCollection services = new ServiceFunctionLiteVoCollection();
    DomainFactory factory = getDomainFactory();
    IMSCriteria imsc = new IMSCriteria(ims.core.clinical.domain.objects.ServiceFunction.class, factory);
    imsc.equal("this.service.id", service.getID_Service());
    imsc.equal("this.isActive", true);
    List serviceFunctions = imsc.find();
    for (int i = 0; i < serviceFunctions.size(); i++)
    {
        services.add(ServiceFunctionLiteVoAssembler.create((ims.core.clinical.domain.objects.ServiceFunction) serviceFunctions.get(i)));
    }
    if (services.size() > 0)
        return services;
    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   
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    文件:ReferralDetailsComponentImpl.java   
public ServiceFunctionLiteVoCollection listServiceFunctionsLite(ServiceRefVo service)
{
    if (service == null || service.getID_Service() == null)
        throw new CodingRuntimeException("service is null or id not provided for method listServiceFunctionsLite");

    ServiceFunctionLiteVoCollection services = new ServiceFunctionLiteVoCollection();
    DomainFactory factory = getDomainFactory();
    IMSCriteria imsc = new IMSCriteria(ims.core.clinical.domain.objects.ServiceFunction.class, factory);
    imsc.equal("this.service.id", service.getID_Service());
    imsc.equal("this.isActive", true);
    List serviceFunctions = imsc.find();
    for (int i = 0; i < serviceFunctions.size(); i++)
    {
        services.add(ServiceFunctionLiteVoAssembler.create((ims.core.clinical.domain.objects.ServiceFunction) serviceFunctions.get(i)));
    }
    if (services.size() > 0)
        return services;
    return null;

}
项目: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    文件:ProfilesSlotGenericImpl.java   
public ServiceFunctionLiteVoCollection listServiceFunctionByDOSs(DirectoryofServiceRefVoCollection dosColl)
{
    if(dosColl == null)
        throw new CodingRuntimeException("dosColl parameter is null in method listServiceFunctionByDOSs");

    DomainFactory factory = getDomainFactory();
    List servFuncs = factory.find("select dos.functions from DirectoryofService as dos where dos.id in (" + getIdString(dosColl) + ")");
    return ServiceFunctionLiteVoAssembler.createServiceFunctionLiteVoCollectionFromServiceFunction(servFuncs);
}
项目:AvoinApotti    文件:ProfilesSlotGenericImpl.java   
public ServiceFunctionLiteVoCollection listServiceFunctionByService(ServiceRefVo service)
{
    if(service == null || service.getID_Service() == null)
        throw new CodingRuntimeException("service parameter is null or id not provided in method listServiceFunctionByService");

    DomainFactory factory = getDomainFactory();
    List servFuncs = factory.find("from ServiceFunction as servFunc where servFunc.service.id = :idService",new String[]{"idService"}, new Object[]{service.getID_Service()});
    return ServiceFunctionLiteVoAssembler.createServiceFunctionLiteVoCollectionFromServiceFunction(servFuncs);
}
项目:AvoinApotti    文件:Logic.java   
private void specialtyValueChanged() 
{
    form.cmbClinic().clear();
    if (form.cmbSpec().getValue() != null)
    {   
        ServiceFunctionLiteVoCollection voColl = domain.listServiceFunctionsLite(form.cmbSpec().getValue());
        for (int i = 0 ; voColl != null && i < voColl.size() ; i++)
            form.cmbClinic().newRow(voColl.get(i), voColl.get(i).getFunction().getText());
    }
}
项目: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();

}
项目:AvoinApotti    文件:ReferralStatusListImpl.java   
public ServiceFunctionLiteVoCollection listServiceFunctionsLite(ServiceRefVo service) 
{
    DomainFactory factory = getDomainFactory();

    if (service != null && service.getID_ServiceIsNotNull())
    {
        java.util.List<?> servfuncList = factory.find("from  ServiceFunction servfunc where servfunc.service.id = :serviceid and servfunc.isActive = :isAct", new String[]{"serviceid", "isAct"}, new Object[]{service.getID_Service(), Boolean.TRUE});
        return ServiceFunctionLiteVoAssembler.createServiceFunctionLiteVoCollectionFromServiceFunction(servfuncList).sort();
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void cmbSpecialityValueChanged()
{
    form.getGlobalContext().Scheduling.setProfileService(form.lyrDetails().tabGeneralDetails().cmbSpeciality().getValue());

    if (form.lyrDetails().tabGeneralDetails().cmbSpeciality().getValue() == null)
    {
        form.lyrDetails().tabDOS().grdDOS().getRows().clear();
        form.lyrDetails().tabGeneralDetails().grdServiceFunctions().setVisible(false);      //wdev-20074
        return;
    }
    else
    {
        //wdev-20074
        ServiceFunctionLiteVoCollection voCollServiceFunctions = domain.listServiceFunctionByService(form.lyrDetails().tabGeneralDetails().cmbSpeciality().getValue());
        if( voCollServiceFunctions != null && voCollServiceFunctions.size() > 0)
        {
            if( GroupProfileTypeEnumeration.rdoOutpatient.equals(form.lyrDetails().tabGeneralDetails().GroupProfileType().getValue()) || GroupProfileTypeEnumeration.rdoWardAttendance.equals(form.lyrDetails().tabGeneralDetails().GroupProfileType().getValue()))
            {
                form.lyrDetails().tabGeneralDetails().grdServiceFunctions().setVisible(true);
                populateServiceFunctionGrid(voCollServiceFunctions);
            }
        }
        else
        {
            form.lyrDetails().tabGeneralDetails().grdServiceFunctions().setVisible(false);
        }
    }

    loadDos(form.lyrDetails().tabGeneralDetails().cmbSpeciality().getValue());

    form.getLocalContext().setProfileActivities(domain.listActivityByService(form.lyrDetails().tabGeneralDetails().cmbSpeciality().getValue(),(GroupFlexibleProfileEnumeration.rdoYes.equals(form.lyrDetails().tabGeneralDetails().GroupFlexibleProfile().getValue()) ? Boolean.TRUE:Boolean.FALSE))    );  //wdev-20074

}
项目:openMAXIMS    文件:Logic.java   
private void populateServiceFunctionsGlobalContext()
{
    if(  GroupProfileTypeEnumeration.rdoOutpatient.equals(form.lyrDetails().tabGeneralDetails().GroupProfileType().getValue()) || GroupProfileTypeEnumeration.rdoWardAttendance.equals(form.lyrDetails().tabGeneralDetails().GroupProfileType().getValue()))
    {
        if( form.lyrDetails().tabGeneralDetails().cmbSpeciality().getValue() != null )  //wdev-20262
        {

            ServiceFunctionLiteVoCollection voCollServiceFunctions = domain.listServiceFunctionByService(form.lyrDetails().tabGeneralDetails().cmbSpeciality().getValue());
            ims.core.vo.lookups.ServiceFunctionCollection temColl = new ServiceFunctionCollection();
            for( int h = 0; h < form.lyrDetails().tabGeneralDetails().grdServiceFunctions().getRows().size();h++)
            {
                grdServiceFunctionsRow row = form.lyrDetails().tabGeneralDetails().grdServiceFunctions().getRows().get(h);
                if( row.getColumnSelect() )
                {
                    if( isFunctionInCollection(voCollServiceFunctions,row.getValue()) == true)  
                        temColl.add(row.getValue());        //take only active function from  - "Clinic Type / Function" grid in general details tab
                }
            }
            if( temColl != null && temColl.size() > 0)
                form.getGlobalContext().Scheduling.setServiceFunctions(temColl);
            else
                form.getGlobalContext().Scheduling.setServiceFunctions(null);

        }
    }
    else
        form.getGlobalContext().Scheduling.setServiceFunctions(null);   
}
项目:openMAXIMS    文件:FutureAppointmentDetailsImpl.java   
public ServiceFunctionLiteVoCollection listServiceFunctions(ServiceRefVo service)
{
    if(service == null || service.getID_Service() == null)
        return null;

    DomainFactory factory = getDomainFactory();
    String hql = "select servfunc from ServiceFunction servfunc where servfunc.service.id = :serviceid and servfunc.isActive = 1 order by UPPER(servfunc.function.text) asc";

    List servFuncList = factory.find(hql, new String[]{"serviceid"}, new Object[]{service.getID_Service()});
    return ServiceFunctionLiteVoAssembler.createServiceFunctionLiteVoCollectionFromServiceFunction(servFuncList);
}
项目:openMAXIMS    文件:ProfilesSlotGenericImpl.java   
public ServiceFunctionLiteVoCollection listServiceFunctionByDOSs(DirectoryofServiceRefVoCollection dosColl)
{
    if(dosColl == null)
        throw new CodingRuntimeException("dosColl parameter is null in method listServiceFunctionByDOSs");

    DomainFactory factory = getDomainFactory();
    List servFuncs = factory.find("select dos.functions from DirectoryofService as dos where dos.id in (" + getIdString(dosColl) + ")");
    return ServiceFunctionLiteVoAssembler.createServiceFunctionLiteVoCollectionFromServiceFunction(servFuncs);
}
项目:openMAXIMS    文件:ProfilesSlotGenericImpl.java   
public ServiceFunctionLiteVoCollection listServiceFunctionByService(ServiceRefVo service)
{
    if(service == null || service.getID_Service() == null)
        throw new CodingRuntimeException("service parameter is null or id not provided in method listServiceFunctionByService");

    DomainFactory factory = getDomainFactory();
    List servFuncs = factory.find("from ServiceFunction as servFunc where servFunc.service.id = :idService",new String[]{"idService"}, new Object[]{service.getID_Service()});
    return ServiceFunctionLiteVoAssembler.createServiceFunctionLiteVoCollectionFromServiceFunction(servFuncs);
}
项目:openMAXIMS    文件:LinkedAppointmentDetailsComponentImpl.java   
public ServiceFunctionLiteVoCollection listServiceFunctions(ServiceRefVo service)
{
    if(service == null || service.getID_Service() == null)
        return null;

    DomainFactory factory = getDomainFactory();
    String hql = "select servfunc from ServiceFunction servfunc where servfunc.service.id = :serviceid and servfunc.isActive = 1 order by UPPER(servfunc.function.text) asc";

    List servFuncList = factory.find(hql, new String[]{"serviceid"}, new Object[]{service.getID_Service()});
    return ServiceFunctionLiteVoAssembler.createServiceFunctionLiteVoCollectionFromServiceFunction(servFuncList);
}
项目:openMAXIMS    文件:ProfilesImpl.java   
public ServiceFunctionLiteVoCollection listServiceFunctionByService(ServiceRefVo service)
{
    if(service == null || service.getID_Service() == null)
        throw new CodingRuntimeException("service parameter is null or id not provided in method listServiceFunctionByService");

    DomainFactory factory = getDomainFactory();
    List servFuncs = factory.find("from ServiceFunction as servFunc where servFunc.service.id = :idService and servFunc.isActive = 1",new String[]{"idService"}, new Object[]{service.getID_Service()});
    return ServiceFunctionLiteVoAssembler.createServiceFunctionLiteVoCollectionFromServiceFunction(servFuncs);
}
项目:openMAXIMS    文件:Logic.java   
private void specialtyValueChanged() 
{
    form.cmbFunction().clear();//WDEV-20725
    if (form.qmbService().getValue() != null)
    {   
        ServiceFunctionLiteVoCollection voColl = domain.listServiceFunctionsLite(form.qmbService().getValue());
        for (int i = 0 ; voColl != null && i < voColl.size() ; i++)
            form.cmbFunction().newRow(voColl.get(i), voColl.get(i).getFunction().getText());//WDEV-20725
    }
}
项目: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    文件:BookAppointmentImpl.java   
public ServiceFunctionLiteVoCollection listServiceFunctionsLite(ServiceRefVo service)
{
    if (service == null || service.getID_Service() == null)
        throw new CodingRuntimeException("service is null or id not provided for method listServiceFunctionsLite");

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

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

    return null;
}
项目:openMAXIMS    文件:ReferralDetailsComponentImpl.java   
public ServiceFunctionLiteVoCollection listServiceFunctionByService(ServiceRefVo service)
{
    if(service == null || service.getID_Service() == null)
        throw new CodingRuntimeException("service parameter is null or id not provided in method listServiceFunctionByService");

    DomainFactory factory = getDomainFactory();
    List servFuncs = factory.find("from ServiceFunction as servFunc where servFunc.service.id = :idService and servFunc.isActive = 1",new String[]{"idService"}, new Object[]{service.getID_Service()});
    return ServiceFunctionLiteVoAssembler.createServiceFunctionLiteVoCollectionFromServiceFunction(servFuncs);
}
项目:openMAXIMS    文件:ReferralStatusListImpl.java   
public ServiceFunctionLiteVoCollection listServiceFunctionsLite(ServiceRefVo service) 
{
    DomainFactory factory = getDomainFactory();

    if (service != null && service.getID_ServiceIsNotNull())
    {
        java.util.List<?> servfuncList = factory.find("from  ServiceFunction servfunc where servfunc.service.id = :serviceid and servfunc.isActive = :isAct", new String[]{"serviceid", "isAct"}, new Object[]{service.getID_Service(), Boolean.TRUE});
        return ServiceFunctionLiteVoAssembler.createServiceFunctionLiteVoCollectionFromServiceFunction(servfuncList).sort();
    }

    return null;
}