Java 类ims.admin.vo.lookups.LookupHelper 实例源码

项目:AvoinApotti    文件:Logic.java   
private void removePreActiveActiveStatus() 
{
    PreActiveActiveInactiveStatus status = form.cmbStatus().getValue();
    form.cmbStatus().clear();

    PreActiveActiveInactiveStatusCollection lookupColl = ims.core.vo.lookups.LookupHelper.getPreActiveActiveInactiveStatus(domain.getLookupService());

    for (int i = 0; lookupColl != null && i < lookupColl.size(); i++)
    {
        if (isStatusActive() && lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE))
            continue;

        if (isStatusInactive() && (lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE) || lookupColl.get(i).equals(PreActiveActiveInactiveStatus.ACTIVE)))
            continue;

        form.cmbStatus().newRow(lookupColl.get(i), lookupColl.get(i).toString(), lookupColl.get(i).getImage(), lookupColl.get(i).getColor());
    }

    form.cmbStatus().setValue(status);
}
项目:openMAXIMS    文件:Logic.java   
private void removePreActiveActiveStatus() 
{
    PreActiveActiveInactiveStatus status = form.cmbStatus().getValue();
    form.cmbStatus().clear();

    PreActiveActiveInactiveStatusCollection lookupColl = ims.core.vo.lookups.LookupHelper.getPreActiveActiveInactiveStatus(domain.getLookupService());

    for (int i = 0; lookupColl != null && i < lookupColl.size(); i++)
    {
        if (isStatusActive() && lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE))
            continue;

        if (isStatusInactive() && (lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE) || lookupColl.get(i).equals(PreActiveActiveInactiveStatus.ACTIVE)))
            continue;

        form.cmbStatus().newRow(lookupColl.get(i), lookupColl.get(i).toString(), lookupColl.get(i).getImage(), lookupColl.get(i).getColor());
    }

    form.cmbStatus().setValue(status);
}
项目:openmaxims-linux    文件:Logic.java   
private void removePreActiveActiveStatus() 
{
    PreActiveActiveInactiveStatus status = form.cmbStatus().getValue();
    form.cmbStatus().clear();

    PreActiveActiveInactiveStatusCollection lookupColl = ims.core.vo.lookups.LookupHelper.getPreActiveActiveInactiveStatus(domain.getLookupService());

    for (int i = 0; lookupColl != null && i < lookupColl.size(); i++)
    {
        if (isStatusActive() && lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE))
            continue;

        if (isStatusInactive() && (lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE) || lookupColl.get(i).equals(PreActiveActiveInactiveStatus.ACTIVE)))
            continue;

        form.cmbStatus().newRow(lookupColl.get(i), lookupColl.get(i).toString(), lookupColl.get(i).getImage(), lookupColl.get(i).getColor());
    }

    form.cmbStatus().setValue(status);
}