use of ar.com.ergio.print.fiscal.view.AInfoFiscalPrinter.DialogActionListener in project lar_361 by comitsrl.
the class PosBasePanel method createInfoFiscalPrinter.
// printDocument
private void createInfoFiscalPrinter() {
// Fiscal printing action listener
final DialogActionListener dialogActionListener = new DialogActionListener() {
@Override
public void actionVoidPerformed() {
// Anulación de los documentos.
voidDocuments();
}
@Override
public void actionReprintFinished() {
// Al finalizar una reimpresión de ticket, se
// reestablece la interfaz para un nuevo pedido
newOrder();
stopGlassPane();
}
};
// Fiscal Printing status window
infoFiscalPrinter = new AInfoFiscalPrinter(dialogActionListener, getWindowNo(), Msg.parseTranslation(Env.getCtx(), "@PrintingFiscalDocument@"));
log.info("info fiscal printer windows created");
infoFiscalPrinter.setReprintButtonActive(true);
infoFiscalPrinter.setVoidButtonActive(true);
infoFiscalPrinter.setOkButtonActive(false);
}
use of ar.com.ergio.print.fiscal.view.AInfoFiscalPrinter.DialogActionListener in project lar_361 by comitsrl.
the class FiscalDocumentPrintManager method createInfoFiscalPrinter.
// print
/**
* Creates fiscal control window
*/
private void createInfoFiscalPrinter() {
// Fiscal printing action listener
final DialogActionListener dialogActionListener = new DialogActionListener() {
@Override
public void actionVoidPerformed() {
voidDocument();
}
@Override
public void actionReprintFinished() {
}
};
// Fiscal Printing status window
infoFiscalPrinter = new AInfoFiscalPrinter(dialogActionListener, m_WindowNo, Msg.parseTranslation(Env.getCtx(), "@PrintingFiscalDocument@"));
log.info("info fiscal printer windows created");
/* @fchiappano Se comentan botones de acción, obsoletos en el cambio de ejecución de la IF.
infoFiscalPrinter.setReprintButtonActive(true);
infoFiscalPrinter.setVoidButtonActive(true);
infoFiscalPrinter.setOkButtonActive(false); */
}
Aggregations