Exemplo n.º 1
0
        private void btnStampaEtichetta2_Click(object sender, EventArgs e)
        {
            lblMessaggio.Text = string.Empty;
            if (ddlStampanti.SelectedIndex == -1)
            {
                lblMessaggio.Text = "Selezionare la stampante";
                return;
            }
            string PrinterName = ddlStampanti.SelectedItem.ToString();

            if (string.IsNullOrEmpty(txtE2_Fornitore.Text) ||
                string.IsNullOrEmpty(txtE2_CodiceModello.Text) ||
                string.IsNullOrEmpty(txtE2_CodiceColore.Text) ||
                string.IsNullOrEmpty(txtE2_DescrizioneColore.Text) ||
                string.IsNullOrEmpty(txtE2_SKU.Text) ||
                string.IsNullOrEmpty(txtE2_Quantita.Text))
            {
                lblMessaggio.Text = "Ci sono campi vuoti nell'etichetta. Impossibile stampare";
                return;
            }

            if (nE2.Value <= 0)
            {
                lblMessaggio.Text = "Indicare il numero di etichette";
                return;
            }

            for (int i = 0; i < nE2.Value; i++)
            {
                ZebraHelper.EtichettaLuisVuitton_2(PrinterName, txtE2_SKU.Text, txtE2_DescrizioneColore.Text, txtE2_Quantita.Text, txtE2_Fornitore.Text, txtE2_CodiceModello.Text, txtE2_CodiceColore.Text);
            }
        }
Exemplo n.º 2
0
        private void btnStampaEtichetta1_Click(object sender, EventArgs e)
        {
            lblMessaggio.Text = string.Empty;
            if (ddlStampanti.SelectedIndex == -1)
            {
                lblMessaggio.Text = "Selezionare la stampante";
                return;
            }

            if (string.IsNullOrEmpty(txtE1_SKU.Text) ||
                string.IsNullOrEmpty(txtE1_Parziale.Text) ||
                string.IsNullOrEmpty(txtE1_Quantita.Text) ||
                string.IsNullOrEmpty(txtE1_StampatoDa.Text))
            {
                lblMessaggio.Text = "Ci sono campi vuoti nell'etichetta. Impossibile stampare";
                return;
            }

            if (nE1.Value <= 0)
            {
                lblMessaggio.Text = "Indicare il numero di etichette";
                return;
            }
            //            string PrinterName = @"\\10.30.1.10\ZDesigner CONF-CHANEL";
            string PrinterName = ddlStampanti.SelectedItem.ToString();

            for (int i = 0; i < nE1.Value; i++)
            {
                ZebraHelper.EtichettaLuisVuitton(PrinterName, txtE1_SKU.Text, txtE1_Parziale.Text, txtE1_Quantita.Text, txtE1_StampatoDa.Text);
            }
        }