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

项目:AvoinApotti    文件:Logic.java   
private boolean wasInvastigationPreselected(InvestShortVo item)
{
    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.INVESTIGATION) && form.getGlobalContext().OCRR.getPreselectedInvestigationsIsNotNull())
        {
            for(int x = 0; x < form.getGlobalContext().OCRR.getPreselectedInvestigations().size(); x++)
            {
                InvestShortVo existingItem = form.getGlobalContext().OCRR.getPreselectedInvestigations().get(x);
                if(existingItem != null && existingItem.equals(item))
                    return true;
            }
        }
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean wasProfilePreselected(InvestShortVo item)
{
    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.PROFILE) && form.getGlobalContext().OCRR.getPreselectedProfilesIsNotNull())
        {
            for(int x = 0; x < form.getGlobalContext().OCRR.getPreselectedProfiles().size(); x++)
            {
                InvestShortVo existingItem = form.getGlobalContext().OCRR.getPreselectedProfiles().get(x);
                if(existingItem != null && existingItem.equals(item))
                    return true;
            }
        }
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean wasOrderSetPreselected(OrderSetShortVo item)
{
    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.ORDERSET) && form.getGlobalContext().OCRR.getPreselectedOrderSetsIsNotNull())
        {
            for(int x = 0; x < form.getGlobalContext().OCRR.getPreselectedOrderSets().size(); x++)
            {
                OrderSetShortVo existingItem = form.getGlobalContext().OCRR.getPreselectedOrderSets().get(x);
                if(existingItem != null && existingItem.equals(item))
                    return true;
            }
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean wasInvastigationPreselected(InvestShortVo item)
{
    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.INVESTIGATION) && form.getGlobalContext().OCRR.getPreselectedInvestigationsIsNotNull())
        {
            for(int x = 0; x < form.getGlobalContext().OCRR.getPreselectedInvestigations().size(); x++)
            {
                InvestShortVo existingItem = form.getGlobalContext().OCRR.getPreselectedInvestigations().get(x);
                if(existingItem != null && existingItem.equals(item))
                    return true;
            }
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean wasProfilePreselected(InvestShortVo item)
{
    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.PROFILE) && form.getGlobalContext().OCRR.getPreselectedProfilesIsNotNull())
        {
            for(int x = 0; x < form.getGlobalContext().OCRR.getPreselectedProfiles().size(); x++)
            {
                InvestShortVo existingItem = form.getGlobalContext().OCRR.getPreselectedProfiles().get(x);
                if(existingItem != null && existingItem.equals(item))
                    return true;
            }
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean wasOrderSetPreselected(OrderSetShortVo item)
{
    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.ORDERSET) && form.getGlobalContext().OCRR.getPreselectedOrderSetsIsNotNull())
        {
            for(int x = 0; x < form.getGlobalContext().OCRR.getPreselectedOrderSets().size(); x++)
            {
                OrderSetShortVo existingItem = form.getGlobalContext().OCRR.getPreselectedOrderSets().get(x);
                if(existingItem != null && existingItem.equals(item))
                    return true;
            }
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean wasInvastigationPreselected(InvestShortVo item)
{
    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.INVESTIGATION) && form.getGlobalContext().OCRR.getPreselectedInvestigationsIsNotNull())
        {
            for(int x = 0; x < form.getGlobalContext().OCRR.getPreselectedInvestigations().size(); x++)
            {
                InvestShortVo existingItem = form.getGlobalContext().OCRR.getPreselectedInvestigations().get(x);
                if(existingItem != null && existingItem.equals(item))
                    return true;
            }
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean wasProfilePreselected(InvestShortVo item)
{
    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.PROFILE) && form.getGlobalContext().OCRR.getPreselectedProfilesIsNotNull())
        {
            for(int x = 0; x < form.getGlobalContext().OCRR.getPreselectedProfiles().size(); x++)
            {
                InvestShortVo existingItem = form.getGlobalContext().OCRR.getPreselectedProfiles().get(x);
                if(existingItem != null && existingItem.equals(item))
                    return true;
            }
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean wasOrderSetPreselected(OrderSetShortVo item)
{
    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.ORDERSET) && form.getGlobalContext().OCRR.getPreselectedOrderSetsIsNotNull())
        {
            for(int x = 0; x < form.getGlobalContext().OCRR.getPreselectedOrderSets().size(); x++)
            {
                OrderSetShortVo existingItem = form.getGlobalContext().OCRR.getPreselectedOrderSets().get(x);
                if(existingItem != null && existingItem.equals(item))
                    return true;
            }
        }
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean wasInvastigationPreselected(InvestShortVo item)
{
    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.INVESTIGATION) && form.getGlobalContext().OCRR.getPreselectedInvestigationsIsNotNull())
        {
            for(int x = 0; x < form.getGlobalContext().OCRR.getPreselectedInvestigations().size(); x++)
            {
                InvestShortVo existingItem = form.getGlobalContext().OCRR.getPreselectedInvestigations().get(x);
                if(existingItem != null && existingItem.equals(item))
                    return true;
            }
        }
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean wasProfilePreselected(InvestShortVo item)
{
    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.PROFILE) && form.getGlobalContext().OCRR.getPreselectedProfilesIsNotNull())
        {
            for(int x = 0; x < form.getGlobalContext().OCRR.getPreselectedProfiles().size(); x++)
            {
                InvestShortVo existingItem = form.getGlobalContext().OCRR.getPreselectedProfiles().get(x);
                if(existingItem != null && existingItem.equals(item))
                    return true;
            }
        }
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean wasOrderSetPreselected(OrderSetShortVo item)
{
    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.ORDERSET) && form.getGlobalContext().OCRR.getPreselectedOrderSetsIsNotNull())
        {
            for(int x = 0; x < form.getGlobalContext().OCRR.getPreselectedOrderSets().size(); x++)
            {
                OrderSetShortVo existingItem = form.getGlobalContext().OCRR.getPreselectedOrderSets().get(x);
                if(existingItem != null && existingItem.equals(item))
                    return true;
            }
        }
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void selectItems(ItemSelectionType type)
{
    form.getGlobalContext().OCRR.setSelectedInvestigations(null);
    form.getGlobalContext().OCRR.setSelectedProfiles(null);
    form.getGlobalContext().OCRR.setSelectedOrderSets(null);
    form.getGlobalContext().OCRR.setItemSelectionType(type);
    engine.open(form.getForms().OCRR.ItemSelection);
}
项目:AvoinApotti    文件:Logic.java   
private void selectItems(ItemSelectionType type)
{
    populateItemsAlreadySelected();
    form.getGlobalContext().OCRR.setSelectedInvestigations(null);
    form.getGlobalContext().OCRR.setSelectedProfiles(null);     
    form.getGlobalContext().OCRR.setItemSelectionType(type);
    engine.open(form.getForms().OCRR.ItemSelection);
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.getLocalContext().getCurrentScreenModeIsNotNull() && form.getLocalContext().getCurrentScreenMode().equals(MODE_NEW_MAIN_RECORD))
    {

        if (form.getLocalContext().getisProfile().booleanValue())
        {
            form.getGlobalContext().OCRR.setItemSelectionType(ItemSelectionType.PROFILE);
            engine.open(form.getForms().OCRR.ProfileList);
            return;
        }
        else
        {
            form.getGlobalContext().OCRR.setItemSelectionType(ItemSelectionType.INVESTIGATION);
            engine.open(form.getForms().OCRR.TestList);
            return;
        }
    }
    else
    {
        form.getLocalContext().setSelectedInvestigation(null);
        form.getGlobalContext().OCRR.setNewInvestigation(Boolean.FALSE);
        open();
    }

    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
