Commit 4222a1bf by Wyh

04-11 修改打印問題

parent 367c421b
......@@ -29,16 +29,16 @@ import java.util.Objects;
*/
public class PrintKitchen extends PrinterInIt {
String[] printLocation = new String[]{"k1", "k2"};
// String[] printLocation = new String[]{"k1", "k2"};
@Override
public Map<String, List<Bitmap>> getPrintBitmap(Context mContext) {
Map<String, List<Bitmap>> bitmapMaps = new HashMap<>();
List<OrderDetail> orderDetails = MyOrderManage.getInstance().getNewFoodList();
if (orderDetails != null) {
for (int i = 0; i < orderDetails.size(); i++) {
orderDetails.get(i).setPrintseting(printLocation[i % 2]);
}
// for (int i = 0; i < orderDetails.size(); i++) {
// orderDetails.get(i).setPrintseting(printLocation[i % 2]);
// }
//廚房單,可能會有多個IP打印
//獲得ip打印列表,
//再將食品數據根據打印位置分組。
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment