Exemple #1
0
        private void reprintServiceTagButton_Click(object sender, EventArgs e)
        {
            if (serviceTagFormat == null)
            {
                ShowError("Błąd konfiguracji", "Nie wybrano szablonu etykiety Service Tag.");
                serviceTagFormatLinkLabel.Focus();
                return;
            }

            var orderNo = reprintServiceTagNoValue.Text;

            if (orderNo.Length == 0)
            {
                ShowError("Nieprawidłowy nr zlecenia", "Nr zlecenia jest wymagany.");
                reprintServiceTagNoValue.Focus();
                return;
            }

            var firstSerialNo = (int)reprintServiceTagStartNoValue.Value;

            var printJob = new ServiceTagPrintJob(orderNo, firstSerialNo)
            {
                LabelQuantity = (int)reprintServiceTagCountValue.Value,
                PrinterName   = settings.ServiceTagPrinterName
            };

            ShowPrintForm(new List <IPrintJob>(1)
            {
                printJob
            });
        }
Exemple #2
0
        private void reprintServiceTagButton_Click(object sender, EventArgs e)
        {
            if (serviceTagFormat == null)
            {
                ShowError("Błąd konfiguracji", "Nie wybrano szablonu etykiety Service Tag.");
                serviceTagFormatLinkLabel.Focus();
                return;
            }

            var orderNo = reprintServiceTagNoValue.Text;

            if (orderNo.Length == 0)
            {
                ShowError("Nieprawidłowy nr zlecenia", "Nr zlecenia jest wymagany.");
                reprintServiceTagNoValue.Focus();
                return;
            }

            var firstSerialNo = (int)reprintServiceTagStartNoValue.Value;

            var printJob = new ServiceTagPrintJob(orderNo, firstSerialNo)
            {
                LabelQuantity = (int)reprintServiceTagCountValue.Value,
                PrinterName = settings.ServiceTagPrinterName
            };

            ShowPrintForm(new List<IPrintJob>(1) { printJob });
        }