예제 #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();
        }