コード例 #1
0
        protected void PrintItemViewLabel(IPrinterInfo printerInfo, InvItemViewModel item, ProductionJob job = null)
        {
            PrdnZplMultiParam parm = new PrdnZplMultiParam(item);

            if (job != null)
            {
                parm.Priority = job.IfNotNull(j => j.Priority).IfNotNull(p => p.Name);

                parm.SetPrdnOrderDisp(
                    job.IfNotNull(j => j.Run).IfNotNull(r => r.PrdnOrderNo),
                    job.IfNotNull(j => j.Run).IfNotNull(r => r.PrdnType.IfNotNull(t => t.Code)),
                    job.IfNotNull(j => j.RunSeqNo));

                parm.ShipCD = job.IfNotNull(j => j.ShipMethodCD);
            }

            ZplPrinterHelper.NetworkMultiZpl(printerInfo.PrinterHostName, (int)printerInfo.PrinterPort, parm);
        }
コード例 #2
0
 public PrdnZplMultiParam(InvItemViewModel item)
 {
     SerialNo = item.SerialNo;
     ProdCD = item.ProdCD;
     Descr = item.Description;
     LoadFromCharCompOpts(item.ItemOptions);
 }