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
b5fb8a06
Commit
b5fb8a06
authored
Feb 21, 2020
by
王宇航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首頁、廚房單打印
parent
ef185a8d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
public-base/build.gradle
+0
-1
public-base/src/main/java/com/gingersoft/gsa/cloud/base/application/GsaCloudApplication.java
+1
-0
public-base/src/main/java/com/gingersoft/gsa/cloud/base/utils/PrintUtils.java
+6
-2
No files found.
public-base/build.gradle
View file @
b5fb8a06
...
@@ -79,5 +79,4 @@ dependencies {
...
@@ -79,5 +79,4 @@ dependencies {
implementation
'org.greenrobot:greendao-generator:3.2.2'
implementation
'org.greenrobot:greendao-generator:3.2.2'
implementation
rootProject
.
ext
.
dependencies
[
"BaseRecyclerViewAdapter"
]
implementation
rootProject
.
ext
.
dependencies
[
"BaseRecyclerViewAdapter"
]
implementation
files
(
'libs/nexgon5lib.jar'
)
}
}
public-base/src/main/java/com/gingersoft/gsa/cloud/base/application/GsaCloudApplication.java
View file @
b5fb8a06
...
@@ -36,6 +36,7 @@ public class GsaCloudApplication extends BaseApplication {
...
@@ -36,6 +36,7 @@ public class GsaCloudApplication extends BaseApplication {
initGreenDao
();
initGreenDao
();
AppCrashHandler
.
getInstance
().
init
(
this
,
"test"
);
AppCrashHandler
.
getInstance
().
init
(
this
,
"test"
);
androidSetting
=
new
CurrentAndroidSetting
();
}
}
...
...
public-base/src/main/java/com/gingersoft/gsa/cloud/base/utils/PrintUtils.java
View file @
b5fb8a06
...
@@ -5,6 +5,7 @@ import android.graphics.Bitmap;
...
@@ -5,6 +5,7 @@ import android.graphics.Bitmap;
import
android.view.View
;
import
android.view.View
;
import
android.widget.LinearLayout
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.gingersoft.gsa.cloud.base.R
;
import
com.gingersoft.gsa.cloud.base.R
;
import
com.gingersoft.gsa.cloud.base.adapter.print.BillAdapter
;
import
com.gingersoft.gsa.cloud.base.adapter.print.BillAdapter
;
import
com.gingersoft.gsa.cloud.base.adapter.print.BillTypeAdapter
;
import
com.gingersoft.gsa.cloud.base.adapter.print.BillTypeAdapter
;
...
@@ -26,6 +27,7 @@ import java.text.SimpleDateFormat;
...
@@ -26,6 +27,7 @@ import java.text.SimpleDateFormat;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
androidx.recyclerview.widget.LinearLayoutManager
;
import
androidx.recyclerview.widget.LinearLayoutManager
;
import
androidx.recyclerview.widget.RecyclerView
;
import
androidx.recyclerview.widget.RecyclerView
;
...
@@ -201,12 +203,14 @@ public class PrintUtils {
...
@@ -201,12 +203,14 @@ public class PrintUtils {
TextView
tvOperator
=
view
.
findViewById
(
R
.
id
.
tv_operator
);
TextView
tvOperator
=
view
.
findViewById
(
R
.
id
.
tv_operator
);
RecyclerView
rvFood
=
view
.
findViewById
(
R
.
id
.
rv_kitchen_food
);
RecyclerView
rvFood
=
view
.
findViewById
(
R
.
id
.
rv_kitchen_food
);
TextView
tvTableNumber2
=
view
.
findViewById
(
R
.
id
.
tv_kitchen_print_table_number2
);
TextView
tvTableNumber2
=
view
.
findViewById
(
R
.
id
.
tv_kitchen_print_table_number2
);
if
(
foodList
!=
null
&&
foodList
.
size
()
>
0
)
{
if
(
foodList
!=
null
&&
foodList
.
size
()
>
0
)
{
KitChenPrintFoodAdapter
foodAdapter
=
new
KitChenPrintFoodAdapter
(
foodList
);
KitChenPrintFoodAdapter
foodAdapter
=
new
KitChenPrintFoodAdapter
(
foodList
);
rvFood
.
setLayoutManager
(
new
LinearLayoutManager
(
context
));
rvFood
.
setLayoutManager
(
new
LinearLayoutManager
(
context
));
rvFood
.
setAdapter
(
foodAdapter
);
rvFood
.
setAdapter
(
foodAdapter
);
//廚房位置
//廚房位置
tvKitChenLocation
.
setText
(
foodList
.
get
(
0
).
getPrintseting
());
if
(
foodList
.
get
(
0
)
!=
null
)
{
tvKitChenLocation
.
setText
(
foodList
.
get
(
0
).
getPrintseting
());
}
}
}
if
(
OpenTableManage
.
getDefault
().
getTableBean
()
!=
null
)
{
if
(
OpenTableManage
.
getDefault
().
getTableBean
()
!=
null
)
{
// 台號
// 台號
...
...
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