Java 类ims.ocrr.vo.lookups.SpecimenSiteCollection 实例源码

项目:AvoinApotti    文件:TestEditImpl.java   
private String getSiteIdString(SpecimenSiteCollection sites)
{
    if (sites == null || sites.size() == 0)
        return null;

    String siteIds = "(";
    String seperator = ",";

    for (int i = 0; i < sites.size(); i++)
    {
        siteIds += sites.get(i).getId();
        siteIds += sites.size() >= 2 && sites.size() > (i + 1) ? seperator : "";
    }

    siteIds += ")";
    return siteIds;
}
项目:openMAXIMS    文件:TestEditImpl.java   
private String getSiteIdString(SpecimenSiteCollection sites)
{
    if (sites == null || sites.size() == 0)
        return null;

    String siteIds = "(";
    String seperator = ",";

    for (int i = 0; i < sites.size(); i++)
    {
        siteIds += sites.get(i).getId();
        siteIds += sites.size() >= 2 && sites.size() > (i + 1) ? seperator : "";
    }

    siteIds += ")";
    return siteIds;
}
项目:openMAXIMS    文件:TestEditImpl.java   
private String getSiteIdString(SpecimenSiteCollection sites)
{
    if (sites == null || sites.size() == 0)
        return null;

    String siteIds = "(";
    String seperator = ",";

    for (int i = 0; i < sites.size(); i++)
    {
        siteIds += sites.get(i).getId();
        siteIds += sites.size() >= 2 && sites.size() > (i + 1) ? seperator : "";
    }

    siteIds += ")";
    return siteIds;
}
项目:openmaxims-linux    文件:TestEditImpl.java   
private String getSiteIdString(SpecimenSiteCollection sites)
{
    if (sites == null || sites.size() == 0)
        return null;

    String siteIds = "(";
    String seperator = ",";

    for (int i = 0; i < sites.size(); i++)
    {
        siteIds += sites.get(i).getId();
        siteIds += sites.size() >= 2 && sites.size() > (i + 1) ? seperator : "";
    }

    siteIds += ")";
    return siteIds;
}
项目:AvoinApotti    文件:Logic.java   
private void loadTree(LookupInstanceCollection collSelected)
{
    ims.framework.cn.data.TreeNode[] nodes = null;
    if(form.getGlobalContext().Core.getSelectLookupType().getId() == SpecimenSite.TYPE_ID)
    {
        SpecimenSiteCollection collSites = LookupHelper.getSpecimenSite(domain.getLookupService());
        nodes = collSites.getRootNodes();
    }

    populateTree(nodes, null, collSelected);    
}
项目:AvoinApotti    文件:Logic.java   
private SpecimenSiteCollection retrieveSelection(TreeNodeCollection collection, SpecimenSiteCollection collSelected)
{           
    for(int i=0;i<collection.size();i++)
    {
        ims.framework.controls.TreeNode node = collection.get(i);
        if(node.isChecked() && (node.getNodes() == null || node.getNodes().size() == 0))
            collSelected.add((SpecimenSite) node.getValue());

        retrieveSelection(node.getNodes(), collSelected);
    }

    return collSelected;
}
项目:AvoinApotti    文件:Logic.java   
/**
 * Launch SelectLookupInstances passing already selected sites
 * 
 */