private void linkTests()
{
    form.getGlobalContext().OCRR.setProvider(form.lyrInvestigations().tabGeneralDet().cmbProvider().getValue());

    LocSvcProviderSysVo voLocSvcProvSys = form.lyrInvestigations().tabGeneralDet().cmbProviderService().getValue();
    if (voLocSvcProvSys != null && voLocSvcProvSys.getLocationServiceIsNotNull())
        form.getGlobalContext().OCRR.setProviderService(voLocSvcProvSys.getLocationService().getService());

    form.getGlobalContext().OCRR.setCategory(form.cmbCategory().getValue());
    // investigations and profiles from this screen both search through
    // Investigations
    form.getGlobalContext().OCRR.setItemSelectionType(ItemSelectionType.INVESTIGATION);
    populateExistingLinkedTests();
    engine.open(form.getForms().OCRR.ItemSelection, "Investigations");
}
项目:AvoinApotti    文件:Logic.java   
private void initialize()
{
    clearResultData();

    form.cmbCategory().removeRow(Category.PAS);

    if(form.getGlobalContext().OCRR.getCategoryIsNotNull())
    {
        form.cmbCategory().setValue(form.getGlobalContext().OCRR.getCategory());
        form.cmbCategory().setEnabled(false);
    }

    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.INVESTIGATION))
            engine.setCaption("Investigations Selection");
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.PROFILE))
            engine.setCaption("Profiles Selection");
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.ORDERSET))
        {
            engine.setCaption("Order Sets Selection");
            form.lblCategory().setVisible(false);
            form.cmbCategory().setVisible(false);
            form.txtName().setRequired(true);//WDEV-16438
        }           
    }
}
项目:AvoinApotti    文件:Logic.java   
private void searchData()
{
    form.grdListedTests().getRows().clear();

    if(form.cmbCategory().getValue() == null && form.txtName().getValue() == null)
    {
        engine.showMessage("Please Enter Some Search Criteria");
        return;
    }

    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.INVESTIGATION) || form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.PROFILE))
        {
            InvestShortVoCollection voColl = domain.listInvestigationsOrProfiles(
                    form.cmbCategory().getValue(), 
                    form.txtName().getValue(),
                    form.getGlobalContext().OCRR.getProvider(), 
                    form.getGlobalContext().OCRR.getProviderService(), 
                    new Boolean(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.PROFILE)),Boolean.TRUE, engine.getPreviousNonDialogFormName().equals(form.getForms().OCRR.TestEdit) || engine.getPreviousNonDialogFormName().equals(form.getForms().OCRR.ProfileEdit), Boolean.TRUE, new Boolean(engine.getPreviousNonDialogFormName().equals(form.getForms().OCRR.ProfileEdit)),null,null);
            populateSearchResults(voColl);
        }
        else if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.ORDERSET))
        {
            OrderSetShortVoCollection results = domain.listOrderSets(form.txtName().getValue());
            populateSearchResults(results);
        }
    }       
}
项目:openMAXIMS    文件:Logic.java   
private void selectItems(ItemSelectionType type)
{
    form.getGlobalContext().OCRR.setSelectedInvestigations(null);
    form.getGlobalContext().OCRR.setSelectedProfiles(null);
    form.getGlobalContext().OCRR.setSelectedOrderSets(null);
    form.getGlobalContext().OCRR.setItemSelectionType(type);
    engine.open(form.getForms().OCRR.ItemSelection);
}
项目:openMAXIMS    文件:Logic.java   
private void selectItems(ItemSelectionType type)
{
    populateItemsAlreadySelected();
    form.getGlobalContext().OCRR.setSelectedInvestigations(null);
    form.getGlobalContext().OCRR.setSelectedProfiles(null);     
    form.getGlobalContext().OCRR.setItemSelectionType(type);
    engine.open(form.getForms().OCRR.ItemSelection);
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.getLocalContext().getCurrentScreenModeIsNotNull() && form.getLocalContext().getCurrentScreenMode().equals(MODE_NEW_MAIN_RECORD))
    {

        if (form.getLocalContext().getisProfile().booleanValue())
        {
            form.getGlobalContext().OCRR.setItemSelectionType(ItemSelectionType.PROFILE);
            engine.open(form.getForms().OCRR.ProfileList);
            return;
        }
        else
        {
            form.getGlobalContext().OCRR.setItemSelectionType(ItemSelectionType.INVESTIGATION);
            engine.open(form.getForms().OCRR.TestList);
            return;
        }
    }
    else
    {
        form.getLocalContext().setSelectedInvestigation(null);
        form.getGlobalContext().OCRR.setNewInvestigation(Boolean.FALSE);
        open();
    }

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void linkTests()
{
    form.getGlobalContext().OCRR.setProvider(form.lyrInvestigations().tabGeneralDet().cmbProvider().getValue());

    LocSvcProviderSysVo voLocSvcProvSys = form.lyrInvestigations().tabGeneralDet().cmbProviderService().getValue();
    if (voLocSvcProvSys != null && voLocSvcProvSys.getLocationServiceIsNotNull())
        form.getGlobalContext().OCRR.setProviderService(voLocSvcProvSys.getLocationService().getService());

    form.getGlobalContext().OCRR.setCategory(form.cmbCategory().getValue());
    // investigations and profiles from this screen both search through
    // Investigations
    form.getGlobalContext().OCRR.setItemSelectionType(ItemSelectionType.INVESTIGATION);
    populateExistingLinkedTests();
    engine.open(form.getForms().OCRR.ItemSelection, "Investigations");
}
项目:openMAXIMS    文件:Logic.java   
private void initialize()
{
    clearResultData();

    form.cmbCategory().removeRow(Category.PAS);

    if(form.getGlobalContext().OCRR.getCategoryIsNotNull())
    {
        form.cmbCategory().setValue(form.getGlobalContext().OCRR.getCategory());
        form.cmbCategory().setEnabled(false);
    }

    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.INVESTIGATION))
            engine.setCaption("Investigations Selection");
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.PROFILE))
            engine.setCaption("Profiles Selection");
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.ORDERSET))
        {
            engine.setCaption("Order Sets Selection");
            form.lblCategory().setVisible(false);
            form.cmbCategory().setVisible(false);
            form.txtName().setRequired(true);//WDEV-16438
        }           
    }
}
项目:openMAXIMS    文件:Logic.java   
private void searchData()
{
    form.grdListedTests().getRows().clear();

    if(form.cmbCategory().getValue() == null && form.txtName().getValue() == null)
    {
        engine.showMessage("Please Enter Some Search Criteria");
        return;
    }

    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.INVESTIGATION) || form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.PROFILE))
        {
            InvestShortVoCollection voColl = domain.listInvestigationsOrProfiles(
                    form.cmbCategory().getValue(), 
                    form.txtName().getValue(),
                    form.getGlobalContext().OCRR.getProvider(), 
                    form.getGlobalContext().OCRR.getProviderService(), 
                    new Boolean(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.PROFILE)),Boolean.TRUE, engine.getPreviousNonDialogFormName().equals(form.getForms().OCRR.TestEdit) || engine.getPreviousNonDialogFormName().equals(form.getForms().OCRR.ProfileEdit), Boolean.TRUE, new Boolean(engine.getPreviousNonDialogFormName().equals(form.getForms().OCRR.ProfileEdit)),null,null);
            populateSearchResults(voColl);
        }
        else if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.ORDERSET))
        {
            OrderSetShortVoCollection results = domain.listOrderSets(form.txtName().getValue());
            populateSearchResults(results);
        }
    }       
}
项目:openMAXIMS    文件:Logic.java   
private void selectItems(ItemSelectionType type)
{
    form.getGlobalContext().OCRR.setSelectedInvestigations(null);
    form.getGlobalContext().OCRR.setSelectedProfiles(null);
    form.getGlobalContext().OCRR.setSelectedOrderSets(null);
    form.getGlobalContext().OCRR.setItemSelectionType(type);
    engine.open(form.getForms().OCRR.ItemSelection);
}
项目:openMAXIMS    文件:Logic.java   
private void selectItems(ItemSelectionType type)
{
    populateItemsAlreadySelected();
    form.getGlobalContext().OCRR.setSelectedInvestigations(null);
    form.getGlobalContext().OCRR.setSelectedProfiles(null);     
    form.getGlobalContext().OCRR.setItemSelectionType(type);
    engine.open(form.getForms().OCRR.ItemSelection);
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.getLocalContext().getCurrentScreenModeIsNotNull() && form.getLocalContext().getCurrentScreenMode().equals(MODE_NEW_MAIN_RECORD))
    {

        if (form.getLocalContext().getisProfile().booleanValue())
        {
            form.getGlobalContext().OCRR.setItemSelectionType(ItemSelectionType.PROFILE);
            engine.open(form.getForms().OCRR.ProfileList);
            return;
        }
        else
        {
            form.getGlobalContext().OCRR.setItemSelectionType(ItemSelectionType.INVESTIGATION);
            engine.open(form.getForms().OCRR.TestList);
            return;
        }
    }
    else
    {
        form.getLocalContext().setSelectedInvestigation(null);
        form.getGlobalContext().OCRR.setNewInvestigation(Boolean.FALSE);
        open();
    }

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void linkTests()
{
    form.getGlobalContext().OCRR.setProvider(form.lyrInvestigations().tabGeneralDet().cmbProvider().getValue());

    LocSvcProviderSysVo voLocSvcProvSys = form.lyrInvestigations().tabGeneralDet().cmbProviderService().getValue();
    if (voLocSvcProvSys != null && voLocSvcProvSys.getLocationServiceIsNotNull())
        form.getGlobalContext().OCRR.setProviderService(voLocSvcProvSys.getLocationService().getService());

    form.getGlobalContext().OCRR.setCategory(form.cmbCategory().getValue());
    // investigations and profiles from this screen both search through
    // Investigations
    form.getGlobalContext().OCRR.setItemSelectionType(ItemSelectionType.INVESTIGATION);
    populateExistingLinkedTests();
    engine.open(form.getForms().OCRR.ItemSelection, "Investigations");
}
项目:openMAXIMS    文件:Logic.java   
private void initialize()
{
    clearResultData();

    form.cmbCategory().removeRow(Category.PAS);

    if(form.getGlobalContext().OCRR.getCategoryIsNotNull())
    {
        form.cmbCategory().setValue(form.getGlobalContext().OCRR.getCategory());
        form.cmbCategory().setEnabled(false);
    }

    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.INVESTIGATION))
            engine.setCaption("Investigations Selection");
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.PROFILE))
            engine.setCaption("Profiles Selection");
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.ORDERSET))
        {
            engine.setCaption("Order Sets Selection");
            form.lblCategory().setVisible(false);
            form.cmbCategory().setVisible(false);
            form.txtName().setRequired(true);//WDEV-16438
        }           
    }
}
项目:openMAXIMS    文件:Logic.java   
private void searchData()
{
    form.grdListedTests().getRows().clear();

    if(form.cmbCategory().getValue() == null && form.txtName().getValue() == null)
    {
        engine.showMessage("Please Enter Some Search Criteria");
        return;
    }

    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.INVESTIGATION) || form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.PROFILE))
        {
            InvestShortVoCollection voColl = domain.listInvestigationsOrProfiles(
                    form.cmbCategory().getValue(), 
                    form.txtName().getValue(),
                    form.getGlobalContext().OCRR.getProvider(), 
                    form.getGlobalContext().OCRR.getProviderService(), 
                    new Boolean(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.PROFILE)),Boolean.TRUE, engine.getPreviousNonDialogFormName().equals(form.getForms().OCRR.TestEdit) || engine.getPreviousNonDialogFormName().equals(form.getForms().OCRR.ProfileEdit), Boolean.TRUE, new Boolean(engine.getPreviousNonDialogFormName().equals(form.getForms().OCRR.ProfileEdit)),null,null);
            populateSearchResults(voColl);
        }
        else if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.ORDERSET))
        {
            OrderSetShortVoCollection results = domain.listOrderSets(form.txtName().getValue());
            populateSearchResults(results);
        }
    }       
}
项目:openmaxims-linux    文件:Logic.java   
private void selectItems(ItemSelectionType type)
{
    form.getGlobalContext().OCRR.setSelectedInvestigations(null);
    form.getGlobalContext().OCRR.setSelectedProfiles(null);
    form.getGlobalContext().OCRR.setSelectedOrderSets(null);
    form.getGlobalContext().OCRR.setItemSelectionType(type);
    engine.open(form.getForms().OCRR.ItemSelection);
}
项目:openmaxims-linux    文件:Logic.java   
private void selectItems(ItemSelectionType type)
{
    populateItemsAlreadySelected();
    form.getGlobalContext().OCRR.setSelectedInvestigations(null);
    form.getGlobalContext().OCRR.setSelectedProfiles(null);     
    form.getGlobalContext().OCRR.setItemSelectionType(type);
    engine.open(form.getForms().OCRR.ItemSelection);
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.getLocalContext().getCurrentScreenModeIsNotNull() && form.getLocalContext().getCurrentScreenMode().equals(MODE_NEW_MAIN_RECORD))
    {

        if (form.getLocalContext().getisProfile().booleanValue())
        {
            form.getGlobalContext().OCRR.setItemSelectionType(ItemSelectionType.PROFILE);
            engine.open(form.getForms().OCRR.ProfileList);
            return;
        }
        else
        {
            form.getGlobalContext().OCRR.setItemSelectionType(ItemSelectionType.INVESTIGATION);
            engine.open(form.getForms().OCRR.TestList);
            return;
        }
    }
    else
    {
        form.getLocalContext().setSelectedInvestigation(null);
        form.getGlobalContext().OCRR.setNewInvestigation(Boolean.FALSE);
        open();
    }

    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
