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
19692ff3
Commit
19692ff3
authored
Jul 31, 2020
by
宁斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、餐牌返回餐檯為紅檯問題 2、分檯重置 3、折扣結構邏輯問題
parent
495d306d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
2 deletions
+19
-2
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/MealStandPresenter.java
+2
-2
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/TablePresenter.java
+7
-0
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/activity/TableActivity.java
+1
-0
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/widget/SplitTableDialog.java
+9
-0
No files found.
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/MealStandPresenter.java
View file @
19692ff3
...
@@ -757,12 +757,12 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
...
@@ -757,12 +757,12 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
public
void
onNext
(
@NonNull
BaseResult
info
)
{
public
void
onNext
(
@NonNull
BaseResult
info
)
{
if
(
info
!=
null
&&
info
.
isSuccess
())
{
if
(
info
!=
null
&&
info
.
isSuccess
())
{
mRootView
.
showMessage
(
"送單成功"
);
mRootView
.
showMessage
(
"送單成功"
);
printSendOrder
(
fals
e
);
printSendOrder
(
tru
e
);
}
else
{
}
else
{
if
(!
hasNesOrderFoods
())
{
if
(!
hasNesOrderFoods
())
{
//TODO 未新增食品點擊送單 後台不讓過直接提示即可
//TODO 未新增食品點擊送單 後台不讓過直接提示即可
mRootView
.
showMessage
(
"送單成功"
);
mRootView
.
showMessage
(
"送單成功"
);
printSendOrder
(
fals
e
);
printSendOrder
(
tru
e
);
}
else
{
}
else
{
mRootView
.
showMessage
(
info
.
getErrMsg
());
mRootView
.
showMessage
(
info
.
getErrMsg
());
}
}
...
...
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/TablePresenter.java
View file @
19692ff3
...
@@ -596,6 +596,13 @@ public class TablePresenter extends BasePresenter<TableContract.Model, TableCont
...
@@ -596,6 +596,13 @@ public class TablePresenter extends BasePresenter<TableContract.Model, TableCont
getTables
(
false
,
null
);
getTables
(
false
,
null
);
if
(!
TextUtils
.
isEmpty
(
tableNumber
))
{
SplitTableDialog
splitTableDialog
=
IActivity
.
getSplitTableDialog
();
if
(
splitTableDialog
!=
null
)
{
//重置分檯成功,刷新餐檯
getSplitTables
(
splitTableDialog
.
getMainTableId
());
}
}
}
else
{
}
else
{
if
(
showMessage
)
if
(
showMessage
)
mRootView
.
showMessage
(
respose
.
getErrMsg
());
mRootView
.
showMessage
(
respose
.
getErrMsg
());
...
...
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/activity/TableActivity.java
View file @
19692ff3
...
@@ -437,6 +437,7 @@ public class TableActivity extends BaseFragmentActivity<TablePresenter> implemen
...
@@ -437,6 +437,7 @@ public class TableActivity extends BaseFragmentActivity<TablePresenter> implemen
}
}
});
});
}
}
mSplitTableDialog
.
setMainTableId
(
tableId
);
mSplitTableDialog
.
build
().
show
();
mSplitTableDialog
.
build
().
show
();
mPresenter
.
getSplitTables
(
tableId
);
mPresenter
.
getSplitTables
(
tableId
);
}
}
...
...
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/ui/widget/SplitTableDialog.java
View file @
19692ff3
...
@@ -52,6 +52,7 @@ public class SplitTableDialog extends BaseRetryDialog {
...
@@ -52,6 +52,7 @@ public class SplitTableDialog extends BaseRetryDialog {
private
int
mShadowElevationDp
=
14
;
private
int
mShadowElevationDp
=
14
;
private
int
mBagcolor
;
private
int
mBagcolor
;
private
int
mainTableId
;
private
List
<
TableBean
.
DataBean
>
mItems
;
private
List
<
TableBean
.
DataBean
>
mItems
;
private
TableAdapter
mAdapter
;
private
TableAdapter
mAdapter
;
...
@@ -172,6 +173,14 @@ public class SplitTableDialog extends BaseRetryDialog {
...
@@ -172,6 +173,14 @@ public class SplitTableDialog extends BaseRetryDialog {
progress
.
setVisibility
(
show
?
View
.
VISIBLE
:
View
.
INVISIBLE
);
progress
.
setVisibility
(
show
?
View
.
VISIBLE
:
View
.
INVISIBLE
);
}
}
public
int
getMainTableId
()
{
return
mainTableId
;
}
public
void
setMainTableId
(
int
mainTableId
)
{
this
.
mainTableId
=
mainTableId
;
}
public
void
closeDialog
()
{
public
void
closeDialog
()
{
mDialog
.
dismiss
();
mDialog
.
dismiss
();
}
}
...
...
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