Beispiel #1
0
        internal void PrintStickers(List <NomenclatureData> wareList)
        {
            List <Stickers> stickers = createStickers(wareList);

            Stickers.Rows.Clear();
            stickers.ForEach(sticker =>
            {
                var row = Stickers.GetNewRow(this);
                row.SetRefValueToRowCell(this, Sticker, sticker);
                row.AddRowToTable(this);
            });

            if (Write() != WritingResult.Success)
            {
                "Невдала спроба запису документу. Спробуйте ще раз".WarningBox();
                return;
            }

            var stickersCreator = new StickersPrintingHelper(stickers);

            stickersCreator.Print();
        }