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); }
private bool PrintRow(Barcode_Model barcode, int iPrintQty, ref string sPrintCode) { VoucherType type = (VoucherType)barcode.VOUCHERTYPE.ToInt32(); string strLogo = Print_Func.GetBoxLogoStr(type); string strClear = Print_Func.GetBoxClearStr(type); 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 += strLogo; sPrintCode += strContent; sPrintCode += strClear; return(true); }
private bool PrintRow(Barcode_Model barcode, int iPrintQty, ref string sPrintCode) { string strOnce = Print_Func.GetBoxContentStr(VoucherType.任意单据, 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); }