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
fa4a065d
Commit
fa4a065d
authored
Nov 03, 2020
by
宁斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加skyorder打印頁
parent
a1867471
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
542 additions
and
330 deletions
+542
-330
base-module/build.gradle
+6
-0
base-module/proguard-rules.pro
+6
-0
base-module/src/main/java/com/gingersoft/gsa/cloud/base/utils/ClipboardUtils.java
+101
-0
base-module/src/main/java/com/gingersoft/gsa/cloud/base/utils/ColorUtil.java
+27
-0
base-module/src/main/java/com/gingersoft/gsa/cloud/constans/GoldConstants.java
+1
-1
base-module/src/main/java/com/gingersoft/gsa/cloud/menu/Menu.java
+12
-0
base-module/src/main/java/com/gingersoft/gsa/cloud/ui/activity/WebActivity.java
+1
-1
base-module/src/main/java/com/gingersoft/gsa/cloud/ui/widget/dialog/BaseRetryDialog.java
+2
-2
base-module/src/main/res/drawable/shape_rect_top_radius_black_5.xml
+3
-2
base-module/src/main/res/drawable/shape_rect_top_radius_white_5.xml
+4
-3
database-module/src/main/java/com/gingersoft/gsa/cloud/database/bean/ComboItem.java
+0
-37
database-module/src/main/java/com/gingersoft/gsa/cloud/database/bean/Function.java
+87
-145
database-module/src/main/java/com/gingersoft/gsa/cloud/database/greendao/FunctionDao.java
+3
-3
database-module/src/main/java/com/gingersoft/gsa/cloud/database/utils/FoodComboDaoUtils.java
+0
-25
main-module/src/main/java/com/gingersoft/gsa/cloud/main/mvp/ui/activity/MainActivity.java
+2
-0
main-module/src/main/java/com/gingersoft/gsa/cloud/main/mvp/ui/activity/NewMainActivity.java
+5
-5
order-base/src/main/java/com/gingersoft/gsa/cloud/base/order/billItem/DiscountItem.java
+0
-3
order-base/src/main/java/com/gingersoft/gsa/cloud/base/order/commodity/Commodity.java
+0
-10
print-module/src/main/java/com/joe/print/mvp/ui/activity/PrintTestActivity.java
+1
-1
print-module/src/main/java/com/joe/print/mvp/ui/fragment/IpPrintListActivityFragment.java
+1
-1
table-module/src/main/java/com/gingersoft/gsa/cloud/table/ComponentTable.java
+1
-0
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/model/bean/MealSummary.java
+20
-0
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/TablePresenter.java
+14
-6
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/activity/TableActivity.java
+5
-4
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/activity/orderManager/OrderDetailActivity.java
+1
-1
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/adapter/BottomFunctionAdapter.java
+38
-13
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/fragment/AllOrderFragment.java
+0
-2
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/widget/DiscountDialog.java
+2
-1
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/widget/KeyboardDialog.java
+30
-17
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/widget/SkyOrderDialog.java
+0
-0
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/widget/SplitTableDialog.java
+1
-1
table-module/src/main/res/layout/activity_order_center.xml
+4
-0
table-module/src/main/res/layout/table_activity_table.xml
+5
-8
table-module/src/main/res/layout/table_dialog_skyorder.xml
+43
-20
table-module/src/main/res/layout/table_input_skyorder_people_number.xml
+17
-18
table-module/src/main/res/layout/table_item_skyorder.xml
+35
-0
table-module/src/main/res/layout/table_item_table_bottom.xml
+0
-0
table-module/src/main/res/menu/table_function_menu.xml
+39
-0
table-module/src/main/res/menu/table_order_content_menu.xml
+25
-0
table-module/src/main/res/mipmap-xhdpi/table_skyorder_qrcode.png
+0
-0
No files found.
base-module/build.gradle
View file @
fa4a065d
...
@@ -112,15 +112,21 @@ dependencies {
...
@@ -112,15 +112,21 @@ dependencies {
api
'com.github.xuexiangjys:RxUtil2:1.1.5'
api
'com.github.xuexiangjys:RxUtil2:1.1.5'
//时间选择器
//时间选择器
api
rootProject
.
ext
.
dependencies
[
"pickerview"
]
api
rootProject
.
ext
.
dependencies
[
"pickerview"
]
//底部功能導航view
api
'com.github.ittianyu:BottomNavigationViewEx:2.0.4'
api
rootProject
.
ext
.
dependencies
[
"permissionx"
]
api
rootProject
.
ext
.
dependencies
[
"permissionx"
]
api
rootProject
.
ext
.
dependencies
[
"design"
]
api
rootProject
.
ext
.
dependencies
[
"design"
]
api
rootProject
.
ext
.
dependencies
[
"appcompat-v7"
]
api
rootProject
.
ext
.
dependencies
[
"appcompat-v7"
]
implementation
'cn.bingoogolapple:bga-photopicker:1.2.8@aar'
implementation
'cn.bingoogolapple:bga-photopicker:1.2.8@aar'
implementation
'cn.bingoogolapple:bga-baseadapter:1.2.9@aar'
implementation
'cn.bingoogolapple:bga-baseadapter:1.2.9@aar'
implementation
'cn.bingoogolapple:bga-flowlayout:1.0.0@aar'
implementation
'cn.bingoogolapple:bga-flowlayout:1.0.0@aar'
implementation
'cn.onestravel.one:one_bottom_navigationbar:1.1.1'
api
'androidx.core:core-ktx:+'
api
'androidx.core:core-ktx:+'
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
api
'com.github.huangyanbin:SmartTable:2.2.0'
api
'com.github.huangyanbin:SmartTable:2.2.0'
...
...
base-module/proguard-rules.pro
View file @
fa4a065d
...
@@ -19,3 +19,9 @@
...
@@ -19,3 +19,9 @@
# If you keep the line number information, uncomment this to
# If you keep the line number information, uncomment this to
# hide the original source file name.
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile
-
keep
public
class
com
.
google
.
android
.
material
.
bottomnavigation
.
BottomNavigationView
{
*
;
}
-
keep
public
class
com
.
google
.
android
.
material
.
bottomnavigation
.
BottomNavigationMenuView
{
*
;
}
-
keep
public
class
com
.
google
.
android
.
material
.
bottomnavigation
.
BottomNavigationPresenter
{
*
;
}
-
keep
public
class
com
.
google
.
android
.
material
.
bottomnavigation
.
BottomNavigationItemView
{
*
;
}
base-module/src/main/java/com/gingersoft/gsa/cloud/base/utils/ClipboardUtils.java
0 → 100644
View file @
fa4a065d
package
com
.
gingersoft
.
gsa
.
cloud
.
base
.
utils
;
import
android.content.ClipData
;
import
android.content.ClipboardManager
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.net.Uri
;
import
com.gingersoft.gsa.cloud.base.application.GsaCloudApplication
;
/**
* <pre>
* author: Blankj
* blog : http://blankj.com
* time : 2016/09/25
* desc : 剪贴板相关工具类
* </pre>
*/
public
final
class
ClipboardUtils
{
private
ClipboardUtils
()
{
throw
new
UnsupportedOperationException
(
"u can't instantiate me..."
);
}
/**
* 复制文本到剪贴板
*
* @param text 文本
*/
public
static
void
copyText
(
final
CharSequence
text
)
{
ClipboardManager
cm
=
(
ClipboardManager
)
GsaCloudApplication
.
getAppContext
().
getSystemService
(
Context
.
CLIPBOARD_SERVICE
);
//noinspection ConstantConditions
cm
.
setPrimaryClip
(
ClipData
.
newPlainText
(
"text"
,
text
));
}
/**
* 获取剪贴板的文本
*
* @return 剪贴板的文本
*/
public
static
CharSequence
getText
()
{
ClipboardManager
cm
=
(
ClipboardManager
)
GsaCloudApplication
.
getAppContext
().
getSystemService
(
Context
.
CLIPBOARD_SERVICE
);
//noinspection ConstantConditions
ClipData
clip
=
cm
.
getPrimaryClip
();
if
(
clip
!=
null
&&
clip
.
getItemCount
()
>
0
)
{
return
clip
.
getItemAt
(
0
).
coerceToText
(
GsaCloudApplication
.
getAppContext
());
}
return
null
;
}
/**
* 复制uri到剪贴板
*
* @param uri uri
*/
public
static
void
copyUri
(
final
Uri
uri
)
{
ClipboardManager
cm
=
(
ClipboardManager
)
GsaCloudApplication
.
getAppContext
().
getSystemService
(
Context
.
CLIPBOARD_SERVICE
);
//noinspection ConstantConditions
cm
.
setPrimaryClip
(
ClipData
.
newUri
(
GsaCloudApplication
.
getAppContext
().
getContentResolver
(),
"uri"
,
uri
));
}
/**
* 获取剪贴板的uri
*
* @return 剪贴板的uri
*/
public
static
Uri
getUri
()
{
ClipboardManager
cm
=
(
ClipboardManager
)
GsaCloudApplication
.
getAppContext
().
getSystemService
(
Context
.
CLIPBOARD_SERVICE
);
//noinspection ConstantConditions
ClipData
clip
=
cm
.
getPrimaryClip
();
if
(
clip
!=
null
&&
clip
.
getItemCount
()
>
0
)
{
return
clip
.
getItemAt
(
0
).
getUri
();
}
return
null
;
}
/**
* 复制意图到剪贴板
*
* @param intent 意图
*/
public
static
void
copyIntent
(
final
Intent
intent
)
{
ClipboardManager
cm
=
(
ClipboardManager
)
GsaCloudApplication
.
getAppContext
().
getSystemService
(
Context
.
CLIPBOARD_SERVICE
);
//noinspection ConstantConditions
cm
.
setPrimaryClip
(
ClipData
.
newIntent
(
"intent"
,
intent
));
}
/**
* 获取剪贴板的意图
*
* @return 剪贴板的意图
*/
public
static
Intent
getIntent
()
{
ClipboardManager
cm
=
(
ClipboardManager
)
GsaCloudApplication
.
getAppContext
().
getSystemService
(
Context
.
CLIPBOARD_SERVICE
);
//noinspection ConstantConditions
ClipData
clip
=
cm
.
getPrimaryClip
();
if
(
clip
!=
null
&&
clip
.
getItemCount
()
>
0
)
{
return
clip
.
getItemAt
(
0
).
getIntent
();
}
return
null
;
}
}
base-module/src/main/java/com/gingersoft/gsa/cloud/base/utils/ColorUtil.java
0 → 100644
View file @
fa4a065d
package
com
.
gingersoft
.
gsa
.
cloud
.
base
.
utils
;
import
android.graphics.Color
;
import
androidx.annotation.ColorInt
;
/**
* @author : bin
* @create date: 2020-11-03
* @update date: 2020-11-03
* @description:
*/
public
class
ColorUtil
{
private
ColorUtil
()
{
}
public
static
String
parseColorInt
(
@ColorInt
int
color
)
{
return
String
.
format
(
"#%06X"
,
0xFFFFFF
&
color
);
}
public
static
boolean
isColdColor
(
@ColorInt
int
color
)
{
float
[]
hsv
=
new
float
[
3
];
Color
.
colorToHSV
(
color
,
hsv
);
return
hsv
[
2
]
<=
0.8f
;
}
}
base-module/src/main/java/com/gingersoft/gsa/cloud/constans/GoldConstants.java
View file @
fa4a065d
...
@@ -9,7 +9,7 @@ package com.gingersoft.gsa.cloud.constans;
...
@@ -9,7 +9,7 @@ package com.gingersoft.gsa.cloud.constans;
*/
*/
public
interface
GoldConstants
{
public
interface
GoldConstants
{
int
bottomFunctionColCount
=
4
;
int
bottomFunctionColCount
=
5
;
int
restaurantId
=
26
;
int
restaurantId
=
26
;
int
refreshTime
=
3
;
int
refreshTime
=
3
;
...
...
base-module/src/main/java/com/gingersoft/gsa/cloud/menu/Menu.java
0 → 100644
View file @
fa4a065d
package
com
.
gingersoft
.
gsa
.
cloud
.
menu
;
/**
* @author : bin
* @create date: 2020-11-03
* @update date: 2020-11-03
* @description:
*/
public
interface
Menu
{
}
base-module/src/main/java/com/gingersoft/gsa/cloud/ui/activity/WebActivity.java
View file @
fa4a065d
...
@@ -487,7 +487,7 @@ public class WebActivity extends BaseActivity<BasePresenter> implements IView {
...
@@ -487,7 +487,7 @@ public class WebActivity extends BaseActivity<BasePresenter> implements IView {
@Override
@Override
public
boolean
onCreateOptionsMenu
(
Menu
menu
)
{
public
boolean
onCreateOptionsMenu
(
Menu
menu
)
{
// getMenuInflater().inflate(R.
menu.menu_mTopBar_web_activity, m
enu);
// getMenuInflater().inflate(R.
Menu.menu_mTopBar_web_activity, M
enu);
return
true
;
return
true
;
}
}
...
...
base-module/src/main/java/com/gingersoft/gsa/cloud/ui/widget/dialog/BaseRetryDialog.java
View file @
fa4a065d
...
@@ -46,8 +46,8 @@ public abstract class BaseRetryDialog extends Dialog {
...
@@ -46,8 +46,8 @@ public abstract class BaseRetryDialog extends Dialog {
private
static
final
String
TAG
=
"BaseRetryDialog"
;
private
static
final
String
TAG
=
"BaseRetryDialog"
;
private
Context
mContext
;
private
Context
mContext
;
public
BaseRetryDialog
(
@NonNull
Context
context
)
{
public
BaseRetryDialog
(
@NonNull
Context
context
,
int
style
)
{
super
(
context
,
R
.
style
.
MyDialogTheme2
);
super
(
context
,
style
);
mContext
=
context
;
mContext
=
context
;
}
}
...
...
base-module/src/main/res/drawable/shape_rect_top_radius_black_5.xml
View file @
fa4a065d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
android:shape=
"rectangle"
>
android:shape=
"rectangle"
>
<solid
android:color=
"#2B2B2B"
/>
<solid
android:color=
"#2B2B2B"
/>
<corners
android:topLeftRadius=
"@dimen/normal_space5"
/>
<corners
android:topRightRadius=
"@dimen/normal_space5"
/>
<corners
android:topLeftRadius=
"@dimen/normal_space5"
android:topRightRadius=
"@dimen/normal_space5"
/>
</shape>
</shape>
\ No newline at end of file
base-module/src/main/res/drawable/shape_rect_top_radius_white_5.xml
View file @
fa4a065d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
android:shape=
"rectangle"
>
android:shape=
"rectangle"
>
<solid
android:color=
"@color/theme_white_color"
/>
<solid
android:color=
"@color/theme_white_color"
/>
<corners
android:topLeftRadius=
"@dimen/normal_space5"
/>
<corners
android:topLeftRadius=
"@dimen/normal_space5"
<corners
android:topRightRadius=
"@dimen/normal_space5"
/>
android:topRightRadius=
"@dimen/normal_space5"
/>
</shape>
</shape>
\ No newline at end of file
database-module/src/main/java/com/gingersoft/gsa/cloud/database/bean/ComboItem.java
View file @
fa4a065d
...
@@ -21,43 +21,6 @@ import lombok.Data;
...
@@ -21,43 +21,6 @@ import lombok.Data;
@Entity
@Entity
public
class
ComboItem
{
public
class
ComboItem
{
/**
* ID
*/
// @Property(nameInDb = "_id")
// @Id(autoincrement = true)
// private Long id;
//
// private Long comId;
//
// private Long fid;
//
// private Long qty;
//
// private Double diffAmt;
//
// private Long seqNo;
//
// private Long visible;
//
// private Date createTime;
//
// private String createBy;
//
// private Date updateTime;
//
// private Long conditions;
//
// private Long isRT;
//
// private Byte deletes;
//
// private Long posId;
//
// private Long restaurant_id;
//
// private Byte isMainAccount;
@Property
(
nameInDb
=
"_id"
)
@Property
(
nameInDb
=
"_id"
)
@Id
(
autoincrement
=
true
)
@Id
(
autoincrement
=
true
)
private
Long
id
;
private
Long
id
;
...
...
database-module/src/main/java/com/gingersoft/gsa/cloud/database/bean/Function.java
View file @
fa4a065d
...
@@ -8,6 +8,9 @@ import org.greenrobot.greendao.annotation.NotNull;
...
@@ -8,6 +8,9 @@ import org.greenrobot.greendao.annotation.NotNull;
import
org.greenrobot.greendao.annotation.Property
;
import
org.greenrobot.greendao.annotation.Property
;
import
org.greenrobot.greendao.annotation.Transient
;
import
org.greenrobot.greendao.annotation.Transient
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
/**
* 作者:ELEGANT_BIN
* 作者:ELEGANT_BIN
* 版本:1.6.0
* 版本:1.6.0
...
@@ -15,7 +18,8 @@ import org.greenrobot.greendao.annotation.Transient;
...
@@ -15,7 +18,8 @@ import org.greenrobot.greendao.annotation.Transient;
* 修订历史:2020-01-02
* 修订历史:2020-01-02
* 描述:
* 描述:
*/
*/
@Getter
@Setter
@Entity
@Entity
public
class
Function
{
public
class
Function
{
...
@@ -24,7 +28,7 @@ public class Function {
...
@@ -24,7 +28,7 @@ public class Function {
private
Long
dbid
;
private
Long
dbid
;
@NotNull
@NotNull
private
Long
id
;
private
int
id
;
private
int
parentId
;
private
int
parentId
;
private
int
groupId
;
private
int
groupId
;
...
@@ -32,14 +36,17 @@ public class Function {
...
@@ -32,14 +36,17 @@ public class Function {
private
String
resName
;
private
String
resName
;
private
String
resUrl
;
private
String
resUrl
;
private
String
imageURL
;
private
String
imageURL
;
/**暫時沒有imageURL,用本地資源代替*/
/**
* 暫時沒有imageURL,用本地資源代替
*/
private
int
icRes
;
private
int
icRes
;
/**狀態
/**
* 狀態
* 0 未开通
* 0 未开通
* 1 正常
* 1 正常
* 2 有時間限制
* 2 有時間限制
* 3 關閉
* 3 關閉
*
*
/
*/
private
int
status
;
private
int
status
;
@Transient
@Transient
...
@@ -74,26 +81,18 @@ public class Function {
...
@@ -74,26 +81,18 @@ public class Function {
@Transient
@Transient
private
String
lable
;
private
String
lable
;
@Generated
(
hash
=
756881616
)
/**
public
Function
(
Long
dbid
,
@NotNull
Long
id
,
int
parentId
,
int
groupId
,
long
effectiveTime
,
* 底部功能按鈕是否凸起
String
resName
,
String
resUrl
,
String
imageURL
,
int
icRes
,
int
status
)
{
*/
this
.
dbid
=
dbid
;
@Transient
this
.
id
=
id
;
private
boolean
raisedBottom
=
false
;
this
.
parentId
=
parentId
;
this
.
groupId
=
groupId
;
this
.
effectiveTime
=
effectiveTime
;
this
.
resName
=
resName
;
this
.
resUrl
=
resUrl
;
this
.
imageURL
=
imageURL
;
this
.
icRes
=
icRes
;
this
.
status
=
status
;
}
@Generated
(
hash
=
133141990
)
@Generated
(
hash
=
133141990
)
public
Function
()
{
public
Function
()
{
}
}
public
Function
(
Long
id
,
String
resName
,
int
textColorRes
,
int
textSizeRes
,
int
iconRes
)
{
public
Function
(
int
id
,
String
resName
,
int
textColorRes
,
int
textSizeRes
,
int
iconRes
)
{
this
.
id
=
id
;
this
.
id
=
id
;
this
.
resName
=
resName
;
this
.
resName
=
resName
;
this
.
textColorRes
=
textColorRes
;
this
.
textColorRes
=
textColorRes
;
...
@@ -108,7 +107,7 @@ public class Function {
...
@@ -108,7 +107,7 @@ public class Function {
this
.
textSize
=
textSize
;
this
.
textSize
=
textSize
;
}
}
public
Function
(
Long
id
,
int
parentId
,
int
groupId
,
String
resName
,
int
icRes
,
int
status
)
{
public
Function
(
int
id
,
int
parentId
,
int
groupId
,
String
resName
,
int
icRes
,
int
status
)
{
this
.
id
=
id
;
this
.
id
=
id
;
this
.
parentId
=
parentId
;
this
.
parentId
=
parentId
;
this
.
groupId
=
groupId
;
this
.
groupId
=
groupId
;
...
@@ -129,140 +128,108 @@ public class Function {
...
@@ -129,140 +128,108 @@ public class Function {
this
.
iconRes
=
iconRes
;
this
.
iconRes
=
iconRes
;
}
}
public
Long
getId
()
{
@Generated
(
hash
=
607723885
)
return
id
;
public
Function
(
Long
dbid
,
int
id
,
int
parentId
,
int
groupId
,
long
effectiveTime
,
String
resName
,
}
String
resUrl
,
String
imageURL
,
int
icRes
,
int
status
)
{
this
.
dbid
=
dbid
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
this
.
id
=
id
;
}
this
.
parentId
=
parentId
;
this
.
groupId
=
groupId
;
public
int
getStatus
()
{
return
status
;
}
public
void
setStatus
(
int
status
)
{
this
.
status
=
status
;
}
public
long
getEffectiveTime
()
{
return
effectiveTime
;
}
public
void
setEffectiveTime
(
long
effectiveTime
)
{
this
.
effectiveTime
=
effectiveTime
;
this
.
effectiveTime
=
effectiveTime
;
}
public
String
getResName
()
{
return
resName
;
}
public
void
setResName
(
String
resName
)
{
this
.
resName
=
resName
;
this
.
resName
=
resName
;
}
public
String
getResUrl
()
{
return
resUrl
;
}
public
void
setResUrl
(
String
resUrl
)
{
this
.
resUrl
=
resUrl
;
this
.
resUrl
=
resUrl
;
}
public
String
getImageURL
()
{
return
imageURL
;
}
public
void
setImageURL
(
String
imageURL
)
{
this
.
imageURL
=
imageURL
;
this
.
imageURL
=
imageURL
;
this
.
icRes
=
icRes
;
this
.
status
=
status
;
}
}
public
int
getNameRes
()
{
@Override
return
nameRes
;
public
String
toString
()
{
}
return
"Function{"
+
"dbid="
+
dbid
+
public
void
setNameRes
(
int
nameRes
)
{
", id="
+
id
+
this
.
nameRes
=
nameRes
;
", parentId="
+
parentId
+
}
", groupId="
+
groupId
+
", status="
+
status
+
public
int
getTextColor
()
{
", effectiveTime="
+
effectiveTime
+
return
textColor
;
", resName='"
+
resName
+
'\''
+
}
", resUrl='"
+
resUrl
+
'\''
+
", imageURL='"
+
imageURL
+
'\''
+
public
void
setTextColor
(
int
textColor
)
{
", icRes="
+
icRes
+
this
.
textColor
=
textColor
;
", textColor="
+
textColor
+
}
", backgroundColor="
+
backgroundColor
+
", textSize="
+
textSize
+
public
int
getBackgroundColor
()
{
", nameRes="
+
nameRes
+
return
backgroundColor
;
", textColorRes="
+
textColorRes
+
}
", backgroundColorRes="
+
backgroundColorRes
+
", textSizeRes="
+
textSizeRes
+
public
void
setBackgroundColor
(
int
backgroundColor
)
{
", iconRes="
+
iconRes
+
this
.
backgroundColor
=
backgroundColor
;
", lable='"
+
lable
+
'\''
+
'}'
;
}
}
public
int
getTextSize
()
{
public
Long
getDbid
()
{
return
t
extSize
;
return
t
his
.
dbid
;
}
}
public
void
set
TextSize
(
int
textSize
)
{
public
void
set
Dbid
(
Long
dbid
)
{
this
.
textSize
=
textSize
;
this
.
dbid
=
dbid
;
}
}
public
int
get
TextColorRes
()
{
public
int
get
Id
()
{
return
t
extColorRes
;
return
t
his
.
id
;
}
}
public
void
set
TextColorRes
(
int
textColorRes
)
{
public
void
set
Id
(
int
id
)
{
this
.
textColorRes
=
textColorRes
;
this
.
id
=
id
;
}
}
public
int
get
BackgroundColorRes
()
{
public
int
get
ParentId
()
{
return
backgroundColorRes
;
return
this
.
parentId
;
}
}
public
void
set
BackgroundColorRes
(
int
backgroundColorRes
)
{
public
void
set
ParentId
(
int
parentId
)
{
this
.
backgroundColorRes
=
backgroundColorRes
;
this
.
parentId
=
parentId
;
}
}
public
int
get
TextSizeRes
()
{
public
int
get
GroupId
()
{
return
t
extSizeRes
;
return
t
his
.
groupId
;
}
}
public
void
set
TextSizeRes
(
int
textSizeRes
)
{
public
void
set
GroupId
(
int
groupId
)
{
this
.
textSizeRes
=
textSizeRes
;
this
.
groupId
=
groupId
;
}
}
public
int
getIconRes
()
{
public
long
getEffectiveTime
()
{
return
iconRes
;
return
this
.
effectiveTime
;
}
}
public
void
set
IconRes
(
int
iconRes
)
{
public
void
set
EffectiveTime
(
long
effectiveTime
)
{
this
.
iconRes
=
iconRes
;
this
.
effectiveTime
=
effectiveTime
;
}
}
public
Long
getDbid
()
{
public
String
getResName
()
{
return
this
.
dbid
;
return
this
.
resName
;
}
}
public
void
set
Dbid
(
Long
dbid
)
{
public
void
set
ResName
(
String
resName
)
{
this
.
dbid
=
dbid
;
this
.
resName
=
resName
;
}
}
public
int
getParentId
()
{
public
String
getResUrl
()
{
return
this
.
parentId
;
return
this
.
resUrl
;
}
}
public
void
set
ParentId
(
int
parentId
)
{
public
void
set
ResUrl
(
String
resUrl
)
{
this
.
parentId
=
parentId
;
this
.
resUrl
=
resUrl
;
}
}
public
int
getGroupId
()
{
public
String
getImageURL
()
{
return
this
.
groupId
;
return
this
.
imageURL
;
}
}
public
void
set
GroupId
(
int
groupId
)
{
public
void
set
ImageURL
(
String
imageURL
)
{
this
.
groupId
=
groupId
;
this
.
imageURL
=
imageURL
;
}
}
public
int
getIcRes
()
{
public
int
getIcRes
()
{
...
@@ -273,36 +240,11 @@ public class Function {
...
@@ -273,36 +240,11 @@ public class Function {
this
.
icRes
=
icRes
;
this
.
icRes
=
icRes
;
}
}
public
String
getLable
()
{
public
int
getStatus
()
{
return
lable
;
return
this
.
status
;
}
public
void
setLable
(
String
lable
)
{
this
.
lable
=
lable
;
}
}
@Override
public
void
setStatus
(
int
status
)
{
public
String
toString
()
{
this
.
status
=
status
;
return
"Function{"
+
"dbid="
+
dbid
+
", id="
+
id
+
", parentId="
+
parentId
+
", groupId="
+
groupId
+
", status="
+
status
+
", effectiveTime="
+
effectiveTime
+
", resName='"
+
resName
+
'\''
+
", resUrl='"
+
resUrl
+
'\''
+
", imageURL='"
+
imageURL
+
'\''
+
", icRes="
+
icRes
+
", textColor="
+
textColor
+
", backgroundColor="
+
backgroundColor
+
", textSize="
+
textSize
+
", nameRes="
+
nameRes
+
", textColorRes="
+
textColorRes
+
", backgroundColorRes="
+
backgroundColorRes
+
", textSizeRes="
+
textSizeRes
+
", iconRes="
+
iconRes
+
", lable='"
+
lable
+
'\''
+
'}'
;
}
}
}
}
database-module/src/main/java/com/gingersoft/gsa/cloud/database/greendao/FunctionDao.java
View file @
fa4a065d
...
@@ -25,7 +25,7 @@ public class FunctionDao extends AbstractDao<Function, Long> {
...
@@ -25,7 +25,7 @@ public class FunctionDao extends AbstractDao<Function, Long> {
*/
*/
public
static
class
Properties
{
public
static
class
Properties
{
public
final
static
Property
Dbid
=
new
Property
(
0
,
Long
.
class
,
"dbid"
,
true
,
"_id"
);
public
final
static
Property
Dbid
=
new
Property
(
0
,
Long
.
class
,
"dbid"
,
true
,
"_id"
);
public
final
static
Property
Id
=
new
Property
(
1
,
Long
.
class
,
"id"
,
false
,
"ID"
);
public
final
static
Property
Id
=
new
Property
(
1
,
int
.
class
,
"id"
,
false
,
"ID"
);
public
final
static
Property
ParentId
=
new
Property
(
2
,
int
.
class
,
"parentId"
,
false
,
"PARENT_ID"
);
public
final
static
Property
ParentId
=
new
Property
(
2
,
int
.
class
,
"parentId"
,
false
,
"PARENT_ID"
);
public
final
static
Property
GroupId
=
new
Property
(
3
,
int
.
class
,
"groupId"
,
false
,
"GROUP_ID"
);
public
final
static
Property
GroupId
=
new
Property
(
3
,
int
.
class
,
"groupId"
,
false
,
"GROUP_ID"
);
public
final
static
Property
EffectiveTime
=
new
Property
(
4
,
long
.
class
,
"effectiveTime"
,
false
,
"EFFECTIVE_TIME"
);
public
final
static
Property
EffectiveTime
=
new
Property
(
4
,
long
.
class
,
"effectiveTime"
,
false
,
"EFFECTIVE_TIME"
);
...
@@ -138,7 +138,7 @@ public class FunctionDao extends AbstractDao<Function, Long> {
...
@@ -138,7 +138,7 @@ public class FunctionDao extends AbstractDao<Function, Long> {
public
Function
readEntity
(
Cursor
cursor
,
int
offset
)
{
public
Function
readEntity
(
Cursor
cursor
,
int
offset
)
{
Function
entity
=
new
Function
(
//
Function
entity
=
new
Function
(
//
cursor
.
isNull
(
offset
+
0
)
?
null
:
cursor
.
getLong
(
offset
+
0
),
// dbid
cursor
.
isNull
(
offset
+
0
)
?
null
:
cursor
.
getLong
(
offset
+
0
),
// dbid
cursor
.
get
Long
(
offset
+
1
),
// id
cursor
.
get
Int
(
offset
+
1
),
// id
cursor
.
getInt
(
offset
+
2
),
// parentId
cursor
.
getInt
(
offset
+
2
),
// parentId
cursor
.
getInt
(
offset
+
3
),
// groupId
cursor
.
getInt
(
offset
+
3
),
// groupId
cursor
.
getLong
(
offset
+
4
),
// effectiveTime
cursor
.
getLong
(
offset
+
4
),
// effectiveTime
...
@@ -154,7 +154,7 @@ public class FunctionDao extends AbstractDao<Function, Long> {
...
@@ -154,7 +154,7 @@ public class FunctionDao extends AbstractDao<Function, Long> {
@Override
@Override
public
void
readEntity
(
Cursor
cursor
,
Function
entity
,
int
offset
)
{
public
void
readEntity
(
Cursor
cursor
,
Function
entity
,
int
offset
)
{
entity
.
setDbid
(
cursor
.
isNull
(
offset
+
0
)
?
null
:
cursor
.
getLong
(
offset
+
0
));
entity
.
setDbid
(
cursor
.
isNull
(
offset
+
0
)
?
null
:
cursor
.
getLong
(
offset
+
0
));
entity
.
setId
(
cursor
.
get
Long
(
offset
+
1
));
entity
.
setId
(
cursor
.
get
Int
(
offset
+
1
));
entity
.
setParentId
(
cursor
.
getInt
(
offset
+
2
));
entity
.
setParentId
(
cursor
.
getInt
(
offset
+
2
));
entity
.
setGroupId
(
cursor
.
getInt
(
offset
+
3
));
entity
.
setGroupId
(
cursor
.
getInt
(
offset
+
3
));
entity
.
setEffectiveTime
(
cursor
.
getLong
(
offset
+
4
));
entity
.
setEffectiveTime
(
cursor
.
getLong
(
offset
+
4
));
...
...
database-module/src/main/java/com/gingersoft/gsa/cloud/database/utils/FoodComboDaoUtils.java
View file @
fa4a065d
...
@@ -156,31 +156,6 @@ public class FoodComboDaoUtils {
...
@@ -156,31 +156,6 @@ public class FoodComboDaoUtils {
return
mManager
.
getDaoSession
().
queryRaw
(
FoodCombo
.
class
,
sql
,
conditions
);
return
mManager
.
getDaoSession
().
queryRaw
(
FoodCombo
.
class
,
sql
,
conditions
);
}
}
/**
* 使用queryBuilder进行查询食品
*
* @return
*/
public
List
<
FoodCombo
>
queryComboFoodsByQueryBuilder
(
long
fid
)
{
FoodCombo
foodCombo
=
queryComboByQueryBuilder
(
fid
);
List
<
FoodCombo
>
foodCombos
=
null
;
if
(
foodCombo
!=
null
)
{
foodCombos
=
queryCombosByComIdQueryBuilder
(
foodCombo
.
getComId
());
}
List
<
FoodCombo
>
list
=
new
ArrayList
<>();
FoodDaoUtils
foodDao
=
new
FoodDaoUtils
(
mContext
);
if
(
foodCombos
!=
null
)
{
for
(
int
i
=
0
;
i
<
foodCombos
.
size
();
i
++)
{
Food
food
=
foodDao
.
queryFoodByFidQueryBuilder
(
foodCombos
.
get
(
i
).
getFid
());
if
(
food
!=
null
)
{
list
.
add
(
foodCombos
.
get
(
i
));
}
}
}
return
list
;
}
public
List
<
FoodCombo
>
queryCombosFoodsByQueryBuilder
(
long
fid
)
{
public
List
<
FoodCombo
>
queryCombosFoodsByQueryBuilder
(
long
fid
)
{
List
<
FoodCombo
>
foodCombo
=
queryCombosByQueryBuilder
(
fid
);
List
<
FoodCombo
>
foodCombo
=
queryCombosByQueryBuilder
(
fid
);
List
<
FoodCombo
>
foodCombos
=
null
;
List
<
FoodCombo
>
foodCombos
=
null
;
...
...
main-module/src/main/java/com/gingersoft/gsa/cloud/main/mvp/ui/activity/MainActivity.java
View file @
fa4a065d
...
@@ -12,6 +12,7 @@ import com.gingersoft.gsa.cloud.main.mvp.contract.MainContract;
...
@@ -12,6 +12,7 @@ import com.gingersoft.gsa.cloud.main.mvp.contract.MainContract;
import
com.gingersoft.gsa.cloud.main.mvp.presenter.MainPresenter
;
import
com.gingersoft.gsa.cloud.main.mvp.presenter.MainPresenter
;
import
com.gingersoft.gsa.cloud.main.mvp.ui.fragment.HomeFragment
;
import
com.gingersoft.gsa.cloud.main.mvp.ui.fragment.HomeFragment
;
import
com.gingersoft.gsa.cloud.main.mvp.ui.fragment.MyFragment
;
import
com.gingersoft.gsa.cloud.main.mvp.ui.fragment.MyFragment
;
import
com.google.android.material.floatingactionbutton.FloatingActionButton
;
import
com.jess.arms.base.BaseFragmentActivity
;
import
com.jess.arms.base.BaseFragmentActivity
;
import
com.jess.arms.di.component.AppComponent
;
import
com.jess.arms.di.component.AppComponent
;
import
com.jess.arms.utils.ArmsUtils
;
import
com.jess.arms.utils.ArmsUtils
;
...
@@ -131,6 +132,7 @@ public class MainActivity extends BaseFragmentActivity<MainPresenter> implements
...
@@ -131,6 +132,7 @@ public class MainActivity extends BaseFragmentActivity<MainPresenter> implements
mTabSegment
.
addTab
(
home
)
mTabSegment
.
addTab
(
home
)
.
addTab
(
report
)
.
addTab
(
report
)
.
addTab
(
my
);
.
addTab
(
my
);
}
}
@Override
@Override
...
...
main-module/src/main/java/com/gingersoft/gsa/cloud/main/mvp/ui/activity/NewMainActivity.java
View file @
fa4a065d
...
@@ -269,10 +269,10 @@ public class NewMainActivity extends BaseFragmentActivity<NewMainPresenter> impl
...
@@ -269,10 +269,10 @@ public class NewMainActivity extends BaseFragmentActivity<NewMainPresenter> impl
List
<
Function
>
managerFuncations
=
FunctionManager
.
getDefault
().
getFunctionByResModule
(
this
,
ComponentMain
.
main
.
class
,
ComponentMain
.
main
.
manager
,
"manager"
);
List
<
Function
>
managerFuncations
=
FunctionManager
.
getDefault
().
getFunctionByResModule
(
this
,
ComponentMain
.
main
.
class
,
ComponentMain
.
main
.
manager
,
"manager"
);
managerFuncations
.
add
(
new
Function
(
(
long
)
171
,
163
,
5
,
"二維碼"
,
R
.
drawable
.
ic_authority_management
,
0
));
managerFuncations
.
add
(
new
Function
(
171
,
163
,
5
,
"二維碼"
,
R
.
drawable
.
ic_authority_management
,
0
));
managerFuncations
.
add
(
new
Function
(
(
long
)
171
,
163
,
5
,
"配置列表"
,
R
.
drawable
.
ic_authority_management
,
0
));
managerFuncations
.
add
(
new
Function
(
171
,
163
,
5
,
"配置列表"
,
R
.
drawable
.
ic_authority_management
,
0
));
managerFuncations
.
add
(
new
Function
(
(
long
)
171
,
163
,
5
,
"廚房打印查詢"
,
R
.
drawable
.
ic_authority_management
,
0
));
managerFuncations
.
add
(
new
Function
(
171
,
163
,
5
,
"廚房打印查詢"
,
R
.
drawable
.
ic_authority_management
,
0
));
managerFuncations
.
add
(
new
Function
(
(
long
)
171
,
163
,
5
,
"餐牌管理"
,
R
.
drawable
.
ic_authority_management
,
0
));
managerFuncations
.
add
(
new
Function
(
171
,
163
,
5
,
"餐牌管理"
,
R
.
drawable
.
ic_authority_management
,
0
));
if
(
managerFuncations
.
size
()
>
0
)
{
if
(
managerFuncations
.
size
()
>
0
)
{
functions
.
addAll
(
managerFuncations
);
functions
.
addAll
(
managerFuncations
);
...
@@ -296,7 +296,7 @@ public class NewMainActivity extends BaseFragmentActivity<NewMainPresenter> impl
...
@@ -296,7 +296,7 @@ public class NewMainActivity extends BaseFragmentActivity<NewMainPresenter> impl
for
(
Function
function
:
functions
)
{
for
(
Function
function
:
functions
)
{
if
(
function
.
getParentId
()
==
0
)
{
if
(
function
.
getParentId
()
==
0
)
{
//父模塊
//父模塊
parents
.
put
(
function
.
getId
()
.
intValue
()
,
function
.
getResName
());
parents
.
put
(
function
.
getId
(),
function
.
getResName
());
}
else
{
}
else
{
if
(
funMap
.
get
(
function
.
getParentId
())
==
null
)
{
if
(
funMap
.
get
(
function
.
getParentId
())
==
null
)
{
List
<
Function
>
functionList
=
new
ArrayList
<>();
List
<
Function
>
functionList
=
new
ArrayList
<>();
...
...
order-base/src/main/java/com/gingersoft/gsa/cloud/base/order/billItem/DiscountItem.java
View file @
fa4a065d
...
@@ -22,7 +22,4 @@ public class DiscountItem extends BillItem {
...
@@ -22,7 +22,4 @@ public class DiscountItem extends BillItem {
super
(
name
,
money
,
status
,
type
);
super
(
name
,
money
,
status
,
type
);
}
}
public
void
updateBillItem
(
int
type
)
{
}
}
}
order-base/src/main/java/com/gingersoft/gsa/cloud/base/order/commodity/Commodity.java
View file @
fa4a065d
...
@@ -11,15 +11,5 @@ import lombok.Data;
...
@@ -11,15 +11,5 @@ import lombok.Data;
*/
*/
public
interface
Commodity
{
public
interface
Commodity
{
// protected Long id;
// protected String name;
// protected String name2;
// protected String name3;
// protected double price;
// protected int number;
// /**
// * 类型#1:优惠卷;2:商品;3:菜品;4:细项;5:折扣;
// */
// protected byte type;
}
}
print-module/src/main/java/com/joe/print/mvp/ui/activity/PrintTestActivity.java
View file @
fa4a065d
...
@@ -9,7 +9,7 @@ import androidx.appcompat.app.AppCompatActivity;
...
@@ -9,7 +9,7 @@ import androidx.appcompat.app.AppCompatActivity;
import
com.epson.epos2.printer.Printer
;
import
com.epson.epos2.printer.Printer
;
import
com.epson.epos2.printer.PrinterStatusInfo
;
import
com.epson.epos2.printer.PrinterStatusInfo
;
import
com.epson.epos2.printer.ReceiveListener
;
import
com.epson.epos2.printer.ReceiveListener
;
import
com.gingersoft.gsa.cloud.base.order.
bean
.OrderDetail
;
import
com.gingersoft.gsa.cloud.base.order.
commodity
.OrderDetail
;
import
com.gingersoft.gsa.cloud.base.utils.time.TimePickerUtils
;
import
com.gingersoft.gsa.cloud.base.utils.time.TimePickerUtils
;
import
com.gingersoft.gsa.cloud.base.utils.toast.ToastUtils
;
import
com.gingersoft.gsa.cloud.base.utils.toast.ToastUtils
;
import
com.gingersoft.gsa.cloud.database.bean.PrinterDeviceBean
;
import
com.gingersoft.gsa.cloud.database.bean.PrinterDeviceBean
;
...
...
print-module/src/main/java/com/joe/print/mvp/ui/fragment/IpPrintListActivityFragment.java
View file @
fa4a065d
...
@@ -214,7 +214,7 @@ public class IpPrintListActivityFragment extends BaseFragment<IpPrintListActivit
...
@@ -214,7 +214,7 @@ public class IpPrintListActivityFragment extends BaseFragment<IpPrintListActivit
//item點擊事件 打開打印機詳情
//item點擊事件 打開打印機詳情
startToEditPrint
(
adapterPosition
);
startToEditPrint
(
adapterPosition
);
});
});
//
m
enu 右侧菜單點擊事件
//
M
enu 右侧菜單點擊事件
// mRvPrintList.setOnItemMenuClickListener((menuBridge, position) -> {
// mRvPrintList.setOnItemMenuClickListener((menuBridge, position) -> {
// //刪除按鈕點擊事件
// //刪除按鈕點擊事件
// menuBridge.closeMenu();
// menuBridge.closeMenu();
...
...
table-module/src/main/java/com/gingersoft/gsa/cloud/table/ComponentTable.java
View file @
fa4a065d
...
@@ -18,6 +18,7 @@ public class ComponentTable implements IComponent {
...
@@ -18,6 +18,7 @@ public class ComponentTable implements IComponent {
public
static
final
FModule
[]
bottom
=
{
public
static
final
FModule
[]
bottom
=
{
new
FModule
(
"table/bottom/init"
,
R
.
mipmap
.
table_init
,
0
)
,
new
FModule
(
"table/bottom/init"
,
R
.
mipmap
.
table_init
,
0
)
,
new
FModule
(
"table/bottom/move"
,
R
.
mipmap
.
table_move
,
0
)
,
new
FModule
(
"table/bottom/move"
,
R
.
mipmap
.
table_move
,
0
)
,
new
FModule
(
"table/bottom/null"
,
0
,
0
)
,
new
FModule
(
"table/bottom/splite"
,
R
.
mipmap
.
table_splite
,
0
)
,
new
FModule
(
"table/bottom/splite"
,
R
.
mipmap
.
table_splite
,
0
)
,
new
FModule
(
"table/bottom/parper"
,
R
.
mipmap
.
table_paper
,
0
)
,
new
FModule
(
"table/bottom/parper"
,
R
.
mipmap
.
table_paper
,
0
)
,
new
FModule
(
"table/bottom/skyorder"
,
R
.
mipmap
.
table_skyorder
,
0
)
new
FModule
(
"table/bottom/skyorder"
,
R
.
mipmap
.
table_skyorder
,
0
)
...
...
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/model/bean/MealSummary.java
0 → 100644
View file @
fa4a065d
package
com
.
gingersoft
.
gsa
.
cloud
.
table
.
mvp
.
model
.
bean
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* @author : bin
* @create date: 2020-11-03
* @update date: 2020-11-03
* @description:
*/
@Getter
@Setter
public
class
MealSummary
{
private
String
name
;
}
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/TablePresenter.java
View file @
fa4a065d
...
@@ -145,7 +145,9 @@ public class TablePresenter extends BasePresenter<TableContract.Model, TableCont
...
@@ -145,7 +145,9 @@ public class TablePresenter extends BasePresenter<TableContract.Model, TableCont
mTableActions
.
add
(
new
SplitTableAction
(
context
));
mTableActions
.
add
(
new
SplitTableAction
(
context
));
}
else
if
(
function
.
getResUrl
().
endsWith
(
"parper"
))
{
}
else
if
(
function
.
getResUrl
().
endsWith
(
"parper"
))
{
mTableActions
.
add
(
new
PrintServingPaperAction
(
context
));
mTableActions
.
add
(
new
PrintServingPaperAction
(
context
));
}
else
if
(
function
.
getResUrl
().
endsWith
(
"skyorder"
))
{
}
if
(
mTableActions
.
size
()
==
2
&&
function
.
getResUrl
().
endsWith
(
"skyorder"
))
{
//將skyorder功能添加到中間
mTableActions
.
add
(
new
PrintSkyOrderAction
(
context
));
mTableActions
.
add
(
new
PrintSkyOrderAction
(
context
));
}
}
}
}
...
@@ -205,6 +207,16 @@ public class TablePresenter extends BasePresenter<TableContract.Model, TableCont
...
@@ -205,6 +207,16 @@ public class TablePresenter extends BasePresenter<TableContract.Model, TableCont
}
}
boolean
addFuctions
=
false
;
boolean
addFuctions
=
false
;
List
<
Function
>
functions
=
FunctionManager
.
getDefault
().
getFunctionByResModule
(
GsaCloudApplication
.
getAppContext
(),
ComponentTable
.
table
.
class
,
ComponentTable
.
table
.
bottom
,
"bottom"
);
List
<
Function
>
functions
=
FunctionManager
.
getDefault
().
getFunctionByResModule
(
GsaCloudApplication
.
getAppContext
(),
ComponentTable
.
table
.
class
,
ComponentTable
.
table
.
bottom
,
"bottom"
);
Function
newFunction
=
new
Function
();
newFunction
.
setParentId
(
175
);
newFunction
.
setGroupId
(
5
);
newFunction
.
setId
(
366
);
newFunction
.
setResName
(
""
);
newFunction
.
setIcRes
(
0
);
newFunction
.
setStatus
(
0
);
newFunction
.
setResUrl
(
""
);
functions
.
add
(
newFunction
);
for
(
int
i
=
0
;
i
<
functions
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
functions
.
size
();
i
++)
{
Function
function
=
functions
.
get
(
i
);
Function
function
=
functions
.
get
(
i
);
if
(
function
.
getParentId
()
==
0
)
{
if
(
function
.
getParentId
()
==
0
)
{
...
@@ -213,6 +225,7 @@ public class TablePresenter extends BasePresenter<TableContract.Model, TableCont
...
@@ -213,6 +225,7 @@ public class TablePresenter extends BasePresenter<TableContract.Model, TableCont
addFuctions
=
true
;
addFuctions
=
true
;
}
}
}
}
Collections
.
swap
(
functions
,
2
,
4
);
if
(
addFuctions
)
{
if
(
addFuctions
)
{
mBottomFunctionList
.
addAll
(
functions
);
mBottomFunctionList
.
addAll
(
functions
);
mRootView
.
setBottomFunctionVisibility
(
true
);
mRootView
.
setBottomFunctionVisibility
(
true
);
...
@@ -221,11 +234,6 @@ public class TablePresenter extends BasePresenter<TableContract.Model, TableCont
...
@@ -221,11 +234,6 @@ public class TablePresenter extends BasePresenter<TableContract.Model, TableCont
mRootView
.
setBottomFunctionVisibility
(
false
);
mRootView
.
setBottomFunctionVisibility
(
false
);
}
}
initTableActions
(
IActivity
,
functions
);
initTableActions
(
IActivity
,
functions
);
// mBottomFunctionList.add(new Function((long) 1, "重置檯號", ArmsUtils.getColor(IActivity, R.color.theme_black), ArmsUtils.getDimens(IActivity, R.dimen.sp_14), R.mipmap.table_init));
// mBottomFunctionList.add(new Function((long) 2, "轉檯", ArmsUtils.getColor(IActivity, R.color.theme_black), ArmsUtils.getDimens(IActivity, R.dimen.sp_14), R.mipmap.table_move));
// mBottomFunctionList.add(new Function((long) 3, "分檯", ArmsUtils.getColor(IActivity, R.color.theme_black), ArmsUtils.getDimens(IActivity, R.dimen.sp_14), R.mipmap.table_splite));
// mBottomFunctionList.add(new Function((long) 4, "skyorder", ArmsUtils.getColor(IActivity, R.color.theme_black), ArmsUtils.getDimens(IActivity, R.dimen.sp_14), R.mipmap.table_skyorder));
// mBottomFunctionList.add(new Function((long) 5, "上菜紙", ArmsUtils.getColor(IActivity, R.color.theme_black), ArmsUtils.getDimens(IActivity, R.dimen.sp_14), R.mipmap.table_paper));
}
}
...
...
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/activity/TableActivity.java
View file @
fa4a065d
...
@@ -4,6 +4,7 @@ import android.content.Intent;
...
@@ -4,6 +4,7 @@ import android.content.Intent;
import
android.content.pm.ActivityInfo
;
import
android.content.pm.ActivityInfo
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.os.Message
;
import
android.os.Message
;
import
android.view.MenuItem
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.AdapterView
;
import
android.widget.AdapterView
;
import
android.widget.ImageView
;
import
android.widget.ImageView
;
...
@@ -27,6 +28,8 @@ import com.gingersoft.gsa.cloud.table.mvp.ui.fragment.AllTableFragment;
...
@@ -27,6 +28,8 @@ import com.gingersoft.gsa.cloud.table.mvp.ui.fragment.AllTableFragment;
import
com.gingersoft.gsa.cloud.table.mvp.ui.fragment.InputTableFragment
;
import
com.gingersoft.gsa.cloud.table.mvp.ui.fragment.InputTableFragment
;
import
com.gingersoft.gsa.cloud.constans.GoldConstants
;
import
com.gingersoft.gsa.cloud.constans.GoldConstants
;
import
com.gingersoft.gsa.cloud.ui.widget.dialog.LoadingDialog
;
import
com.gingersoft.gsa.cloud.ui.widget.dialog.LoadingDialog
;
import
com.google.android.material.bottomnavigation.BottomNavigationView
;
import
com.ittianyu.bottomnavigationviewex.BottomNavigationViewEx
;
import
com.jess.arms.base.BaseFragmentActivity
;
import
com.jess.arms.base.BaseFragmentActivity
;
import
com.jess.arms.base.DefaultAdapter
;
import
com.jess.arms.base.DefaultAdapter
;
import
com.jess.arms.di.component.AppComponent
;
import
com.jess.arms.di.component.AppComponent
;
...
@@ -106,8 +109,6 @@ public class TableActivity extends BaseFragmentActivity<TablePresenter> implemen
...
@@ -106,8 +109,6 @@ public class TableActivity extends BaseFragmentActivity<TablePresenter> implemen
@BindView
(
R2
.
id
.
tv_table_action_content
)
@BindView
(
R2
.
id
.
tv_table_action_content
)
TextView
tv_table_action_content
;
TextView
tv_table_action_content
;
@BindView
(
R2
.
id
.
iv_tab_icon
)
ImageView
iv_tab_icon
;
private
LoadService
loadService
;
private
LoadService
loadService
;
/**
/**
...
@@ -158,11 +159,11 @@ public class TableActivity extends BaseFragmentActivity<TablePresenter> implemen
...
@@ -158,11 +159,11 @@ public class TableActivity extends BaseFragmentActivity<TablePresenter> implemen
// loadService = LoadSir.getDefault().register(this, new Callback.OnReloadListener() {
// loadService = LoadSir.getDefault().register(this, new Callback.OnReloadListener() {
// @Override
// @Override
// public void onReload(View v) {
// public void onReload(View v) {
// //
重新加载逻辑
// //重新加载逻辑
// getTables(true, null);
// getTables(true, null);
// }
// }
// });
// });
// bn_table_function.getMenu().
initTabAndPager
();
initTabAndPager
();
getTables
(
true
,
null
);
getTables
(
true
,
null
);
}
}
...
...
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/activity/orderManager/OrderDetailActivity.java
View file @
fa4a065d
...
@@ -157,7 +157,7 @@ public class OrderDetailActivity extends BaseActivity<OrderDetailPresenter> impl
...
@@ -157,7 +157,7 @@ public class OrderDetailActivity extends BaseActivity<OrderDetailPresenter> impl
@Override
@Override
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
mDoshokuOrder
=
mDoshokuOrder
;
mDoshokuOrder
=
DoshokuOrder
.
getInstance
()
;
mShoppingCart
=
mDoshokuOrder
.
getShoppingCart
();
mShoppingCart
=
mDoshokuOrder
.
getShoppingCart
();
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
}
}
...
...
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/adapter/BottomFunctionAdapter.java
View file @
fa4a065d
...
@@ -27,12 +27,14 @@ public class BottomFunctionAdapter extends DefaultAdapter<Function> {
...
@@ -27,12 +27,14 @@ public class BottomFunctionAdapter extends DefaultAdapter<Function> {
private
Context
mContext
;
private
Context
mContext
;
public
static
final
int
VIEW_TYPE_NOMAL
=
1
;
public
static
final
int
VIEW_TYPE_SKYORDER
=
2
;
public
BottomFunctionAdapter
(
Context
context
,
List
<
Function
>
infos
)
{
public
BottomFunctionAdapter
(
Context
context
,
List
<
Function
>
infos
)
{
super
(
infos
);
super
(
infos
);
this
.
mContext
=
context
;
this
.
mContext
=
context
;
}
}
@Override
@Override
public
int
getItemCount
()
{
public
int
getItemCount
()
{
return
mInfos
.
size
();
return
mInfos
.
size
();
...
@@ -40,12 +42,29 @@ public class BottomFunctionAdapter extends DefaultAdapter<Function> {
...
@@ -40,12 +42,29 @@ public class BottomFunctionAdapter extends DefaultAdapter<Function> {
@Override
@Override
public
BaseHolder
<
Function
>
getHolder
(
View
v
,
int
viewType
)
{
public
BaseHolder
<
Function
>
getHolder
(
View
v
,
int
viewType
)
{
if
(
viewType
==
VIEW_TYPE_SKYORDER
)
{
return
new
SkyorderFunctionItemHolder
(
v
);
}
else
{
return
new
BottomFunctionItemHolder
(
v
);
return
new
BottomFunctionItemHolder
(
v
);
}
}
}
@Override
@Override
public
int
getLayoutId
(
int
viewType
)
{
public
int
getLayoutId
(
int
viewType
)
{
return
R
.
layout
.
table_item_bottom_function
;
if
(
viewType
==
VIEW_TYPE_SKYORDER
)
{
return
R
.
layout
.
table_item_skyorder
;
}
else
{
return
R
.
layout
.
table_item_table_bottom
;
}
}
@Override
public
int
getItemViewType
(
int
position
)
{
Function
function
=
getItem
(
position
);
if
(
function
.
isRaisedBottom
())
{
return
VIEW_TYPE_SKYORDER
;
}
return
VIEW_TYPE_NOMAL
;
}
}
class
BottomFunctionItemHolder
extends
BaseHolder
<
Function
>
{
class
BottomFunctionItemHolder
extends
BaseHolder
<
Function
>
{
...
@@ -72,16 +91,22 @@ public class BottomFunctionAdapter extends DefaultAdapter<Function> {
...
@@ -72,16 +91,22 @@ public class BottomFunctionAdapter extends DefaultAdapter<Function> {
}
}
}
}
class
SkyorderFunctionItemHolder
extends
BaseHolder
<
Function
>
{
@BindView
(
R2
.
id
.
tv_name
)
TextView
tv_name
;
@BindView
(
R2
.
id
.
iv_lock
)
ImageView
iv_lock
;
// private OnItemClickListener mOnItemClickListener;
public
SkyorderFunctionItemHolder
(
View
itemView
)
{
//
super
(
itemView
);
// public void setOnItemClickListener(OnItemClickListener onItemClickListener) {
}
// mOnItemClickListener = onItemClickListener;
// }
@Override
//
public
void
setData
(
Function
item
,
int
position
)
{
// public interface OnItemClickListener {
//
tv_name
.
setText
(
item
.
getResName
());
// void onItemClick(TableBean.DataBean datasBean, int position);
}
//
//
}
}
}
}
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/fragment/AllOrderFragment.java
View file @
fa4a065d
...
@@ -8,7 +8,6 @@ import android.os.Message;
...
@@ -8,7 +8,6 @@ import android.os.Message;
import
android.view.LayoutInflater
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
com.gingersoft.gsa.cloud.table.R
;
import
com.gingersoft.gsa.cloud.table.R
;
import
com.gingersoft.gsa.cloud.table.R2
;
import
com.gingersoft.gsa.cloud.table.R2
;
import
com.gingersoft.gsa.cloud.table.di.component.DaggerAllOrderComponent
;
import
com.gingersoft.gsa.cloud.table.di.component.DaggerAllOrderComponent
;
...
@@ -27,7 +26,6 @@ import com.qmuiteam.qmui.widget.QMUIEmptyView;
...
@@ -27,7 +26,6 @@ import com.qmuiteam.qmui.widget.QMUIEmptyView;
import
com.scwang.smartrefresh.layout.api.RefreshLayout
;
import
com.scwang.smartrefresh.layout.api.RefreshLayout
;
import
com.scwang.smartrefresh.layout.listener.OnLoadMoreListener
;
import
com.scwang.smartrefresh.layout.listener.OnLoadMoreListener
;
import
com.scwang.smartrefresh.layout.listener.OnRefreshListener
;
import
com.scwang.smartrefresh.layout.listener.OnRefreshListener
;
import
org.json.JSONException
;
import
org.json.JSONException
;
import
java.net.SocketTimeoutException
;
import
java.net.SocketTimeoutException
;
...
...
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/widget/DiscountDialog.java
View file @
fa4a065d
...
@@ -90,8 +90,9 @@ public class DiscountDialog extends Dialog {
...
@@ -90,8 +90,9 @@ public class DiscountDialog extends Dialog {
}
}
public
void
addItems
(
List
<
Discount
>
items
)
{
public
void
addItems
(
List
<
Discount
>
items
)
{
if
(
mItems
.
size
()
>
0
)
if
(
mItems
.
size
()
>
0
)
{
mItems
.
clear
();
mItems
.
clear
();
}
mItems
.
addAll
(
items
);
mItems
.
addAll
(
items
);
}
}
...
...
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/widget/KeyboardDialog.java
View file @
fa4a065d
...
@@ -12,8 +12,12 @@ import android.view.LayoutInflater;
...
@@ -12,8 +12,12 @@ import android.view.LayoutInflater;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.view.WindowManager
;
import
android.view.WindowManager
;
import
android.view.animation.AlphaAnimation
;
import
android.view.animation.Animation
;
import
android.view.animation.Animation
;
import
android.view.animation.AnimationSet
;
import
android.view.animation.AnimationUtils
;
import
android.view.animation.AnimationUtils
;
import
android.view.animation.DecelerateInterpolator
;
import
android.view.animation.TranslateAnimation
;
import
android.widget.AdapterView
;
import
android.widget.AdapterView
;
import
android.widget.EditText
;
import
android.widget.EditText
;
import
android.widget.GridView
;
import
android.widget.GridView
;
...
@@ -50,8 +54,6 @@ public class KeyboardDialog extends Dialog {
...
@@ -50,8 +54,6 @@ public class KeyboardDialog extends Dialog {
private
GridView
mGridView
;
private
GridView
mGridView
;
private
MaterialEditText
ed_text
;
private
MaterialEditText
ed_text
;
private
Animation
enterAnim
,
exitAnim
;
private
ArrayList
<
Map
<
String
,
String
>>
keyboardValueList
;
private
ArrayList
<
Map
<
String
,
String
>>
keyboardValueList
;
// 动画时长
// 动画时长
private
final
static
int
mAnimationDuration
=
300
;
private
final
static
int
mAnimationDuration
=
300
;
...
@@ -62,8 +64,6 @@ public class KeyboardDialog extends Dialog {
...
@@ -62,8 +64,6 @@ public class KeyboardDialog extends Dialog {
public
KeyboardDialog
(
Activity
context
)
{
public
KeyboardDialog
(
Activity
context
)
{
super
(
context
,
R
.
style
.
QMUI_BottomSheet
);
super
(
context
,
R
.
style
.
QMUI_BottomSheet
);
this
.
mContext
=
context
;
this
.
mContext
=
context
;
initAnim
();
}
}
@Override
@Override
...
@@ -114,7 +114,18 @@ public class KeyboardDialog extends Dialog {
...
@@ -114,7 +114,18 @@ public class KeyboardDialog extends Dialog {
if
(
mContentView
==
null
)
{
if
(
mContentView
==
null
)
{
return
;
return
;
}
}
mContentView
.
startAnimation
(
enterAnim
);
TranslateAnimation
translate
=
new
TranslateAnimation
(
Animation
.
RELATIVE_TO_SELF
,
0
f
,
Animation
.
RELATIVE_TO_SELF
,
0
f
,
Animation
.
RELATIVE_TO_SELF
,
1
f
,
Animation
.
RELATIVE_TO_SELF
,
0
f
);
AlphaAnimation
alpha
=
new
AlphaAnimation
(
0
,
1
);
AnimationSet
set
=
new
AnimationSet
(
true
);
set
.
addAnimation
(
translate
);
set
.
addAnimation
(
alpha
);
set
.
setInterpolator
(
new
DecelerateInterpolator
());
set
.
setDuration
(
mAnimationDuration
);
set
.
setFillAfter
(
true
);
mContentView
.
startAnimation
(
set
);
}
}
/**
/**
...
@@ -124,7 +135,18 @@ public class KeyboardDialog extends Dialog {
...
@@ -124,7 +135,18 @@ public class KeyboardDialog extends Dialog {
if
(
mContentView
==
null
)
{
if
(
mContentView
==
null
)
{
return
;
return
;
}
}
exitAnim
.
setAnimationListener
(
new
Animation
.
AnimationListener
()
{
TranslateAnimation
translate
=
new
TranslateAnimation
(
Animation
.
RELATIVE_TO_SELF
,
0
f
,
Animation
.
RELATIVE_TO_SELF
,
0
f
,
Animation
.
RELATIVE_TO_SELF
,
0
f
,
Animation
.
RELATIVE_TO_SELF
,
1
f
);
AlphaAnimation
alpha
=
new
AlphaAnimation
(
1
,
0
);
AnimationSet
set
=
new
AnimationSet
(
true
);
set
.
addAnimation
(
translate
);
set
.
addAnimation
(
alpha
);
set
.
setInterpolator
(
new
DecelerateInterpolator
());
set
.
setDuration
(
mAnimationDuration
);
set
.
setFillAfter
(
true
);
set
.
setAnimationListener
(
new
Animation
.
AnimationListener
()
{
@Override
@Override
public
void
onAnimationStart
(
Animation
animation
)
{
public
void
onAnimationStart
(
Animation
animation
)
{
mIsAnimating
=
true
;
mIsAnimating
=
true
;
...
@@ -155,7 +177,7 @@ public class KeyboardDialog extends Dialog {
...
@@ -155,7 +177,7 @@ public class KeyboardDialog extends Dialog {
}
}
});
});
mContentView
.
startAnimation
(
exitAnim
);
mContentView
.
startAnimation
(
set
);
}
}
@Override
@Override
...
@@ -166,7 +188,6 @@ public class KeyboardDialog extends Dialog {
...
@@ -166,7 +188,6 @@ public class KeyboardDialog extends Dialog {
@Override
@Override
public
void
dismiss
()
{
public
void
dismiss
()
{
super
.
dismiss
();
if
(
mIsAnimating
)
{
if
(
mIsAnimating
)
{
return
;
return
;
}
}
...
@@ -204,7 +225,7 @@ public class KeyboardDialog extends Dialog {
...
@@ -204,7 +225,7 @@ public class KeyboardDialog extends Dialog {
virtualKeyboardView
.
setFocusable
(
true
);
virtualKeyboardView
.
setFocusable
(
true
);
virtualKeyboardView
.
setFocusableInTouchMode
(
true
);
virtualKeyboardView
.
setFocusableInTouchMode
(
true
);
virtualKeyboardView
.
startAnimation
(
enterAnim
);
//
virtualKeyboardView.startAnimation(enterAnim);
virtualKeyboardView
.
setVisibility
(
View
.
VISIBLE
);
virtualKeyboardView
.
setVisibility
(
View
.
VISIBLE
);
keyboardValueList
=
virtualKeyboardView
.
getValueList
();
keyboardValueList
=
virtualKeyboardView
.
getValueList
();
...
@@ -286,14 +307,6 @@ public class KeyboardDialog extends Dialog {
...
@@ -286,14 +307,6 @@ public class KeyboardDialog extends Dialog {
}
}
};
};
/**
* 数字键盘显示动画
*/
private
void
initAnim
()
{
enterAnim
=
AnimationUtils
.
loadAnimation
(
mContext
,
com
.
gingersoft
.
gsa
.
cloud
.
table
.
R
.
anim
.
push_bottom_in
);
exitAnim
=
AnimationUtils
.
loadAnimation
(
mContext
,
com
.
gingersoft
.
gsa
.
cloud
.
table
.
R
.
anim
.
push_bottom_out
);
}
protected
int
getContentViewLayoutId
()
{
protected
int
getContentViewLayoutId
()
{
return
R
.
layout
.
table_dialog_keyboard
;
return
R
.
layout
.
table_dialog_keyboard
;
}
}
...
...
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/widget/SkyOrderDialog.java
View file @
fa4a065d
This diff is collapsed.
Click to expand it.
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/widget/SplitTableDialog.java
View file @
fa4a065d
...
@@ -59,7 +59,7 @@ public class SplitTableDialog extends BaseRetryDialog {
...
@@ -59,7 +59,7 @@ public class SplitTableDialog extends BaseRetryDialog {
private
ImageView
btn_close
;
private
ImageView
btn_close
;
public
SplitTableDialog
(
@NonNull
Context
context
)
{
public
SplitTableDialog
(
@NonNull
Context
context
)
{
super
(
context
);
super
(
context
,
R
.
style
.
MyDialogTheme2
);
mContext
=
context
;
mContext
=
context
;
mItems
=
new
ArrayList
<>();
mItems
=
new
ArrayList
<>();
mRadius
=
QMUIDisplayHelper
.
dp2px
(
mContext
,
8
);
mRadius
=
QMUIDisplayHelper
.
dp2px
(
mContext
,
8
);
...
...
table-module/src/main/res/layout/activity_order_center.xml
View file @
fa4a065d
...
@@ -33,5 +33,8 @@
...
@@ -33,5 +33,8 @@
android:fitsSystemWindows=
"true"
/>
android:fitsSystemWindows=
"true"
/>
</LinearLayout>
</LinearLayout>
<com.qmuiteam.qmui.widget.grouplist.QMUICommonListItemView
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
></com.qmuiteam.qmui.widget.grouplist.QMUICommonListItemView>
</com.qmuiteam.qmui.widget.QMUIWindowInsetLayout>
</com.qmuiteam.qmui.widget.QMUIWindowInsetLayout>
\ No newline at end of file
table-module/src/main/res/layout/table_activity_table.xml
View file @
fa4a065d
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_above=
"@+id/
rv_bottom
_function"
android:layout_above=
"@+id/
bn_table
_function"
android:layout_marginTop=
"?attr/qmui_topbar_height"
android:layout_marginTop=
"?attr/qmui_topbar_height"
android:background=
"#FFE8E8E8"
>
android:background=
"#FFE8E8E8"
>
...
@@ -68,20 +68,17 @@
...
@@ -68,20 +68,17 @@
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
<ImageView
android:id=
"@+id/iv_tab_icon"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
<androidx.recyclerview.widget.RecyclerView
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rv_bottom_function"
android:id=
"@+id/rv_bottom_function"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"@dimen/dp_60"
android:layout_alignParentBottom=
"true"
android:layout_gravity=
"bottom"
android:layout_gravity=
"bottom"
android:layout_alignParentBottom=
"true"
android:background=
"@drawable/table_shape_table_bottom_function_layout"
android:background=
"@drawable/table_shape_table_bottom_function_layout"
android:orientation=
"horizontal"
/>
android:orientation=
"horizontal"
/>
<include
layout=
"@layout/table_item_skyorder"
/>
<com.qmuiteam.qmui.layout.QMUIButton
<com.qmuiteam.qmui.layout.QMUIButton
android:id=
"@+id/btn_cancel_operat"
android:id=
"@+id/btn_cancel_operat"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
...
table-module/src/main/res/layout/table_dialog_skyorder.xml
View file @
fa4a065d
...
@@ -3,15 +3,19 @@
...
@@ -3,15 +3,19 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:
orientation=
"vertical
"
android:
background=
"@drawable/shape_rect_top_radius_white_5
"
android:
background=
"@drawable/shape_rect_top_radius_white_5
"
>
android:
orientation=
"vertical
"
>
<
androidx.constraintlayout.widget.Constraint
Layout
<
Linear
Layout
android:id=
"@+id/cl_time"
android:id=
"@+id/cl_time"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/dp_20"
android:layout_marginLeft=
"@dimen/dp_10"
android:orientation=
"vertical"
>
android:layout_marginTop=
"@dimen/dp_20"
android:layout_marginRight=
"@dimen/dp_10"
android:layout_marginBottom=
"@dimen/dp_10"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<androidx.appcompat.widget.AppCompatCheckBox
<androidx.appcompat.widget.AppCompatCheckBox
android:id=
"@+id/cb_title"
android:id=
"@+id/cb_title"
...
@@ -26,15 +30,16 @@
...
@@ -26,15 +30,16 @@
android:id=
"@+id/tv_start_time"
android:id=
"@+id/tv_start_time"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_20"
android:drawableRight=
"@drawable/qmui_popup_arrow_down"
android:drawableRight=
"@drawable/qmui_popup_arrow_down"
android:drawablePadding=
"@dimen/dp_2
0"
android:drawablePadding=
"@dimen/dp_1
0"
android:drawableTint=
"@color/theme_hint_color"
android:drawableTint=
"@color/theme_hint_color"
android:gravity=
"center"
android:gravity=
"center"
android:paddingStart=
"@dimen/dp_2
0"
android:paddingStart=
"@dimen/dp_1
0"
android:text=
"22
"
android:text=
"22:00
"
android:textColor=
"@color/theme_text_color"
android:textColor=
"@color/theme_text_color"
android:textSize=
"@dimen/sp_16"
android:textSize=
"@dimen/sp_16"
app:layout_constraintLeft_toRightOf=
"@+id/cb_title"
/>
app:layout_constraintLeft_toRightOf=
"@+id/cb_title"
/>
<TextView
<TextView
android:id=
"@+id/tv_split"
android:id=
"@+id/tv_split"
...
@@ -50,26 +55,43 @@
...
@@ -50,26 +55,43 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:drawableRight=
"@drawable/qmui_popup_arrow_down"
android:drawableRight=
"@drawable/qmui_popup_arrow_down"
android:drawablePadding=
"@dimen/dp_2
0"
android:drawablePadding=
"@dimen/dp_1
0"
android:drawableTint=
"@color/theme_hint_color"
android:drawableTint=
"@color/theme_hint_color"
android:gravity=
"center"
android:gravity=
"center"
android:paddingStart=
"@dimen/dp_2
0"
android:paddingStart=
"@dimen/dp_1
0"
android:paddingEnd=
"@dimen/dp_2
0"
android:paddingEnd=
"@dimen/dp_1
0"
android:text=
"
30"
android:text=
"23:
30"
android:textColor=
"@color/theme_text_color"
android:textColor=
"@color/theme_text_color"
android:textSize=
"@dimen/sp_16"
android:textSize=
"@dimen/sp_16"
app:layout_constraintLeft_toRightOf=
"@+id/tv_split"
/>
app:layout_constraintLeft_toRightOf=
"@+id/tv_split"
/>
<!-- </LinearLayout>-->
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<androidx.recyclerview.widget.RecyclerView
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rv_summary"
android:id=
"@+id/rv_summary"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_20"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginRight=
"@dimen/dp_20"
android:layout_marginRight=
"@dimen/dp_10"
app:layout_constraintTop_toBottomOf=
"@+id/cb_title"
/>
app:layout_constraintTop_toBottomOf=
"@+id/cb_title"
/>
<com.qmuiteam.qmui.widget.QMUIEmptyView
android:id=
"@+id/emptyView"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:fitsSystemWindows=
"true"
/>
<ProgressBar
android:id=
"@+id/progress"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:visibility=
"invisible"
/>
</FrameLayout>
<include
<include
layout=
"@layout/table_input_skyorder_people_number"
/>
layout=
"@layout/table_input_skyorder_people_number"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
table-module/src/main/res/layout/table_input_skyorder_people_number.xml
View file @
fa4a065d
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<com.rengwuxian.materialedittext.MaterialEditText
<com.rengwuxian.materialedittext.MaterialEditText
android:id=
"@+id/ed_value"
android:id=
"@+id/ed_value"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"
@dimen/dp_60
"
android:layout_height=
"
wrap_content
"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:layout_marginLeft=
"@dimen/dp_15"
android:layout_marginLeft=
"@dimen/dp_15"
android:layout_marginRight=
"@dimen/dp_15"
android:layout_marginRight=
"@dimen/dp_15"
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
android:singleLine=
"true"
android:singleLine=
"true"
android:textColor=
"@color/table_input_table_keypad"
android:textColor=
"@color/table_input_table_keypad"
android:textColorHint=
"@color/theme_hint_color"
android:textColorHint=
"@color/theme_hint_color"
android:textSize=
"@dimen/
sp_28
"
android:textSize=
"@dimen/
dp_25
"
android:textStyle=
"bold"
android:textStyle=
"bold"
app:met_baseColor=
"@color/theme_black"
app:met_baseColor=
"@color/theme_black"
app:met_clearButton=
"true"
app:met_clearButton=
"true"
...
@@ -46,7 +46,6 @@
...
@@ -46,7 +46,6 @@
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginTop=
"@dimen/dp_80"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TableLayout
<TableLayout
...
@@ -75,7 +74,7 @@
...
@@ -75,7 +74,7 @@
android:tag=
"7"
android:tag=
"7"
android:text=
"@string/Key_7"
android:text=
"@string/Key_7"
android:textColor=
"@color/table_input_table_keypad"
android:textColor=
"@color/table_input_table_keypad"
android:textSize=
"@dimen/dp_
25
"
/>
android:textSize=
"@dimen/dp_
30
"
/>
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
android:id=
"@+id/btn_8"
android:id=
"@+id/btn_8"
...
@@ -89,7 +88,7 @@
...
@@ -89,7 +88,7 @@
android:tag=
"8"
android:tag=
"8"
android:text=
"@string/Key_8"
android:text=
"@string/Key_8"
android:textColor=
"@color/table_input_table_keypad"
android:textColor=
"@color/table_input_table_keypad"
android:textSize=
"@dimen/dp_
25
"
/>
android:textSize=
"@dimen/dp_
30
"
/>
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
android:id=
"@+id/btn_9"
android:id=
"@+id/btn_9"
...
@@ -102,7 +101,7 @@
...
@@ -102,7 +101,7 @@
android:tag=
"9"
android:tag=
"9"
android:text=
"@string/Key_9"
android:text=
"@string/Key_9"
android:textColor=
"@color/table_input_table_keypad"
android:textColor=
"@color/table_input_table_keypad"
android:textSize=
"@dimen/dp_
25
"
/>
android:textSize=
"@dimen/dp_
30
"
/>
</TableRow>
</TableRow>
<TableRow
<TableRow
...
@@ -124,7 +123,7 @@
...
@@ -124,7 +123,7 @@
android:tag=
"4"
android:tag=
"4"
android:text=
"@string/Key_4"
android:text=
"@string/Key_4"
android:textColor=
"@color/table_input_table_keypad"
android:textColor=
"@color/table_input_table_keypad"
android:textSize=
"@dimen/dp_
25
"
/>
android:textSize=
"@dimen/dp_
30
"
/>
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
android:id=
"@+id/btn_5"
android:id=
"@+id/btn_5"
...
@@ -139,7 +138,7 @@
...
@@ -139,7 +138,7 @@
android:tag=
"5"
android:tag=
"5"
android:text=
"@string/Key_5"
android:text=
"@string/Key_5"
android:textColor=
"@color/table_input_table_keypad"
android:textColor=
"@color/table_input_table_keypad"
android:textSize=
"@dimen/dp_
25
"
/>
android:textSize=
"@dimen/dp_
30
"
/>
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
android:id=
"@+id/btn_6"
android:id=
"@+id/btn_6"
...
@@ -153,7 +152,7 @@
...
@@ -153,7 +152,7 @@
android:tag=
"6"
android:tag=
"6"
android:text=
"@string/Key_6"
android:text=
"@string/Key_6"
android:textColor=
"@color/table_input_table_keypad"
android:textColor=
"@color/table_input_table_keypad"
android:textSize=
"@dimen/dp_
25
"
/>
android:textSize=
"@dimen/dp_
30
"
/>
</TableRow>
</TableRow>
<TableRow
<TableRow
...
@@ -175,7 +174,7 @@
...
@@ -175,7 +174,7 @@
android:tag=
"1"
android:tag=
"1"
android:text=
"@string/Key_1"
android:text=
"@string/Key_1"
android:textColor=
"@color/table_input_table_keypad"
android:textColor=
"@color/table_input_table_keypad"
android:textSize=
"@dimen/dp_
25
"
/>
android:textSize=
"@dimen/dp_
30
"
/>
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
android:id=
"@+id/btn_2"
android:id=
"@+id/btn_2"
...
@@ -190,7 +189,7 @@
...
@@ -190,7 +189,7 @@
android:tag=
"2"
android:tag=
"2"
android:text=
"@string/Key_2"
android:text=
"@string/Key_2"
android:textColor=
"@color/table_input_table_keypad"
android:textColor=
"@color/table_input_table_keypad"
android:textSize=
"@dimen/dp_
25
"
/>
android:textSize=
"@dimen/dp_
30
"
/>
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
android:id=
"@+id/btn_3"
android:id=
"@+id/btn_3"
...
@@ -204,7 +203,7 @@
...
@@ -204,7 +203,7 @@
android:tag=
"3"
android:tag=
"3"
android:text=
"@string/Key_3"
android:text=
"@string/Key_3"
android:textColor=
"@color/table_input_table_keypad"
android:textColor=
"@color/table_input_table_keypad"
android:textSize=
"@dimen/dp_
25
"
/>
android:textSize=
"@dimen/dp_
30
"
/>
</TableRow>
</TableRow>
<TableRow
<TableRow
...
@@ -215,7 +214,7 @@
...
@@ -215,7 +214,7 @@
android:background=
"#FFDDEDFE"
>
android:background=
"#FFDDEDFE"
>
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
android:id=
"@+id/btn_
more
"
android:id=
"@+id/btn_
clear
"
android:layout_width=
"1dip"
android:layout_width=
"1dip"
android:layout_height=
"fill_parent"
android:layout_height=
"fill_parent"
android:layout_marginTop=
"1dp"
android:layout_marginTop=
"1dp"
...
@@ -242,10 +241,10 @@
...
@@ -242,10 +241,10 @@
android:tag=
"0"
android:tag=
"0"
android:text=
"@string/Key_0"
android:text=
"@string/Key_0"
android:textColor=
"@color/table_input_table_keypad"
android:textColor=
"@color/table_input_table_keypad"
android:textSize=
"@dimen/dp_
25
"
/>
android:textSize=
"@dimen/dp_
30
"
/>
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
android:id=
"@+id/btn_
clear
"
android:id=
"@+id/btn_
add10
"
android:layout_width=
"1dip"
android:layout_width=
"1dip"
android:layout_height=
"fill_parent"
android:layout_height=
"fill_parent"
android:layout_marginTop=
"1dp"
android:layout_marginTop=
"1dp"
...
@@ -258,7 +257,7 @@
...
@@ -258,7 +257,7 @@
android:tag=
"99"
android:tag=
"99"
android:text=
"+10"
android:text=
"+10"
android:textColor=
"@color/table_input_table_keypad"
android:textColor=
"@color/table_input_table_keypad"
android:textSize=
"@dimen/dp_2
5
"
/>
android:textSize=
"@dimen/dp_2
8
"
/>
</TableRow>
</TableRow>
</TableLayout>
</TableLayout>
...
@@ -268,7 +267,7 @@
...
@@ -268,7 +267,7 @@
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
<com.qmuiteam.qmui.alpha.QMUIAlphaTextView
android:id=
"@+id/btn_
cha
"
android:id=
"@+id/btn_
delete
"
android:layout_width=
"@dimen/dp_120"
android:layout_width=
"@dimen/dp_120"
android:layout_height=
"0dp"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:layout_weight=
"1"
...
@@ -277,7 +276,7 @@
...
@@ -277,7 +276,7 @@
android:gravity=
"center"
android:gravity=
"center"
android:layerType=
"software"
android:layerType=
"software"
android:tag=
"98"
android:tag=
"98"
android:text=
"
@string/Key_clear
"
android:text=
"
×
"
android:textColor=
"#1196DB"
android:textColor=
"#1196DB"
android:textSize=
"@dimen/dp_25"
android:textSize=
"@dimen/dp_25"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
...
table-module/src/main/res/layout/table_item_skyorder.xml
0 → 100644
View file @
fa4a065d
<?xml version="1.0" encoding="utf-8"?>
<com.qmuiteam.qmui.widget.roundwidget.QMUIRoundRelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"@dimen/dp_80"
android:layout_height=
"@dimen/dp_80"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:layout_above=
"@+id/rv_bottom_function"
android:gravity=
"center"
android:orientation=
"vertical"
app:qmui_backgroundColor=
"@color/theme_color"
app:qmui_borderColor=
"@color/theme_hint_color"
>
<TextView
android:id=
"@+id/tv_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:drawableTint=
"@color/theme_white_color"
android:drawableTop=
"@mipmap/table_skyorder_qrcode"
android:text=
"skyorder"
android:layout_marginTop=
"@dimen/dp_5"
android:textColor=
"@color/theme_white_color"
android:textSize=
"@dimen/font_normal"
/>
<ImageView
android:id=
"@+id/iv_lock"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:tint=
"@color/theme_white_color"
android:layout_below=
"@+id/tv_name"
android:src=
"@drawable/qrcode_time_lock"
/>
</com.qmuiteam.qmui.widget.roundwidget.QMUIRoundRelativeLayout>
\ No newline at end of file
table-module/src/main/res/layout/table_item_
bottom_function
.xml
→
table-module/src/main/res/layout/table_item_
table_bottom
.xml
View file @
fa4a065d
File moved
table-module/src/main/res/menu/table_function_menu.xml
0 → 100644
View file @
fa4a065d
<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:id=
"@+id/init_table"
android:title=
"重置餐檯"
android:icon=
"@mipmap/table_init"
/>
<item
android:id=
"@+id/move_table"
android:title=
"轉移"
android:icon=
"@mipmap/table_move"
/>
<item
android:id=
"@+id/skyorder"
android:title=
"skyorder"
android:icon=
"@mipmap/table_skyorder"
/>
<item
android:id=
"@+id/splite_table"
android:title=
"分檯"
android:icon=
"@mipmap/table_splite"
/>
<item
android:id=
"@+id/print_serving_paper"
android:title=
"上菜紙"
android:icon=
"@mipmap/table_paper"
/>
<item
android:id=
"@+id/print_serving_paper2"
android:title=
"上菜紙2"
android:icon=
"@mipmap/table_paper"
/>
<item
android:id=
"@+id/print_serving_paper3"
android:title=
"上菜紙3"
android:icon=
"@mipmap/table_paper"
/>
</menu>
\ No newline at end of file
table-module/src/main/res/menu/table_order_content_menu.xml
0 → 100644
View file @
fa4a065d
<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:id=
"@+id/send_order"
android:title=
"送單"
/>
<item
android:id=
"@+id/print_order"
android:title=
"印單"
/>
<item
android:id=
"@+id/order_pay"
android:title=
"結賬"
/>
<item
android:id=
"@+id/transfer_food"
android:title=
"轉移"
/>
<item
android:id=
"@+id/order_discount"
android:title=
"折扣"
/>
</menu>
\ No newline at end of file
table-module/src/main/res/mipmap-xhdpi/table_skyorder_qrcode.png
0 → 100644
View file @
fa4a065d
2.29 KB
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