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

项目:AvoinApotti    文件:Logic.java   
private SystemReportVoCollection getReportsModifiedSinceLastDeployment()
{
    SystemReportVoCollection reportsModified = new SystemReportVoCollection();

    for (int i = 0; i < form.grdReports().getRows().size(); i++)
    {
        if (form.grdReports().getRows().get(i).getColDeploy())
        {
            SystemReportVo report = form.grdReports().getRows().get(i).getValue();

            boolean wasUpdatedSinceLastDeploy = report.getLastDeployment() != null && report.getLastUpdated() != null && report.getLastDeployment().isLessThan(report.getLastUpdated());

            if (wasUpdatedSinceLastDeploy || hasTemplatesUpdatedSinceLastDeploy(report))
            {
                reportsModified.add(report);
            }
        }
    }

    return reportsModified;
}
项目:openMAXIMS    文件:Logic.java   
private SystemReportVoCollection getReportsModifiedSinceLastDeployment()
{
    SystemReportVoCollection reportsModified = new SystemReportVoCollection();

    for (int i = 0; i < form.grdReports().getRows().size(); i++)
    {
        if (form.grdReports().getRows().get(i).getColDeploy())
        {
            SystemReportVo report = form.grdReports().getRows().get(i).getValue();

            boolean wasUpdatedSinceLastDeploy = report.getLastDeployment() != null && report.getLastUpdated() != null && report.getLastDeployment().isLessThan(report.getLastUpdated());

            if (wasUpdatedSinceLastDeploy || hasTemplatesUpdatedSinceLastDeploy(report))
            {
                reportsModified.add(report);
            }
        }
    }

    return reportsModified;
}
项目:openMAXIMS    文件:Logic.java   
private SystemReportVoCollection getReportsModifiedSinceLastDeployment()
{
    SystemReportVoCollection reportsModified = new SystemReportVoCollection();

    for (int i = 0; i < form.grdReports().getRows().size(); i++)
    {
        if (form.grdReports().getRows().get(i).getColDeploy())
        {
            SystemReportVo report = form.grdReports().getRows().get(i).getValue();

            boolean wasUpdatedSinceLastDeploy = report.getLastDeployment() != null && report.getLastUpdated() != null && report.getLastDeployment().isLessThan(report.getLastUpdated());

            if (wasUpdatedSinceLastDeploy || hasTemplatesUpdatedSinceLastDeploy(report))
            {
                reportsModified.add(report);
            }
        }
    }

    return reportsModified;
}
项目:openmaxims-linux    文件:Logic.java   
private SystemReportVoCollection getReportsModifiedSinceLastDeployment()
{
    SystemReportVoCollection reportsModified = new SystemReportVoCollection();

    for (int i = 0; i < form.grdReports().getRows().size(); i++)
    {
        if (form.grdReports().getRows().get(i).getColDeploy())
        {
            SystemReportVo report = form.grdReports().getRows().get(i).getValue();

            boolean wasUpdatedSinceLastDeploy = report.getLastDeployment() != null && report.getLastUpdated() != null && report.getLastDeployment().isLessThan(report.getLastUpdated());

            if (wasUpdatedSinceLastDeploy || hasTemplatesUpdatedSinceLastDeploy(report))
            {
                reportsModified.add(report);
            }
        }
    }

    return reportsModified;
}
项目:AvoinApotti    文件:Logic.java   
private void listReports(SystemReportVoCollection reportCollection)
{
    if (reportCollection == null || reportCollection.size() == 0)
    {
        engine.showMessage("No reports found matching your search criteria !");
        return;
    }

    for (int i = 0; i < reportCollection.size(); i++)
    {
        populateRow(reportCollection.get(i));
    }
}
项目:AvoinApotti    文件:Logic.java   
private void startDeployProcess()
{
    // Collection for reports modified since last deployment
    SystemReportVoCollection modifiedSinceDeployment = getReportsModifiedSinceLastDeployment();

    if (modifiedSinceDeployment != null && modifiedSinceDeployment.size() > 0)
    {
        form.getGlobalContext().Admin.setReportsModifiedSinceLastDeployment(modifiedSinceDeployment);
        engine.open(form.getForms().Admin.DeployReportsConfirmation);
        return;
    }

    deployProcess();
}
项目:openMAXIMS    文件:Logic.java   
private void listReports(SystemReportVoCollection reportCollection)
{
    if (reportCollection == null || reportCollection.size() == 0)
    {
        engine.showMessage("No reports found matching your search criteria !");
        return;
    }

    for (int i = 0; i < reportCollection.size(); i++)
    {
        populateRow(reportCollection.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void startDeployProcess()
{
    // Collection for reports modified since last deployment
    SystemReportVoCollection modifiedSinceDeployment = getReportsModifiedSinceLastDeployment();

    if (modifiedSinceDeployment != null && modifiedSinceDeployment.size() > 0)
    {
        form.getGlobalContext().Admin.setReportsModifiedSinceLastDeployment(modifiedSinceDeployment);
        engine.open(form.getForms().Admin.DeployReportsConfirmation);
        return;
    }

    deployProcess();
}
项目:openMAXIMS    文件:Logic.java   
private void listReports(SystemReportVoCollection reportCollection)
{
    if (reportCollection == null || reportCollection.size() == 0)
    {
        engine.showMessage("No reports found matching your search criteria !");
        return;
    }

    for (int i = 0; i < reportCollection.size(); i++)
    {
        populateRow(reportCollection.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void startDeployProcess()
{
    // Collection for reports modified since last deployment
    SystemReportVoCollection modifiedSinceDeployment = getReportsModifiedSinceLastDeployment();

    if (modifiedSinceDeployment != null && modifiedSinceDeployment.size() > 0)
    {
        form.getGlobalContext().Admin.setReportsModifiedSinceLastDeployment(modifiedSinceDeployment);
        engine.open(form.getForms().Admin.DeployReportsConfirmation);
        return;
    }

    deployProcess();
}
项目:openmaxims-linux    文件:Logic.java   
private void listReports(SystemReportVoCollection reportCollection)
{
    if (reportCollection == null || reportCollection.size() == 0)
    {
        engine.showMessage("No reports found matching your search criteria !");
        return;
    }

    for (int i = 0; i < reportCollection.size(); i++)
    {
        populateRow(reportCollection.get(i));
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void startDeployProcess()
{
    // Collection for reports modified since last deployment
    SystemReportVoCollection modifiedSinceDeployment = getReportsModifiedSinceLastDeployment();

    if (modifiedSinceDeployment != null && modifiedSinceDeployment.size() > 0)
    {
        form.getGlobalContext().Admin.setReportsModifiedSinceLastDeployment(modifiedSinceDeployment);
        engine.open(form.getForms().Admin.DeployReportsConfirmation);
        return;
    }

    deployProcess();
}
项目:AvoinApotti    文件:Logic.java   
public SystemReportVoCollection getReportCollection()
{
    return form.getLocalContext().getreportCollection();
}
项目:AvoinApotti    文件:Logic.java   
private void populateReports(SystemReportVoCollection reports)
{
    form.dyngrdReports().getRows().clear();

    if (reports == null)
        return;

    for (SystemReportVo report : reports)
    {
        DynamicGridRow reportRow = form.dyngrdReports().getRows().newRow();

        reportRow.setCollapsedImage(form.getImages().Admin.Audit);
        reportRow.setExpandedImage(form.getImages().Admin.Audit);

        if (report.getLastDeployment() != null && report.getLastUpdated() != null
                && report.getLastDeployment().isLessThan(report.getLastUpdated()))
        {
            reportRow.setTextColor(Color.Black);
        }
        else
        {
            reportRow.setTextColor(Color.Gray);
        }

        DynamicGridCell cellName = reportRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_NAME), DynamicCellType.STRING);
        cellName.setValue("<b>" + report.getReportName() + "</b>");
        cellName.setReadOnly(true);
        cellName.setTooltip(getReportTemplate(report.getReportXml()));

        DynamicGridCell cellLastDeployed = reportRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_LAST_DEPLOY), DynamicCellType.DATETIME);
        cellLastDeployed.setValue(report.getLastDeployment());
        cellLastDeployed.setReadOnly(true);

        DynamicGridCell cellLastModified = reportRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_LAST_MODIFY), DynamicCellType.DATETIME);
        cellLastModified.setValue(report.getLastUpdated());
        cellLastModified.setReadOnly(true);

        reportRow.setValue(report);

        if (report.getTemplates() != null)
            populateTemplates(reportRow, report.getTemplates());

        reportRow.setExpanded(true);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void displayReports(SystemReportVoCollection coll)
{
    form.grdReports().getRows().clear();

    if (coll == null || coll.size() == 0)
    {
        engine.showMessage("No reports found."); //WDEV-16544
        return;
    }

    String path = EnvironmentConfig.getBaseUri();
    String fileSep = System.getProperty("file.separator");
    String loadFolder = "";
    String customerFolder = "";

    //WDEV-12195
    try
    {
        customerFolder = domain.getSiteName();
    }
    catch (DomainInterfaceException e)
    {
        e.printStackTrace();
        engine.showMessage("Can't get the customer reports folder: " + e.toString());
    }

    String pathFirst = "";

    if(!path.endsWith(fileSep))
        path += fileSep;

    path += "reports" + fileSep;

    if(customerFolder.length() > 0)
        pathFirst = path + customerFolder + fileSep;

    for (SystemReportVo report : coll)
    {
        boolean deployFromCustomerFolder  = false;
        String firstFileName = pathFirst + report.getExportFileName();

        loadFolder = "/reports/";
        File file = new File(firstFileName);

        if(file.exists())
        {
            loadFolder += customerFolder + "/";
            deployFromCustomerFolder = true;
        }

        grdReportsRow row = form.grdReports().getRows().newRow();

        row.setColDeploy(true);
        row.setColDeployReadOnly(false);
        row.setColName(report.getReportName());
        row.setColImportFile(loadFolder + report.getExportFileName());

        if(deployFromCustomerFolder)
        {
            row.setBackColor(Color.fromRGB(153, 255, 255));
        }

        row.setValue(report);

        if(Boolean.TRUE.equals(report.getQueryEditable()))
            row.setTextColor(Color.DodgerBlue);
        else
            row.setTextColor(Color.Blue);
    }
}
项目:openMAXIMS    文件:Logic.java   
public SystemReportVoCollection getReportCollection()
{
    return form.getLocalContext().getreportCollection();
}
项目:openMAXIMS    文件:Logic.java   
private void populateReports(SystemReportVoCollection reports)
{
    form.dyngrdReports().getRows().clear();

    if (reports == null)
        return;

    for (SystemReportVo report : reports)
    {
        DynamicGridRow reportRow = form.dyngrdReports().getRows().newRow();

        reportRow.setCollapsedImage(form.getImages().Admin.Audit);
        reportRow.setExpandedImage(form.getImages().Admin.Audit);

        if (report.getLastDeployment() != null && report.getLastUpdated() != null
                && report.getLastDeployment().isLessThan(report.getLastUpdated()))
        {
            reportRow.setTextColor(Color.Black);
        }
        else
        {
            reportRow.setTextColor(Color.Gray);
        }

        DynamicGridCell cellName = reportRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_NAME), DynamicCellType.STRING);
        cellName.setValue("<b>" + report.getReportName() + "</b>");
        cellName.setReadOnly(true);
        cellName.setTooltip(getReportTemplate(report.getReportXml()));

        DynamicGridCell cellLastDeployed = reportRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_LAST_DEPLOY), DynamicCellType.DATETIME);
        cellLastDeployed.setValue(report.getLastDeployment());
        cellLastDeployed.setReadOnly(true);

        DynamicGridCell cellLastModified = reportRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_LAST_MODIFY), DynamicCellType.DATETIME);
        cellLastModified.setValue(report.getLastUpdated());
        cellLastModified.setReadOnly(true);

        reportRow.setValue(report);

        if (report.getTemplates() != null)
            populateTemplates(reportRow, report.getTemplates());

        reportRow.setExpanded(true);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void displayReports(SystemReportVoCollection coll)
{
    form.grdReports().getRows().clear();

    if (coll == null || coll.size() == 0)
    {
        engine.showMessage("No reports found."); //WDEV-16544
        return;
    }

    String path = EnvironmentConfig.getBaseUri();
    String fileSep = System.getProperty("file.separator");
    String loadFolder = "";
    String customerFolder = "";

    //WDEV-12195
    try
    {
        customerFolder = domain.getSiteName();
    }
    catch (DomainInterfaceException e)
    {
        e.printStackTrace();
        engine.showMessage("Can't get the customer reports folder: " + e.toString());
    }

    String pathFirst = "";

    if(!path.endsWith(fileSep))
        path += fileSep;

    path += "reports" + fileSep;

    if(customerFolder.length() > 0)
        pathFirst = path + customerFolder + fileSep;

    for (SystemReportVo report : coll)
    {
        boolean deployFromCustomerFolder  = false;
        String firstFileName = pathFirst + report.getExportFileName();

        loadFolder = "/reports/";
        File file = new File(firstFileName);

        if(file.exists())
        {
            loadFolder += customerFolder + "/";
            deployFromCustomerFolder = true;
        }

        grdReportsRow row = form.grdReports().getRows().newRow();

        row.setColDeploy(true);
        row.setColDeployReadOnly(false);
        row.setColName(report.getReportName());
        row.setColImportFile(loadFolder + report.getExportFileName());

        if(deployFromCustomerFolder)
        {
            row.setBackColor(Color.fromRGB(153, 255, 255));
        }

        row.setValue(report);

        if(Boolean.TRUE.equals(report.getQueryEditable()))
            row.setTextColor(Color.DodgerBlue);
        else
            row.setTextColor(Color.Blue);
    }
}
项目:openMAXIMS    文件:Logic.java   
public SystemReportVoCollection getReportCollection()
{
    return form.getLocalContext().getreportCollection();
}
项目:openMAXIMS    文件:Logic.java   
private void populateReports(SystemReportVoCollection reports)
{
    form.dyngrdReports().getRows().clear();

    if (reports == null)
        return;

    for (SystemReportVo report : reports)
    {
        DynamicGridRow reportRow = form.dyngrdReports().getRows().newRow();

        reportRow.setCollapsedImage(form.getImages().Admin.Audit);
        reportRow.setExpandedImage(form.getImages().Admin.Audit);

        if (report.getLastDeployment() != null && report.getLastUpdated() != null
                && report.getLastDeployment().isLessThan(report.getLastUpdated()))
        {
            reportRow.setTextColor(Color.Black);
        }
        else
        {
            reportRow.setTextColor(Color.Gray);
        }

        DynamicGridCell cellName = reportRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_NAME), DynamicCellType.STRING);
        cellName.setValue("<b>" + report.getReportName() + "</b>");
        cellName.setReadOnly(true);
        cellName.setTooltip(getReportTemplate(report.getReportXml()));

        DynamicGridCell cellLastDeployed = reportRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_LAST_DEPLOY), DynamicCellType.DATETIME);
        cellLastDeployed.setValue(report.getLastDeployment());
        cellLastDeployed.setReadOnly(true);

        DynamicGridCell cellLastModified = reportRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_LAST_MODIFY), DynamicCellType.DATETIME);
        cellLastModified.setValue(report.getLastUpdated());
        cellLastModified.setReadOnly(true);

        reportRow.setValue(report);

        if (report.getTemplates() != null)
            populateTemplates(reportRow, report.getTemplates());

        reportRow.setExpanded(true);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void displayReports(SystemReportVoCollection coll)
{
    form.grdReports().getRows().clear();

    if (coll == null || coll.size() == 0)
    {
        engine.showMessage("No reports found."); //WDEV-16544
        return;
    }

    String path = EnvironmentConfig.getBaseUri();
    String fileSep = System.getProperty("file.separator");
    String loadFolder = "";
    String customerFolder = "";

    //WDEV-12195
    try
    {
        customerFolder = domain.getSiteName();
    }
    catch (DomainInterfaceException e)
    {
        e.printStackTrace();
        engine.showMessage("Can't get the customer reports folder: " + e.toString());
    }

    String pathFirst = "";

    if(!path.endsWith(fileSep))
        path += fileSep;

    path += "reports" + fileSep;

    if(customerFolder.length() > 0)
        pathFirst = path + customerFolder + fileSep;

    for (SystemReportVo report : coll)
    {
        boolean deployFromCustomerFolder  = false;
        String firstFileName = pathFirst + report.getExportFileName();

        loadFolder = "/reports/";
        File file = new File(firstFileName);

        if(file.exists())
        {
            loadFolder += customerFolder + "/";
            deployFromCustomerFolder = true;
        }

        grdReportsRow row = form.grdReports().getRows().newRow();

        row.setColDeploy(true);
        row.setColDeployReadOnly(false);
        row.setColName(report.getReportName());
        row.setColImportFile(loadFolder + report.getExportFileName());

        if(deployFromCustomerFolder)
        {
            row.setBackColor(Color.fromRGB(153, 255, 255));
        }

        row.setValue(report);

        if(Boolean.TRUE.equals(report.getQueryEditable()))
            row.setTextColor(Color.DodgerBlue);
        else
            row.setTextColor(Color.Blue);
    }
}
项目:openmaxims-linux    文件:Logic.java   
public SystemReportVoCollection getReportCollection()
{
    return form.getLocalContext().getreportCollection();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateReports(SystemReportVoCollection reports)
{
    form.dyngrdReports().getRows().clear();

    if (reports == null)
        return;

    for (SystemReportVo report : reports)
    {
        DynamicGridRow reportRow = form.dyngrdReports().getRows().newRow();

        reportRow.setCollapsedImage(form.getImages().Admin.Audit);
        reportRow.setExpandedImage(form.getImages().Admin.Audit);

        if (report.getLastDeployment() != null && report.getLastUpdated() != null
                && report.getLastDeployment().isLessThan(report.getLastUpdated()))
        {
            reportRow.setTextColor(Color.Black);
        }
        else
        {
            reportRow.setTextColor(Color.Gray);
        }

        DynamicGridCell cellName = reportRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_NAME), DynamicCellType.STRING);
        cellName.setValue("<b>" + report.getReportName() + "</b>");
        cellName.setReadOnly(true);
        cellName.setTooltip(getReportTemplate(report.getReportXml()));

        DynamicGridCell cellLastDeployed = reportRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_LAST_DEPLOY), DynamicCellType.DATETIME);
        cellLastDeployed.setValue(report.getLastDeployment());
        cellLastDeployed.setReadOnly(true);

        DynamicGridCell cellLastModified = reportRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_LAST_MODIFY), DynamicCellType.DATETIME);
        cellLastModified.setValue(report.getLastUpdated());
        cellLastModified.setReadOnly(true);

        reportRow.setValue(report);

        if (report.getTemplates() != null)
            populateTemplates(reportRow, report.getTemplates());

        reportRow.setExpanded(true);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void displayReports(SystemReportVoCollection coll)
{
    form.grdReports().getRows().clear();

    if (coll == null || coll.size() == 0)
    {
        engine.showMessage("No reports found."); //WDEV-16544
        return;
    }

    String path = EnvironmentConfig.getBaseUri();
    String fileSep = System.getProperty("file.separator");
    String loadFolder = "";
    String customerFolder = "";

    //WDEV-12195
    try
    {
        customerFolder = domain.getSiteName();
    }
    catch (DomainInterfaceException e)
    {
        e.printStackTrace();
        engine.showMessage("Can't get the customer reports folder: " + e.toString());
    }

    String pathFirst = "";

    if(!path.endsWith(fileSep))
        path += fileSep;

    path += "reports" + fileSep;

    if(customerFolder.length() > 0)
        pathFirst = path + customerFolder + fileSep;

    for (SystemReportVo report : coll)
    {
        boolean deployFromCustomerFolder  = false;
        String firstFileName = pathFirst + report.getExportFileName();

        loadFolder = "/reports/";
        File file = new File(firstFileName);

        if(file.exists())
        {
            loadFolder += customerFolder + "/";
            deployFromCustomerFolder = true;
        }

        grdReportsRow row = form.grdReports().getRows().newRow();

        row.setColDeploy(true);
        row.setColDeployReadOnly(false);
        row.setColName(report.getReportName());
        row.setColImportFile(loadFolder + report.getExportFileName());

        if(deployFromCustomerFolder)
        {
            row.setBackColor(Color.fromRGB(153, 255, 255));
        }

        row.setValue(report);

        if(Boolean.TRUE.equals(report.getQueryEditable()))
            row.setTextColor(Color.DodgerBlue);
        else
            row.setTextColor(Color.Blue);
    }
}