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

项目:AvoinApotti    文件:Logic.java   
private void populateClinicalTeamTree(ClinicalTeamVoCollection voCollClinicalTeams)
{
    if (voCollClinicalTeams == null || voCollClinicalTeams.size() <= 0 ) return;

    for(int i=0; i<voCollClinicalTeams.size(); i++)
        newParentNode(voCollClinicalTeams.get(i));          
}
项目:AvoinApotti    文件:Logic.java   
private void open() 
{

    form.getLocalContext().setIHcp(form.getGlobalContext().Core.getEpisodeofCareShort().getResponsibleHCP());
    ClinicalTeamVoCollection collClinicalTeamVo = new ClinicalTeamVoCollection();

    collClinicalTeamVo = domain.listTeamLeadsMembers(form.getLocalContext().getIHcp());
    if(collClinicalTeamVo == null)
        return;

    populateScreen(collClinicalTeamVo);
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreen(ClinicalTeamVoCollection collClinicalTeamVo) 
{
    form.cmbTeamLead().newRow(form.getLocalContext().getIHcp(), form.getLocalContext().getIHcp().toString());
    form.cmbTeamLead().setValue(form.getLocalContext().getIHcp());

    ClinicalTeamMemberVoCollection voTeamMemberColl = new ClinicalTeamMemberVoCollection();

    if (collClinicalTeamVo != null)
    {
        form.grdTeamMember().getRows().clear();
        GenForm.grdTeamMemberRow tempRow;
            for (int i=0; i < collClinicalTeamVo.size(); i++)
        {
                ClinicalTeamVo voClinicalTeam = collClinicalTeamVo.get(i);

                voTeamMemberColl = voClinicalTeam.getTeamMembers();

                for (int x=0; x < voTeamMemberColl.size(); x++)
                {
                    ClinicalTeamMemberVo voTeamMember = voTeamMemberColl.get(x);

                    tempRow = form.grdTeamMember().getRows().newRow();
                    tempRow.setValue(voTeamMember);

                    if(voTeamMember.getHCPIsNotNull())
                        tempRow.setcolTeamMember(voTeamMember.getHCP().toString());
                }               
        }
    }
}
项目:AvoinApotti    文件:TeamMemberSelectionImpl.java   
public ClinicalTeamVoCollection listTeamLeadsMembers(IHcp teamLead) 
{
    DomainFactory factory = getDomainFactory();

    String hql = " from ClinicalTeam ct "; 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if(teamLead.getIHcpId()!= null)
    {
        condStr.append(andStr + " ct.leadHCP.id = :id_Hcp"); 
        markers.add("id_Hcp");
        values.add(teamLead.getIHcpId());
        andStr = " and ";

        condStr.append(andStr + " ct.isActive = :isActive");
        markers.add("isActive");
        values.add(new Boolean(true));      
        andStr = " and ";
    }   

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();

    ClinicalTeamVoCollection voClinicalTeamColl = new ClinicalTeamVoCollection();

    voClinicalTeamColl = ClinicalTeamVoAssembler.createClinicalTeamVoCollectionFromClinicalTeam(factory.find(hql, markers, values));

    if(voClinicalTeamColl == null)
        return null;
    else
        return voClinicalTeamColl;
}
项目:openMAXIMS    文件:Logic.java   
private void populateClinicalTeamTree(ClinicalTeamVoCollection voCollClinicalTeams)
{
    if (voCollClinicalTeams == null || voCollClinicalTeams.size() <= 0 ) return;

    for(int i=0; i<voCollClinicalTeams.size(); i++)
        newParentNode(voCollClinicalTeams.get(i));          
}
项目:openMAXIMS    文件:Logic.java   
private void open() 
{

    form.getLocalContext().setIHcp(form.getGlobalContext().Core.getEpisodeofCareShort().getResponsibleHCP());
    ClinicalTeamVoCollection collClinicalTeamVo = new ClinicalTeamVoCollection();

    collClinicalTeamVo = domain.listTeamLeadsMembers(form.getLocalContext().getIHcp());
    if(collClinicalTeamVo == null)
        return;

    populateScreen(collClinicalTeamVo);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreen(ClinicalTeamVoCollection collClinicalTeamVo) 
{
    form.cmbTeamLead().newRow(form.getLocalContext().getIHcp(), form.getLocalContext().getIHcp().toString());
    form.cmbTeamLead().setValue(form.getLocalContext().getIHcp());

    ClinicalTeamMemberVoCollection voTeamMemberColl = new ClinicalTeamMemberVoCollection();

    if (collClinicalTeamVo != null)
    {
        form.grdTeamMember().getRows().clear();
        GenForm.grdTeamMemberRow tempRow;
            for (int i=0; i < collClinicalTeamVo.size(); i++)
        {
                ClinicalTeamVo voClinicalTeam = collClinicalTeamVo.get(i);

                voTeamMemberColl = voClinicalTeam.getTeamMembers();

                for (int x=0; x < voTeamMemberColl.size(); x++)
                {
                    ClinicalTeamMemberVo voTeamMember = voTeamMemberColl.get(x);

                    tempRow = form.grdTeamMember().getRows().newRow();
                    tempRow.setValue(voTeamMember);

                    if(voTeamMember.getHCPIsNotNull())
                        tempRow.setcolTeamMember(voTeamMember.getHCP().toString());
                }               
        }
    }
}
项目:openMAXIMS    文件:TeamMemberSelectionImpl.java   
public ClinicalTeamVoCollection listTeamLeadsMembers(IHcp teamLead) 
{
    DomainFactory factory = getDomainFactory();

    String hql = " from ClinicalTeam ct "; 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if(teamLead.getIHcpId()!= null)
    {
        condStr.append(andStr + " ct.leadHCP.id = :id_Hcp"); 
        markers.add("id_Hcp");
        values.add(teamLead.getIHcpId());
        andStr = " and ";

        condStr.append(andStr + " ct.isActive = :isActive");
        markers.add("isActive");
        values.add(new Boolean(true));      
        andStr = " and ";
    }   

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();

    ClinicalTeamVoCollection voClinicalTeamColl = new ClinicalTeamVoCollection();

    voClinicalTeamColl = ClinicalTeamVoAssembler.createClinicalTeamVoCollectionFromClinicalTeam(factory.find(hql, markers, values));

    if(voClinicalTeamColl == null)
        return null;
    else
        return voClinicalTeamColl;
}
项目:openMAXIMS    文件:Logic.java   
private void populateClinicalTeamTree(ClinicalTeamVoCollection voCollClinicalTeams)
{
    if (voCollClinicalTeams == null || voCollClinicalTeams.size() <= 0 ) return;

    for(int i=0; i<voCollClinicalTeams.size(); i++)
        newParentNode(voCollClinicalTeams.get(i));          
}
项目:openMAXIMS    文件:Logic.java   
private void open() 
{

    form.getLocalContext().setIHcp(form.getGlobalContext().Core.getEpisodeofCareShort().getResponsibleHCP());
    ClinicalTeamVoCollection collClinicalTeamVo = new ClinicalTeamVoCollection();

    collClinicalTeamVo = domain.listTeamLeadsMembers(form.getLocalContext().getIHcp());
    if(collClinicalTeamVo == null)
        return;

    populateScreen(collClinicalTeamVo);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreen(ClinicalTeamVoCollection collClinicalTeamVo) 
{
    form.cmbTeamLead().newRow(form.getLocalContext().getIHcp(), form.getLocalContext().getIHcp().toString());
    form.cmbTeamLead().setValue(form.getLocalContext().getIHcp());

    ClinicalTeamMemberVoCollection voTeamMemberColl = new ClinicalTeamMemberVoCollection();

    if (collClinicalTeamVo != null)
    {
        form.grdTeamMember().getRows().clear();
        GenForm.grdTeamMemberRow tempRow;
            for (int i=0; i < collClinicalTeamVo.size(); i++)
        {
                ClinicalTeamVo voClinicalTeam = collClinicalTeamVo.get(i);

                voTeamMemberColl = voClinicalTeam.getTeamMembers();

                for (int x=0; x < voTeamMemberColl.size(); x++)
                {
                    ClinicalTeamMemberVo voTeamMember = voTeamMemberColl.get(x);

                    tempRow = form.grdTeamMember().getRows().newRow();
                    tempRow.setValue(voTeamMember);

                    if(voTeamMember.getHCPIsNotNull())
                        tempRow.setcolTeamMember(voTeamMember.getHCP().toString());
                }               
        }
    }
}
项目:openMAXIMS    文件:TeamMemberSelectionImpl.java   
public ClinicalTeamVoCollection listTeamLeadsMembers(IHcp teamLead) 
{
    DomainFactory factory = getDomainFactory();

    String hql = " from ClinicalTeam ct "; 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if(teamLead.getIHcpId()!= null)
    {
        condStr.append(andStr + " ct.leadHCP.id = :id_Hcp"); 
        markers.add("id_Hcp");
        values.add(teamLead.getIHcpId());
        andStr = " and ";

        condStr.append(andStr + " ct.isActive = :isActive");
        markers.add("isActive");
        values.add(new Boolean(true));      
        andStr = " and ";
    }   

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();

    ClinicalTeamVoCollection voClinicalTeamColl = new ClinicalTeamVoCollection();

    voClinicalTeamColl = ClinicalTeamVoAssembler.createClinicalTeamVoCollectionFromClinicalTeam(factory.find(hql, markers, values));

    if(voClinicalTeamColl == null)
        return null;
    else
        return voClinicalTeamColl;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateClinicalTeamTree(ClinicalTeamVoCollection voCollClinicalTeams)
{
    if (voCollClinicalTeams == null || voCollClinicalTeams.size() <= 0 ) return;

    for(int i=0; i<voCollClinicalTeams.size(); i++)
        newParentNode(voCollClinicalTeams.get(i));          
}
项目:openmaxims-linux    文件:Logic.java   
private void open() 
{

    form.getLocalContext().setIHcp(form.getGlobalContext().Core.getEpisodeofCareShort().getResponsibleHCP());
    ClinicalTeamVoCollection collClinicalTeamVo = new ClinicalTeamVoCollection();

    collClinicalTeamVo = domain.listTeamLeadsMembers(form.getLocalContext().getIHcp());
    if(collClinicalTeamVo == null)
        return;

    populateScreen(collClinicalTeamVo);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreen(ClinicalTeamVoCollection collClinicalTeamVo) 
{
    form.cmbTeamLead().newRow(form.getLocalContext().getIHcp(), form.getLocalContext().getIHcp().toString());
    form.cmbTeamLead().setValue(form.getLocalContext().getIHcp());

    ClinicalTeamMemberVoCollection voTeamMemberColl = new ClinicalTeamMemberVoCollection();

    if (collClinicalTeamVo != null)
    {
        form.grdTeamMember().getRows().clear();
        GenForm.grdTeamMemberRow tempRow;
            for (int i=0; i < collClinicalTeamVo.size(); i++)
        {
                ClinicalTeamVo voClinicalTeam = collClinicalTeamVo.get(i);

                voTeamMemberColl = voClinicalTeam.getTeamMembers();

                for (int x=0; x < voTeamMemberColl.size(); x++)
                {
                    ClinicalTeamMemberVo voTeamMember = voTeamMemberColl.get(x);

                    tempRow = form.grdTeamMember().getRows().newRow();
                    tempRow.setValue(voTeamMember);

                    if(voTeamMember.getHCPIsNotNull())
                        tempRow.setcolTeamMember(voTeamMember.getHCP().toString());
                }               
        }
    }
}
项目:openmaxims-linux    文件:TeamMemberSelectionImpl.java   
public ClinicalTeamVoCollection listTeamLeadsMembers(IHcp teamLead) 
{
    DomainFactory factory = getDomainFactory();

    String hql = " from ClinicalTeam ct "; 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if(teamLead.getIHcpId()!= null)
    {
        condStr.append(andStr + " ct.leadHCP.id = :id_Hcp"); 
        markers.add("id_Hcp");
        values.add(teamLead.getIHcpId());
        andStr = " and ";

        condStr.append(andStr + " ct.isActive = :isActive");
        markers.add("isActive");
        values.add(new Boolean(true));      
        andStr = " and ";
    }   

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();

    ClinicalTeamVoCollection voClinicalTeamColl = new ClinicalTeamVoCollection();

    voClinicalTeamColl = ClinicalTeamVoAssembler.createClinicalTeamVoCollectionFromClinicalTeam(factory.find(hql, markers, values));

    if(voClinicalTeamColl == null)
        return null;
    else
        return voClinicalTeamColl;
}
项目:AvoinApotti    文件:ClinicalTeamAdministrationImpl.java   
public ClinicalTeamVoCollection listClinicalTeams(ClinicalTeamSearchCriteriaVo voFilter)
{
    DomainFactory factory = getDomainFactory();
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList(); 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    String sHQL = " from ClinicalTeam c ";

    if (voFilter.getActive() != null)
    {
        condStr.append(andStr + " c.isActive = :Active");
        markers.add("Active");
        values.add(voFilter.getActive());           
        andStr = " and ";
    }

    if (voFilter.getTeamName() != null)
    {
        condStr.append(andStr + " c.teamName = :TeamName");
        markers.add("TeamName");
        values.add(voFilter.getTeamName());         
        andStr = " and ";           
    }

    if (voFilter.getTeamType() != null)
    {
        condStr.append(andStr + " c.teamType = :TeamType");
        markers.add("TeamType");
        values.add(getDomLookup(voFilter.getTeamType()));           
        andStr = " and ";           
    }



    if (andStr.equals(" and "))
        sHQL += " where ";

    sHQL += condStr.toString();
    List lstClinicalTeams = factory.find(sHQL, markers, values);                
    return ClinicalTeamVoAssembler.createClinicalTeamVoCollectionFromClinicalTeam(lstClinicalTeams);        
}
项目:openMAXIMS    文件:ClinicalTeamAdministrationImpl.java   
public ClinicalTeamVoCollection listClinicalTeams(ClinicalTeamSearchCriteriaVo voFilter)
{
    DomainFactory factory = getDomainFactory();
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList(); 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    String sHQL = " from ClinicalTeam c ";

    if (voFilter.getActive() != null)
    {
        condStr.append(andStr + " c.isActive = :Active");
        markers.add("Active");
        values.add(voFilter.getActive());           
        andStr = " and ";
    }

    if (voFilter.getTeamName() != null)
    {
        condStr.append(andStr + " c.teamName = :TeamName");
        markers.add("TeamName");
        values.add(voFilter.getTeamName());         
        andStr = " and ";           
    }

    if (voFilter.getTeamType() != null)
    {
        condStr.append(andStr + " c.teamType = :TeamType");
        markers.add("TeamType");
        values.add(getDomLookup(voFilter.getTeamType()));           
        andStr = " and ";           
    }



    if (andStr.equals(" and "))
        sHQL += " where ";

    sHQL += condStr.toString();
    List lstClinicalTeams = factory.find(sHQL, markers, values);                
    return ClinicalTeamVoAssembler.createClinicalTeamVoCollectionFromClinicalTeam(lstClinicalTeams);        
}
项目:openMAXIMS    文件:ClinicalTeamAdministrationImpl.java   
public ClinicalTeamVoCollection listClinicalTeams(ClinicalTeamSearchCriteriaVo voFilter)
{
    DomainFactory factory = getDomainFactory();
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList(); 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    String sHQL = " from ClinicalTeam c ";

    if (voFilter.getActive() != null)
    {
        condStr.append(andStr + " c.isActive = :Active");
        markers.add("Active");
        values.add(voFilter.getActive());           
        andStr = " and ";
    }

    if (voFilter.getTeamName() != null)
    {
        condStr.append(andStr + " c.teamName = :TeamName");
        markers.add("TeamName");
        values.add(voFilter.getTeamName());         
        andStr = " and ";           
    }

    if (voFilter.getTeamType() != null)
    {
        condStr.append(andStr + " c.teamType = :TeamType");
        markers.add("TeamType");
        values.add(getDomLookup(voFilter.getTeamType()));           
        andStr = " and ";           
    }



    if (andStr.equals(" and "))
        sHQL += " where ";

    sHQL += condStr.toString();
    List lstClinicalTeams = factory.find(sHQL, markers, values);                
    return ClinicalTeamVoAssembler.createClinicalTeamVoCollectionFromClinicalTeam(lstClinicalTeams);        
}
项目:openmaxims-linux    文件:ClinicalTeamAdministrationImpl.java   
public ClinicalTeamVoCollection listClinicalTeams(ClinicalTeamSearchCriteriaVo voFilter)
{
    DomainFactory factory = getDomainFactory();
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList(); 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    String sHQL = " from ClinicalTeam c ";

    if (voFilter.getActive() != null)
    {
        condStr.append(andStr + " c.isActive = :Active");
        markers.add("Active");
        values.add(voFilter.getActive());           
        andStr = " and ";
    }

    if (voFilter.getTeamName() != null)
    {
        condStr.append(andStr + " c.teamName = :TeamName");
        markers.add("TeamName");
        values.add(voFilter.getTeamName());         
        andStr = " and ";           
    }

    if (voFilter.getTeamType() != null)
    {
        condStr.append(andStr + " c.teamType = :TeamType");
        markers.add("TeamType");
        values.add(getDomLookup(voFilter.getTeamType()));           
        andStr = " and ";           
    }



    if (andStr.equals(" and "))
        sHQL += " where ";

    sHQL += condStr.toString();
    List lstClinicalTeams = factory.find(sHQL, markers, values);                
    return ClinicalTeamVoAssembler.createClinicalTeamVoCollectionFromClinicalTeam(lstClinicalTeams);        
}