public void BarCodeGenerateTest() { var pdfGenerator = new PdfGenerator(); pdfGenerator.BarCodeGenerate("0000000000-0000"); Assert.IsTrue(true); }
public void BarCodeGeneratePdfFinishTest() { var pdfGenerator = new PdfGenerator(); pdfGenerator.BarCodeGenerate("0000000000-0000"); var result = pdfGenerator.PdfFinish(); Assert.IsNotNull(result); }
public MemoryStream GetPdfByInventoryNumber(string number) { var inventory = this.inventoryFacade.GetInventoryByNumber(number); if (inventory == null) { return(null); } var pdfGenerator = new PdfGenerator(); pdfGenerator.PdfInit(inventory.Item, inventory.Consignment); pdfGenerator.BarCodeGenerate(inventory.Number); return(pdfGenerator.PdfFinish()); }
public MemoryStream GetPdfByConsignmentNumber(int number) { var consignment = this.consignmentFacade.GetConsignmentByNumber(number); if (consignment == null) { return(null); } var pdfGenerator = new PdfGenerator(); pdfGenerator.PdfInit(consignment.Item, consignment); foreach (var inv in consignment.Inventories) { pdfGenerator.BarCodeGenerate(inv.Number); } return(pdfGenerator.PdfFinish()); }