Java 类ims.core.vo.DrawingGraphicFindingVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void search()
{
    clearDynamicGrid();

    String findingName = form.lyrFindings().tabSearch().txtSearch().getValue();
    findingName = findingName != null ? findingName.trim() : null;

    if (findingName != null)
    {
        GroupCriteriaEnumeration criteria = form.lyrFindings().tabSearch().GroupCriteria().getValue();
        if (criteria.equals(GroupCriteriaEnumeration.rdoBeginsWith))
            findingName += '%';

        if (criteria.equals(GroupCriteriaEnumeration.rdoContains))
            findingName = '%' + findingName + '%';
    }

    DrawingGraphicFindingVoCollection voColl = domain.listFindings(findingName, isDialog() ? PreActiveActiveInactiveStatus.ACTIVE : null);

    if (voColl == null || voColl.size() == 0)
    {
        engine.showMessage("No findings found for the Search Criteria Provided");
    }

    displayListedFindings(voColl);
}
项目:AvoinApotti    文件:Logic.java   
private void setFinding()
{
    if (isNewRecordAdded())
    {
        //Add New Record in the grid
        DrawingGraphicFindingVo voDrawingGraphicFinding = form.getLocalContext().getVoDrawingGraphicFinding();
        if (voDrawingGraphicFinding != null && voDrawingGraphicFinding.getID_DrawingGraphicFindingIsNotNull())
        {
            DrawingGraphicFindingVoCollection voColl = new DrawingGraphicFindingVoCollection();
            voColl.add(voDrawingGraphicFinding);

            displayListedFindings(voColl);
            form.lyrFindings().tabSearch().lyrFindingSearch().tabPageSelect().dyngrdSelect().setValue(voDrawingGraphicFinding);
            enableContextMenu();
        }
    }
    else
    {
        search();
    }

}
项目:openMAXIMS    文件:Logic.java   
private void search()
{
    clearDynamicGrid();

    String findingName = form.lyrFindings().tabSearch().txtSearch().getValue();
    findingName = findingName != null ? findingName.trim() : null;

    if (findingName != null)
    {
        GroupCriteriaEnumeration criteria = form.lyrFindings().tabSearch().GroupCriteria().getValue();
        if (criteria.equals(GroupCriteriaEnumeration.rdoBeginsWith))
            findingName += '%';

        if (criteria.equals(GroupCriteriaEnumeration.rdoContains))
            findingName = '%' + findingName + '%';
    }

    DrawingGraphicFindingVoCollection voColl = domain.listFindings(findingName, isDialog() ? PreActiveActiveInactiveStatus.ACTIVE : null);

    if (voColl == null || voColl.size() == 0)
    {
        engine.showMessage("No findings found for the Search Criteria Provided");
    }

    displayListedFindings(voColl);
}
项目:openMAXIMS    文件:Logic.java   
private void setFinding()
{
    if (isNewRecordAdded())
    {
        //Add New Record in the grid
        DrawingGraphicFindingVo voDrawingGraphicFinding = form.getLocalContext().getVoDrawingGraphicFinding();
        if (voDrawingGraphicFinding != null && voDrawingGraphicFinding.getID_DrawingGraphicFindingIsNotNull())
        {
            DrawingGraphicFindingVoCollection voColl = new DrawingGraphicFindingVoCollection();
            voColl.add(voDrawingGraphicFinding);

            displayListedFindings(voColl);
            form.lyrFindings().tabSearch().lyrFindingSearch().tabPageSelect().dyngrdSelect().setValue(voDrawingGraphicFinding);
            enableContextMenu();
        }
    }
    else
    {
        search();
    }

}
项目:openMAXIMS    文件:Logic.java   
private void search()
{
    clearDynamicGrid();

    String findingName = form.lyrFindings().tabSearch().txtSearch().getValue();
    findingName = findingName != null ? findingName.trim() : null;

    if (findingName != null)
    {
        GroupCriteriaEnumeration criteria = form.lyrFindings().tabSearch().GroupCriteria().getValue();
        if (criteria.equals(GroupCriteriaEnumeration.rdoBeginsWith))
            findingName += '%';

        if (criteria.equals(GroupCriteriaEnumeration.rdoContains))
            findingName = '%' + findingName + '%';
    }

    DrawingGraphicFindingVoCollection voColl = domain.listFindings(findingName, isDialog() ? PreActiveActiveInactiveStatus.ACTIVE : null);

    if (voColl == null || voColl.size() == 0)
    {
        engine.showMessage("No findings found for the Search Criteria Provided");
    }

    displayListedFindings(voColl);
}
项目:openMAXIMS    文件:Logic.java   
private void setFinding()
{
    if (isNewRecordAdded())
    {
        //Add New Record in the grid
        DrawingGraphicFindingVo voDrawingGraphicFinding = form.getLocalContext().getVoDrawingGraphicFinding();
        if (voDrawingGraphicFinding != null && voDrawingGraphicFinding.getID_DrawingGraphicFindingIsNotNull())
        {
            DrawingGraphicFindingVoCollection voColl = new DrawingGraphicFindingVoCollection();
            voColl.add(voDrawingGraphicFinding);

            displayListedFindings(voColl);
            form.lyrFindings().tabSearch().lyrFindingSearch().tabPageSelect().dyngrdSelect().setValue(voDrawingGraphicFinding);
            enableContextMenu();
        }
    }
    else
    {
        search();
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void search()
{
    clearDynamicGrid();

    String findingName = form.lyrFindings().tabSearch().txtSearch().getValue();
    findingName = findingName != null ? findingName.trim() : null;

    if (findingName != null)
    {
        GroupCriteriaEnumeration criteria = form.lyrFindings().tabSearch().GroupCriteria().getValue();
        if (criteria.equals(GroupCriteriaEnumeration.rdoBeginsWith))
            findingName += '%';

        if (criteria.equals(GroupCriteriaEnumeration.rdoContains))
            findingName = '%' + findingName + '%';
    }

    DrawingGraphicFindingVoCollection voColl = domain.listFindings(findingName, isDialog() ? PreActiveActiveInactiveStatus.ACTIVE : null);

    if (voColl == null || voColl.size() == 0)
    {
        engine.showMessage("No findings found for the Search Criteria Provided");
    }

    displayListedFindings(voColl);
}
项目:openmaxims-linux    文件:Logic.java   
private void setFinding()
{
    if (isNewRecordAdded())
    {
        //Add New Record in the grid
        DrawingGraphicFindingVo voDrawingGraphicFinding = form.getLocalContext().getVoDrawingGraphicFinding();
        if (voDrawingGraphicFinding != null && voDrawingGraphicFinding.getID_DrawingGraphicFindingIsNotNull())
        {
            DrawingGraphicFindingVoCollection voColl = new DrawingGraphicFindingVoCollection();
            voColl.add(voDrawingGraphicFinding);

            displayListedFindings(voColl);
            form.lyrFindings().tabSearch().lyrFindingSearch().tabPageSelect().dyngrdSelect().setValue(voDrawingGraphicFinding);
            enableContextMenu();
        }
    }
    else
    {
        search();
    }

}
项目:AvoinApotti    文件:Logic.java   
private void displayListedFindings(DrawingGraphicFindingVoCollection voColl)
{
    if(voColl == null)
        return;

    DynamicGridColumn colFinding = getDynamicColumn(COLFINDING);
    DynamicGridColumn colImageColour = getDynamicColumn(COLIMAGECOLOUR);
    DynamicGridColumn colStatus = getDynamicColumn(COLSTATUS);
    DynamicGridColumn colSelect = getDynamicColumn(COLSELECT);

    for (int i = 0; i < voColl.size(); i++)
    {
        DrawingGraphicFindingVo voDrawingGraphicFinding = voColl.get(i);
        String rowTooltip = getRowTooltip(voDrawingGraphicFinding);
        if (voDrawingGraphicFinding != null)
        {
            //Row
            DynamicGridRow row = getNewDynamicGridRow();
            if (isDialog())
                row.setSelectable(false);
            row.setValue(voDrawingGraphicFinding);
            row.setReadOnly(form.getMode().equals(FormMode.EDIT));

            //Finding
            DynamicGridCell cellFinding = row.getCells().get(colFinding);
            if (cellFinding == null)
                cellFinding = row.getCells().newCell(colFinding, DynamicCellType.STRING);

            cellFinding.setValue(voDrawingGraphicFinding.getDisplayText());
            cellFinding.setTooltip(rowTooltip);

            if ( isDialog()) //wdev-15448
                cellFinding.setReadOnly(true);


            //ImageColour
            DynamicGridCell cellImageColour = row.getCells().get(colImageColour);
            if (voDrawingGraphicFinding.getImageIsNotNull())
            {
                if (cellImageColour == null || cellImageColour.getType().equals(DynamicCellType.STRING))
                    cellImageColour = row.getCells().newCell(colImageColour, DynamicCellType.IMAGE);
                cellImageColour.setValue(engine.getRegisteredImage(voDrawingGraphicFinding.getImage().getID_AppImage().intValue()));
            }
            else
            {
                if (cellImageColour == null || cellImageColour.getType().equals(DynamicCellType.IMAGE))
                    cellImageColour = row.getCells().newCell(colImageColour, DynamicCellType.STRING);

                cellImageColour.setValue("Line");
                cellImageColour.setTextColor(voDrawingGraphicFinding.getColour());
            }
            cellImageColour.setTooltip(rowTooltip);
            if( isDialog()) //wdev-15448
                cellImageColour.setReadOnly(true);  
            //Status
            DynamicGridCell cellStatus = row.getCells().get(colStatus);
            if (cellStatus == null)
                cellStatus = row.getCells().newCell(colStatus, DynamicCellType.STRING);
            cellStatus.setValue(voDrawingGraphicFinding.getActiveStatusIsNotNull() ? voDrawingGraphicFinding.getActiveStatus().toString() : "");
            cellStatus.setTooltip(rowTooltip);

            if ( isDialog()) //wdev-15448
                cellStatus.setReadOnly(true);

            //Select
            if (colSelect != null)
            {
                DynamicGridCell cellSelect = row.getCells().get(colSelect);
                if (cellSelect == null)
                    cellSelect = row.getCells().newCell(colSelect, DynamicCellType.BOOL);
                cellSelect.setReadOnly(false);
                cellSelect.setAutoPostBack(true);
                cellSelect.setTooltip(rowTooltip);
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void displayListedFindings(DrawingGraphicFindingVoCollection voColl)
{
    if(voColl == null)
        return;

    DynamicGridColumn colFinding = getDynamicColumn(COLFINDING);
    DynamicGridColumn colImageColour = getDynamicColumn(COLIMAGECOLOUR);
    DynamicGridColumn colStatus = getDynamicColumn(COLSTATUS);
    DynamicGridColumn colSelect = getDynamicColumn(COLSELECT);

    for (int i = 0; i < voColl.size(); i++)
    {
        DrawingGraphicFindingVo voDrawingGraphicFinding = voColl.get(i);
        String rowTooltip = getRowTooltip(voDrawingGraphicFinding);
        if (voDrawingGraphicFinding != null)
        {
            //Row
            DynamicGridRow row = getNewDynamicGridRow();
            if (isDialog())
                row.setSelectable(false);
            row.setValue(voDrawingGraphicFinding);
            row.setReadOnly(form.getMode().equals(FormMode.EDIT));

            //Finding
            DynamicGridCell cellFinding = row.getCells().get(colFinding);
            if (cellFinding == null)
                cellFinding = row.getCells().newCell(colFinding, DynamicCellType.STRING);

            cellFinding.setValue(voDrawingGraphicFinding.getDisplayText());
            cellFinding.setTooltip(rowTooltip);

            if ( isDialog()) //wdev-15448
                cellFinding.setReadOnly(true);


            //ImageColour
            DynamicGridCell cellImageColour = row.getCells().get(colImageColour);
            if (voDrawingGraphicFinding.getImageIsNotNull())
            {
                if (cellImageColour == null || cellImageColour.getType().equals(DynamicCellType.STRING))
                    cellImageColour = row.getCells().newCell(colImageColour, DynamicCellType.IMAGE);
                cellImageColour.setValue(engine.getRegisteredImage(voDrawingGraphicFinding.getImage().getID_AppImage().intValue()));
            }
            else
            {
                if (cellImageColour == null || cellImageColour.getType().equals(DynamicCellType.IMAGE))
                    cellImageColour = row.getCells().newCell(colImageColour, DynamicCellType.STRING);

                cellImageColour.setValue("Line");
                cellImageColour.setTextColor(voDrawingGraphicFinding.getColour());
            }
            cellImageColour.setTooltip(rowTooltip);
            if( isDialog()) //wdev-15448
                cellImageColour.setReadOnly(true);  
            //Status
            DynamicGridCell cellStatus = row.getCells().get(colStatus);
            if (cellStatus == null)
                cellStatus = row.getCells().newCell(colStatus, DynamicCellType.STRING);
            cellStatus.setValue(voDrawingGraphicFinding.getActiveStatusIsNotNull() ? voDrawingGraphicFinding.getActiveStatus().toString() : "");
            cellStatus.setTooltip(rowTooltip);

            if ( isDialog()) //wdev-15448
                cellStatus.setReadOnly(true);

            //Select
            if (colSelect != null)
            {
                DynamicGridCell cellSelect = row.getCells().get(colSelect);
                if (cellSelect == null)
                    cellSelect = row.getCells().newCell(colSelect, DynamicCellType.BOOL);
                cellSelect.setReadOnly(false);
                cellSelect.setAutoPostBack(true);
                cellSelect.setTooltip(rowTooltip);
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void displayListedFindings(DrawingGraphicFindingVoCollection voColl)
{
    if(voColl == null)
        return;

    DynamicGridColumn colFinding = getDynamicColumn(COLFINDING);
    DynamicGridColumn colImageColour = getDynamicColumn(COLIMAGECOLOUR);
    DynamicGridColumn colStatus = getDynamicColumn(COLSTATUS);
    DynamicGridColumn colSelect = getDynamicColumn(COLSELECT);

    for (int i = 0; i < voColl.size(); i++)
    {
        DrawingGraphicFindingVo voDrawingGraphicFinding = voColl.get(i);
        String rowTooltip = getRowTooltip(voDrawingGraphicFinding);
        if (voDrawingGraphicFinding != null)
        {
            //Row
            DynamicGridRow row = getNewDynamicGridRow();
            if (isDialog())
                row.setSelectable(false);
            row.setValue(voDrawingGraphicFinding);
            row.setReadOnly(form.getMode().equals(FormMode.EDIT));

            //Finding
            DynamicGridCell cellFinding = row.getCells().get(colFinding);
            if (cellFinding == null)
                cellFinding = row.getCells().newCell(colFinding, DynamicCellType.STRING);

            cellFinding.setValue(voDrawingGraphicFinding.getDisplayText());
            cellFinding.setTooltip(rowTooltip);

            if ( isDialog()) //wdev-15448
                cellFinding.setReadOnly(true);


            //ImageColour
            DynamicGridCell cellImageColour = row.getCells().get(colImageColour);
            if (voDrawingGraphicFinding.getImageIsNotNull())
            {
                if (cellImageColour == null || cellImageColour.getType().equals(DynamicCellType.STRING))
                    cellImageColour = row.getCells().newCell(colImageColour, DynamicCellType.IMAGE);
                cellImageColour.setValue(engine.getRegisteredImage(voDrawingGraphicFinding.getImage().getID_AppImage().intValue()));
            }
            else
            {
                if (cellImageColour == null || cellImageColour.getType().equals(DynamicCellType.IMAGE))
                    cellImageColour = row.getCells().newCell(colImageColour, DynamicCellType.STRING);

                cellImageColour.setValue("Line");
                cellImageColour.setTextColor(voDrawingGraphicFinding.getColour());
            }
            cellImageColour.setTooltip(rowTooltip);
            if( isDialog()) //wdev-15448
                cellImageColour.setReadOnly(true);  
            //Status
            DynamicGridCell cellStatus = row.getCells().get(colStatus);
            if (cellStatus == null)
                cellStatus = row.getCells().newCell(colStatus, DynamicCellType.STRING);
            cellStatus.setValue(voDrawingGraphicFinding.getActiveStatusIsNotNull() ? voDrawingGraphicFinding.getActiveStatus().toString() : "");
            cellStatus.setTooltip(rowTooltip);

            if ( isDialog()) //wdev-15448
                cellStatus.setReadOnly(true);

            //Select
            if (colSelect != null)
            {
                DynamicGridCell cellSelect = row.getCells().get(colSelect);
                if (cellSelect == null)
                    cellSelect = row.getCells().newCell(colSelect, DynamicCellType.BOOL);
                cellSelect.setReadOnly(false);
                cellSelect.setAutoPostBack(true);
                cellSelect.setTooltip(rowTooltip);
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void displayListedFindings(DrawingGraphicFindingVoCollection voColl)
{
    if(voColl == null)
        return;

    DynamicGridColumn colFinding = getDynamicColumn(COLFINDING);
    DynamicGridColumn colImageColour = getDynamicColumn(COLIMAGECOLOUR);
    DynamicGridColumn colStatus = getDynamicColumn(COLSTATUS);
    DynamicGridColumn colSelect = getDynamicColumn(COLSELECT);

    for (int i = 0; i < voColl.size(); i++)
    {
        DrawingGraphicFindingVo voDrawingGraphicFinding = voColl.get(i);
        String rowTooltip = getRowTooltip(voDrawingGraphicFinding);
        if (voDrawingGraphicFinding != null)
        {
            //Row
            DynamicGridRow row = getNewDynamicGridRow();
            if (isDialog())
                row.setSelectable(false);
            row.setValue(voDrawingGraphicFinding);
            row.setReadOnly(form.getMode().equals(FormMode.EDIT));

            //Finding
            DynamicGridCell cellFinding = row.getCells().get(colFinding);
            if (cellFinding == null)
                cellFinding = row.getCells().newCell(colFinding, DynamicCellType.STRING);

            cellFinding.setValue(voDrawingGraphicFinding.getDisplayText());
            cellFinding.setTooltip(rowTooltip);

            if ( isDialog()) //wdev-15448
                cellFinding.setReadOnly(true);


            //ImageColour
            DynamicGridCell cellImageColour = row.getCells().get(colImageColour);
            if (voDrawingGraphicFinding.getImageIsNotNull())
            {
                if (cellImageColour == null || cellImageColour.getType().equals(DynamicCellType.STRING))
                    cellImageColour = row.getCells().newCell(colImageColour, DynamicCellType.IMAGE);
                cellImageColour.setValue(engine.getRegisteredImage(voDrawingGraphicFinding.getImage().getID_AppImage().intValue()));
            }
            else
            {
                if (cellImageColour == null || cellImageColour.getType().equals(DynamicCellType.IMAGE))
                    cellImageColour = row.getCells().newCell(colImageColour, DynamicCellType.STRING);

                cellImageColour.setValue("Line");
                cellImageColour.setTextColor(voDrawingGraphicFinding.getColour());
            }
            cellImageColour.setTooltip(rowTooltip);
            if( isDialog()) //wdev-15448
                cellImageColour.setReadOnly(true);  
            //Status
            DynamicGridCell cellStatus = row.getCells().get(colStatus);
            if (cellStatus == null)
                cellStatus = row.getCells().newCell(colStatus, DynamicCellType.STRING);
            cellStatus.setValue(voDrawingGraphicFinding.getActiveStatusIsNotNull() ? voDrawingGraphicFinding.getActiveStatus().toString() : "");
            cellStatus.setTooltip(rowTooltip);

            if ( isDialog()) //wdev-15448
                cellStatus.setReadOnly(true);

            //Select
            if (colSelect != null)
            {
                DynamicGridCell cellSelect = row.getCells().get(colSelect);
                if (cellSelect == null)
                    cellSelect = row.getCells().newCell(colSelect, DynamicCellType.BOOL);
                cellSelect.setReadOnly(false);
                cellSelect.setAutoPostBack(true);
                cellSelect.setTooltip(rowTooltip);
            }
        }
    }
}