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

项目:AvoinApotti    文件:Logic.java   
private void loadFunctions()
{
    form.grdFunctions().getRows().clear();

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

    ServiceFunctionVoCollection voCollFunction = domain.listServiceFunctions(voService);
    if (voCollFunction != null)
    {
        GenForm.grdFunctionsRow fRow;
        for (int i = 0; i < voCollFunction.size(); i++)
        {
            fRow = form.grdFunctions().getRows().newRow();
            if (voCollFunction.get(i).getFunctionIsNotNull())
                fRow.setColName(voCollFunction.get(i).getFunction().getText());
            fRow.setValue(voCollFunction.get(i));
        }
    }
}
项目:AvoinApotti    文件:ClinicListImpl.java   
public SessionShortVoCollection listSession(ServiceShortVo service, ServiceFunctionVoCollection functionColl, ProfileShortVo profile, Date sessionDate) 
{
    DomainFactory factory = getDomainFactory();
    SessionShortVoCollection voCollSessionShort = new SessionShortVoCollection();

    List sessions;
    if(service != null)
    {
        sessions = factory.find(" from Sch_Session session where session.sessionDate = :sessionDate and " +
                                    " session.service.id = :serviceId",
                                    new String[]{"sessionDate","serviceId"},
                                    new Object[]{sessionDate.getDate(), service.getID_Service()});
    }
    else
    {
        sessions = factory.find(" from Sch_Session session where session.sessionDate = :sessionDate and " +
                                " session.sch_Profile.id = :profileId",
                                new String[]{"sessionDate","profileId"},
                                new Object[]{sessionDate.getDate(), profile.getID_Sch_Profile()});
    }

    voCollSessionShort = SessionShortVoAssembler.createSessionShortVoCollectionFromSch_Session(sessions);

    return voCollSessionShort;  
}
项目:AvoinApotti    文件:ClinicListImpl.java   
public SessionShortVoCollection listSession(ServiceShortVo service, ServiceFunctionVoCollection functionColl, ProfileShortVo profile, Date sessionDate) 
{
    DomainFactory factory = getDomainFactory();
    SessionShortVoCollection voCollSessionShort = new SessionShortVoCollection();

    List<?> sessions;
    if(service != null)
    {
        sessions = factory.find(" from Sch_Session session where session.sessionDate = :sessionDate and " +
                                    " session.service.id = :serviceId",
                                    new String[]{"sessionDate","serviceId"},
                                    new Object[]{sessionDate.getDate(), service.getID_Service()});
    }
    else
    {
        sessions = factory.find(" from Sch_Session session where session.sessionDate = :sessionDate and " +
                                " session.sch_Profile.id = :profileId",
                                new String[]{"sessionDate","profileId"},
                                new Object[]{sessionDate.getDate(), profile.getID_Sch_Profile()});
    }

    voCollSessionShort = SessionShortVoAssembler.createSessionShortVoCollectionFromSch_Session(sessions).sort();

    return voCollSessionShort;  
}
项目:openMAXIMS    文件:Logic.java   
private void populateServiceFunctionGrid(ServiceFunctionVoCollection voCollServiceFunctions)
{
    form.grdServiceFunctions().getRows().clear();
    if( voCollServiceFunctions == null || voCollServiceFunctions.size() == 0)
        return;
    for( int i = 0; i < voCollServiceFunctions.size();i++ )
    {
        voCollServiceFunctions.sort();
        ServiceFunctionVo tempVo = voCollServiceFunctions.get(i); 
        if( tempVo != null )
        {
            ims.scheduling.forms.sessionslotdialog.GenForm.grdServiceFunctionsRow row = form.grdServiceFunctions().getRows().newRow();
            row.setColFunctions(tempVo.getFunction().getText());
            row.setSelectable(false);
            row.setColSelect(false);
            row.setValue(tempVo);   
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadFunctions()
{
    form.grdFunctions().getRows().clear();

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

    ServiceFunctionVoCollection voCollFunction = domain.listServiceFunctions(voService);
    if (voCollFunction != null)
    {
        GenForm.grdFunctionsRow fRow;
        for (int i = 0; i < voCollFunction.size(); i++)
        {
            fRow = form.grdFunctions().getRows().newRow();
            if (voCollFunction.get(i).getFunctionIsNotNull())
                fRow.setColName(voCollFunction.get(i).getFunction().getText());
            fRow.setValue(voCollFunction.get(i));
        }
    }
}
项目:openMAXIMS    文件:DirectoryOfServiceAdminImpl.java   
/**
 * retrieve a list of functions for this service from ServiceFunction
 */
public ServiceFunctionVoCollection listServiceFunctions(ServiceShortVo serviceShort) 
{
    /*DomainFactory factory = getDomainFactory();

    List<?> funcs = factory.find("from ServiceFunction serviceFunc where serviceFunc.service.id = :serviceId",new String[]{"serviceId"},new Object[]{serviceShort.getID_Service()});
    return ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(funcs);*/


    //wdev-20262
    if(serviceShort == null || serviceShort.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[]{serviceShort.getID_Service()});
    return ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(servFuncs);
}
项目:openMAXIMS    文件:Logic.java   
private void loadFunctions()
{
    form.grdFunctions().getRows().clear();

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

    ServiceFunctionVoCollection voCollFunction = domain.listServiceFunctions(voService);
    if (voCollFunction != null)
    {
        GenForm.grdFunctionsRow fRow;
        for (int i = 0; i < voCollFunction.size(); i++)
        {
            fRow = form.grdFunctions().getRows().newRow();
            if (voCollFunction.get(i).getFunctionIsNotNull())
                fRow.setColName(voCollFunction.get(i).getFunction().getText());
            fRow.setValue(voCollFunction.get(i));
        }
    }
}
项目:openMAXIMS    文件:ClinicListImpl.java   
public SessionShortVoCollection listSession(ServiceShortVo service, ServiceFunctionVoCollection functionColl, ProfileShortVo profile, Date sessionDate) 
{
    DomainFactory factory = getDomainFactory();
    SessionShortVoCollection voCollSessionShort = new SessionShortVoCollection();

    List sessions;
    if(service != null)
    {
        sessions = factory.find(" from Sch_Session session where session.sessionDate = :sessionDate and " +
                                    " session.service.id = :serviceId",
                                    new String[]{"sessionDate","serviceId"},
                                    new Object[]{sessionDate.getDate(), service.getID_Service()});
    }
    else
    {
        sessions = factory.find(" from Sch_Session session where session.sessionDate = :sessionDate and " +
                                " session.sch_Profile.id = :profileId",
                                new String[]{"sessionDate","profileId"},
                                new Object[]{sessionDate.getDate(), profile.getID_Sch_Profile()});
    }

    voCollSessionShort = SessionShortVoAssembler.createSessionShortVoCollectionFromSch_Session(sessions);

    return voCollSessionShort;  
}
项目:openMAXIMS    文件:ClinicListImpl.java   
public SessionShortVoCollection listSession(ServiceShortVo service, ServiceFunctionVoCollection functionColl, ProfileShortVo profile, Date sessionDate) 
{
    DomainFactory factory = getDomainFactory();
    SessionShortVoCollection voCollSessionShort = new SessionShortVoCollection();

    List<?> sessions;
    if(service != null)
    {
        sessions = factory.find(" from Sch_Session session where session.sessionDate = :sessionDate and " +
                                    " session.service.id = :serviceId",
                                    new String[]{"sessionDate","serviceId"},
                                    new Object[]{sessionDate.getDate(), service.getID_Service()});
    }
    else
    {
        sessions = factory.find(" from Sch_Session session where session.sessionDate = :sessionDate and " +
                                " session.sch_Profile.id = :profileId",
                                new String[]{"sessionDate","profileId"},
                                new Object[]{sessionDate.getDate(), profile.getID_Sch_Profile()});
    }

    voCollSessionShort = SessionShortVoAssembler.createSessionShortVoCollectionFromSch_Session(sessions).sort();

    return voCollSessionShort;  
}
项目:openmaxims-linux    文件:Logic.java   
private void loadFunctions()
{
    form.grdFunctions().getRows().clear();

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

    ServiceFunctionVoCollection voCollFunction = domain.listServiceFunctions(voService);
    if (voCollFunction != null)
    {
        GenForm.grdFunctionsRow fRow;
        for (int i = 0; i < voCollFunction.size(); i++)
        {
            fRow = form.grdFunctions().getRows().newRow();
            if (voCollFunction.get(i).getFunctionIsNotNull())
                fRow.setColName(voCollFunction.get(i).getFunction().getText());
            fRow.setValue(voCollFunction.get(i));
        }
    }
}
项目:openmaxims-linux    文件:ClinicListImpl.java   
public SessionShortVoCollection listSession(ServiceShortVo service, ServiceFunctionVoCollection functionColl, ProfileShortVo profile, Date sessionDate) 
{
    DomainFactory factory = getDomainFactory();
    SessionShortVoCollection voCollSessionShort = new SessionShortVoCollection();

    List sessions;
    if(service != null)
    {
        sessions = factory.find(" from Sch_Session session where session.sessionDate = :sessionDate and " +
                                    " session.service.id = :serviceId",
                                    new String[]{"sessionDate","serviceId"},
                                    new Object[]{sessionDate.getDate(), service.getID_Service()});
    }
    else
    {
        sessions = factory.find(" from Sch_Session session where session.sessionDate = :sessionDate and " +
                                " session.sch_Profile.id = :profileId",
                                new String[]{"sessionDate","profileId"},
                                new Object[]{sessionDate.getDate(), profile.getID_Sch_Profile()});
    }

    voCollSessionShort = SessionShortVoAssembler.createSessionShortVoCollectionFromSch_Session(sessions);

    return voCollSessionShort;  
}
项目:AvoinApotti    文件:DirectoryOfServiceAdminImpl.java   
/**
 * retrieve a list of functions for this service from ServiceFunction
 */
public ServiceFunctionVoCollection listServiceFunctions(ServiceShortVo serviceShort) 
{
    DomainFactory factory = getDomainFactory();

    List<?> funcs = factory.find("from ServiceFunction serviceFunc where serviceFunc.service.id = :serviceId",new String[]{"serviceId"},new Object[]{serviceShort.getID_Service()});
    return ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(funcs);
}
项目:AvoinApotti    文件:Logic.java   
private String formatFunctionDetail(ServiceFunctionVoCollection voColl)
{
    String out = "";

    if (voColl != null && voColl.size() > 0)
    {
        out += makeTextile("<CENTER>*" + ConfigFlag.UI.DISPLAY_NAME_FUNCTION.getValue(true) + "*</CENTER>", "SlateBlue", "tahoma", "14");
        for (int i = 0; i < voColl.size(); i++)
        {
            out += makeTextileItem((voColl.get(i).getFunctionIsNotNull() ? voColl.get(i).getFunction().toString() : "") + formatTaxonomy(voColl.get(i).getTaxonomyMap()), (voColl.get(i).getIsActiveIsNotNull() ? (voColl.get(i).getIsActive().booleanValue() ? "black" : "red") : "black"), "tahoma", "12");
        }
    }

    return out;
}
项目:AvoinApotti    文件:Logic.java   
private ServiceFunctionVo inFunctionList(ServiceFunction value, ServiceFunctionVoCollection voVollFunc)
{
    if (voVollFunc != null && voVollFunc.size() > 0)
    {
        for (int i = 0; i < voVollFunc.size(); i++)
        {
            if (voVollFunc.get(i).getFunctionIsNotNull() && voVollFunc.get(i).getFunction().equals(value))
                return voVollFunc.get(i);
        }
    }
    return null;
}
项目:AvoinApotti    文件:LocationServiceImpl.java   
public ServiceFunctionVoCollection listServiceFunction(Integer voServiceId)
{
    DomainFactory factory = getDomainFactory();

    if (voServiceId != null)
    {
        java.util.List servfuncList = factory.find("from ServiceFunction servfunc where servfunc.service.id = :serviceid", new String[]{"serviceid"}, new Object[]{voServiceId});
        return ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(servfuncList).sort();
    }

    return null;
}
项目:AvoinApotti    文件:ServiceImpl.java   
public ServiceFunctionVoCollection listServiceFunction(ServiceShortVo voService)
{
    DomainFactory factory = getDomainFactory();

    if (voService == null)
        return ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(factory.listDomainObjects(ServiceFunction.class)).sort();

    if (voService.getID_ServiceIsNotNull())
    {
        java.util.List servfuncList = factory.find("from  ServiceFunction servfunc where servfunc.service.id = :serviceid", new String[]{"serviceid"}, new Object[]{voService.getID_Service()});
        return ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(servfuncList).sort();
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void listServiceFunctions(SessionShortVo session)
{
    ServiceFunctionVoCollection voCollServiceFunctions = domain.listServiceFunctionByService(session);
    if( voCollServiceFunctions != null && voCollServiceFunctions.size() > 0)
    {
        populateServiceFunctionGrid(voCollServiceFunctions);
    }       
}
项目:openMAXIMS    文件:SessionSlotDialogImpl.java   
public ServiceFunctionVoCollection listServiceFunctionByService(SessionShortVo session)
{
    if (session == null || session.getID_Sch_Session() == null)
        throw new CodingRuntimeException("session parameter is null or id not provided in method listServiceFunctionByService");

    DomainFactory factory = getDomainFactory();
    List <?> servFuncs = factory.find("select funct from ServiceFunction as funct left join funct.function as f left join funct.service as serv where funct.isActive = :ACTIVE AND serv.id = :SERVICE_ID AND f.id IN (select l2_1.id from Sch_Session as s1_1 left join s1_1.sch_Profile as s2_1 left join s2_1.function as l1_1 left join l1_1.instance as l2_1 where s1_1.id = :SESSION_ID) ", new String[]{"ACTIVE", "SERVICE_ID", "SESSION_ID"}, new Object[]{Boolean.TRUE, session.getService().getID_Service(), session.getID_Sch_Session()});

    if (servFuncs == null || servFuncs.isEmpty())
        return null;

    return  ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(servFuncs);
}
项目:openMAXIMS    文件:ClinicListImpl.java   
public SessionShortVoCollection listSession(ServiceShortVo service, ServiceFunctionVoCollection functionColl, ProfileShortVo profile, Date sessionDate, ProfileListType listtype)   //wdev-19419 
{
    DomainFactory factory = getDomainFactory();
    SessionShortVoCollection voCollSessionShort = new SessionShortVoCollection();

    List sessions;
    if(service != null)
    {
        sessions = factory.find(" from Sch_Session session where session.sessionDate = :sessionDate and " +
                                    " session.service.id = :serviceId",
                                    new String[]{"sessionDate","serviceId"},
                                    new Object[]{sessionDate.getDate(), service.getID_Service()});
    }
    else
    {
        if( listtype == null )
        {
            sessions = factory.find(" from Sch_Session session where session.sessionDate = :sessionDate and " +
                                " session.sch_Profile.id = :profileId",
                                new String[]{"sessionDate","profileId"},
                                new Object[]{sessionDate.getDate(), profile.getID_Sch_Profile()});
        }
        else
        {
            sessions = factory.find(" from Sch_Session session where session.sessionDate = :sessionDate and " +
                    " session.sch_Profile.id = :profileId and session.listType.id = :idListType",
                    new String[]{"sessionDate","profileId","idListType"},
                    new Object[]{sessionDate.getDate(), profile.getID_Sch_Profile(),getDomLookup(listtype).getId()});
        }
    }

    voCollSessionShort = SessionShortVoAssembler.createSessionShortVoCollectionFromSch_Session(sessions);

    return voCollSessionShort;  
}
项目:openMAXIMS    文件:LocationServiceImpl.java   
public ServiceFunctionVoCollection listServiceFunction(Integer voServiceId)
{
    DomainFactory factory = getDomainFactory();

    if (voServiceId != null)
    {
        java.util.List servfuncList = factory.find("from ServiceFunction servfunc where servfunc.service.id = :serviceid", new String[]{"serviceid"}, new Object[]{voServiceId});
        return ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(servfuncList).sort();
    }

    return null;
}
项目:openMAXIMS    文件:ServiceImpl.java   
public ServiceFunctionVoCollection listServiceFunction(ServiceShortVo voService)
{
    DomainFactory factory = getDomainFactory();

    if (voService == null)
        return ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(factory.listDomainObjects(ServiceFunction.class)).sort();

    if (voService.getID_ServiceIsNotNull())
    {
        java.util.List servfuncList = factory.find("from  ServiceFunction servfunc where servfunc.service.id = :serviceid", new String[]{"serviceid"}, new Object[]{voService.getID_Service()});
        return ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(servfuncList).sort();
    }

    return null;
}
项目:openMAXIMS    文件:ClinicListImpl.java   
public SessionShortVoCollection listSession(ServiceShortVo service, ServiceFunctionVoCollection functionColl, ProfileShortVo profile, Date sessionDate,ProfileListType listtype)  //wdev-19419 
{
    DomainFactory factory = getDomainFactory();
    SessionShortVoCollection voCollSessionShort = new SessionShortVoCollection();

    List<?> sessions;
    if(service != null)
    {
        sessions = factory.find(" from Sch_Session session where session.sessionDate = :sessionDate and " +
                                    " session.service.id = :serviceId",
                                    new String[]{"sessionDate","serviceId"},
                                    new Object[]{sessionDate.getDate(), service.getID_Service()});
    }
    else
    {
        if( listtype == null )  //wdev-19419
        {
            sessions = factory.find(" from Sch_Session session where session.sessionDate = :sessionDate and " +
                                    " session.sch_Profile.id = :profileId",
                                    new String[]{"sessionDate","profileId"},
                                    new Object[]{sessionDate.getDate(), profile.getID_Sch_Profile()});
        }
        else
        {
            sessions = factory.find(" from Sch_Session session where session.sessionDate = :sessionDate and " +
                    " session.sch_Profile.id = :profileId and session.listType.id = :listtypeId",
                    new String[]{"sessionDate","profileId","listtypeId"},
                    new Object[]{sessionDate.getDate(), profile.getID_Sch_Profile(),getDomLookup(listtype).getId()});
        }
    }

    voCollSessionShort = SessionShortVoAssembler.createSessionShortVoCollectionFromSch_Session(sessions).sort();

    return voCollSessionShort;  
}
项目:openMAXIMS    文件:DirectoryOfServiceAdminImpl.java   
/**
 * retrieve a list of functions for this service from ServiceFunction
 */
public ServiceFunctionVoCollection listServiceFunctions(ServiceShortVo serviceShort) 
{
    DomainFactory factory = getDomainFactory();

    List<?> funcs = factory.find("from ServiceFunction serviceFunc where serviceFunc.service.id = :serviceId",new String[]{"serviceId"},new Object[]{serviceShort.getID_Service()});
    return ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(funcs);
}
项目:openMAXIMS    文件:Logic.java   
private String formatFunctionDetail(ServiceFunctionVoCollection voColl)
{
    String out = "";

    if (voColl != null && voColl.size() > 0)
    {
        out += makeTextile("<CENTER>*" + ConfigFlag.UI.DISPLAY_NAME_FUNCTION.getValue(true) + "*</CENTER>", "SlateBlue", "tahoma", "14");
        for (int i = 0; i < voColl.size(); i++)
        {
            out += makeTextileItem((voColl.get(i).getFunctionIsNotNull() ? voColl.get(i).getFunction().toString() : "") + formatTaxonomy(voColl.get(i).getTaxonomyMap()), (voColl.get(i).getIsActiveIsNotNull() ? (voColl.get(i).getIsActive().booleanValue() ? "black" : "red") : "black"), "tahoma", "12");
        }
    }

    return out;
}
项目:openMAXIMS    文件:Logic.java   
private ServiceFunctionVo inFunctionList(ServiceFunction value, ServiceFunctionVoCollection voVollFunc)
{
    if (voVollFunc != null && voVollFunc.size() > 0)
    {
        for (int i = 0; i < voVollFunc.size(); i++)
        {
            if (voVollFunc.get(i).getFunctionIsNotNull() && voVollFunc.get(i).getFunction().equals(value))
                return voVollFunc.get(i);
        }
    }
    return null;
}
项目:openMAXIMS    文件:LocationServiceImpl.java   
public ServiceFunctionVoCollection listServiceFunction(Integer voServiceId)
{
    DomainFactory factory = getDomainFactory();

    if (voServiceId != null)
    {
        java.util.List servfuncList = factory.find("from ServiceFunction servfunc where servfunc.service.id = :serviceid", new String[]{"serviceid"}, new Object[]{voServiceId});
        return ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(servfuncList).sort();
    }

    return null;
}
项目:openMAXIMS    文件:ServiceImpl.java   
public ServiceFunctionVoCollection listServiceFunction(ServiceShortVo voService)
{
    DomainFactory factory = getDomainFactory();

    if (voService == null)
        return ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(factory.listDomainObjects(ServiceFunction.class)).sort();

    if (voService.getID_ServiceIsNotNull())
    {
        java.util.List servfuncList = factory.find("from  ServiceFunction servfunc where servfunc.service.id = :serviceid", new String[]{"serviceid"}, new Object[]{voService.getID_Service()});
        return ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(servfuncList).sort();
    }

    return null;
}
项目:openmaxims-linux    文件:DirectoryOfServiceAdminImpl.java   
/**
 * retrieve a list of functions for this service from ServiceFunction
 */
public ServiceFunctionVoCollection listServiceFunctions(ServiceShortVo serviceShort) 
{
    DomainFactory factory = getDomainFactory();

    List<?> funcs = factory.find("from ServiceFunction serviceFunc where serviceFunc.service.id = :serviceId",new String[]{"serviceId"},new Object[]{serviceShort.getID_Service()});
    return ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(funcs);
}
项目:openmaxims-linux    文件:Logic.java   
private String formatFunctionDetail(ServiceFunctionVoCollection voColl)
{
    String out = "";

    if (voColl != null && voColl.size() > 0)
    {
        out += makeTextile("<CENTER>*" + ConfigFlag.UI.DISPLAY_NAME_FUNCTION.getValue(true) + "*</CENTER>", "SlateBlue", "tahoma", "14");
        for (int i = 0; i < voColl.size(); i++)
        {
            out += makeTextileItem((voColl.get(i).getFunctionIsNotNull() ? voColl.get(i).getFunction().toString() : "") + formatTaxonomy(voColl.get(i).getTaxonomyMap()), (voColl.get(i).getIsActiveIsNotNull() ? (voColl.get(i).getIsActive().booleanValue() ? "black" : "red") : "black"), "tahoma", "12");
        }
    }

    return out;
}
项目:openmaxims-linux    文件:Logic.java   
private ServiceFunctionVo inFunctionList(ServiceFunction value, ServiceFunctionVoCollection voVollFunc)
{
    if (voVollFunc != null && voVollFunc.size() > 0)
    {
        for (int i = 0; i < voVollFunc.size(); i++)
        {
            if (voVollFunc.get(i).getFunctionIsNotNull() && voVollFunc.get(i).getFunction().equals(value))
                return voVollFunc.get(i);
        }
    }
    return null;
}
项目:openmaxims-linux    文件:LocationServiceImpl.java   
public ServiceFunctionVoCollection listServiceFunction(Integer voServiceId)
{
    DomainFactory factory = getDomainFactory();

    if (voServiceId != null)
    {
        java.util.List servfuncList = factory.find("from ServiceFunction servfunc where servfunc.service.id = :serviceid", new String[]{"serviceid"}, new Object[]{voServiceId});
        return ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(servfuncList).sort();
    }

    return null;
}
项目:openmaxims-linux    文件:ServiceImpl.java   
public ServiceFunctionVoCollection listServiceFunction(ServiceShortVo voService)
{
    DomainFactory factory = getDomainFactory();

    if (voService == null)
        return ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(factory.listDomainObjects(ServiceFunction.class)).sort();

    if (voService.getID_ServiceIsNotNull())
    {
        java.util.List servfuncList = factory.find("from  ServiceFunction servfunc where servfunc.service.id = :serviceid", new String[]{"serviceid"}, new Object[]{voService.getID_Service()});
        return ServiceFunctionVoAssembler.createServiceFunctionVoCollectionFromServiceFunction(servfuncList).sort();
    }

    return null;
}
项目:AvoinApotti    文件:ClinicListImpl.java   
public ims.core.vo.ServiceFunctionVoCollection listServiceFunctions(ims.core.vo.ServiceShortVo serviceShort)
{
    DirectoryOfServiceAdmin impl = (DirectoryOfServiceAdmin) getDomainImpl(DirectoryOfServiceAdminImpl.class);
    return impl.listServiceFunctions(serviceShort);
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenDataServiceFunction(Integer voServiceId)
{
    form.getLocalContext().setSelectedRecordServiceId(voServiceId);

    ServiceFunctionVoCollection voColl = domain.listServiceFunction(voServiceId);

    // location service functions
    form.lyr1().Edit().lyrLocationDetail().tabPageFunction().grdServiceFunction().getRows().clear();
    if ((voColl != null) && (voColl.size() > 0))
    {
        // load servicefunctions
        grdServiceFunctionRow row;
        for (int i = 0; i < voColl.size(); i++)
        {
            row = form.lyr1().Edit().lyrLocationDetail().tabPageFunction().grdServiceFunction().getRows().newRow();
            row.setservicefunctionId(Integer.valueOf(voColl.get(i).getFunction().getId()));
            row.setFunction(voColl.get(i).getFunction().getText());
            row.setValue(voColl.get(i));
            row.setSelect(false);
        }

        // show linked location service functions
        if (form.treHeader().getSelectedNode().getValue() instanceof LocationServiceVo)
        {
            form.lyr1().Edit().txtServiceName().setEnabled(false);
            form.lyr1().Edit().btnSearch().setEnabled(false);
            // this is an update of with a single servicefunction
            form.getLocalContext().setSelectedRecordLocationService((LocationServiceVo) form.treHeader().getSelectedNode().getValue());
        }
        else if (form.treHeader().getSelectedNode().getValue() instanceof LocShortVo)
        {
            // this is an update/addition of services
            if (form.treHeader().getSelectedNode().getNodes().size() > 0)
            {
                form.getLocalContext().setSelectedRecordLocationService(null);
                // find locationservice
                for (int j = 0; j < form.treHeader().getSelectedNode().getNodes().size(); j++)
                {
                    if (form.treHeader().getSelectedNode().getNodes().get(j).getValue() instanceof LocationServiceVo)
                    {
                        LocationServiceVo voLocServ = (LocationServiceVo) form.treHeader().getSelectedNode().getNodes().get(j).getValue();
                        if (voLocServ.getService().equals(form.lyr1().Edit().grdService().getValue()))
                        {
                            // found
                            form.getLocalContext().setSelectedRecordLocationService(voLocServ);
                            break;
                        }
                    }
                }
            }
        }

        if (form.getLocalContext().getSelectedRecordLocationService() != null)
        {
            // select linked location service functions
            if (form.getLocalContext().getSelectedRecordLocationService().getFunctionsIsNotNull())
            {
                for (int i = 0; i < form.getLocalContext().getSelectedRecordLocationService().getFunctions().size(); i++)
                {
                    row = getFunctionrow(form.getLocalContext().getSelectedRecordLocationService().getFunctions().get(i).getServiceFunction().getFunction().getId());
                    if (row != null)
                        row.setSelect(true);
                }
            }
        }

    }
}
项目:AvoinApotti    文件:ClinicListImpl.java   
public ims.core.vo.ServiceFunctionVoCollection listServiceFunctions(ims.core.vo.ServiceShortVo serviceShort)
{
    DirectoryOfServiceAdmin impl = (DirectoryOfServiceAdmin) getDomainImpl(DirectoryOfServiceAdminImpl.class);
    return impl.listServiceFunctions(serviceShort);
}
项目:openMAXIMS    文件:ClinicListImpl.java   
public ims.core.vo.ServiceFunctionVoCollection listServiceFunctions(ims.core.vo.ServiceShortVo serviceShort)
{
    DirectoryOfServiceAdmin impl = (DirectoryOfServiceAdmin) getDomainImpl(DirectoryOfServiceAdminImpl.class);
    return impl.listServiceFunctions(serviceShort);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenDataServiceFunction(Integer voServiceId)
{
    form.getLocalContext().setSelectedRecordServiceId(voServiceId);

    ServiceFunctionVoCollection voColl = domain.listServiceFunction(voServiceId);

    // location service functions
    form.lyr1().Edit().lyrLocationDetail().tabPageFunction().grdServiceFunction().getRows().clear();
    if ((voColl != null) && (voColl.size() > 0))
    {
        // load servicefunctions
        grdServiceFunctionRow row;
        for (int i = 0; i < voColl.size(); i++)
        {
            row = form.lyr1().Edit().lyrLocationDetail().tabPageFunction().grdServiceFunction().getRows().newRow();
            row.setservicefunctionId(Integer.valueOf(voColl.get(i).getFunction().getId()));
            row.setFunction(voColl.get(i).getFunction().getText());
            row.setValue(voColl.get(i));
            row.setSelect(false);
        }

        // show linked location service functions
        if (form.treHeader().getSelectedNode().getValue() instanceof LocationServiceVo)
        {
            form.lyr1().Edit().txtServiceName().setEnabled(false);
            form.lyr1().Edit().btnSearch().setEnabled(false);
            // this is an update of with a single servicefunction
            form.getLocalContext().setSelectedRecordLocationService((LocationServiceVo) form.treHeader().getSelectedNode().getValue());
        }
        else if (form.treHeader().getSelectedNode().getValue() instanceof LocShortVo)
        {
            // this is an update/addition of services
            if (form.treHeader().getSelectedNode().getNodes().size() > 0)
            {
                form.getLocalContext().setSelectedRecordLocationService(null);
                // find locationservice
                for (int j = 0; j < form.treHeader().getSelectedNode().getNodes().size(); j++)
                {
                    if (form.treHeader().getSelectedNode().getNodes().get(j).getValue() instanceof LocationServiceVo)
                    {
                        LocationServiceVo voLocServ = (LocationServiceVo) form.treHeader().getSelectedNode().getNodes().get(j).getValue();
                        if (voLocServ.getService().equals(form.lyr1().Edit().grdService().getValue()))
                        {
                            // found
                            form.getLocalContext().setSelectedRecordLocationService(voLocServ);
                            break;
                        }
                    }
                }
            }
        }

        if (form.getLocalContext().getSelectedRecordLocationService() != null)
        {
            // select linked location service functions
            if (form.getLocalContext().getSelectedRecordLocationService().getFunctionsIsNotNull())
            {
                for (int i = 0; i < form.getLocalContext().getSelectedRecordLocationService().getFunctions().size(); i++)
                {
                    row = getFunctionrow(form.getLocalContext().getSelectedRecordLocationService().getFunctions().get(i).getServiceFunction().getFunction().getId());
                    if (row != null)
                        row.setSelect(true);
                }
            }
        }

    }
}
项目:openMAXIMS    文件:ClinicListImpl.java   
public ims.core.vo.ServiceFunctionVoCollection listServiceFunctions(ims.core.vo.ServiceShortVo serviceShort)
{
    DirectoryOfServiceAdmin impl = (DirectoryOfServiceAdmin) getDomainImpl(DirectoryOfServiceAdminImpl.class);
    return impl.listServiceFunctions(serviceShort);
}
项目:openMAXIMS    文件:ClinicListImpl.java   
public ims.core.vo.ServiceFunctionVoCollection listServiceFunctions(ims.core.vo.ServiceShortVo serviceShort)
{
    DirectoryOfServiceAdmin impl = (DirectoryOfServiceAdmin) getDomainImpl(DirectoryOfServiceAdminImpl.class);
    return impl.listServiceFunctions(serviceShort);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenDataServiceFunction(Integer voServiceId)
{
    form.getLocalContext().setSelectedRecordServiceId(voServiceId);

    ServiceFunctionVoCollection voColl = domain.listServiceFunction(voServiceId);

    // location service functions
    form.lyr1().Edit().lyrLocationDetail().tabPageFunction().grdServiceFunction().getRows().clear();
    if ((voColl != null) && (voColl.size() > 0))
    {
        // load servicefunctions
        grdServiceFunctionRow row;
        for (int i = 0; i < voColl.size(); i++)
        {
            row = form.lyr1().Edit().lyrLocationDetail().tabPageFunction().grdServiceFunction().getRows().newRow();
            row.setservicefunctionId(Integer.valueOf(voColl.get(i).getFunction().getId()));
            row.setFunction(voColl.get(i).getFunction().getText());
            row.setValue(voColl.get(i));
            row.setSelect(false);
        }

        // show linked location service functions
        if (form.treHeader().getSelectedNode().getValue() instanceof LocationServiceVo)
        {
            form.lyr1().Edit().txtServiceName().setEnabled(false);
            form.lyr1().Edit().btnSearch().setEnabled(false);
            // this is an update of with a single servicefunction
            form.getLocalContext().setSelectedRecordLocationService((LocationServiceVo) form.treHeader().getSelectedNode().getValue());
        }
        else if (form.treHeader().getSelectedNode().getValue() instanceof LocShortVo)
        {
            // this is an update/addition of services
            if (form.treHeader().getSelectedNode().getNodes().size() > 0)
            {
                form.getLocalContext().setSelectedRecordLocationService(null);
                // find locationservice
                for (int j = 0; j < form.treHeader().getSelectedNode().getNodes().size(); j++)
                {
                    if (form.treHeader().getSelectedNode().getNodes().get(j).getValue() instanceof LocationServiceVo)
                    {
                        LocationServiceVo voLocServ = (LocationServiceVo) form.treHeader().getSelectedNode().getNodes().get(j).getValue();
                        if (voLocServ.getService().equals(form.lyr1().Edit().grdService().getValue()))
                        {
                            // found
                            form.getLocalContext().setSelectedRecordLocationService(voLocServ);
                            break;
                        }
                    }
                }
            }
        }

        if (form.getLocalContext().getSelectedRecordLocationService() != null)
        {
            // select linked location service functions
            if (form.getLocalContext().getSelectedRecordLocationService().getFunctionsIsNotNull())
            {
                for (int i = 0; i < form.getLocalContext().getSelectedRecordLocationService().getFunctions().size(); i++)
                {
                    row = getFunctionrow(form.getLocalContext().getSelectedRecordLocationService().getFunctions().get(i).getServiceFunction().getFunction().getId());
                    if (row != null)
                        row.setSelect(true);
                }
            }
        }

    }
}