|
@@ -2,6 +2,7 @@ package com.uas.pda_smart_com.util;
|
|
|
|
|
|
import android.content.Context;
|
|
|
import android.text.TextUtils;
|
|
|
+import android.util.Log;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
@@ -12,6 +13,7 @@ import com.uas.pda_smart_com.tools.SharedPreUtil;
|
|
|
public class PrintUtils {
|
|
|
|
|
|
public static int printBar(Context context, String dataJson, int dpi, String printTemplate) {
|
|
|
+ Log.e("listArraythree1",dataJson);
|
|
|
try {
|
|
|
if (dpi <= 0) {
|
|
|
dpi = 203;
|
|
@@ -20,7 +22,7 @@ public class PrintUtils {
|
|
|
if (TextUtils.isEmpty(printTemplate)) {
|
|
|
printTemplate = SharedPreUtil.getString(context, Constants.FLAG.PRINT_TEMPLATE_CACHE, "");
|
|
|
}
|
|
|
-
|
|
|
+ Log.e("listArraythree2",printTemplate);
|
|
|
int offset = 6,
|
|
|
h = 400,
|
|
|
v = 800,
|