private void linkTests()
{
    form.getGlobalContext().OCRR.setProvider(form.lyrInvestigations().tabGeneralDet().cmbProvider().getValue());

    LocSvcProviderSysVo voLocSvcProvSys = form.lyrInvestigations().tabGeneralDet().cmbProviderService().getValue();
    if (voLocSvcProvSys != null && voLocSvcProvSys.getLocationServiceIsNotNull())
        form.getGlobalContext().OCRR.setProviderService(voLocSvcProvSys.getLocationService().getService());

    form.getGlobalContext().OCRR.setCategory(form.cmbCategory().getValue());
    // investigations and profiles from this screen both search through
    // Investigations
    form.getGlobalContext().OCRR.setItemSelectionType(ItemSelectionType.INVESTIGATION);
    populateExistingLinkedTests();
    engine.open(form.getForms().OCRR.ItemSelection, "Investigations");
}
项目:openmaxims-linux    文件:Logic.java   
private void initialize()
{
    clearResultData();

    form.cmbCategory().removeRow(Category.PAS);

    if(form.getGlobalContext().OCRR.getCategoryIsNotNull())
    {
        form.cmbCategory().setValue(form.getGlobalContext().OCRR.getCategory());
        form.cmbCategory().setEnabled(false);
    }

    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.INVESTIGATION))
            engine.setCaption("Investigations Selection");
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.PROFILE))
            engine.setCaption("Profiles Selection");
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.ORDERSET))
        {
            engine.setCaption("Order Sets Selection");
            form.lblCategory().setVisible(false);
            form.cmbCategory().setVisible(false);
            form.txtName().setRequired(true);//WDEV-16438
        }           
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void searchData()
{
    form.grdListedTests().getRows().clear();

    if(form.cmbCategory().getValue() == null && form.txtName().getValue() == null)
    {
        engine.showMessage("Please Enter Some Search Criteria");
        return;
    }

    if(form.getGlobalContext().OCRR.getItemSelectionTypeIsNotNull())
    {
        if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.INVESTIGATION) || form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.PROFILE))
        {
            InvestShortVoCollection voColl = domain.listInvestigationsOrProfiles(
                    form.cmbCategory().getValue(), 
                    form.txtName().getValue(),
                    form.getGlobalContext().OCRR.getProvider(), 
                    form.getGlobalContext().OCRR.getProviderService(), 
                    new Boolean(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.PROFILE)),Boolean.TRUE, engine.getPreviousNonDialogFormName().equals(form.getForms().OCRR.TestEdit) || engine.getPreviousNonDialogFormName().equals(form.getForms().OCRR.ProfileEdit), Boolean.TRUE, new Boolean(engine.getPreviousNonDialogFormName().equals(form.getForms().OCRR.ProfileEdit)),null,null);
            populateSearchResults(voColl);
        }
        else if(form.getGlobalContext().OCRR.getItemSelectionType().equals(ItemSelectionType.ORDERSET))
        {
            OrderSetShortVoCollection results = domain.listOrderSets(form.txtName().getValue());
            populateSearchResults(results);
        }
    }       
}
项目:AvoinApotti    文件:Logic.java   
private void addInvestigations()
{       
    selectItems(ItemSelectionType.INVESTIGATION);
}
项目:AvoinApotti    文件:Logic.java   
private void addProfiles()
{
    selectItems(ItemSelectionType.PROFILE);
}
项目:AvoinApotti    文件:Logic.java   
private void addOrderSets()
{
    selectItems(ItemSelectionType.ORDERSET);
}
项目:AvoinApotti    文件:Logic.java   
private void addInvestigations()
{       
    selectItems(ItemSelectionType.INVESTIGATION);
}