Java 类ims.ocrr.vo.OrderSetShortVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
protected void onGrdOrderSetGridHeaderClicked(int column) throws PresentationLogicException 
{
    if(column == 2)
    {
        if(form.getLocalContext().getSortOrder() == null)
        {
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);
        }

        OrderSetShortVoCollection voCollOrderSetShort = form.grdOrderSet().getValues(); 
        voCollOrderSetShort.sort(OrderSetShortVo.getColourComparator(form.getLocalContext().getSortOrder()));

        if(form.getLocalContext().getSortOrder().equals(SortOrder.ASCENDING))
            form.getLocalContext().setSortOrder(SortOrder.DESCENDING);
        else if(form.getLocalContext().getSortOrder().equals(SortOrder.DESCENDING))
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);

        form.grdOrderSet().getRows().clear();
        populateScreenFromData(voCollOrderSetShort);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdOrderSetGridHeaderClicked(int column) throws PresentationLogicException 
{
    if(column == 2)
    {
        if(form.getLocalContext().getSortOrder() == null)
        {
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);
        }

        OrderSetShortVoCollection voCollOrderSetShort = form.grdOrderSet().getValues(); 
        voCollOrderSetShort.sort(OrderSetShortVo.getColourComparator(form.getLocalContext().getSortOrder()));

        if(form.getLocalContext().getSortOrder().equals(SortOrder.ASCENDING))
            form.getLocalContext().setSortOrder(SortOrder.DESCENDING);
        else if(form.getLocalContext().getSortOrder().equals(SortOrder.DESCENDING))
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);

        form.grdOrderSet().getRows().clear();
        populateScreenFromData(voCollOrderSetShort);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdOrderSetGridHeaderClicked(int column) throws PresentationLogicException 
{
    if(column == 2)
    {
        if(form.getLocalContext().getSortOrder() == null)
        {
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);
        }

        OrderSetShortVoCollection voCollOrderSetShort = form.grdOrderSet().getValues(); 
        voCollOrderSetShort.sort(OrderSetShortVo.getColourComparator(form.getLocalContext().getSortOrder()));

        if(form.getLocalContext().getSortOrder().equals(SortOrder.ASCENDING))
            form.getLocalContext().setSortOrder(SortOrder.DESCENDING);
        else if(form.getLocalContext().getSortOrder().equals(SortOrder.DESCENDING))
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);

        form.grdOrderSet().getRows().clear();
        populateScreenFromData(voCollOrderSetShort);
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onGrdOrderSetGridHeaderClicked(int column) throws PresentationLogicException 
{
    if(column == 2)
    {
        if(form.getLocalContext().getSortOrder() == null)
        {
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);
        }

        OrderSetShortVoCollection voCollOrderSetShort = form.grdOrderSet().getValues(); 
        voCollOrderSetShort.sort(OrderSetShortVo.getColourComparator(form.getLocalContext().getSortOrder()));

        if(form.getLocalContext().getSortOrder().equals(SortOrder.ASCENDING))
            form.getLocalContext().setSortOrder(SortOrder.DESCENDING);
        else if(form.getLocalContext().getSortOrder().equals(SortOrder.DESCENDING))
            form.getLocalContext().setSortOrder(SortOrder.ASCENDING);

        form.grdOrderSet().getRows().clear();
        populateScreenFromData(voCollOrderSetShort);
    }
}
项目: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);
        }
    }       
}
项目:AvoinApotti    文件:Logic.java   
private void populateSearchResults(OrderSetShortVoCollection searchResults)
{
    if(searchResults == null || searchResults.size() == 0)  //WDEV-10275
    {
        engine.showMessage("There are no Records for the Search Criteria Provided");
        return;
    }

    for(int x = 0; x < searchResults.size(); x++)
    {
        addToList(searchResults.get(x));            
    }
}
项目:AvoinApotti    文件:Logic.java   
private void search()
{   
    form.grdOrderSet().getRows().clear();   

    OrderSetListSearchCriteriaVo searchCriteria = form.getGlobalContext().OCRR.getOrderSetListSearchCriteria();
    if(searchCriteria == null)
        return;

    if(!isValidSearchCriteria())
    {
        form.getGlobalContext().OCRR.setOrderSetListSearchCriteria(null);
        engine.showMessage("Please Enter Some Search Criteria");        
        return;
    }

    OrderSetShortVoCollection records = domain.listOrderSets(searchCriteria);

    form.grdOrderSet().getRows().clear();

    if(records == null || records.size() == 0)
    {
        engine.showMessage("There are no Records for the Search Criteria Provided");
        setContextMenu(); //WDEV-16434
        return;
    }

    populateScreenFromData(records);
    setContextMenu();
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(OrderSetShortVoCollection records) 
{
    if(records != null)
    {
        for(int x = 0; x < records.size(); x++)
        {
            OrderSetShortVo item = records.get(x);
            GenForm.grdOrderSetRow row = form.grdOrderSet().getRows().newRow(form.getGlobalContext().OCRR.getSelectedOrderSetIDIsNotNull() && form.getGlobalContext().OCRR.getSelectedOrderSetID().equals(item.getID_OrderSet()));
            row.setValue(item);
            row.setcolImage(form.getImages().OCRR.OrderSet);
            row.setcolName(item.getName());

            if(item.getColorIsNotNull())
            {
                Color color = Color.getColor(item.getColor().getName());
                if(color != null)
                    row.setcolColour(color.getImage());
            }
            if(item.getActiveStatusIsNotNull())
                row.setcolStatus(item.getActiveStatus().getText());

            row.setcolDescription(item.getDescription());                           
        }

        if(form.grdOrderSet().getSelectedRowIndex() < 0)
            form.getGlobalContext().OCRR.setSelectedOrderSetID(null);
    }

}
项目: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 populateSearchResults(OrderSetShortVoCollection searchResults)
{
    if(searchResults == null || searchResults.size() == 0)  //WDEV-10275
    {
        engine.showMessage("There are no Records for the Search Criteria Provided");
        return;
    }

    for(int x = 0; x < searchResults.size(); x++)
    {
        addToList(searchResults.get(x));            
    }
}
项目:openMAXIMS    文件:Logic.java   
private void search()
{   
    form.grdOrderSet().getRows().clear();   

    OrderSetListSearchCriteriaVo searchCriteria = form.getGlobalContext().OCRR.getOrderSetListSearchCriteria();
    if(searchCriteria == null)
        return;

    if(!isValidSearchCriteria())
    {
        form.getGlobalContext().OCRR.setOrderSetListSearchCriteria(null);
        engine.showMessage("Please Enter Some Search Criteria");        
        return;
    }

    OrderSetShortVoCollection records = domain.listOrderSets(searchCriteria);

    form.grdOrderSet().getRows().clear();

    if(records == null || records.size() == 0)
    {
        engine.showMessage("There are no Records for the Search Criteria Provided");
        setContextMenu(); //WDEV-16434
        return;
    }

    populateScreenFromData(records);
    setContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(OrderSetShortVoCollection records) 
{
    if(records != null)
    {
        for(int x = 0; x < records.size(); x++)
        {
            OrderSetShortVo item = records.get(x);
            GenForm.grdOrderSetRow row = form.grdOrderSet().getRows().newRow(form.getGlobalContext().OCRR.getSelectedOrderSetIDIsNotNull() && form.getGlobalContext().OCRR.getSelectedOrderSetID().equals(item.getID_OrderSet()));
            row.setValue(item);
            row.setcolImage(form.getImages().OCRR.OrderSet);
            row.setcolName(item.getName());

            if(item.getColorIsNotNull())
            {
                Color color = Color.getColor(item.getColor().getName());
                if(color != null)
                    row.setcolColour(color.getImage());
            }
            if(item.getActiveStatusIsNotNull())
                row.setcolStatus(item.getActiveStatus().getText());

            row.setcolDescription(item.getDescription());                           
        }

        if(form.grdOrderSet().getSelectedRowIndex() < 0)
            form.getGlobalContext().OCRR.setSelectedOrderSetID(null);
    }

}
项目: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 populateSearchResults(OrderSetShortVoCollection searchResults)
{
    if(searchResults == null || searchResults.size() == 0)  //WDEV-10275
    {
        engine.showMessage("There are no Records for the Search Criteria Provided");
        return;
    }

    for(int x = 0; x < searchResults.size(); x++)
    {
        addToList(searchResults.get(x));            
    }
}
项目:openMAXIMS    文件:Logic.java   
private void search()
{   
    form.grdOrderSet().getRows().clear();   

    OrderSetListSearchCriteriaVo searchCriteria = form.getGlobalContext().OCRR.getOrderSetListSearchCriteria();
    if(searchCriteria == null)
        return;

    if(!isValidSearchCriteria())
    {
        form.getGlobalContext().OCRR.setOrderSetListSearchCriteria(null);
        engine.showMessage("Please Enter Some Search Criteria");        
        return;
    }

    OrderSetShortVoCollection records = domain.listOrderSets(searchCriteria);

    form.grdOrderSet().getRows().clear();

    if(records == null || records.size() == 0)
    {
        engine.showMessage("There are no Records for the Search Criteria Provided");
        setContextMenu(); //WDEV-16434
        return;
    }

    populateScreenFromData(records);
    setContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(OrderSetShortVoCollection records) 
{
    if(records != null)
    {
        for(int x = 0; x < records.size(); x++)
        {
            OrderSetShortVo item = records.get(x);
            GenForm.grdOrderSetRow row = form.grdOrderSet().getRows().newRow(form.getGlobalContext().OCRR.getSelectedOrderSetIDIsNotNull() && form.getGlobalContext().OCRR.getSelectedOrderSetID().equals(item.getID_OrderSet()));
            row.setValue(item);
            row.setcolImage(form.getImages().OCRR.OrderSet);
            row.setcolName(item.getName());

            if(item.getColorIsNotNull())
            {
                Color color = Color.getColor(item.getColor().getName());
                if(color != null)
                    row.setcolColour(color.getImage());
            }
            if(item.getActiveStatusIsNotNull())
                row.setcolStatus(item.getActiveStatus().getText());

            row.setcolDescription(item.getDescription());                           
        }

        if(form.grdOrderSet().getSelectedRowIndex() < 0)
            form.getGlobalContext().OCRR.setSelectedOrderSetID(null);
    }

}
项目: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);
        }
    }       
}
项目:openmaxims-linux    文件:Logic.java   
private void populateSearchResults(OrderSetShortVoCollection searchResults)
{
    if(searchResults == null || searchResults.size() == 0)  //WDEV-10275
    {
        engine.showMessage("There are no Records for the Search Criteria Provided");
        return;
    }

    for(int x = 0; x < searchResults.size(); x++)
    {
        addToList(searchResults.get(x));            
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void search()
{   
    form.grdOrderSet().getRows().clear();   

    OrderSetListSearchCriteriaVo searchCriteria = form.getGlobalContext().OCRR.getOrderSetListSearchCriteria();
    if(searchCriteria == null)
        return;

    if(!isValidSearchCriteria())
    {
        form.getGlobalContext().OCRR.setOrderSetListSearchCriteria(null);
        engine.showMessage("Please Enter Some Search Criteria");        
        return;
    }

    OrderSetShortVoCollection records = domain.listOrderSets(searchCriteria);

    form.grdOrderSet().getRows().clear();

    if(records == null || records.size() == 0)
    {
        engine.showMessage("There are no Records for the Search Criteria Provided");
        setContextMenu(); //WDEV-16434
        return;
    }

    populateScreenFromData(records);
    setContextMenu();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(OrderSetShortVoCollection records) 
{
    if(records != null)
    {
        for(int x = 0; x < records.size(); x++)
        {
            OrderSetShortVo item = records.get(x);
            GenForm.grdOrderSetRow row = form.grdOrderSet().getRows().newRow(form.getGlobalContext().OCRR.getSelectedOrderSetIDIsNotNull() && form.getGlobalContext().OCRR.getSelectedOrderSetID().equals(item.getID_OrderSet()));
            row.setValue(item);
            row.setcolImage(form.getImages().OCRR.OrderSet);
            row.setcolName(item.getName());

            if(item.getColorIsNotNull())
            {
                Color color = Color.getColor(item.getColor().getName());
                if(color != null)
                    row.setcolColour(color.getImage());
            }
            if(item.getActiveStatusIsNotNull())
                row.setcolStatus(item.getActiveStatus().getText());

            row.setcolDescription(item.getDescription());                           
        }

        if(form.grdOrderSet().getSelectedRowIndex() < 0)
            form.getGlobalContext().OCRR.setSelectedOrderSetID(null);
    }

}