private void selectSites()
{
    form.getGlobalContext().Core.setSelectLookupType(new LookupTypeVo(SpecimenSite.TYPE_ID));
    SpecimenSiteCollection collSites = new SpecimenSiteCollection();
    for (int i = 0; i < form.lyrSelection().tabSites().grdSites().getRows().size(); i++)
    {
        grdSitesRow row = form.lyrSelection().tabSites().grdSites().getRows().get(i);
        collSites.add(row.getColSite());
    }

    form.getGlobalContext().Core.setSelectedLookupInstances(collSites);
    engine.open(form.getForms().Core.SelectLookupInstances);
}
项目:openMAXIMS    文件:Logic.java   
private void loadTree(LookupInstanceCollection collSelected)
{
    ims.framework.cn.data.TreeNode[] nodes = null;
    LookupService lookupService = domain.getLookupService();
    if(form.getGlobalContext().Core.getSelectLookupType().getId() == SpecimenSite.TYPE_ID)
    {
        SpecimenSiteCollection collSites = LookupHelper.getSpecimenSite(lookupService);
        nodes = collSites.getRootNodes();
    }
    else if (form.getGlobalContext().Core.getSelectLookupType().getId() == StructuredCodingComment.TYPE_ID)
    {
        engine.setCaption("Select Comments");
        StructuredCodingCommentCollection collComments = ims.clinical.vo.lookups.LookupHelper.getStructuredCodingComment(lookupService);
        nodes = collComments.getRootNodes();
    }
    else if (form.getGlobalContext().Core.getSelectLookupType().getId() == ReferralUrgency.TYPE_ID)
    {
        engine.setCaption("Select Referral Urgencies");
        ReferralUrgencyCollection collUrgencies = ims.RefMan.vo.lookups.LookupHelper.getReferralUrgency(lookupService);
        nodes = collUrgencies.getRootNodes();
    }
    else if (form.getGlobalContext().Core.getSelectLookupType().getId() == ProfileListType.TYPE_ID)
    {
        engine.setCaption("Select List Type(s)");
        ProfileListTypeCollection collListTypes = ims.scheduling.vo.lookups.LookupHelper.getProfileListType(lookupService);
        nodes = collListTypes.getRootNodes();
    }
    populateTree(nodes, null, collSelected);
    form.chkSelectAll().setValue(allNodesChecked());
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Launch SelectLookupInstances passing already selected sites
 * 
 */
private void selectSites()
{
    form.getGlobalContext().Core.setSelectLookupType(new LookupTypeVo(SpecimenSite.TYPE_ID));
    SpecimenSiteCollection collSites = new SpecimenSiteCollection();
    for (int i = 0; i < form.lyrSelection().tabSites().grdSites().getRows().size(); i++)
    {
        grdSitesRow row = form.lyrSelection().tabSites().grdSites().getRows().get(i);
        collSites.add(row.getColSite());
    }

    form.getGlobalContext().Core.setSelectedLookupInstances(collSites);
    engine.open(form.getForms().Core.SelectLookupInstances);
}
项目:openMAXIMS    文件:Logic.java   
private void loadTree(LookupInstanceCollection collSelected)
{
    ims.framework.cn.data.TreeNode[] nodes = null;
    if(form.getGlobalContext().Core.getSelectLookupType().getId() == SpecimenSite.TYPE_ID)
    {
        SpecimenSiteCollection collSites = LookupHelper.getSpecimenSite(domain.getLookupService());
        nodes = collSites.getRootNodes();
    }

    populateTree(nodes, null, collSelected);    
}
项目:openMAXIMS    文件:Logic.java   
private SpecimenSiteCollection retrieveSelection(TreeNodeCollection collection, SpecimenSiteCollection collSelected)
{           
    for(int i=0;i<collection.size();i++)
    {
        ims.framework.controls.TreeNode node = collection.get(i);
        if(node.isChecked() && (node.getNodes() == null || node.getNodes().size() == 0))
            collSelected.add((SpecimenSite) node.getValue());

        retrieveSelection(node.getNodes(), collSelected);
    }

    return collSelected;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Launch SelectLookupInstances passing already selected sites
 * 
 */
private void selectSites()
{
    form.getGlobalContext().Core.setSelectLookupType(new LookupTypeVo(SpecimenSite.TYPE_ID));
    SpecimenSiteCollection collSites = new SpecimenSiteCollection();
    for (int i = 0; i < form.lyrSelection().tabSites().grdSites().getRows().size(); i++)
    {
        grdSitesRow row = form.lyrSelection().tabSites().grdSites().getRows().get(i);
        collSites.add(row.getColSite());
    }

    form.getGlobalContext().Core.setSelectedLookupInstances(collSites);
    engine.open(form.getForms().Core.SelectLookupInstances);
}
项目:openmaxims-linux    文件:Logic.java   
private void loadTree(LookupInstanceCollection collSelected)
{
    ims.framework.cn.data.TreeNode[] nodes = null;
    if(form.getGlobalContext().Core.getSelectLookupType().getId() == SpecimenSite.TYPE_ID)
    {
        SpecimenSiteCollection collSites = LookupHelper.getSpecimenSite(domain.getLookupService());
        nodes = collSites.getRootNodes();
    }

    populateTree(nodes, null, collSelected);    
}
项目:openmaxims-linux    文件:Logic.java   
private SpecimenSiteCollection retrieveSelection(TreeNodeCollection collection, SpecimenSiteCollection collSelected)
{           
    for(int i=0;i<collection.size();i++)
    {
        ims.framework.controls.TreeNode node = collection.get(i);
        if(node.isChecked() && (node.getNodes() == null || node.getNodes().size() == 0))
            collSelected.add((SpecimenSite) node.getValue());

        retrieveSelection(node.getNodes(), collSelected);
    }

    return collSelected;
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * Launch SelectLookupInstances passing already selected sites
 * 
 */
private void selectSites()
{
    form.getGlobalContext().Core.setSelectLookupType(new LookupTypeVo(SpecimenSite.TYPE_ID));
    SpecimenSiteCollection collSites = new SpecimenSiteCollection();
    for (int i = 0; i < form.lyrSelection().tabSites().grdSites().getRows().size(); i++)
    {
        grdSitesRow row = form.lyrSelection().tabSites().grdSites().getRows().get(i);
        collSites.add(row.getColSite());
    }

    form.getGlobalContext().Core.setSelectedLookupInstances(collSites);
    engine.open(form.getForms().Core.SelectLookupInstances);
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnOkClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.getGlobalContext().Core.setSelectedLookupInstances(retrieveSelection(form.treInstances().getNodes(), new SpecimenSiteCollection()));
    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnOkClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.getGlobalContext().Core.setSelectedLookupInstances(retrieveSelection(form.treInstances().getNodes(), new SpecimenSiteCollection()));
    engine.close(DialogResult.OK);
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnOkClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.getGlobalContext().Core.setSelectedLookupInstances(retrieveSelection(form.treInstances().getNodes(), new SpecimenSiteCollection()));
    engine.close(DialogResult.OK);
}