Java 类ims.clinical.vo.lookups.MDTArea 实例源码

项目:AvoinApotti    文件:Logic.java   
/**
 * Function used to data-bind 'MDT Area' & 'MDT List A or B' lookups to combo-boxes
 * Since these two lookups are non-system and non-system entries are relevant
 * we need to manually data-bind them
 */
private void initializeComboBoxDataBinding()
{
    // Get 'MDT Area' lookup values (non-system) and bid them to the 'Area' combobox
    LookupInstVo[] roots = LookupHelper.getMDTArea(domain.getLookupService()).getRoots();

    // Add each root entry from lookup to combo-box 
    for (int i = 0; i < roots.length; i++)
    {
        MDTArea area = (MDTArea) roots[i];
        form.ctnDetails().cmbArea().newRow(area, area.getText());
    }


    // Get 'MDTListAorB' lookup values (non-system) and bind them to the 'MDT List' combobox 
    MDTListAorBCollection values_MDT_AorB = LookupHelper.getMDTListAorB(domain.getLookupService());

    // Add each entry from lookup to combo-box
    for (int i = 0; i < values_MDT_AorB.size(); i++)
    {
        MDTListAorB instance = values_MDT_AorB.get(i);

        if (!MDTListAorB.NOTONANYLISTYET.equals(instance) && Boolean.TRUE.equals(instance.isActive()))
        {
            form.cmbListMDT().newRow(instance, instance.getText());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to data-bind 'MDT Area' & 'MDT List A or B' lookups to combo-boxes
 * Since these two lookups are non-system and non-system entries are relevant
 * we need to manually data-bind them
 */
private void initializeComboBoxDataBinding()
{
    // Get 'MDT Area' lookup values (non-system) and bid them to the 'Area' combobox
    LookupInstVo[] roots = LookupHelper.getMDTArea(domain.getLookupService()).getRoots();

    // Add each root entry from lookup to combo-box 
    for (int i = 0; i < roots.length; i++)
    {
        MDTArea area = (MDTArea) roots[i];
        form.ctnDetails().cmbArea().newRow(area, area.getText());
    }


    // Get 'MDTListAorB' lookup values (non-system) and bind them to the 'MDT List' combobox 
    MDTListAorBCollection values_MDT_AorB = LookupHelper.getMDTListAorB(domain.getLookupService());

    // Add each entry from lookup to combo-box
    for (int i = 0; i < values_MDT_AorB.size(); i++)
    {
        MDTListAorB instance = values_MDT_AorB.get(i);

        if (!MDTListAorB.NOTONANYLISTYET.equals(instance) && Boolean.TRUE.equals(instance.isActive()))
        {
            form.cmbListMDT().newRow(instance, instance.getText());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to data-bind 'MDT Area' & 'MDT List A or B' lookups to combo-boxes
 * Since these two lookups are non-system and non-system entries are relevant
 * we need to manually data-bind them
 */
private void initializeComboBoxDataBinding()
{
    // Get 'MDT Area' lookup values (non-system) and bid them to the 'Area' combobox
    LookupInstVo[] roots = LookupHelper.getMDTArea(domain.getLookupService()).getRoots();

    // Add each root entry from lookup to combo-box 
    for (int i = 0; i < roots.length; i++)
    {
        MDTArea area = (MDTArea) roots[i];
        form.ctnDetails().cmbArea().newRow(area, area.getText());
    }


    // Get 'MDTListAorB' lookup values (non-system) and bind them to the 'MDT List' combobox 
    MDTListAorBCollection values_MDT_AorB = LookupHelper.getMDTListAorB(domain.getLookupService());

    // Add each entry from lookup to combo-box
    for (int i = 0; i < values_MDT_AorB.size(); i++)
    {
        MDTListAorB instance = values_MDT_AorB.get(i);

        if (!MDTListAorB.NOTONANYLISTYET.equals(instance) && Boolean.TRUE.equals(instance.isActive()))
        {
            form.cmbListMDT().newRow(instance, instance.getText());
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * Function used to data-bind 'MDT Area' & 'MDT List A or B' lookups to combo-boxes
 * Since these two lookups are non-system and non-system entries are relevant
 * we need to manually data-bind them
 */
private void initializeComboBoxDataBinding()
{
    // Get 'MDT Area' lookup values (non-system) and bid them to the 'Area' combobox
    LookupInstVo[] roots = LookupHelper.getMDTArea(domain.getLookupService()).getRoots();

    // Add each root entry from lookup to combo-box 
    for (int i = 0; i < roots.length; i++)
    {
        MDTArea area = (MDTArea) roots[i];
        form.ctnDetails().cmbArea().newRow(area, area.getText());
    }


    // Get 'MDTListAorB' lookup values (non-system) and bind them to the 'MDT List' combobox 
    MDTListAorBCollection values_MDT_AorB = LookupHelper.getMDTListAorB(domain.getLookupService());

    // Add each entry from lookup to combo-box
    for (int i = 0; i < values_MDT_AorB.size(); i++)
    {
        MDTListAorB instance = values_MDT_AorB.get(i);

        if (!MDTListAorB.NOTONANYLISTYET.equals(instance) && Boolean.TRUE.equals(instance.isActive()))
        {
            form.cmbListMDT().newRow(instance, instance.getText());
        }
    }
}