コード例 #1
0
        public void PrintIdLabel(Receipt receipt)
        {
            ZPLLabel label = ZPLLabel.GetLabelByName("ID_LABEL");

            label.SetLabelValues(new object[] { receipt.UnitTrackingId });
            label.Print();
        }
コード例 #2
0
        void printButton_Click(object sender, EventArgs e)
        {
            if (labelText.Text.Length <= 0)
            {
                return;
            }

            GenericLabel lbl = GenericLabel.GetGenericLabel();

            lbl.SetLabelValues(labelText.Text);

            ZPLLabel zplLabel = ZPLLabel.GetLabelByName("CHARTER_UNIVERSAL");

            zplLabel.SetLabelValues(lbl.LabelValues);


            //DellAslLpnLabel label = DellAslLpnLabel.GetDellAslLpnLabel();
            //label.SetLabelValues("ASL5815204","D5551");

            //ZPLLabel zplLabel = ZPLLabel.GetLabelByName("DELL_ASL_LPN");
            //zplLabel.SetLabelValues(label.LabelValues);

            for (int i = 1; i <= labelCount.Value; i++)
            {
                zplLabel.Print();
            }
        }
コード例 #3
0
ファイル: LabelPrinter.cs プロジェクト: ewin66/SCOUT_NS
        public static bool PrintDellLpnLabel(string lpn, string partNumber)
        {
            DellAslLpnLabel label = DellAslLpnLabel.GetDellAslLpnLabel();

            label.SetLabelValues(lpn, partNumber);
            ZPLLabel zplLabel = ZPLLabel.GetLabelByName("DELL_ASL_LPN");

            zplLabel.SetLabelValues(label.LabelValues);
            return(zplLabel.Print());
        }
コード例 #4
0
        // TODO: delegate method to abstract label printing method.
        public void PrintReceiveLabel(Receipt receipt)
        {
            // Guard
            // Do not print labels for serialized units on carts
            // TODO: Write Specification(pattern) for this!
            if (receipt.ReceivingCart != null && receipt.Item.SerializedUnit != null)
            {
                return;
            }

            //ReceivingLabel label = ReceivingLabel.GetReceivingLabel();
            ZPLLabel label = ZPLLabel.GetLabelByName("CHARTER_REC");

            label.SetLabelValues(
                ReceivingLabelDetail.GetLabelDetailByLotId(
                    receipt.UnitTrackingId).ToLabelArgs());

            label.Print();
        }