This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package mx.hash.print; | |
| import jssc.SerialPort; | |
| import jssc.SerialPortException; | |
| public class PrinterTest { | |
| public static void main(String[] args) { | |
| SerialPort serialPort = new SerialPort("COM7"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| objecto.setCantidad(data.getInt("cantidad")); | |
| objecto.setCantidad(data.getDouble("iva")); | |
| objecto.setCantidad(data.getDouble("precio")); | |
| objecto.setCantidad(data.getDouble("ganancia")); | |
| objecto.setCantidad(data.getDouble("ieps")); | |
| objecto.setCantidad(data.getString("codigo")); | |
| objecto.setCantidad(data.getInt("ventas")); | |
| objecto.setCantidad(data.getDouble("ganancia")); | |
| objecto.setCantidad(data.getDouble("iva22")); | |
| objecto.setCantidad(data.getDouble("iva12")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mogrify -resize 50x50% *.jpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mvn exec:java -Dexec.mainClass="mx.hashCode.unica.App" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ventas.stream().forEach((venta) -> { | |
| estados.stream().filter((estado) -> (Objects.equals(venta.getPc(), estado.getPc()))).filter((estado) -> (estado.getPcStatus() != 5)).forEach((_item) -> { | |
| imprimibles.add(venta); | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for (PcUltimaVentaVO venta: ventas) { | |
| for (PcStatusVO estado: estados) { | |
| if (Objects.equals(venta.getPc(), estado.getPc())) { | |
| if (estado.getPcStatus() != 5) { | |
| imprimibles.add(venta); | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <dependency> | |
| <groupId>org.apache.pdfbox</groupId> | |
| <artifactId>pdfbox</artifactId> | |
| <version>2.0.8</version> | |
| </dependency> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package mx.hash.impresionpdf; | |
| import java.awt.print.PrinterException; | |
| import java.awt.print.PrinterJob; | |
| import java.io.File; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package mx.hash.printitext; | |
| import com.itextpdf.kernel.geom.PageSize; | |
| import com.itextpdf.kernel.pdf.PdfDocument; | |
| import com.itextpdf.kernel.pdf.PdfWriter; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package mx.hash.impresioninmediata; | |
| import com.itextpdf.kernel.geom.PageSize; | |
| import com.itextpdf.kernel.pdf.PdfDocument; | |
| import com.itextpdf.kernel.pdf.PdfWriter; |