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

项目:AvoinApotti    文件:Logic.java   
private void displayall(PrintAgentVoCollection collPrintAgentVo)
{
    clearScreen();
    form.setMode(FormMode.VIEW);

    ReportVoCollection coll = null;

    displayJobs(collPrintAgentVo);
    form.grdJobs().setValue(form.getLocalContext().getJobSettings());
    try
    {
        onGrdJobsSelectionChanged();
    }
    catch (PresentationLogicException e)
    {
        engine.showMessage("Error selecting the grid row: " + e.toString());
        return;
    }

}
项目:openMAXIMS    文件:Logic.java   
private void displayall(PrintAgentVoCollection collPrintAgentVo)
{
    clearScreen();
    form.setMode(FormMode.VIEW);

    ReportVoCollection coll = null;

    displayJobs(collPrintAgentVo);
    form.grdJobs().setValue(form.getLocalContext().getJobSettings());
    try
    {
        onGrdJobsSelectionChanged();
    }
    catch (PresentationLogicException e)
    {
        engine.showMessage("Error selecting the grid row: " + e.toString());
        return;
    }

}
项目:openMAXIMS    文件:Logic.java   
private void displayall(PrintAgentVoCollection collPrintAgentVo)
{
    clearScreen();
    form.setMode(FormMode.VIEW);

    ReportVoCollection coll = null;

    displayJobs(collPrintAgentVo);
    form.grdJobs().setValue(form.getLocalContext().getJobSettings());
    try
    {
        onGrdJobsSelectionChanged();
    }
    catch (PresentationLogicException e)
    {
        engine.showMessage("Error selecting the grid row: " + e.toString());
        return;
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void displayall(PrintAgentVoCollection collPrintAgentVo)
{
    clearScreen();
    form.setMode(FormMode.VIEW);

    ReportVoCollection coll = null;

    displayJobs(collPrintAgentVo);
    form.grdJobs().setValue(form.getLocalContext().getJobSettings());
    try
    {
        onGrdJobsSelectionChanged();
    }
    catch (PresentationLogicException e)
    {
        engine.showMessage("Error selecting the grid row: " + e.toString());
        return;
    }

}
项目:AvoinApotti    文件:Logic.java   
private void displayJobs(PrintAgentVoCollection collPrintAgentVo)
{
    form.grdJobs().getRows().clear();

    for (int i = 0; i < collPrintAgentVo.size(); i++)
    {
        PrintAgentVo job = collPrintAgentVo.get(i);

        grdJobsRow row = form.grdJobs().getRows().newRow();

        fillJobRow(job, row);
    }
}
项目:AvoinApotti    文件:BatchPrintingImpl.java   
public PrintAgentVoCollection listPrintAgents()
{
    DomainFactory factory = getDomainFactory();

    List list = factory.find("from PrintAgent pa order by pa.description");     //wdev-11600

    return PrintAgentVoAssembler.createPrintAgentVoCollectionFromPrintAgent(list); //wdev-11600
}
项目:AvoinApotti    文件:Logic.java   
private void displayJobs(PrintAgentVoCollection collPrintAgentVo)
{
    form.grdJobs().getRows().clear();

    for (int i = 0; i < collPrintAgentVo.size(); i++)
    {
        PrintAgentVo job = collPrintAgentVo.get(i);

        grdJobsRow row = form.grdJobs().getRows().newRow();

        fillJobRow(job, row);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void displayJobs(PrintAgentVoCollection collPrintAgentVo)
{
    form.grdJobs().getRows().clear();

    for (int i = 0; i < collPrintAgentVo.size(); i++)
    {
        PrintAgentVo job = collPrintAgentVo.get(i);

        grdJobsRow row = form.grdJobs().getRows().newRow();

        fillJobRow(job, row);
    }
}
项目:openMAXIMS    文件:BatchPrintingImpl.java   
public PrintAgentVoCollection listPrintAgents()
{
    DomainFactory factory = getDomainFactory();

    List list = factory.find("from PrintAgent pa order by pa.description");     //wdev-11600

    return PrintAgentVoAssembler.createPrintAgentVoCollectionFromPrintAgent(list); //wdev-11600
}
项目:openMAXIMS    文件:Logic.java   
private void displayJobs(PrintAgentVoCollection collPrintAgentVo)
{
    form.grdJobs().getRows().clear();

    for (int i = 0; i < collPrintAgentVo.size(); i++)
    {
        PrintAgentVo job = collPrintAgentVo.get(i);

        grdJobsRow row = form.grdJobs().getRows().newRow();

        fillJobRow(job, row);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void displayJobs(PrintAgentVoCollection collPrintAgentVo)
{
    form.grdJobs().getRows().clear();

    for (int i = 0; i < collPrintAgentVo.size(); i++)
    {
        PrintAgentVo job = collPrintAgentVo.get(i);

        grdJobsRow row = form.grdJobs().getRows().newRow();

        fillJobRow(job, row);
    }
}
项目:openMAXIMS    文件:BatchPrintingImpl.java   
public PrintAgentVoCollection listPrintAgents()
{
    DomainFactory factory = getDomainFactory();

    List list = factory.find("from PrintAgent pa order by pa.description");     //wdev-11600

    return PrintAgentVoAssembler.createPrintAgentVoCollectionFromPrintAgent(list); //wdev-11600
}
项目:openMAXIMS    文件:Logic.java   
private void displayJobs(PrintAgentVoCollection collPrintAgentVo)
{
    form.grdJobs().getRows().clear();

    for (int i = 0; i < collPrintAgentVo.size(); i++)
    {
        PrintAgentVo job = collPrintAgentVo.get(i);

        grdJobsRow row = form.grdJobs().getRows().newRow();

        fillJobRow(job, row);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void displayJobs(PrintAgentVoCollection collPrintAgentVo)
{
    form.grdJobs().getRows().clear();

    for (int i = 0; i < collPrintAgentVo.size(); i++)
    {
        PrintAgentVo job = collPrintAgentVo.get(i);

        grdJobsRow row = form.grdJobs().getRows().newRow();

        fillJobRow(job, row);
    }
}
项目:openmaxims-linux    文件:BatchPrintingImpl.java   
public PrintAgentVoCollection listPrintAgents()
{
    DomainFactory factory = getDomainFactory();

    List list = factory.find("from PrintAgent pa order by pa.description");     //wdev-11600

    return PrintAgentVoAssembler.createPrintAgentVoCollectionFromPrintAgent(list); //wdev-11600
}
项目:AvoinApotti    文件:Logic.java   
private void open()
{
    clearScreen();
    form.setMode(FormMode.VIEW);

    ReportVoCollection coll = null;
    PrintAgentVoCollection collPrintAgentVo = null;

    coll = domain.listReports();
    collPrintAgentVo = domain.listPrintAgents();

    form.getLocalContext().setReportsAvailable(coll);

    displayJobs(collPrintAgentVo);

    if (collPrintAgentVo.size() > 0)
    {
        Integer id = form.getLocalContext().getLastId();

        if (id == null)
        {
            id = form.grdJobs().getRows().get(0).getValue().getID_PrintAgent();
        }

        for (int i = 0; i < form.grdJobs().getRows().size(); i++)
        {
            if (form.grdJobs().getRows().get(i).getValue().getID_PrintAgent().equals(id))
            {
                form.grdJobs().setValue(form.grdJobs().getRows().get(i).getValue());
                try
                {
                    onGrdJobsSelectionChanged();
                }
                catch (PresentationLogicException e)
                {
                    engine.showMessage("Error selecting the grid row: " + e.toString());
                    return;
                }
            }
        }

        form.btnUpdate().setVisible(true);
        form.btnPrintNow().setVisible(true);
        form.btnRePrint().setVisible(true);
    }
    else
    {
        form.btnUpdate().setVisible(false);
        form.btnPrintNow().setVisible(false);
        form.btnRePrint().setVisible(false);
    }

    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
private void open()
{
    clearScreen();
    form.setMode(FormMode.VIEW);

    //TODO - this line to be deleted once the download functionality is completed - WDEV-6687
    form.btnDownload().setVisible(false);

    PrintAgentVoCollection collPrintAgentVo = null;

    collPrintAgentVo = domain.listPrintAgents();

    displayJobs(collPrintAgentVo);

    if (collPrintAgentVo.size() > 0)
    {
        Integer id = form.getLocalContext().getLastId();

        if (id == null)
        {
            id = form.grdJobs().getRows().get(0).getValue().getID_PrintAgent();
        }

        for (int i = 0; i < form.grdJobs().getRows().size(); i++)
        {
            if (form.grdJobs().getRows().get(i).getValue().getID_PrintAgent().equals(id))
            {
                form.grdJobs().setValue(form.grdJobs().getRows().get(i).getValue());
                try
                {
                    onGrdJobsSelectionChanged();
                }
                catch (PresentationLogicException e)
                {
                    engine.showMessage("Error selecting the grid row: " + e.toString());
                    return;
                }
            }
        }

        form.btnEdit().setVisible(true);
        form.btnRun().setVisible(true);
    }
    else
    {
        form.btnEdit().setVisible(false);
        form.btnRun().setVisible(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    clearScreen();
    form.setMode(FormMode.VIEW);

    ReportVoCollection coll = null;
    PrintAgentVoCollection collPrintAgentVo = null;

    coll = domain.listReports();
    collPrintAgentVo = domain.listPrintAgents();

    form.getLocalContext().setReportsAvailable(coll);

    displayJobs(collPrintAgentVo);

    if (collPrintAgentVo.size() > 0)
    {
        Integer id = form.getLocalContext().getLastId();

        if (id == null)
        {
            id = form.grdJobs().getRows().get(0).getValue().getID_PrintAgent();
        }

        for (int i = 0; i < form.grdJobs().getRows().size(); i++)
        {
            if (form.grdJobs().getRows().get(i).getValue().getID_PrintAgent().equals(id))
            {
                form.grdJobs().setValue(form.grdJobs().getRows().get(i).getValue());
                try
                {
                    onGrdJobsSelectionChanged();
                }
                catch (PresentationLogicException e)
                {
                    engine.showMessage("Error selecting the grid row: " + e.toString());
                    return;
                }
            }
        }

        form.btnUpdate().setVisible(true);
        form.btnPrintNow().setVisible(true);
        form.btnRePrint().setVisible(true);
    }
    else
    {
        form.btnUpdate().setVisible(false);
        form.btnPrintNow().setVisible(false);
        form.btnRePrint().setVisible(false);
    }

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    clearScreen();
    form.setMode(FormMode.VIEW);

    //TODO - this line to be deleted once the download functionality is completed - WDEV-6687
    form.btnDownload().setVisible(false);

    PrintAgentVoCollection collPrintAgentVo = null;

    collPrintAgentVo = domain.listPrintAgents();

    displayJobs(collPrintAgentVo);

    if (collPrintAgentVo.size() > 0)
    {
        Integer id = form.getLocalContext().getLastId();

        if (id == null)
        {
            id = form.grdJobs().getRows().get(0).getValue().getID_PrintAgent();
        }

        for (int i = 0; i < form.grdJobs().getRows().size(); i++)
        {
            if (form.grdJobs().getRows().get(i).getValue().getID_PrintAgent().equals(id))
            {
                form.grdJobs().setValue(form.grdJobs().getRows().get(i).getValue());
                try
                {
                    onGrdJobsSelectionChanged();
                }
                catch (PresentationLogicException e)
                {
                    engine.showMessage("Error selecting the grid row: " + e.toString());
                    return;
                }
            }
        }

        form.btnEdit().setVisible(true);
        form.btnRun().setVisible(true);
    }
    else
    {
        form.btnEdit().setVisible(false);
        form.btnRun().setVisible(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    clearScreen();
    form.setMode(FormMode.VIEW);

    ReportVoCollection coll = null;
    PrintAgentVoCollection collPrintAgentVo = null;

    coll = domain.listReports();
    collPrintAgentVo = domain.listPrintAgents();

    form.getLocalContext().setReportsAvailable(coll);

    displayJobs(collPrintAgentVo);

    if (collPrintAgentVo.size() > 0)
    {
        Integer id = form.getLocalContext().getLastId();

        if (id == null)
        {
            id = form.grdJobs().getRows().get(0).getValue().getID_PrintAgent();
        }

        for (int i = 0; i < form.grdJobs().getRows().size(); i++)
        {
            if (form.grdJobs().getRows().get(i).getValue().getID_PrintAgent().equals(id))
            {
                form.grdJobs().setValue(form.grdJobs().getRows().get(i).getValue());
                try
                {
                    onGrdJobsSelectionChanged();
                }
                catch (PresentationLogicException e)
                {
                    engine.showMessage("Error selecting the grid row: " + e.toString());
                    return;
                }
            }
        }

        form.btnUpdate().setVisible(true);
        form.btnPrintNow().setVisible(true);
        form.btnRePrint().setVisible(true);
    }
    else
    {
        form.btnUpdate().setVisible(false);
        form.btnPrintNow().setVisible(false);
        form.btnRePrint().setVisible(false);
    }

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    clearScreen();
    form.setMode(FormMode.VIEW);

    //TODO - this line to be deleted once the download functionality is completed - WDEV-6687
    form.btnDownload().setVisible(false);

    PrintAgentVoCollection collPrintAgentVo = null;

    collPrintAgentVo = domain.listPrintAgents();

    displayJobs(collPrintAgentVo);

    if (collPrintAgentVo.size() > 0)
    {
        Integer id = form.getLocalContext().getLastId();

        if (id == null)
        {
            id = form.grdJobs().getRows().get(0).getValue().getID_PrintAgent();
        }

        for (int i = 0; i < form.grdJobs().getRows().size(); i++)
        {
            if (form.grdJobs().getRows().get(i).getValue().getID_PrintAgent().equals(id))
            {
                form.grdJobs().setValue(form.grdJobs().getRows().get(i).getValue());
                try
                {
                    onGrdJobsSelectionChanged();
                }
                catch (PresentationLogicException e)
                {
                    engine.showMessage("Error selecting the grid row: " + e.toString());
                    return;
                }
            }
        }

        form.btnEdit().setVisible(true);
        form.btnRun().setVisible(true);
    }
    else
    {
        form.btnEdit().setVisible(false);
        form.btnRun().setVisible(false);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void open()
{
    clearScreen();
    form.setMode(FormMode.VIEW);

    ReportVoCollection coll = null;
    PrintAgentVoCollection collPrintAgentVo = null;

    coll = domain.listReports();
    collPrintAgentVo = domain.listPrintAgents();

    form.getLocalContext().setReportsAvailable(coll);

    displayJobs(collPrintAgentVo);

    if (collPrintAgentVo.size() > 0)
    {
        Integer id = form.getLocalContext().getLastId();

        if (id == null)
        {
            id = form.grdJobs().getRows().get(0).getValue().getID_PrintAgent();
        }

        for (int i = 0; i < form.grdJobs().getRows().size(); i++)
        {
            if (form.grdJobs().getRows().get(i).getValue().getID_PrintAgent().equals(id))
            {
                form.grdJobs().setValue(form.grdJobs().getRows().get(i).getValue());
                try
                {
                    onGrdJobsSelectionChanged();
                }
                catch (PresentationLogicException e)
                {
                    engine.showMessage("Error selecting the grid row: " + e.toString());
                    return;
                }
            }
        }

        form.btnUpdate().setVisible(true);
        form.btnPrintNow().setVisible(true);
        form.btnRePrint().setVisible(true);
    }
    else
    {
        form.btnUpdate().setVisible(false);
        form.btnPrintNow().setVisible(false);
        form.btnRePrint().setVisible(false);
    }

    updateControlsState();
}