Java 类ims.admin.vo.ReportsCategoryLiteVo 实例源码

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onQmbCategoryTextSubmited(String value) throws PresentationLogicException
{
    String cat = value;

    form.ctnFindReport().qmbCategory().clear();

    if(!cat.startsWith("%"))
        cat = "%" + cat;
    if(!cat.endsWith("%"))
        cat = cat + "%";

    ReportsCategoryLiteVoCollection coll = domain.searchCategoryByName(cat);

    if(coll != null && coll.size() > 0)
    {
        for(ReportsCategoryLiteVo item : coll)
        {
            form.ctnFindReport().qmbCategory().newRow(item, item.getName());
        }

        if(coll.size() == 1)
            form.ctnFindReport().qmbCategory().setValue(coll.get(0));
        else
            form.ctnFindReport().qmbCategory().showOpened();
    }       
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onQmbCategoryTextSubmited(String value) throws PresentationLogicException
{
    String cat = value;

    form.ctnFindReport().qmbCategory().clear();

    if(cat.length() > 48)
        cat = cat.substring(0, 48);

    if(!cat.startsWith("%"))
        cat = "%" + cat;
    if(!cat.endsWith("%"))
        cat = cat + "%";

    ReportsCategoryLiteVoCollection coll = domain.searchCategoryByName(cat);

    if(coll != null && coll.size() > 0)
    {
        for(ReportsCategoryLiteVo item : coll)
        {
            form.ctnFindReport().qmbCategory().newRow(item, item.getName());
        }

        if(coll.size() == 1)
            form.ctnFindReport().qmbCategory().setValue(coll.get(0));
        else
            form.ctnFindReport().qmbCategory().showOpened();
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onQmbCategoryTextSubmited(String value) throws PresentationLogicException
{
    String cat = value;

    form.qmbCategory().clear();

    if(cat.length() > 48)
        cat = cat.substring(0, 48);

    if(!cat.startsWith("%"))
        cat = "%" + cat;
    if(!cat.endsWith("%"))
        cat = cat + "%";

    ReportsCategoryLiteVoCollection coll = domain.searchCategoryByName(cat);

    if(coll != null && coll.size() > 0)
    {
        for(ReportsCategoryLiteVo item : coll)
        {
            form.qmbCategory().newRow(item, item.getName());
        }

        if(coll.size() == 1)
            form.qmbCategory().setValue(coll.get(0));
        else
            form.qmbCategory().showOpened();
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onQmbCategoryTextSubmited(String value) throws PresentationLogicException
{
    String cat = value;

    form.ctnFindReport().qmbCategory().clear();

    if(!cat.startsWith("%"))
        cat = "%" + cat;
    if(!cat.endsWith("%"))
        cat = cat + "%";

    ReportsCategoryLiteVoCollection coll = domain.searchCategoryByName(cat);

    if(coll != null && coll.size() > 0)
    {
        for(ReportsCategoryLiteVo item : coll)
        {
            form.ctnFindReport().qmbCategory().newRow(item, item.getName());
        }

        if(coll.size() == 1)
            form.ctnFindReport().qmbCategory().setValue(coll.get(0));
        else
            form.ctnFindReport().qmbCategory().showOpened();
    }       
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onQmbCategoryTextSubmited(String value) throws PresentationLogicException
{
    String cat = value;

    form.ctnFindReport().qmbCategory().clear();

    if(cat.length() > 48)
        cat = cat.substring(0, 48);

    if(!cat.startsWith("%"))
        cat = "%" + cat;
    if(!cat.endsWith("%"))
        cat = cat + "%";

    ReportsCategoryLiteVoCollection coll = domain.searchCategoryByName(cat);

    if(coll != null && coll.size() > 0)
    {
        for(ReportsCategoryLiteVo item : coll)
        {
            form.ctnFindReport().qmbCategory().newRow(item, item.getName());
        }

        if(coll.size() == 1)
            form.ctnFindReport().qmbCategory().setValue(coll.get(0));
        else
            form.ctnFindReport().qmbCategory().showOpened();
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onQmbCategoryTextSubmited(String value) throws PresentationLogicException
{
    String cat = value;

    form.qmbCategory().clear();

    if(cat.length() > 48)
        cat = cat.substring(0, 48);

    if(!cat.startsWith("%"))
        cat = "%" + cat;
    if(!cat.endsWith("%"))
        cat = cat + "%";

    ReportsCategoryLiteVoCollection coll = domain.searchCategoryByName(cat);

    if(coll != null && coll.size() > 0)
    {
        for(ReportsCategoryLiteVo item : coll)
        {
            form.qmbCategory().newRow(item, item.getName());
        }

        if(coll.size() == 1)
            form.qmbCategory().setValue(coll.get(0));
        else
            form.qmbCategory().showOpened();
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onQmbCategoryTextSubmited(String value) throws PresentationLogicException
{
    String cat = value;

    form.ctnFindReport().qmbCategory().clear();

    if(!cat.startsWith("%"))
        cat = "%" + cat;
    if(!cat.endsWith("%"))
        cat = cat + "%";

    ReportsCategoryLiteVoCollection coll = domain.searchCategoryByName(cat);

    if(coll != null && coll.size() > 0)
    {
        for(ReportsCategoryLiteVo item : coll)
        {
            form.ctnFindReport().qmbCategory().newRow(item, item.getName());
        }

        if(coll.size() == 1)
            form.ctnFindReport().qmbCategory().setValue(coll.get(0));
        else
            form.ctnFindReport().qmbCategory().showOpened();
    }       
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onQmbCategoryTextSubmited(String value) throws PresentationLogicException
{
    String cat = value;

    form.ctnFindReport().qmbCategory().clear();

    if(cat.length() > 48)
        cat = cat.substring(0, 48);

    if(!cat.startsWith("%"))
        cat = "%" + cat;
    if(!cat.endsWith("%"))
        cat = cat + "%";

    ReportsCategoryLiteVoCollection coll = domain.searchCategoryByName(cat);

    if(coll != null && coll.size() > 0)
    {
        for(ReportsCategoryLiteVo item : coll)
        {
            form.ctnFindReport().qmbCategory().newRow(item, item.getName());
        }

        if(coll.size() == 1)
            form.ctnFindReport().qmbCategory().setValue(coll.get(0));
        else
            form.ctnFindReport().qmbCategory().showOpened();
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onQmbCategoryTextSubmited(String value) throws PresentationLogicException
{
    String cat = value;

    form.qmbCategory().clear();

    if(cat.length() > 48)
        cat = cat.substring(0, 48);

    if(!cat.startsWith("%"))
        cat = "%" + cat;
    if(!cat.endsWith("%"))
        cat = cat + "%";

    ReportsCategoryLiteVoCollection coll = domain.searchCategoryByName(cat);

    if(coll != null && coll.size() > 0)
    {
        for(ReportsCategoryLiteVo item : coll)
        {
            form.qmbCategory().newRow(item, item.getName());
        }

        if(coll.size() == 1)
            form.qmbCategory().setValue(coll.get(0));
        else
            form.qmbCategory().showOpened();
    }
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onQmbCategoryTextSubmited(String value) throws PresentationLogicException
{
    String cat = value;

    form.ctnFindReport().qmbCategory().clear();

    if(!cat.startsWith("%"))
        cat = "%" + cat;
    if(!cat.endsWith("%"))
        cat = cat + "%";

    ReportsCategoryLiteVoCollection coll = domain.searchCategoryByName(cat);

    if(coll != null && coll.size() > 0)
    {
        for(ReportsCategoryLiteVo item : coll)
        {
            form.ctnFindReport().qmbCategory().newRow(item, item.getName());
        }

        if(coll.size() == 1)
            form.ctnFindReport().qmbCategory().setValue(coll.get(0));
        else
            form.ctnFindReport().qmbCategory().showOpened();
    }       
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onQmbCategoryTextSubmited(String value) throws PresentationLogicException
{
    String cat = value;

    form.ctnFindReport().qmbCategory().clear();

    if(cat.length() > 48)
        cat = cat.substring(0, 48);

    if(!cat.startsWith("%"))
        cat = "%" + cat;
    if(!cat.endsWith("%"))
        cat = cat + "%";

    ReportsCategoryLiteVoCollection coll = domain.searchCategoryByName(cat);

    if(coll != null && coll.size() > 0)
    {
        for(ReportsCategoryLiteVo item : coll)
        {
            form.ctnFindReport().qmbCategory().newRow(item, item.getName());
        }

        if(coll.size() == 1)
            form.ctnFindReport().qmbCategory().setValue(coll.get(0));
        else
            form.ctnFindReport().qmbCategory().showOpened();
    }
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onQmbCategoryTextSubmited(String value) throws PresentationLogicException
{
    String cat = value;

    form.qmbCategory().clear();

    if(cat.length() > 48)
        cat = cat.substring(0, 48);

    if(!cat.startsWith("%"))
        cat = "%" + cat;
    if(!cat.endsWith("%"))
        cat = cat + "%";

    ReportsCategoryLiteVoCollection coll = domain.searchCategoryByName(cat);

    if(coll != null && coll.size() > 0)
    {
        for(ReportsCategoryLiteVo item : coll)
        {
            form.qmbCategory().newRow(item, item.getName());
        }

        if(coll.size() == 1)
            form.qmbCategory().setValue(coll.get(0));
        else
            form.qmbCategory().showOpened();
    }
}
项目:AvoinApotti    文件:Logic.java   
private void searchReport()
{
    form.dyngrdReports().getRows().clear();

    String reportName = form.ctnFindReport().txtReport().getValue();
    String templateName = form.ctnFindReport().txtTemplate().getValue();
    ReportsCategoryLiteVo cat = form.ctnFindReport().qmbCategory().getValue();

    if (reportName == null || reportName.length() == 0)
    {
        reportName = "%";
    }
    else
    {
        if(!reportName.startsWith("%"))
            reportName = "%" + reportName;
        if(!reportName.endsWith("%"))
            reportName = reportName + "%";
    }

    if (templateName == null || templateName.length() == 0)
    {
        templateName = "%";
    }
    else
    {
        if(!templateName.startsWith("%"))
            templateName = "%" + templateName;
        if(!templateName.endsWith("%"))
            templateName = templateName + "%";
    }

    ReportListVoCollection reportColl = domain.searchReports(reportName, templateName, cat);

    //WDEV-12505
    if(reportColl == null || reportColl.size() == 0)
    {
        engine.showMessage("No results matching your search criteria were found!");
        return;
    }

    ReportsCategoryListVoCollection voReportsCategoryColl = domain.searchCategories(reportName, templateName, cat);

    populateCategoriesGrid(voReportsCategoryColl);
    populateReports(reportColl);

    if(form.dyngrdReports().getRows().size() == 1)
        form.dyngrdReports().getRows().get(0).setExpanded(true, true);
}
项目:AvoinApotti    文件:Logic.java   
private void searchReport()
{
    //clearBackgroundSelection(form.dyngrdReports().getRows());

    form.dyngrdReports().getRows().clear();
    form.htmDownload().setHTML("");

    String reportName = form.ctnFindReport().txtReport().getValue();
    String templateName = form.ctnFindReport().txtTemplate().getValue();
    ReportsCategoryLiteVo cat = form.ctnFindReport().qmbCategory().getValue();

    if (reportName == null || reportName.length() == 0)
    {
        reportName = "%";
    }
    else
    {
        if(!reportName.startsWith("%"))
            reportName = "%" + reportName;
        if(!reportName.endsWith("%"))
            reportName = reportName + "%";
    }

    if (templateName == null || templateName.length() == 0)
    {
        templateName = "%";
    }
    else
    {
        if(!templateName.startsWith("%"))
            templateName = "%" + templateName;
        if(!templateName.endsWith("%"))
            templateName = templateName + "%";
    }

    ReportListVoCollection reportColl = domain.searchReports(reportName, templateName, cat);
    ReportsCategoryListVoCollection voReportsCategoryColl = domain.searchCategories(reportName, templateName, cat);

    populateCategoriesGrid(voReportsCategoryColl);
    populateReports(reportColl);

    if(form.dyngrdReports().getRows().size() == 1)
        form.dyngrdReports().getRows().get(0).setExpanded(true, true);

    enablePreviewButtons();

    if(reportColl == null || reportColl.size() == 0)
    {
        engine.showMessage("No results matching your search criteria were found !");
        return;
    }
}
项目:openMAXIMS    文件:Logic.java   
private void searchReport()
{
    form.dyngrdReports().getRows().clear();

    String reportName = form.ctnFindReport().txtReport().getValue();
    String templateName = form.ctnFindReport().txtTemplate().getValue();
    ReportsCategoryLiteVo cat = form.ctnFindReport().qmbCategory().getValue();

    if (reportName == null || reportName.length() == 0)
    {
        reportName = "%";
    }
    else
    {
        if(!reportName.startsWith("%"))
            reportName = "%" + reportName;
        if(!reportName.endsWith("%"))
            reportName = reportName + "%";
    }

    if (templateName == null || templateName.length() == 0)
    {
        templateName = "%";
    }
    else
    {
        if(!templateName.startsWith("%"))
            templateName = "%" + templateName;
        if(!templateName.endsWith("%"))
            templateName = templateName + "%";
    }

    ReportListVoCollection reportColl = domain.searchReports(reportName, templateName, cat);

    //WDEV-12505
    if(reportColl == null || reportColl.size() == 0)
    {
        engine.showMessage("No results matching your search criteria were found!");
        return;
    }

    ReportsCategoryListVoCollection voReportsCategoryColl = domain.searchCategories(reportName, templateName, cat);

    populateCategoriesGrid(voReportsCategoryColl);
    populateReports(reportColl);

    if(form.dyngrdReports().getRows().size() == 1)
        form.dyngrdReports().getRows().get(0).setExpanded(true, true);
}
项目:openMAXIMS    文件:Logic.java   
private void searchReport()
{
    //clearBackgroundSelection(form.dyngrdReports().getRows());

    form.dyngrdReports().getRows().clear();
    form.htmDownload().setHTML("");

    String reportName = form.ctnFindReport().txtReport().getValue();
    String templateName = form.ctnFindReport().txtTemplate().getValue();
    ReportsCategoryLiteVo cat = form.ctnFindReport().qmbCategory().getValue();

    if (reportName == null || reportName.length() == 0)
    {
        reportName = "%";
    }
    else
    {
        if(!reportName.startsWith("%"))
            reportName = "%" + reportName;
        if(!reportName.endsWith("%"))
            reportName = reportName + "%";
    }

    if (templateName == null || templateName.length() == 0)
    {
        templateName = "%";
    }
    else
    {
        if(!templateName.startsWith("%"))
            templateName = "%" + templateName;
        if(!templateName.endsWith("%"))
            templateName = templateName + "%";
    }

    ReportListVoCollection reportColl = domain.searchReports(reportName, templateName, cat);
    ReportsCategoryListVoCollection voReportsCategoryColl = domain.searchCategories(reportName, templateName, cat);

    populateCategoriesGrid(voReportsCategoryColl);
    populateReports(reportColl);

    if(form.dyngrdReports().getRows().size() == 1)
        form.dyngrdReports().getRows().get(0).setExpanded(true, true);

    enablePreviewButtons();

    if(reportColl == null || reportColl.size() == 0)
    {
        engine.showMessage("No results matching your search criteria were found !");
        return;
    }
}
项目:openMAXIMS    文件:Logic.java   
private void searchReport()
{
    form.dyngrdReports().getRows().clear();

    String reportName = form.ctnFindReport().txtReport().getValue();
    String templateName = form.ctnFindReport().txtTemplate().getValue();
    ReportsCategoryLiteVo cat = form.ctnFindReport().qmbCategory().getValue();

    if (reportName == null || reportName.length() == 0)
    {
        reportName = "%";
    }
    else
    {
        if(!reportName.startsWith("%"))
            reportName = "%" + reportName;
        if(!reportName.endsWith("%"))
            reportName = reportName + "%";
    }

    if (templateName == null || templateName.length() == 0)
    {
        templateName = "%";
    }
    else
    {
        if(!templateName.startsWith("%"))
            templateName = "%" + templateName;
        if(!templateName.endsWith("%"))
            templateName = templateName + "%";
    }

    ReportListVoCollection reportColl = domain.searchReports(reportName, templateName, cat);

    //WDEV-12505
    if(reportColl == null || reportColl.size() == 0)
    {
        engine.showMessage("No results matching your search criteria were found!");
        return;
    }

    ReportsCategoryListVoCollection voReportsCategoryColl = domain.searchCategories(reportName, templateName, cat);

    populateCategoriesGrid(voReportsCategoryColl);
    populateReports(reportColl);

    if(form.dyngrdReports().getRows().size() == 1)
        form.dyngrdReports().getRows().get(0).setExpanded(true, true);
}
项目:openMAXIMS    文件:Logic.java   
private void searchReport()
{
    //clearBackgroundSelection(form.dyngrdReports().getRows());

    form.dyngrdReports().getRows().clear();
    form.htmDownload().setHTML("");

    String reportName = form.ctnFindReport().txtReport().getValue();
    String templateName = form.ctnFindReport().txtTemplate().getValue();
    ReportsCategoryLiteVo cat = form.ctnFindReport().qmbCategory().getValue();

    if (reportName == null || reportName.length() == 0)
    {
        reportName = "%";
    }
    else
    {
        if(!reportName.startsWith("%"))
            reportName = "%" + reportName;
        if(!reportName.endsWith("%"))
            reportName = reportName + "%";
    }

    if (templateName == null || templateName.length() == 0)
    {
        templateName = "%";
    }
    else
    {
        if(!templateName.startsWith("%"))
            templateName = "%" + templateName;
        if(!templateName.endsWith("%"))
            templateName = templateName + "%";
    }

    ReportListVoCollection reportColl = domain.searchReports(reportName, templateName, cat);
    ReportsCategoryListVoCollection voReportsCategoryColl = domain.searchCategories(reportName, templateName, cat);

    populateCategoriesGrid(voReportsCategoryColl);
    populateReports(reportColl);

    if(form.dyngrdReports().getRows().size() == 1)
        form.dyngrdReports().getRows().get(0).setExpanded(true, true);

    enablePreviewButtons();

    if(reportColl == null || reportColl.size() == 0)
    {
        engine.showMessage("No results matching your search criteria were found !");
        return;
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void searchReport()
{
    form.dyngrdReports().getRows().clear();

    String reportName = form.ctnFindReport().txtReport().getValue();
    String templateName = form.ctnFindReport().txtTemplate().getValue();
    ReportsCategoryLiteVo cat = form.ctnFindReport().qmbCategory().getValue();

    if (reportName == null || reportName.length() == 0)
    {
        reportName = "%";
    }
    else
    {
        if(!reportName.startsWith("%"))
            reportName = "%" + reportName;
        if(!reportName.endsWith("%"))
            reportName = reportName + "%";
    }

    if (templateName == null || templateName.length() == 0)
    {
        templateName = "%";
    }
    else
    {
        if(!templateName.startsWith("%"))
            templateName = "%" + templateName;
        if(!templateName.endsWith("%"))
            templateName = templateName + "%";
    }

    ReportListVoCollection reportColl = domain.searchReports(reportName, templateName, cat);

    //WDEV-12505
    if(reportColl == null || reportColl.size() == 0)
    {
        engine.showMessage("No results matching your search criteria were found!");
        return;
    }

    ReportsCategoryListVoCollection voReportsCategoryColl = domain.searchCategories(reportName, templateName, cat);

    populateCategoriesGrid(voReportsCategoryColl);
    populateReports(reportColl);

    if(form.dyngrdReports().getRows().size() == 1)
        form.dyngrdReports().getRows().get(0).setExpanded(true, true);
}
项目:openmaxims-linux    文件:Logic.java   
private void searchReport()
{
    //clearBackgroundSelection(form.dyngrdReports().getRows());

    form.dyngrdReports().getRows().clear();
    form.htmDownload().setHTML("");

    String reportName = form.ctnFindReport().txtReport().getValue();
    String templateName = form.ctnFindReport().txtTemplate().getValue();
    ReportsCategoryLiteVo cat = form.ctnFindReport().qmbCategory().getValue();

    if (reportName == null || reportName.length() == 0)
    {
        reportName = "%";
    }
    else
    {
        if(!reportName.startsWith("%"))
            reportName = "%" + reportName;
        if(!reportName.endsWith("%"))
            reportName = reportName + "%";
    }

    if (templateName == null || templateName.length() == 0)
    {
        templateName = "%";
    }
    else
    {
        if(!templateName.startsWith("%"))
            templateName = "%" + templateName;
        if(!templateName.endsWith("%"))
            templateName = templateName + "%";
    }

    ReportListVoCollection reportColl = domain.searchReports(reportName, templateName, cat);
    ReportsCategoryListVoCollection voReportsCategoryColl = domain.searchCategories(reportName, templateName, cat);

    populateCategoriesGrid(voReportsCategoryColl);
    populateReports(reportColl);

    if(form.dyngrdReports().getRows().size() == 1)
        form.dyngrdReports().getRows().get(0).setExpanded(true, true);

    enablePreviewButtons();

    if(reportColl == null || reportColl.size() == 0)
    {
        engine.showMessage("No results matching your search criteria were found !");
        return;
    }
}