打印样式修改
This commit is contained in:
@@ -118,13 +118,13 @@ public class FeieyunPrintUtil {
|
|||||||
|
|
||||||
builder.append("<CB>" + pickupNumber + "</CB><BR><BR>");
|
builder.append("<CB>" + pickupNumber + "</CB><BR><BR>");
|
||||||
builder.append("<L>时间: " + date + " </L><BR><BR><BR>");
|
builder.append("<L>时间: " + date + " </L><BR><BR><BR>");
|
||||||
|
remark = StrUtil.emptyToDefault(remark, "");
|
||||||
if (productName.length() > 4 || remark.length() > 4) {
|
if (productName.length() > 4 || remark.length() > 4) {
|
||||||
builder.append("<B><BOLD>" + productName + " x " + number + "</BOLD></B><BR><BR>");
|
builder.append("<B><BOLD>" + productName + " x " + number + "</BOLD></B><BR><BR>");
|
||||||
builder.append("<B><BOLD>" + StrUtil.emptyToDefault(remark,"") + " </BOLD></B><BR>");
|
builder.append("<B><BOLD>" + remark + " </BOLD></B><BR>");
|
||||||
} else {
|
} else {
|
||||||
builder.append("<B><BOLD>" + productName + " x " + number + "</BOLD></B><BR><BR>");
|
builder.append("<B><BOLD>" + productName + " x " + number + "</BOLD></B><BR><BR>");
|
||||||
builder.append("<B><BOLD>" + StrUtil.emptyToDefault(remark,"") + " </BOLD></B><BR>");
|
builder.append("<B><BOLD>" + remark + " </BOLD></B><BR>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ public class PrinterUtils {
|
|||||||
builder.append("<C><B>").append(pickupNumber).append("</B></C><BR><BR>");
|
builder.append("<C><B>").append(pickupNumber).append("</B></C><BR><BR>");
|
||||||
}
|
}
|
||||||
builder.append("<S><L>时间: ").append(date).append(" </L></S><BR><BR><BR>");
|
builder.append("<S><L>时间: ").append(date).append(" </L></S><BR><BR><BR>");
|
||||||
|
remark = StrUtil.emptyToDefault(remark, "");
|
||||||
if (productName.length() > 4 || remark.length() > 4) {
|
if (productName.length() > 4 || remark.length() > 4) {
|
||||||
builder.append("<CS:32>").append(productName).append(" ").append(number).append("</CS><BR>");
|
builder.append("<CS:32>").append(productName).append(" ").append(number).append("</CS><BR>");
|
||||||
if (StrUtil.isNotBlank(remark)) {
|
if (StrUtil.isNotBlank(remark)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user