Пример #1
0
 public void BarCodeGeneratePdfFinishTest()
 {
     var pdfGenerator = new PdfGenerator();
     pdfGenerator.BarCodeGenerate("0000000000-0000");
     var result = pdfGenerator.PdfFinish();
     Assert.IsNotNull(result);
 }
Пример #2
0
        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();
        }
Пример #3
0
 public void BarCodeGenerateTest()
 {
    var pdfGenerator = new PdfGenerator();
     pdfGenerator.BarCodeGenerate("0000000000-0000");
     Assert.IsTrue(true);
 }
Пример #4
0
        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();
        }