示例#1
0
        private bool PrintRow(Barcode_Model barcode, int iPrintQty, ref string sPrintCode)
        {
            string strError = string.Empty;

            barcode.PRINTQTY = iPrintQty;
            if (!Print_Func.PrintBarcode(barcode, ref strError))
            {
                //return false;
            }

            string strOnce = Print_Func.GetBoxContentStr(_type, barcode);

            if (string.IsNullOrEmpty(strOnce))
            {
                return(Common.Common_Func.ErrorMessage("外箱标签 " + barcode.SERIALNO + " 打印失败", "打印失败"));
            }


            string strContent = string.Empty;

            for (int i = 1; i <= iPrintQty; i++)
            {
                strContent += strOnce;
            }

            sPrintCode += strContent;
            return(true);
        }