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

项目: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;
}
项目: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   
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   
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   
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   
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   
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   
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 addToList(OrderSetShortVo item)
{
    GenForm.grdListedTestsRow row = form.grdListedTests().getRows().newRow();
    row.setValue(item);
    row.setcolImage(form.getImages().OCRR.OrderSet);
    row.setcolName(item.getName());     
}
项目:AvoinApotti    文件:Logic.java   
private void addToSelection(OrderSetShortVo item, boolean canBeRemoved)
{
    GenForm.grdSelectedTestsRow row = form.grdSelectedTests().getRows().newRow();
    row.setReadOnly(!canBeRemoved);
    row.setValue(item);
    row.setcolImage(form.getImages().OCRR.OrderSet);
    row.setcolName(item.getName());
}
项目: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 addToList(OrderSetShortVo item)
{
    GenForm.grdListedTestsRow row = form.grdListedTests().getRows().newRow();
    row.setValue(item);
    row.setcolImage(form.getImages().OCRR.OrderSet);
    row.setcolName(item.getName());     
}
项目:openMAXIMS    文件:Logic.java   
private void addToSelection(OrderSetShortVo item, boolean canBeRemoved)
{
    GenForm.grdSelectedTestsRow row = form.grdSelectedTests().getRows().newRow();
    row.setReadOnly(!canBeRemoved);
    row.setValue(item);
    row.setcolImage(form.getImages().OCRR.OrderSet);
    row.setcolName(item.getName());
}
项目: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 addToList(OrderSetShortVo item)
{
    GenForm.grdListedTestsRow row = form.grdListedTests().getRows().newRow();
    row.setValue(item);
    row.setcolImage(form.getImages().OCRR.OrderSet);
    row.setcolName(item.getName());     
}
项目:openMAXIMS    文件:Logic.java   
private void addToSelection(OrderSetShortVo item, boolean canBeRemoved)
{
    GenForm.grdSelectedTestsRow row = form.grdSelectedTests().getRows().newRow();
    row.setReadOnly(!canBeRemoved);
    row.setValue(item);
    row.setcolImage(form.getImages().OCRR.OrderSet);
    row.setcolName(item.getName());
}
项目: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 addToList(OrderSetShortVo item)
{
    GenForm.grdListedTestsRow row = form.grdListedTests().getRows().newRow();
    row.setValue(item);
    row.setcolImage(form.getImages().OCRR.OrderSet);
    row.setcolName(item.getName());     
}
项目:openmaxims-linux    文件:Logic.java   
private void addToSelection(OrderSetShortVo item, boolean canBeRemoved)
{
    GenForm.grdSelectedTestsRow row = form.grdSelectedTests().getRows().newRow();
    row.setReadOnly(!canBeRemoved);
    row.setValue(item);
    row.setcolImage(form.getImages().OCRR.OrderSet);
    row.setcolName(item.getName());
}
项目: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);
    }

}
项目:AvoinApotti    文件:Logic.java   
private void addToSelection(OrderSetShortVo item)
{
    addToSelection(item, true);
}
项目:openMAXIMS    文件:Logic.java   
private void addToSelection(OrderSetShortVo item)
{
    addToSelection(item, true);
}
项目:openMAXIMS    文件:Logic.java   
private void addToSelection(OrderSetShortVo item)
{
    addToSelection(item, true);
}
项目:openmaxims-linux    文件:Logic.java   
private void addToSelection(OrderSetShortVo item)
{
    addToSelection(item, true);
}