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

项目:AvoinApotti    文件:Logic.java   
private void initialize()
{
    if(form.getGlobalContext().Admin.getDrawingConfigListFilterIsNotNull())
    {
        GraphicAssessmentFilterVo voGraphicAssessmentFilter = form.getGlobalContext().Admin.getDrawingConfigListFilter();
        if(voGraphicAssessmentFilter != null)
        {
            form.txtImageNameSearch().setValue(voGraphicAssessmentFilter.getName());
            form.cmbStatus().setValue(voGraphicAssessmentFilter.getStatus());
            form.GroupSearchCriteria().setValue(getGroupCriteria(voGraphicAssessmentFilter));
            search();
        }
    }
    else
    {
        DrawingGraphicImageShortVo voDrawingGraphicImageShort = form.getGlobalContext().Admin.getDrawingGraphicImageShortVo();
        if(voDrawingGraphicImageShort != null && voDrawingGraphicImageShort.getID_DrawingGraphicImageIsNotNull())
        {
            clearSearchGrid();
            DrawingGraphicImageShortVoCollection voColl = new DrawingGraphicImageShortVoCollection();
            voColl.add(voDrawingGraphicImageShort);
            displayListImages(voColl);
        }
        setDefaultData();
    }   
}
项目:openMAXIMS    文件:Logic.java   
private void initialize()
{
    if(form.getGlobalContext().Admin.getDrawingConfigListFilterIsNotNull())
    {
        GraphicAssessmentFilterVo voGraphicAssessmentFilter = form.getGlobalContext().Admin.getDrawingConfigListFilter();
        if(voGraphicAssessmentFilter != null)
        {
            form.txtImageNameSearch().setValue(voGraphicAssessmentFilter.getName());
            form.cmbStatus().setValue(voGraphicAssessmentFilter.getStatus());
            form.GroupSearchCriteria().setValue(getGroupCriteria(voGraphicAssessmentFilter));
            search();
        }
    }
    else
    {
        DrawingGraphicImageShortVo voDrawingGraphicImageShort = form.getGlobalContext().Admin.getDrawingGraphicImageShortVo();
        if(voDrawingGraphicImageShort != null && voDrawingGraphicImageShort.getID_DrawingGraphicImageIsNotNull())
        {
            clearSearchGrid();
            DrawingGraphicImageShortVoCollection voColl = new DrawingGraphicImageShortVoCollection();
            voColl.add(voDrawingGraphicImageShort);
            displayListImages(voColl);
        }
        setDefaultData();
    }   
}
项目:openMAXIMS    文件:Logic.java   
private void initialize()
{
    if(form.getGlobalContext().Admin.getDrawingConfigListFilterIsNotNull())
    {
        GraphicAssessmentFilterVo voGraphicAssessmentFilter = form.getGlobalContext().Admin.getDrawingConfigListFilter();
        if(voGraphicAssessmentFilter != null)
        {
            form.txtImageNameSearch().setValue(voGraphicAssessmentFilter.getName());
            form.cmbStatus().setValue(voGraphicAssessmentFilter.getStatus());
            form.GroupSearchCriteria().setValue(getGroupCriteria(voGraphicAssessmentFilter));
            search();
        }
    }
    else
    {
        DrawingGraphicImageShortVo voDrawingGraphicImageShort = form.getGlobalContext().Admin.getDrawingGraphicImageShortVo();
        if(voDrawingGraphicImageShort != null && voDrawingGraphicImageShort.getID_DrawingGraphicImageIsNotNull())
        {
            clearSearchGrid();
            DrawingGraphicImageShortVoCollection voColl = new DrawingGraphicImageShortVoCollection();
            voColl.add(voDrawingGraphicImageShort);
            displayListImages(voColl);
        }
        setDefaultData();
    }   
}
项目:openmaxims-linux    文件:Logic.java   
private void initialize()
{
    if(form.getGlobalContext().Admin.getDrawingConfigListFilterIsNotNull())
    {
        GraphicAssessmentFilterVo voGraphicAssessmentFilter = form.getGlobalContext().Admin.getDrawingConfigListFilter();
        if(voGraphicAssessmentFilter != null)
        {
            form.txtImageNameSearch().setValue(voGraphicAssessmentFilter.getName());
            form.cmbStatus().setValue(voGraphicAssessmentFilter.getStatus());
            form.GroupSearchCriteria().setValue(getGroupCriteria(voGraphicAssessmentFilter));
            search();
        }
    }
    else
    {
        DrawingGraphicImageShortVo voDrawingGraphicImageShort = form.getGlobalContext().Admin.getDrawingGraphicImageShortVo();
        if(voDrawingGraphicImageShort != null && voDrawingGraphicImageShort.getID_DrawingGraphicImageIsNotNull())
        {
            clearSearchGrid();
            DrawingGraphicImageShortVoCollection voColl = new DrawingGraphicImageShortVoCollection();
            voColl.add(voDrawingGraphicImageShort);
            displayListImages(voColl);
        }
        setDefaultData();
    }   
}
项目:AvoinApotti    文件:Logic.java   
private void doSearch()
{
    String name = form.txtImageNameSearch().getValue();

    if (name != null)
        name = name.trim();

    //WDEV-1736 - users should be able to search without entering any search criteria   
    /*if (name == null || name.equals(""))
    {
        engine.showMessage("Please enter an Image Name");
        form.txtImageNameSearch().setFocus();
        return;
    }*/

    if (name != null && name.length() > 0)
    {
        GroupSearchCriteriaEnumeration criteria = form.GroupSearchCriteria().getValue();
        if (criteria != null)
        {
            if (criteria.equals(GroupSearchCriteriaEnumeration.rdoBeginsWith))
            {
                name += "%";
            }
            if (criteria.equals(GroupSearchCriteriaEnumeration.rdoContains))
            {
                name = "%" + name + "%";
            }
        }
    }

    DrawingGraphicImageShortVoCollection voColl = domain.listGraphicImages(name, form.cmbStatus().getValue());
    if (voColl == null || voColl.size() == 0)
        engine.showMessage("No Drawing Configurations found for the Search Criteria Provided");

    displayListImages(voColl);

}
项目:AvoinApotti    文件:Logic.java   
private void displayListImages(DrawingGraphicImageShortVoCollection voColl)
{
    for (int i = 0; i < voColl.size(); i++)
    {
        DrawingGraphicImageShortVo voDGImage = voColl.get(i);
        GenForm.grdImagesSearchRow row = form.grdImagesSearch().getRows().newRow();
        row.setcolImageName(voDGImage.getImageName());
        row.setcolDescription(voDGImage.getImageDescription());
        row.setcolStatus(voDGImage.getImageStatusIsNotNull() ? voDGImage.getImageStatus().toString() : "");
        row.setcolVersionNo(voDGImage.getVersionNumberIsNotNull() ? voDGImage.getVersionNumber().toString() : "");
        row.setValue(voDGImage);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void doSearch()
{
    String name = form.txtImageNameSearch().getValue();

    if (name != null)
        name = name.trim();

    //WDEV-1736 - users should be able to search without entering any search criteria   
    /*if (name == null || name.equals(""))
    {
        engine.showMessage("Please enter an Image Name");
        form.txtImageNameSearch().setFocus();
        return;
    }*/

    if (name != null && name.length() > 0)
    {
        GroupSearchCriteriaEnumeration criteria = form.GroupSearchCriteria().getValue();
        if (criteria != null)
        {
            if (criteria.equals(GroupSearchCriteriaEnumeration.rdoBeginsWith))
            {
                name += "%";
            }
            if (criteria.equals(GroupSearchCriteriaEnumeration.rdoContains))
            {
                name = "%" + name + "%";
            }
        }
    }

    DrawingGraphicImageShortVoCollection voColl = domain.listGraphicImages(name, form.cmbStatus().getValue());
    if (voColl == null || voColl.size() == 0)
        engine.showMessage("No Drawing Configurations found for the Search Criteria Provided");

    displayListImages(voColl);

}
项目:openMAXIMS    文件:Logic.java   
private void displayListImages(DrawingGraphicImageShortVoCollection voColl)
{
    for (int i = 0; i < voColl.size(); i++)
    {
        DrawingGraphicImageShortVo voDGImage = voColl.get(i);
        GenForm.grdImagesSearchRow row = form.grdImagesSearch().getRows().newRow();
        row.setcolImageName(voDGImage.getImageName());
        row.setcolDescription(voDGImage.getImageDescription());
        row.setcolStatus(voDGImage.getImageStatusIsNotNull() ? voDGImage.getImageStatus().toString() : "");
        row.setcolVersionNo(voDGImage.getVersionNumberIsNotNull() ? voDGImage.getVersionNumber().toString() : "");
        row.setValue(voDGImage);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void doSearch()
{
    String name = form.txtImageNameSearch().getValue();

    if (name != null)
        name = name.trim();

    //WDEV-1736 - users should be able to search without entering any search criteria   
    /*if (name == null || name.equals(""))
    {
        engine.showMessage("Please enter an Image Name");
        form.txtImageNameSearch().setFocus();
        return;
    }*/

    if (name != null && name.length() > 0)
    {
        GroupSearchCriteriaEnumeration criteria = form.GroupSearchCriteria().getValue();
        if (criteria != null)
        {
            if (criteria.equals(GroupSearchCriteriaEnumeration.rdoBeginsWith))
            {
                name += "%";
            }
            if (criteria.equals(GroupSearchCriteriaEnumeration.rdoContains))
            {
                name = "%" + name + "%";
            }
        }
    }

    DrawingGraphicImageShortVoCollection voColl = domain.listGraphicImages(name, form.cmbStatus().getValue());
    if (voColl == null || voColl.size() == 0)
        engine.showMessage("No Drawing Configurations found for the Search Criteria Provided");

    displayListImages(voColl);

}
项目:openMAXIMS    文件:Logic.java   
private void displayListImages(DrawingGraphicImageShortVoCollection voColl)
{
    for (int i = 0; i < voColl.size(); i++)
    {
        DrawingGraphicImageShortVo voDGImage = voColl.get(i);
        GenForm.grdImagesSearchRow row = form.grdImagesSearch().getRows().newRow();
        row.setcolImageName(voDGImage.getImageName());
        row.setcolDescription(voDGImage.getImageDescription());
        row.setcolStatus(voDGImage.getImageStatusIsNotNull() ? voDGImage.getImageStatus().toString() : "");
        row.setcolVersionNo(voDGImage.getVersionNumberIsNotNull() ? voDGImage.getVersionNumber().toString() : "");
        row.setValue(voDGImage);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void doSearch()
{
    String name = form.txtImageNameSearch().getValue();

    if (name != null)
        name = name.trim();

    //WDEV-1736 - users should be able to search without entering any search criteria   
    /*if (name == null || name.equals(""))
    {
        engine.showMessage("Please enter an Image Name");
        form.txtImageNameSearch().setFocus();
        return;
    }*/

    if (name != null && name.length() > 0)
    {
        GroupSearchCriteriaEnumeration criteria = form.GroupSearchCriteria().getValue();
        if (criteria != null)
        {
            if (criteria.equals(GroupSearchCriteriaEnumeration.rdoBeginsWith))
            {
                name += "%";
            }
            if (criteria.equals(GroupSearchCriteriaEnumeration.rdoContains))
            {
                name = "%" + name + "%";
            }
        }
    }

    DrawingGraphicImageShortVoCollection voColl = domain.listGraphicImages(name, form.cmbStatus().getValue());
    if (voColl == null || voColl.size() == 0)
        engine.showMessage("No Drawing Configurations found for the Search Criteria Provided");

    displayListImages(voColl);

}
项目:openmaxims-linux    文件:Logic.java   
private void displayListImages(DrawingGraphicImageShortVoCollection voColl)
{
    for (int i = 0; i < voColl.size(); i++)
    {
        DrawingGraphicImageShortVo voDGImage = voColl.get(i);
        GenForm.grdImagesSearchRow row = form.grdImagesSearch().getRows().newRow();
        row.setcolImageName(voDGImage.getImageName());
        row.setcolDescription(voDGImage.getImageDescription());
        row.setcolStatus(voDGImage.getImageStatusIsNotNull() ? voDGImage.getImageStatus().toString() : "");
        row.setcolVersionNo(voDGImage.getVersionNumberIsNotNull() ? voDGImage.getVersionNumber().toString() : "");
        row.setValue(voDGImage);
    }
}