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

项目:AvoinApotti    文件:Logic.java   
void setSeparatorControlProperties()
{
    OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();

    boolean updateable = component != null && component.getDivider() != null && component.getDivider().equals(TemplateDividerType.SEPARATOR);
    boolean editable = updateable && form.getMode() == FormMode.EDIT;

    form.lyrDetails().tabComponents().txtTextSeparator().setEnabled(editable);
    form.lyrDetails().tabComponents().cmbColorSeparator().setEnabled(editable);
    form.lyrDetails().tabComponents().chkSeparatorIsBold().setEnabled(editable);

    if(updateable)
    {
        form.lyrDetails().tabComponents().txtTextSeparator().setValue(component.getDividerText());
        form.lyrDetails().tabComponents().cmbColorSeparator().setValue(component.getDividerColour());
        form.lyrDetails().tabComponents().chkSeparatorIsBold().setValue(component.getDividerIsBold() == null ? false : component.getDividerIsBold().booleanValue());
    }       
    else
    {
        form.lyrDetails().tabComponents().txtTextSeparator().setValue(null);
        form.lyrDetails().tabComponents().cmbColorSeparator().setValue(null);
        form.lyrDetails().tabComponents().chkSeparatorIsBold().setValue(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
void setSeparatorControlProperties()
{
    OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();

    boolean updateable = component != null && component.getDivider() != null && component.getDivider().equals(TemplateDividerType.SEPARATOR);
    boolean editable = updateable && form.getMode() == FormMode.EDIT;

    form.lyrDetails().tabComponents().txtTextSeparator().setEnabled(editable);
    form.lyrDetails().tabComponents().cmbColorSeparator().setEnabled(editable);
    form.lyrDetails().tabComponents().chkSeparatorIsBold().setEnabled(editable);

    if(updateable)
    {
        form.lyrDetails().tabComponents().txtTextSeparator().setValue(component.getDividerText());
        form.lyrDetails().tabComponents().cmbColorSeparator().setValue(component.getDividerColour());
        form.lyrDetails().tabComponents().chkSeparatorIsBold().setValue(component.getDividerIsBold() == null ? false : component.getDividerIsBold().booleanValue());
    }       
    else
    {
        form.lyrDetails().tabComponents().txtTextSeparator().setValue(null);
        form.lyrDetails().tabComponents().cmbColorSeparator().setValue(null);
        form.lyrDetails().tabComponents().chkSeparatorIsBold().setValue(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
void setSeparatorControlProperties()
{
    OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();

    boolean updateable = component != null && component.getDivider() != null && component.getDivider().equals(TemplateDividerType.SEPARATOR);
    boolean editable = updateable && form.getMode() == FormMode.EDIT;

    form.lyrDetails().tabComponents().txtTextSeparator().setEnabled(editable);
    form.lyrDetails().tabComponents().cmbColorSeparator().setEnabled(editable);
    form.lyrDetails().tabComponents().chkSeparatorIsBold().setEnabled(editable);

    if(updateable)
    {
        form.lyrDetails().tabComponents().txtTextSeparator().setValue(component.getDividerText());
        form.lyrDetails().tabComponents().cmbColorSeparator().setValue(component.getDividerColour());
        form.lyrDetails().tabComponents().chkSeparatorIsBold().setValue(component.getDividerIsBold() == null ? false : component.getDividerIsBold().booleanValue());
    }       
    else
    {
        form.lyrDetails().tabComponents().txtTextSeparator().setValue(null);
        form.lyrDetails().tabComponents().cmbColorSeparator().setValue(null);
        form.lyrDetails().tabComponents().chkSeparatorIsBold().setValue(false);
    }
}
项目:openmaxims-linux    文件:Logic.java   
void setSeparatorControlProperties()
{
    OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();

    boolean updateable = component != null && component.getDivider() != null && component.getDivider().equals(TemplateDividerType.SEPARATOR);
    boolean editable = updateable && form.getMode() == FormMode.EDIT;

    form.lyrDetails().tabComponents().txtTextSeparator().setEnabled(editable);
    form.lyrDetails().tabComponents().cmbColorSeparator().setEnabled(editable);
    form.lyrDetails().tabComponents().chkSeparatorIsBold().setEnabled(editable);

    if(updateable)
    {
        form.lyrDetails().tabComponents().txtTextSeparator().setValue(component.getDividerText());
        form.lyrDetails().tabComponents().cmbColorSeparator().setValue(component.getDividerColour());
        form.lyrDetails().tabComponents().chkSeparatorIsBold().setValue(component.getDividerIsBold() == null ? false : component.getDividerIsBold().booleanValue());
    }       
    else
    {
        form.lyrDetails().tabComponents().txtTextSeparator().setValue(null);
        form.lyrDetails().tabComponents().cmbColorSeparator().setValue(null);
        form.lyrDetails().tabComponents().chkSeparatorIsBold().setValue(false);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void processComponentSelection(DynamicGridCell cell)
{
    if (cell.getType().getID() == DynamicCellType.BOOL.getID())
    {
        DynamicGrid grid = form.lyrTemplates().tabTemplate().dyngrdTemplate();
        int columnIndex = grid.getColumns().indexOf(cell.getColumn());
        DynamicGridColumn valueColumn = grid.getColumns().get(columnIndex + 2);
        Object value = cell.getRow().getCells().get(valueColumn).getIdentifier();

        if (value != null && value instanceof OrderEntryTemplateComponentShortVo)
        {
            form.getLocalContext().setSelectedCell(null);
            form.getLocalContext().setSelectedGrid(null);
            OrderEntryTemplateComponentShortVo component = (OrderEntryTemplateComponentShortVo) value;
            if (((Boolean) cell.getValue()).booleanValue())
            {
                if(validateSelectionHasLaunchedConfirmationDialog(cell, component))
                    return;
            }

            markUnmarkComponent((OrderEntryTemplateComponentShortVo) value, ((Boolean) cell.getValue()).booleanValue(), null);//WDEV-16624
        }

        populateTemplateIfSelected();
        addRemoveOrderRelatedNodes();
    }
}
项目:AvoinApotti    文件:Logic.java   
private void addColumnSeparator()
{       
    OrderEntryTemplateComponentShortVo component = new OrderEntryTemplateComponentShortVo();
    component.setDivider(TemplateDividerType.COLUMNSEPARATOR);
    addComponent(component, true);
    processComponentColumns();
}
项目:AvoinApotti    文件:Logic.java   
private void removeSelectedComponent()
{       
    if(form.lyrDetails().tabComponents().grdComponents().getValue() != null)
    {
        OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();
        if(component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
            removeCorrectColumnName();
        form.lyrDetails().tabComponents().grdComponents().removeSelectedRow();
        processComponentColumns();
    }
}
项目:AvoinApotti    文件:Logic.java   
private int countColumnSeparators()
{
    int count = 0;
    for(int x = 0; x < form.lyrDetails().tabComponents().grdComponents().getRows().size(); x++)
    {
        GenForm.lyrDetailsLayer.tabComponentsContainer.grdComponentsRow row = form.lyrDetails().tabComponents().grdComponents().getRows().get(x);
        OrderEntryTemplateComponentShortVo component = row.getValue();
        if(component != null && component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
            count++;
    }
    return count + 1;
}
项目:AvoinApotti    文件:Logic.java   
private void removeCorrectColumnName()
{
    int colNameIndex = 0;
    OrderEntryTemplateComponentShortVo component = null;
    if(form.lyrDetails().tabComponents().grdComponents().getValue() != null)
    {
        component = form.lyrDetails().tabComponents().grdComponents().getValue();           
        if(component != null && component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
        {
            for(int x = 0; x < form.lyrDetails().tabComponents().grdComponents().getRows().size(); x++)
            {
                OrderEntryTemplateComponentShortVo item = form.lyrDetails().tabComponents().grdComponents().getRows().get(x).getValue();
                if(item != null && item.getDividerIsNotNull() && item.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
                {
                    if(item.equals(component) && form.lyrDetails().tabComponents().grdColumnNames().getRows().size() - 1 >= colNameIndex + 1)
                    {
                        form.lyrDetails().tabComponents().grdColumnNames().getRows().remove(colNameIndex + 1);
                        return;
                    }
                    else
                    {
                        colNameIndex++;
                    }
                }
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
void updateSeparatorComponentData()
{
    OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();

    if(component != null && component.getDivider().equals(TemplateDividerType.SEPARATOR))
    {
        component.setDividerColour(form.lyrDetails().tabComponents().cmbColorSeparator().getValue());
        component.setDividerText(form.lyrDetails().tabComponents().txtTextSeparator().getValue());
        component.setDividerIsBold(new Boolean(form.lyrDetails().tabComponents().chkSeparatorIsBold().getValue()));
    }
}
项目:AvoinApotti    文件:SelectandOrderImpl.java   
/**
 * method will now get the template and filter any items that don't pass security checks WDEV-11071,WDEV-11109
 */
public ims.ocrr.vo.OrderEntryTemplateVo getOrderEntryTemplate(ims.ocrr.vo.OrderEntryTemplateShortVo orderEntryTemplate, RoleDisciplineSecurityLevelLiteGCVo voSecurity)
{
    OrderEntryTemplateVo voOrdTemplate = OrderEntryTemplateVoAssembler.create((OrderEntryTemplate)getDomainFactory().getDomainObject(OrderEntryTemplate.class, orderEntryTemplate.getID_OrderEntryTemplate()));

    //enforce Security here
    OrderEntryTemplateComponentShortVoCollection removableComponenets = new OrderEntryTemplateComponentShortVoCollection();
    for(OrderEntryTemplateComponentShortVo comp : voOrdTemplate.getComponents())
    {
        if(comp.getInvestigationIsNotNull())
        {
            if(voSecurity != null)
            {
                SecurityLevelAndServiceCheckVo voSecLevelAndService = getSecurityLevelAndServiceForInvestigation(comp.getInvestigation().getInvestigationIndex().getID_InvestigationIndex());
                if(voSecLevelAndService != null && voSecLevelAndService.getSecurityLevelIsNotNull() && voSecLevelAndService.getServiceIsNotNull())
                {
                    if(!voSecurity.doesInvPassSecurityCheck(voSecLevelAndService.getService(),voSecLevelAndService.getSecurityLevel(),true)) //WDEV-11622
                    {
                        removableComponenets.add(comp);
                        continue;
                    }
                }
            }
        }
    }

    if(removableComponenets.size() > 0)
    {
        for(OrderEntryTemplateComponentShortVo compToRemove : removableComponenets)
        {
            voOrdTemplate.getComponents().remove(compToRemove);
        }
    }

    return voOrdTemplate;
}
项目:openMAXIMS    文件:Logic.java   
private void processComponentSelection(DynamicGridCell cell)
{
    if (cell.getType().getID() == DynamicCellType.BOOL.getID())
    {
        DynamicGrid grid = form.lyrTemplates().tabTemplate().dyngrdTemplate();
        int columnIndex = grid.getColumns().indexOf(cell.getColumn());
        DynamicGridColumn valueColumn = grid.getColumns().get(columnIndex + 2);
        Object value = cell.getRow().getCells().get(valueColumn).getIdentifier();

        if (value != null && value instanceof OrderEntryTemplateComponentShortVo)
        {
            form.getLocalContext().setSelectedCell(null);
            form.getLocalContext().setSelectedGrid(null);
            OrderEntryTemplateComponentShortVo component = (OrderEntryTemplateComponentShortVo) value;
            if (((Boolean) cell.getValue()).booleanValue())
            {
                if(validateSelectionHasLaunchedConfirmationDialog(cell, component))
                    return;
            }

            markUnmarkComponent((OrderEntryTemplateComponentShortVo) value, ((Boolean) cell.getValue()).booleanValue(), null);//WDEV-16624
        }

        populateTemplateIfSelected();
        addRemoveOrderRelatedNodes();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addColumnSeparator()
{       
    OrderEntryTemplateComponentShortVo component = new OrderEntryTemplateComponentShortVo();
    component.setDivider(TemplateDividerType.COLUMNSEPARATOR);
    addComponent(component, true);
    processComponentColumns();
}
项目:openMAXIMS    文件:Logic.java   
private void removeSelectedComponent()
{       
    if(form.lyrDetails().tabComponents().grdComponents().getValue() != null)
    {
        OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();
        if(component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
            removeCorrectColumnName();
        form.lyrDetails().tabComponents().grdComponents().removeSelectedRow();
        processComponentColumns();
    }
}
项目:openMAXIMS    文件:Logic.java   
private int countColumnSeparators()
{
    int count = 0;
    for(int x = 0; x < form.lyrDetails().tabComponents().grdComponents().getRows().size(); x++)
    {
        GenForm.lyrDetailsLayer.tabComponentsContainer.grdComponentsRow row = form.lyrDetails().tabComponents().grdComponents().getRows().get(x);
        OrderEntryTemplateComponentShortVo component = row.getValue();
        if(component != null && component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
            count++;
    }
    return count + 1;
}
项目:openMAXIMS    文件:Logic.java   
private void removeCorrectColumnName()
{
    int colNameIndex = 0;
    OrderEntryTemplateComponentShortVo component = null;
    if(form.lyrDetails().tabComponents().grdComponents().getValue() != null)
    {
        component = form.lyrDetails().tabComponents().grdComponents().getValue();           
        if(component != null && component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
        {
            for(int x = 0; x < form.lyrDetails().tabComponents().grdComponents().getRows().size(); x++)
            {
                OrderEntryTemplateComponentShortVo item = form.lyrDetails().tabComponents().grdComponents().getRows().get(x).getValue();
                if(item != null && item.getDividerIsNotNull() && item.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
                {
                    if(item.equals(component) && form.lyrDetails().tabComponents().grdColumnNames().getRows().size() - 1 >= colNameIndex + 1)
                    {
                        form.lyrDetails().tabComponents().grdColumnNames().getRows().remove(colNameIndex + 1);
                        return;
                    }
                    else
                    {
                        colNameIndex++;
                    }
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
void updateSeparatorComponentData()
{
    OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();

    if(component != null && component.getDivider().equals(TemplateDividerType.SEPARATOR))
    {
        component.setDividerColour(form.lyrDetails().tabComponents().cmbColorSeparator().getValue());
        component.setDividerText(form.lyrDetails().tabComponents().txtTextSeparator().getValue());
        component.setDividerIsBold(new Boolean(form.lyrDetails().tabComponents().chkSeparatorIsBold().getValue()));
    }
}
项目:openMAXIMS    文件:SelectandOrderImpl.java   
/**
 * method will now get the template and filter any items that don't pass security checks WDEV-11071,WDEV-11109
 */
public ims.ocrr.vo.OrderEntryTemplateVo getOrderEntryTemplate(ims.ocrr.vo.OrderEntryTemplateShortVo orderEntryTemplate, RoleDisciplineSecurityLevelLiteGCVo voSecurity)
{
    OrderEntryTemplateVo voOrdTemplate = OrderEntryTemplateVoAssembler.create((OrderEntryTemplate)getDomainFactory().getDomainObject(OrderEntryTemplate.class, orderEntryTemplate.getID_OrderEntryTemplate()));

    //enforce Security here
    OrderEntryTemplateComponentShortVoCollection removableComponenets = new OrderEntryTemplateComponentShortVoCollection();
    for(OrderEntryTemplateComponentShortVo comp : voOrdTemplate.getComponents())
    {
        if(comp.getInvestigationIsNotNull())
        {
            if(voSecurity != null)
            {
                SecurityLevelAndServiceCheckVo voSecLevelAndService = getSecurityLevelAndServiceForInvestigation(comp.getInvestigation().getInvestigationIndex().getID_InvestigationIndex());
                if(voSecLevelAndService != null && voSecLevelAndService.getSecurityLevelIsNotNull() && voSecLevelAndService.getServiceIsNotNull())
                {
                    if(!voSecurity.doesInvPassSecurityCheck(voSecLevelAndService.getService(),voSecLevelAndService.getSecurityLevel(),true)) //WDEV-11622
                    {
                        removableComponenets.add(comp);
                        continue;
                    }
                }
            }
        }
    }

    if(removableComponenets.size() > 0)
    {
        for(OrderEntryTemplateComponentShortVo compToRemove : removableComponenets)
        {
            voOrdTemplate.getComponents().remove(compToRemove);
        }
    }

    return voOrdTemplate;
}
项目:openMAXIMS    文件:Logic.java   
private void processComponentSelection(DynamicGridCell cell)
{
    if (cell.getType().getID() == DynamicCellType.BOOL.getID())
    {
        DynamicGrid grid = form.lyrTemplates().tabTemplate().dyngrdTemplate();
        int columnIndex = grid.getColumns().indexOf(cell.getColumn());
        DynamicGridColumn valueColumn = grid.getColumns().get(columnIndex + 2);
        Object value = cell.getRow().getCells().get(valueColumn).getIdentifier();

        if (value != null && value instanceof OrderEntryTemplateComponentShortVo)
        {
            form.getLocalContext().setSelectedCell(null);
            form.getLocalContext().setSelectedGrid(null);
            OrderEntryTemplateComponentShortVo component = (OrderEntryTemplateComponentShortVo) value;
            if (((Boolean) cell.getValue()).booleanValue())
            {
                if(validateSelectionHasLaunchedConfirmationDialog(cell, component))
                    return;
            }

            markUnmarkComponent((OrderEntryTemplateComponentShortVo) value, ((Boolean) cell.getValue()).booleanValue(), null);//WDEV-16624
        }

        populateTemplateIfSelected();
        addRemoveOrderRelatedNodes();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addColumnSeparator()
{       
    OrderEntryTemplateComponentShortVo component = new OrderEntryTemplateComponentShortVo();
    component.setDivider(TemplateDividerType.COLUMNSEPARATOR);
    addComponent(component, true);
    processComponentColumns();
}
项目:openMAXIMS    文件:Logic.java   
private void removeSelectedComponent()
{       
    if(form.lyrDetails().tabComponents().grdComponents().getValue() != null)
    {
        OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();
        if(component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
            removeCorrectColumnName();
        form.lyrDetails().tabComponents().grdComponents().removeSelectedRow();
        processComponentColumns();
    }
}
项目:openMAXIMS    文件:Logic.java   
private int countColumnSeparators()
{
    int count = 0;
    for(int x = 0; x < form.lyrDetails().tabComponents().grdComponents().getRows().size(); x++)
    {
        GenForm.lyrDetailsLayer.tabComponentsContainer.grdComponentsRow row = form.lyrDetails().tabComponents().grdComponents().getRows().get(x);
        OrderEntryTemplateComponentShortVo component = row.getValue();
        if(component != null && component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
            count++;
    }
    return count + 1;
}
项目:openMAXIMS    文件:Logic.java   
private void removeCorrectColumnName()
{
    int colNameIndex = 0;
    OrderEntryTemplateComponentShortVo component = null;
    if(form.lyrDetails().tabComponents().grdComponents().getValue() != null)
    {
        component = form.lyrDetails().tabComponents().grdComponents().getValue();           
        if(component != null && component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
        {
            for(int x = 0; x < form.lyrDetails().tabComponents().grdComponents().getRows().size(); x++)
            {
                OrderEntryTemplateComponentShortVo item = form.lyrDetails().tabComponents().grdComponents().getRows().get(x).getValue();
                if(item != null && item.getDividerIsNotNull() && item.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
                {
                    if(item.equals(component) && form.lyrDetails().tabComponents().grdColumnNames().getRows().size() - 1 >= colNameIndex + 1)
                    {
                        form.lyrDetails().tabComponents().grdColumnNames().getRows().remove(colNameIndex + 1);
                        return;
                    }
                    else
                    {
                        colNameIndex++;
                    }
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
void updateSeparatorComponentData()
{
    OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();

    if(component != null && component.getDivider().equals(TemplateDividerType.SEPARATOR))
    {
        component.setDividerColour(form.lyrDetails().tabComponents().cmbColorSeparator().getValue());
        component.setDividerText(form.lyrDetails().tabComponents().txtTextSeparator().getValue());
        component.setDividerIsBold(new Boolean(form.lyrDetails().tabComponents().chkSeparatorIsBold().getValue()));
    }
}
项目:openMAXIMS    文件:SelectandOrderImpl.java   
/**
 * method will now get the template and filter any items that don't pass security checks WDEV-11071,WDEV-11109
 */
public ims.ocrr.vo.OrderEntryTemplateVo getOrderEntryTemplate(ims.ocrr.vo.OrderEntryTemplateShortVo orderEntryTemplate, RoleDisciplineSecurityLevelLiteGCVo voSecurity)
{
    OrderEntryTemplateVo voOrdTemplate = OrderEntryTemplateVoAssembler.create((OrderEntryTemplate)getDomainFactory().getDomainObject(OrderEntryTemplate.class, orderEntryTemplate.getID_OrderEntryTemplate()));

    //enforce Security here
    OrderEntryTemplateComponentShortVoCollection removableComponenets = new OrderEntryTemplateComponentShortVoCollection();
    for(OrderEntryTemplateComponentShortVo comp : voOrdTemplate.getComponents())
    {
        if(comp.getInvestigationIsNotNull())
        {
            if(voSecurity != null)
            {
                SecurityLevelAndServiceCheckVo voSecLevelAndService = getSecurityLevelAndServiceForInvestigation(comp.getInvestigation().getInvestigationIndex().getID_InvestigationIndex());
                if(voSecLevelAndService != null && voSecLevelAndService.getSecurityLevelIsNotNull() && voSecLevelAndService.getServiceIsNotNull())
                {
                    if(!voSecurity.doesInvPassSecurityCheck(voSecLevelAndService.getService(),voSecLevelAndService.getSecurityLevel(),true)) //WDEV-11622
                    {
                        removableComponenets.add(comp);
                        continue;
                    }
                }
            }
        }
    }

    if(removableComponenets.size() > 0)
    {
        for(OrderEntryTemplateComponentShortVo compToRemove : removableComponenets)
        {
            voOrdTemplate.getComponents().remove(compToRemove);
        }
    }

    return voOrdTemplate;
}
项目:openmaxims-linux    文件:Logic.java   
private void processComponentSelection(DynamicGridCell cell)
{
    if (cell.getType().getID() == DynamicCellType.BOOL.getID())
    {
        DynamicGrid grid = form.lyrTemplates().tabTemplate().dyngrdTemplate();
        int columnIndex = grid.getColumns().indexOf(cell.getColumn());
        DynamicGridColumn valueColumn = grid.getColumns().get(columnIndex + 2);
        Object value = cell.getRow().getCells().get(valueColumn).getIdentifier();

        if (value != null && value instanceof OrderEntryTemplateComponentShortVo)
        {
            form.getLocalContext().setSelectedCell(null);
            form.getLocalContext().setSelectedGrid(null);
            OrderEntryTemplateComponentShortVo component = (OrderEntryTemplateComponentShortVo) value;
            if (((Boolean) cell.getValue()).booleanValue())
            {
                if(validateSelectionHasLaunchedConfirmationDialog(cell, component))
                    return;
            }

            markUnmarkComponent((OrderEntryTemplateComponentShortVo) value, ((Boolean) cell.getValue()).booleanValue(), null);//WDEV-16624
        }

        populateTemplateIfSelected();
        addRemoveOrderRelatedNodes();
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void addColumnSeparator()
{       
    OrderEntryTemplateComponentShortVo component = new OrderEntryTemplateComponentShortVo();
    component.setDivider(TemplateDividerType.COLUMNSEPARATOR);
    addComponent(component, true);
    processComponentColumns();
}
项目:openmaxims-linux    文件:Logic.java   
private void removeSelectedComponent()
{       
    if(form.lyrDetails().tabComponents().grdComponents().getValue() != null)
    {
        OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();
        if(component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
            removeCorrectColumnName();
        form.lyrDetails().tabComponents().grdComponents().removeSelectedRow();
        processComponentColumns();
    }
}
项目:openmaxims-linux    文件:Logic.java   
private int countColumnSeparators()
{
    int count = 0;
    for(int x = 0; x < form.lyrDetails().tabComponents().grdComponents().getRows().size(); x++)
    {
        GenForm.lyrDetailsLayer.tabComponentsContainer.grdComponentsRow row = form.lyrDetails().tabComponents().grdComponents().getRows().get(x);
        OrderEntryTemplateComponentShortVo component = row.getValue();
        if(component != null && component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
            count++;
    }
    return count + 1;
}
项目:openmaxims-linux    文件:Logic.java   
private void removeCorrectColumnName()
{
    int colNameIndex = 0;
    OrderEntryTemplateComponentShortVo component = null;
    if(form.lyrDetails().tabComponents().grdComponents().getValue() != null)
    {
        component = form.lyrDetails().tabComponents().grdComponents().getValue();           
        if(component != null && component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
        {
            for(int x = 0; x < form.lyrDetails().tabComponents().grdComponents().getRows().size(); x++)
            {
                OrderEntryTemplateComponentShortVo item = form.lyrDetails().tabComponents().grdComponents().getRows().get(x).getValue();
                if(item != null && item.getDividerIsNotNull() && item.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
                {
                    if(item.equals(component) && form.lyrDetails().tabComponents().grdColumnNames().getRows().size() - 1 >= colNameIndex + 1)
                    {
                        form.lyrDetails().tabComponents().grdColumnNames().getRows().remove(colNameIndex + 1);
                        return;
                    }
                    else
                    {
                        colNameIndex++;
                    }
                }
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
void updateSeparatorComponentData()
{
    OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();

    if(component != null && component.getDivider().equals(TemplateDividerType.SEPARATOR))
    {
        component.setDividerColour(form.lyrDetails().tabComponents().cmbColorSeparator().getValue());
        component.setDividerText(form.lyrDetails().tabComponents().txtTextSeparator().getValue());
        component.setDividerIsBold(new Boolean(form.lyrDetails().tabComponents().chkSeparatorIsBold().getValue()));
    }
}
项目:openmaxims-linux    文件:SelectandOrderImpl.java   
/**
 * method will now get the template and filter any items that don't pass security checks WDEV-11071,WDEV-11109
 */
public ims.ocrr.vo.OrderEntryTemplateVo getOrderEntryTemplate(ims.ocrr.vo.OrderEntryTemplateShortVo orderEntryTemplate, RoleDisciplineSecurityLevelLiteGCVo voSecurity)
{
    OrderEntryTemplateVo voOrdTemplate = OrderEntryTemplateVoAssembler.create((OrderEntryTemplate)getDomainFactory().getDomainObject(OrderEntryTemplate.class, orderEntryTemplate.getID_OrderEntryTemplate()));

    //enforce Security here
    OrderEntryTemplateComponentShortVoCollection removableComponenets = new OrderEntryTemplateComponentShortVoCollection();
    for(OrderEntryTemplateComponentShortVo comp : voOrdTemplate.getComponents())
    {
        if(comp.getInvestigationIsNotNull())
        {
            if(voSecurity != null)
            {
                SecurityLevelAndServiceCheckVo voSecLevelAndService = getSecurityLevelAndServiceForInvestigation(comp.getInvestigation().getInvestigationIndex().getID_InvestigationIndex());
                if(voSecLevelAndService != null && voSecLevelAndService.getSecurityLevelIsNotNull() && voSecLevelAndService.getServiceIsNotNull())
                {
                    if(!voSecurity.doesInvPassSecurityCheck(voSecLevelAndService.getService(),voSecLevelAndService.getSecurityLevel(),true)) //WDEV-11622
                    {
                        removableComponenets.add(comp);
                        continue;
                    }
                }
            }
        }
    }

    if(removableComponenets.size() > 0)
    {
        for(OrderEntryTemplateComponentShortVo compToRemove : removableComponenets)
        {
            voOrdTemplate.getComponents().remove(compToRemove);
        }
    }

    return voOrdTemplate;
}
项目:AvoinApotti    文件:Logic.java   
private void markUnmarkComponent(OrderEntryTemplateComponentShortVo component, boolean mark, String reorderReason)//WDEV-16624
{
    if (component.getInvestigationIsNotNull())
    {
        // Investigation or profile selected, will check the type now
        boolean isProfile = false;
        if (component.getInvestigation().getInvestigationIndexIsNotNull())
        {
            if (component.getInvestigation().getInvestigationIndex().getIsProfileIsNotNull())
                isProfile = component.getInvestigation().getInvestigationIndex().getIsProfile().booleanValue();
        }

        markUnmarkComponent(component.getInvestigation(), isProfile, mark, false, reorderReason);//WDEV-16624

        // mark/unmark all child components
        //if (mark)
        {
            InvestigationSelectOrderVo investigation = domain.getChildComponentsForInvestigationOrProfile(component.getInvestigation().getID_Investigation(),form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels());

            clearAnalyzedChildComponents();
            markUnmarkChildComponentsRecursive(investigation, false, null, null, 0, mark, reorderReason);//WDEV-16624
            clearAnalyzedChildComponents();
        }
    }
    else if (component.getOrderSetIsNotNull())
    {
        // Order set selected
        markUnmarkComponent(component.getOrderSet(), mark, false);

        // mark/unmark all child components
        //if (mark)
        {
            ComponentSelectOrderVoCollection childComponents = domain.getChildComponentsForOrderSet(component.getOrderSet().getID_OrderSet(),form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels());
            if (childComponents != null)
            {
                for (int x = 0; x < childComponents.size(); x++)
                {
                    if (childComponents.get(x) != null)
                    {
                        clearAnalyzedChildComponents();
                        markUnmarkChildComponentsRecursive(childComponents.get(x).getInvestigation(), null, new Integer(0), 0, component.getOrderSetIsNotNull(), mark, reorderReason);//WDEV-16624
                        clearAnalyzedChildComponents();
                    }
                }
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void addSeparator()
{       
    OrderEntryTemplateComponentShortVo component = new OrderEntryTemplateComponentShortVo();
    component.setDivider(TemplateDividerType.SEPARATOR);
    addComponent(component, true);
}
项目:openMAXIMS    文件:Logic.java   
private void markUnmarkComponent(OrderEntryTemplateComponentShortVo component, boolean mark, String reorderReason)//WDEV-16624
{
    if (component.getInvestigationIsNotNull())
    {
        // Investigation or profile selected, will check the type now
        boolean isProfile = false;
        if (component.getInvestigation().getInvestigationIndexIsNotNull())
        {
            if (component.getInvestigation().getInvestigationIndex().getIsProfileIsNotNull())
                isProfile = component.getInvestigation().getInvestigationIndex().getIsProfile().booleanValue();
        }

        markUnmarkComponent(component.getInvestigation(), isProfile, mark, false, reorderReason);//WDEV-16624

        // mark/unmark all child components
        //if (mark)
        {
            InvestigationSelectOrderVo investigation = domain.getChildComponentsForInvestigationOrProfile(component.getInvestigation().getID_Investigation(),form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels());

            clearAnalyzedChildComponents();
            markUnmarkChildComponentsRecursive(investigation, false, null, null, 0, mark, reorderReason);//WDEV-16624
            clearAnalyzedChildComponents();
        }
    }
    else if (component.getOrderSetIsNotNull())
    {
        // Order set selected
        markUnmarkComponent(component.getOrderSet(), mark, false);

        // mark/unmark all child components
        //if (mark)
        {
            ComponentSelectOrderVoCollection childComponents = domain.getChildComponentsForOrderSet(component.getOrderSet().getID_OrderSet(),form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels());
            if (childComponents != null)
            {
                for (int x = 0; x < childComponents.size(); x++)
                {
                    if (childComponents.get(x) != null)
                    {
                        clearAnalyzedChildComponents();
                        markUnmarkChildComponentsRecursive(childComponents.get(x).getInvestigation(), null, new Integer(0), 0, component.getOrderSetIsNotNull(), mark, reorderReason);//WDEV-16624
                        clearAnalyzedChildComponents();
                    }
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addSeparator()
{       
    OrderEntryTemplateComponentShortVo component = new OrderEntryTemplateComponentShortVo();
    component.setDivider(TemplateDividerType.SEPARATOR);
    addComponent(component, true);
}
项目:openMAXIMS    文件:Logic.java   
private void markUnmarkComponent(OrderEntryTemplateComponentShortVo component, boolean mark, String reorderReason)//WDEV-16624
{
    if (component.getInvestigationIsNotNull())
    {
        // Investigation or profile selected, will check the type now
        boolean isProfile = false;
        if (component.getInvestigation().getInvestigationIndexIsNotNull())
        {
            if (component.getInvestigation().getInvestigationIndex().getIsProfileIsNotNull())
                isProfile = component.getInvestigation().getInvestigationIndex().getIsProfile().booleanValue();
        }

        markUnmarkComponent(component.getInvestigation(), isProfile, mark, false, reorderReason);//WDEV-16624

        // mark/unmark all child components
        //if (mark)
        {
            InvestigationSelectOrderVo investigation = domain.getChildComponentsForInvestigationOrProfile(component.getInvestigation().getID_Investigation(),form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels());

            clearAnalyzedChildComponents();
            markUnmarkChildComponentsRecursive(investigation, false, null, null, 0, mark, reorderReason);//WDEV-16624
            clearAnalyzedChildComponents();
        }
    }
    else if (component.getOrderSetIsNotNull())
    {
        // Order set selected
        markUnmarkComponent(component.getOrderSet(), mark, false);

        // mark/unmark all child components
        //if (mark)
        {
            ComponentSelectOrderVoCollection childComponents = domain.getChildComponentsForOrderSet(component.getOrderSet().getID_OrderSet(),form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels());
            if (childComponents != null)
            {
                for (int x = 0; x < childComponents.size(); x++)
                {
                    if (childComponents.get(x) != null)
                    {
                        clearAnalyzedChildComponents();
                        markUnmarkChildComponentsRecursive(childComponents.get(x).getInvestigation(), null, new Integer(0), 0, component.getOrderSetIsNotNull(), mark, reorderReason);//WDEV-16624
                        clearAnalyzedChildComponents();
                    }
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addSeparator()
{       
    OrderEntryTemplateComponentShortVo component = new OrderEntryTemplateComponentShortVo();
    component.setDivider(TemplateDividerType.SEPARATOR);
    addComponent(component, true);
}
项目:openmaxims-linux    文件:Logic.java   
private void markUnmarkComponent(OrderEntryTemplateComponentShortVo component, boolean mark, String reorderReason)//WDEV-16624
{
    if (component.getInvestigationIsNotNull())
    {
        // Investigation or profile selected, will check the type now
        boolean isProfile = false;
        if (component.getInvestigation().getInvestigationIndexIsNotNull())
        {
            if (component.getInvestigation().getInvestigationIndex().getIsProfileIsNotNull())
                isProfile = component.getInvestigation().getInvestigationIndex().getIsProfile().booleanValue();
        }

        markUnmarkComponent(component.getInvestigation(), isProfile, mark, false, reorderReason);//WDEV-16624

        // mark/unmark all child components
        //if (mark)
        {
            InvestigationSelectOrderVo investigation = domain.getChildComponentsForInvestigationOrProfile(component.getInvestigation().getID_Investigation(),form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels());

            clearAnalyzedChildComponents();
            markUnmarkChildComponentsRecursive(investigation, false, null, null, 0, mark, reorderReason);//WDEV-16624
            clearAnalyzedChildComponents();
        }
    }
    else if (component.getOrderSetIsNotNull())
    {
        // Order set selected
        markUnmarkComponent(component.getOrderSet(), mark, false);

        // mark/unmark all child components
        //if (mark)
        {
            ComponentSelectOrderVoCollection childComponents = domain.getChildComponentsForOrderSet(component.getOrderSet().getID_OrderSet(),form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels());
            if (childComponents != null)
            {
                for (int x = 0; x < childComponents.size(); x++)
                {
                    if (childComponents.get(x) != null)
                    {
                        clearAnalyzedChildComponents();
                        markUnmarkChildComponentsRecursive(childComponents.get(x).getInvestigation(), null, new Integer(0), 0, component.getOrderSetIsNotNull(), mark, reorderReason);//WDEV-16624
                        clearAnalyzedChildComponents();
                    }
                }
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void addSeparator()
{       
    OrderEntryTemplateComponentShortVo component = new OrderEntryTemplateComponentShortVo();
    component.setDivider(TemplateDividerType.SEPARATOR);
    addComponent(component, true);
}