Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
supplier
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王宇航
supplier
Commits
4222a1bf
Commit
4222a1bf
authored
Apr 11, 2020
by
Wyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
04-11 修改打印問題
parent
367c421b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
print-module/src/main/java/com/joe/print/mvp/print/PrintKitchen.java
+4
-4
No files found.
print-module/src/main/java/com/joe/print/mvp/print/PrintKitchen.java
View file @
4222a1bf
...
...
@@ -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打印列表,
//再將食品數據根據打印位置分組。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment