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

项目:AvoinApotti    文件:Logic.java   
protected void onBtnOkClick() throws ims.framework.exceptions.PresentationLogicException
{
    PrinterVoCollection printers = new PrinterVoCollection();

    for (int i = 0; i < form.grdList().getRows().size(); i++)
    {
        printers.add(form.grdList().getRows().get(i).getValue());           
    }       

    form.getGlobalContext().setDefaultPrinter(form.getLocalContext().getDefaultPrinter());
    form.getGlobalContext().setDesignatedPrinterForNewResults(form.getLocalContext().getDesignatedPrinterForNewResults());
    form.getGlobalContext().setDesignatedPrinterForOCSOrder(form.getLocalContext().getDesignatedPrinterForOCSOrder());
    form.getGlobalContext().setPrintersSelected(printers);      
    engine.close(DialogResult.OK);
}
项目:AvoinApotti    文件:Logic.java   
private void open()
{       
    form.grdList().getRows().clear();

    PrinterVoCollection printers = form.getGlobalContext().getPrintersSelected();
    if (printers != null)
    {       
        for (int i = 0; i < printers.size(); i++)
        {               
            grdListRow row = form.grdList().getRows().newRow();
            row.setcolItems(printers.get(i).getName());
            row.setValue(printers.get(i));

            if (form.getLocalContext().getDefaultPrinterIsNotNull())
            {
                if (printers.get(i).getName().equals(form.getLocalContext().getDefaultPrinter().getIPrinterName()))
                {
                    row.setColDefault(true);
                }
            }
            if (form.getLocalContext().getDesignatedPrinterForNewResultsIsNotNull())
            {
                if (printers.get(i).getName().equals(form.getLocalContext().getDesignatedPrinterForNewResults().getIPrinterName()))
                {
                    row.setColDesignatedToNewResults(true);
                }
            }
            if (form.getLocalContext().getDesignatedPrinterForOCSOrderIsNotNull())
            {
                if (printers.get(i).getName().equals(form.getLocalContext().getDesignatedPrinterForOCSOrder().getIPrinterName()))
                {
                    row.setColDesignatedPrinterForOCSOrder(true);
                }
            }
        }                   
    }

    form.ccPrinters().initialize(null, PrinterScope.DEFAULT, false);        
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnOkClick() throws ims.framework.exceptions.PresentationLogicException
{
    PrinterVoCollection printers = new PrinterVoCollection();

    for (int i = 0; i < form.grdList().getRows().size(); i++)
    {
        printers.add(form.grdList().getRows().get(i).getValue());           
    }       

    form.getGlobalContext().setDefaultPrinter(form.getLocalContext().getDefaultPrinter());
    form.getGlobalContext().setDesignatedPrinterForNewResults(form.getLocalContext().getDesignatedPrinterForNewResults());
    form.getGlobalContext().setDesignatedPrinterForOCSOrder(form.getLocalContext().getDesignatedPrinterForOCSOrder());
    form.getGlobalContext().setPrintersSelected(printers);      
    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{       
    form.grdList().getRows().clear();

    PrinterVoCollection printers = form.getGlobalContext().getPrintersSelected();
    if (printers != null)
    {       
        for (int i = 0; i < printers.size(); i++)
        {               
            grdListRow row = form.grdList().getRows().newRow();
            row.setcolItems(printers.get(i).getName());
            row.setValue(printers.get(i));

            if (form.getLocalContext().getDefaultPrinterIsNotNull())
            {
                if (printers.get(i).getName().equals(form.getLocalContext().getDefaultPrinter().getIPrinterName()))
                {
                    row.setColDefault(true);
                }
            }
            if (form.getLocalContext().getDesignatedPrinterForNewResultsIsNotNull())
            {
                if (printers.get(i).getName().equals(form.getLocalContext().getDesignatedPrinterForNewResults().getIPrinterName()))
                {
                    row.setColDesignatedToNewResults(true);
                }
            }
            if (form.getLocalContext().getDesignatedPrinterForOCSOrderIsNotNull())
            {
                if (printers.get(i).getName().equals(form.getLocalContext().getDesignatedPrinterForOCSOrder().getIPrinterName()))
                {
                    row.setColDesignatedPrinterForOCSOrder(true);
                }
            }
        }                   
    }

    form.ccPrinters().initialize(null, PrinterScope.DEFAULT, false);        
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnOkClick() throws ims.framework.exceptions.PresentationLogicException
{
    PrinterVoCollection printers = new PrinterVoCollection();

    for (int i = 0; i < form.grdList().getRows().size(); i++)
    {
        printers.add(form.grdList().getRows().get(i).getValue());           
    }       

    form.getGlobalContext().setDefaultPrinter(form.getLocalContext().getDefaultPrinter());
    form.getGlobalContext().setDesignatedPrinterForNewResults(form.getLocalContext().getDesignatedPrinterForNewResults());
    form.getGlobalContext().setDesignatedPrinterForOCSOrder(form.getLocalContext().getDesignatedPrinterForOCSOrder());
    form.getGlobalContext().setPrintersSelected(printers);      
    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{       
    form.grdList().getRows().clear();

    PrinterVoCollection printers = form.getGlobalContext().getPrintersSelected();
    if (printers != null)
    {       
        for (int i = 0; i < printers.size(); i++)
        {               
            grdListRow row = form.grdList().getRows().newRow();
            row.setcolItems(printers.get(i).getName());
            row.setValue(printers.get(i));

            if (form.getLocalContext().getDefaultPrinterIsNotNull())
            {
                if (printers.get(i).getName().equals(form.getLocalContext().getDefaultPrinter().getIPrinterName()))
                {
                    row.setColDefault(true);
                }
            }
            if (form.getLocalContext().getDesignatedPrinterForNewResultsIsNotNull())
            {
                if (printers.get(i).getName().equals(form.getLocalContext().getDesignatedPrinterForNewResults().getIPrinterName()))
                {
                    row.setColDesignatedToNewResults(true);
                }
            }
            if (form.getLocalContext().getDesignatedPrinterForOCSOrderIsNotNull())
            {
                if (printers.get(i).getName().equals(form.getLocalContext().getDesignatedPrinterForOCSOrder().getIPrinterName()))
                {
                    row.setColDesignatedPrinterForOCSOrder(true);
                }
            }
        }                   
    }

    form.ccPrinters().initialize(null, PrinterScope.DEFAULT, false);        
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnOkClick() throws ims.framework.exceptions.PresentationLogicException
{
    PrinterVoCollection printers = new PrinterVoCollection();

    for (int i = 0; i < form.grdList().getRows().size(); i++)
    {
        printers.add(form.grdList().getRows().get(i).getValue());           
    }       

    form.getGlobalContext().setDefaultPrinter(form.getLocalContext().getDefaultPrinter());
    form.getGlobalContext().setDesignatedPrinterForNewResults(form.getLocalContext().getDesignatedPrinterForNewResults());
    form.getGlobalContext().setDesignatedPrinterForOCSOrder(form.getLocalContext().getDesignatedPrinterForOCSOrder());
    form.getGlobalContext().setPrintersSelected(printers);      
    engine.close(DialogResult.OK);
}
项目:openmaxims-linux    文件:Logic.java   
private void open()
{       
    form.grdList().getRows().clear();

    PrinterVoCollection printers = form.getGlobalContext().getPrintersSelected();
    if (printers != null)
    {       
        for (int i = 0; i < printers.size(); i++)
        {               
            grdListRow row = form.grdList().getRows().newRow();
            row.setcolItems(printers.get(i).getName());
            row.setValue(printers.get(i));

            if (form.getLocalContext().getDefaultPrinterIsNotNull())
            {
                if (printers.get(i).getName().equals(form.getLocalContext().getDefaultPrinter().getIPrinterName()))
                {
                    row.setColDefault(true);
                }
            }
            if (form.getLocalContext().getDesignatedPrinterForNewResultsIsNotNull())
            {
                if (printers.get(i).getName().equals(form.getLocalContext().getDesignatedPrinterForNewResults().getIPrinterName()))
                {
                    row.setColDesignatedToNewResults(true);
                }
            }
            if (form.getLocalContext().getDesignatedPrinterForOCSOrderIsNotNull())
            {
                if (printers.get(i).getName().equals(form.getLocalContext().getDesignatedPrinterForOCSOrder().getIPrinterName()))
                {
                    row.setColDesignatedPrinterForOCSOrder(true);
                }
            }
        }                   
    }

    form.ccPrinters().initialize(null, PrinterScope.DEFAULT, false);        
}