Java 类ims.clinical.vo.ProceduresPerformedByHCPVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    ProceduresPerformedByHCPVoCollection procs = domain.listProceduresPerformedByHCP(form.qmbHCP().getValue(), form.cmbServices().getValue());
    if (procs != null)
        populateTree(procs);
    else
    {
        form.treProcedures().clear();
        clearPanel(); //WDEV-17694
        engine.showMessage("No results found", "Message", MessageButtons.OK);
    }

    form.getLocalContext().setSelectedNode(null);
    updateContextMenuStatus();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    ProceduresPerformedByHCPVoCollection procs = domain.listProceduresPerformedByHCP(form.qmbHCP().getValue(), form.cmbServices().getValue());
    if (procs != null)
        populateTree(procs);
    else
    {
        form.treProcedures().clear();
        clearPanel(); //WDEV-17694
        engine.showMessage("No results found", "Message", MessageButtons.OK);
    }

    form.getLocalContext().setSelectedNode(null);
    updateContextMenuStatus();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    ProceduresPerformedByHCPVoCollection procs = domain.listProceduresPerformedByHCP(form.qmbHCP().getValue(), form.cmbServices().getValue());
    if (procs != null)
        populateTree(procs);
    else
    {
        form.treProcedures().clear();
        clearPanel(); //WDEV-17694
        engine.showMessage("No results found", "Message", MessageButtons.OK);
    }

    form.getLocalContext().setSelectedNode(null);
    updateContextMenuStatus();
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    ProceduresPerformedByHCPVoCollection procs = domain.listProceduresPerformedByHCP(form.qmbHCP().getValue(), form.cmbServices().getValue());
    if (procs != null)
        populateTree(procs);
    else
    {
        form.treProcedures().clear();
        clearPanel(); //WDEV-17694
        engine.showMessage("No results found", "Message", MessageButtons.OK);
    }

    form.getLocalContext().setSelectedNode(null);
    updateContextMenuStatus();
}
项目:AvoinApotti    文件:ProceduresPerformedByHCPImpl.java   
public ProceduresPerformedByHCPVoCollection listProceduresPerformedByHCP(HcpLiteVo hcp, ServiceLiteVo service)
{
    DomainFactory factory=getDomainFactory();
    IMSCriteria imsc=new IMSCriteria(ProceduresPerformedByHCP.class, factory);
    if (hcp!=null && hcp.getID_HcpIsNotNull())
        imsc.equal("performingHCP.id", hcp.getID_Hcp());
    if (service!=null && service.getID_ServiceIsNotNull())
        imsc.equal("service.id", service.getID_Service());
    List procedures=imsc.find();
    if (procedures.size()>0)
        return ProceduresPerformedByHCPVoAssembler.createProceduresPerformedByHCPVoCollectionFromProceduresPerformedByHCP(procedures);
    return null;
}
项目:openMAXIMS    文件:ProceduresPerformedByHCPImpl.java   
public ProceduresPerformedByHCPVoCollection listProceduresPerformedByHCP(HcpLiteVo hcp, ServiceLiteVo service)
{
    DomainFactory factory=getDomainFactory();
    IMSCriteria imsc=new IMSCriteria(ProceduresPerformedByHCP.class, factory);
    if (hcp!=null && hcp.getID_HcpIsNotNull())
        imsc.equal("performingHCP.id", hcp.getID_Hcp());
    if (service!=null && service.getID_ServiceIsNotNull())
        imsc.equal("service.id", service.getID_Service());
    List procedures=imsc.find();
    if (procedures.size()>0)
        return ProceduresPerformedByHCPVoAssembler.createProceduresPerformedByHCPVoCollectionFromProceduresPerformedByHCP(procedures);
    return null;
}
项目:openMAXIMS    文件:ProceduresPerformedByHCPImpl.java   
public ProceduresPerformedByHCPVoCollection listProceduresPerformedByHCP(HcpLiteVo hcp, ServiceLiteVo service)
{
    DomainFactory factory=getDomainFactory();
    IMSCriteria imsc=new IMSCriteria(ProceduresPerformedByHCP.class, factory);
    if (hcp!=null && hcp.getID_HcpIsNotNull())
        imsc.equal("performingHCP.id", hcp.getID_Hcp());
    if (service!=null && service.getID_ServiceIsNotNull())
        imsc.equal("service.id", service.getID_Service());
    List procedures=imsc.find();
    if (procedures.size()>0)
        return ProceduresPerformedByHCPVoAssembler.createProceduresPerformedByHCPVoCollectionFromProceduresPerformedByHCP(procedures);
    return null;
}
项目:openmaxims-linux    文件:ProceduresPerformedByHCPImpl.java   
public ProceduresPerformedByHCPVoCollection listProceduresPerformedByHCP(HcpLiteVo hcp, ServiceLiteVo service)
{
    DomainFactory factory=getDomainFactory();
    IMSCriteria imsc=new IMSCriteria(ProceduresPerformedByHCP.class, factory);
    if (hcp!=null && hcp.getID_HcpIsNotNull())
        imsc.equal("performingHCP.id", hcp.getID_Hcp());
    if (service!=null && service.getID_ServiceIsNotNull())
        imsc.equal("service.id", service.getID_Service());
    List procedures=imsc.find();
    if (procedures.size()>0)
        return ProceduresPerformedByHCPVoAssembler.createProceduresPerformedByHCPVoCollectionFromProceduresPerformedByHCP(procedures);
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void populateTree(ProceduresPerformedByHCPVoCollection hcpProcedures)
{
    form.treProcedures().clear();
    clearPanel(); //WDEV-17694

    Vector<HcpLiteVo> hcps = new Vector<HcpLiteVo>();
    if (hcpProcedures != null)
        for (ProceduresPerformedByHCPVo item : hcpProcedures)
        {
            TreeNode hcp = null;
            TreeNode service = null;
            TreeNode procedure = null;
            if (item.getPerformingHCPIsNotNull())
            {
                if (!hcps.contains(item.getPerformingHCP()))
                {
                    if (item.getPerformingHCP().getName() != null)
                        hcp = form.treProcedures().getNodes().add(item.getPerformingHCP(), item.getPerformingHCP().getName().toString());
                    hcp.setExpandedImage(form.getImages().Admin.MemberOfStaff);
                    hcp.setSelectedImage(form.getImages().Admin.MemberOfStaff);
                    hcp.setCollapsedImage(form.getImages().Admin.MemberOfStaff);
                    hcp.setIdentifier(item);
                    hcps.add(item.getPerformingHCP());
                }
                else
                {
                    for (int k = 0; k < form.treProcedures().getNodes().size(); k++)
                    {
                        HcpLiteVo existingHcp = (HcpLiteVo) form.treProcedures().getNodes().get(k).getValue();
                        if (existingHcp.equals(item.getPerformingHCP()))
                            hcp = form.treProcedures().getNodes().get(k);
                    }
                }
            }
            if (item.getServiceIsNotNull())
            {
                service = hcp.getNodes().add(item, item.getService().getServiceName());
                service.setExpandedImage(form.getImages().Admin.Service);
                service.setSelectedImage(form.getImages().Admin.Service);
                service.setCollapsedImage(form.getImages().Admin.Service);
            }

            if (item.getProceduresIsNotNull())
            {
                for (int k = 0; k < item.getProcedures().size(); k++)
                {
                    procedure = service.getNodes().add(item.getProcedures().get(k), item.getProcedures().get(k).getProcedureName());
                    procedure.setExpandedImage(form.getImages().Core.BlueSquare);
                    procedure.setSelectedImage(form.getImages().Core.BlueSquare);
                    procedure.setCollapsedImage(form.getImages().Core.BlueSquare);
                }
            }

        }
    form.treProcedures().expandAll();
    form.getLocalContext().setSelectedNode(null);
}
项目:openMAXIMS    文件:Logic.java   
private void populateTree(ProceduresPerformedByHCPVoCollection hcpProcedures)
{
    form.treProcedures().clear();
    clearPanel(); //WDEV-17694

    Vector<HcpLiteVo> hcps = new Vector<HcpLiteVo>();
    if (hcpProcedures != null)
        for (ProceduresPerformedByHCPVo item : hcpProcedures)
        {
            TreeNode hcp = null;
            TreeNode service = null;
            TreeNode procedure = null;
            if (item.getPerformingHCPIsNotNull())
            {
                if (!hcps.contains(item.getPerformingHCP()))
                {
                    if (item.getPerformingHCP().getName() != null)
                        hcp = form.treProcedures().getNodes().add(item.getPerformingHCP(), item.getPerformingHCP().getName().toString());
                    hcp.setExpandedImage(form.getImages().Admin.MemberOfStaff);
                    hcp.setSelectedImage(form.getImages().Admin.MemberOfStaff);
                    hcp.setCollapsedImage(form.getImages().Admin.MemberOfStaff);
                    hcp.setIdentifier(item);
                    hcps.add(item.getPerformingHCP());
                }
                else
                {
                    for (int k = 0; k < form.treProcedures().getNodes().size(); k++)
                    {
                        HcpLiteVo existingHcp = (HcpLiteVo) form.treProcedures().getNodes().get(k).getValue();
                        if (existingHcp.equals(item.getPerformingHCP()))
                            hcp = form.treProcedures().getNodes().get(k);
                    }
                }
            }
            if (item.getServiceIsNotNull())
            {
                service = hcp.getNodes().add(item, item.getService().getServiceName());
                service.setExpandedImage(form.getImages().Admin.Service);
                service.setSelectedImage(form.getImages().Admin.Service);
                service.setCollapsedImage(form.getImages().Admin.Service);
            }

            if (item.getProceduresIsNotNull())
            {
                for (int k = 0; k < item.getProcedures().size(); k++)
                {
                    procedure = service.getNodes().add(item.getProcedures().get(k), item.getProcedures().get(k).getProcedureName());
                    procedure.setExpandedImage(form.getImages().Core.BlueSquare);
                    procedure.setSelectedImage(form.getImages().Core.BlueSquare);
                    procedure.setCollapsedImage(form.getImages().Core.BlueSquare);
                }
            }

        }
    form.treProcedures().expandAll();
    form.getLocalContext().setSelectedNode(null);
}
项目:openMAXIMS    文件:Logic.java   
private void populateTree(ProceduresPerformedByHCPVoCollection hcpProcedures)
{
    form.treProcedures().clear();
    clearPanel(); //WDEV-17694

    Vector<HcpLiteVo> hcps = new Vector<HcpLiteVo>();
    if (hcpProcedures != null)
        for (ProceduresPerformedByHCPVo item : hcpProcedures)
        {
            TreeNode hcp = null;
            TreeNode service = null;
            TreeNode procedure = null;
            if (item.getPerformingHCPIsNotNull())
            {
                if (!hcps.contains(item.getPerformingHCP()))
                {
                    if (item.getPerformingHCP().getName() != null)
                        hcp = form.treProcedures().getNodes().add(item.getPerformingHCP(), item.getPerformingHCP().getName().toString());
                    hcp.setExpandedImage(form.getImages().Admin.MemberOfStaff);
                    hcp.setSelectedImage(form.getImages().Admin.MemberOfStaff);
                    hcp.setCollapsedImage(form.getImages().Admin.MemberOfStaff);
                    hcp.setIdentifier(item);
                    hcps.add(item.getPerformingHCP());
                }
                else
                {
                    for (int k = 0; k < form.treProcedures().getNodes().size(); k++)
                    {
                        HcpLiteVo existingHcp = (HcpLiteVo) form.treProcedures().getNodes().get(k).getValue();
                        if (existingHcp.equals(item.getPerformingHCP()))
                            hcp = form.treProcedures().getNodes().get(k);
                    }
                }
            }
            if (item.getServiceIsNotNull())
            {
                service = hcp.getNodes().add(item, item.getService().getServiceName());
                service.setExpandedImage(form.getImages().Admin.Service);
                service.setSelectedImage(form.getImages().Admin.Service);
                service.setCollapsedImage(form.getImages().Admin.Service);
            }

            if (item.getProceduresIsNotNull())
            {
                for (int k = 0; k < item.getProcedures().size(); k++)
                {
                    procedure = service.getNodes().add(item.getProcedures().get(k), item.getProcedures().get(k).getProcedureName());
                    procedure.setExpandedImage(form.getImages().Core.BlueSquare);
                    procedure.setSelectedImage(form.getImages().Core.BlueSquare);
                    procedure.setCollapsedImage(form.getImages().Core.BlueSquare);
                }
            }

        }
    form.treProcedures().expandAll();
    form.getLocalContext().setSelectedNode(null);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateTree(ProceduresPerformedByHCPVoCollection hcpProcedures)
{
    form.treProcedures().clear();
    clearPanel(); //WDEV-17694

    Vector<HcpLiteVo> hcps = new Vector<HcpLiteVo>();
    if (hcpProcedures != null)
        for (ProceduresPerformedByHCPVo item : hcpProcedures)
        {
            TreeNode hcp = null;
            TreeNode service = null;
            TreeNode procedure = null;
            if (item.getPerformingHCPIsNotNull())
            {
                if (!hcps.contains(item.getPerformingHCP()))
                {
                    if (item.getPerformingHCP().getName() != null)
                        hcp = form.treProcedures().getNodes().add(item.getPerformingHCP(), item.getPerformingHCP().getName().toString());
                    hcp.setExpandedImage(form.getImages().Admin.MemberOfStaff);
                    hcp.setSelectedImage(form.getImages().Admin.MemberOfStaff);
                    hcp.setCollapsedImage(form.getImages().Admin.MemberOfStaff);
                    hcp.setIdentifier(item);
                    hcps.add(item.getPerformingHCP());
                }
                else
                {
                    for (int k = 0; k < form.treProcedures().getNodes().size(); k++)
                    {
                        HcpLiteVo existingHcp = (HcpLiteVo) form.treProcedures().getNodes().get(k).getValue();
                        if (existingHcp.equals(item.getPerformingHCP()))
                            hcp = form.treProcedures().getNodes().get(k);
                    }
                }
            }
            if (item.getServiceIsNotNull())
            {
                service = hcp.getNodes().add(item, item.getService().getServiceName());
                service.setExpandedImage(form.getImages().Admin.Service);
                service.setSelectedImage(form.getImages().Admin.Service);
                service.setCollapsedImage(form.getImages().Admin.Service);
            }

            if (item.getProceduresIsNotNull())
            {
                for (int k = 0; k < item.getProcedures().size(); k++)
                {
                    procedure = service.getNodes().add(item.getProcedures().get(k), item.getProcedures().get(k).getProcedureName());
                    procedure.setExpandedImage(form.getImages().Core.BlueSquare);
                    procedure.setSelectedImage(form.getImages().Core.BlueSquare);
                    procedure.setCollapsedImage(form.getImages().Core.BlueSquare);
                }
            }

        }
    form.treProcedures().expandAll();
    form.getLocalContext().setSelectedNode(null);
}