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
90036286
Commit
90036286
authored
Jul 02, 2020
by
宁斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、子項最大可選數沒跟主項數量走
2、切換餐廳 主頁側滑餐廳名字沒變
parent
e8ab37cc
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
136 additions
and
61 deletions
+136
-61
base-module/src/main/java/com/gingersoft/gsa/cloud/base/adapter/print/BillAdapter.java
+1
-1
base-module/src/main/java/com/gingersoft/gsa/cloud/ui/widget/dialog/CommonTipDialog.java
+15
-15
base-module/src/main/res/layout/base_print_bill_adapter_item_bill.xml
+0
-0
main-module/src/main/java/com/gingersoft/gsa/cloud/main/mvp/presenter/SettlementReportPresenter.java
+49
-11
main-module/src/main/java/com/gingersoft/gsa/cloud/main/mvp/ui/activity/NewMainActivity.java
+1
-0
main-module/src/main/java/com/gingersoft/gsa/cloud/main/mvp/ui/activity/SettlementReportActivity.java
+26
-14
main-module/src/main/res/layout/activity_settlement_report.xml
+5
-4
main-module/src/main/res/layout/item_settlement_cross_days_date_num.xml
+3
-2
manager-module/src/main/java/com/gingersoft/gsa/cloud/manager/mvp/ui/fragment/AddTableFragment.java
+5
-0
manager-module/src/main/res/layout/fragment_area_list.xml
+1
-1
print-module/src/main/java/com/joe/print/mvp/print/PrinterRoot.java
+10
-1
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/MealStandPresenter.java
+20
-12
No files found.
base-module/src/main/java/com/gingersoft/gsa/cloud/base/adapter/print/BillAdapter.java
View file @
90036286
...
@@ -13,7 +13,7 @@ import java.util.List;
...
@@ -13,7 +13,7 @@ import java.util.List;
public
class
BillAdapter
extends
BaseQuickAdapter
<
BillingBean
,
BaseViewHolder
>
{
public
class
BillAdapter
extends
BaseQuickAdapter
<
BillingBean
,
BaseViewHolder
>
{
public
BillAdapter
(
@Nullable
List
<
BillingBean
>
data
)
{
public
BillAdapter
(
@Nullable
List
<
BillingBean
>
data
)
{
super
(
R
.
layout
.
print_bill_adapter_item_bill
,
data
);
super
(
R
.
layout
.
base_
print_bill_adapter_item_bill
,
data
);
}
}
@Override
@Override
...
...
base-module/src/main/java/com/gingersoft/gsa/cloud/ui/widget/dialog/CommonTipDialog.java
View file @
90036286
...
@@ -36,9 +36,6 @@ public class CommonTipDialog {
...
@@ -36,9 +36,6 @@ public class CommonTipDialog {
QMUIDialog
.
MessageDialogBuilder
dialogBuilder
=
new
QMUIDialog
.
MessageDialogBuilder
(
context
);
QMUIDialog
.
MessageDialogBuilder
dialogBuilder
=
new
QMUIDialog
.
MessageDialogBuilder
(
context
);
dialogBuilder
.
setTitleIcon
(
R
.
drawable
.
qmui_icon_dialog_doubt
);
dialogBuilder
.
setTitleIcon
(
R
.
drawable
.
qmui_icon_dialog_doubt
);
dialogBuilder
.
setMessage
(
msg
);
dialogBuilder
.
setMessage
(
msg
);
if
(!
TextUtils
.
isEmpty
(
methodName
))
{
dialogBuilder
.
addAction
(
R
.
drawable
.
shape_3c_cancel_btn_bg
,
"取消"
,
(
dialog
,
index
)
->
dialog
.
dismiss
());
}
dialogBuilder
.
addAction
(
R
.
drawable
.
shape_red_five_radius_bg
,
"確認"
,
QMUIDialogAction
.
ACTION_PROP_NEGATIVE
,
(
dialog
,
index
)
->
{
dialogBuilder
.
addAction
(
R
.
drawable
.
shape_red_five_radius_bg
,
"確認"
,
QMUIDialogAction
.
ACTION_PROP_NEGATIVE
,
(
dialog
,
index
)
->
{
dialog
.
dismiss
();
dialog
.
dismiss
();
if
(
TextUtils
.
isEmpty
(
methodName
))
{
if
(
TextUtils
.
isEmpty
(
methodName
))
{
...
@@ -56,6 +53,9 @@ public class CommonTipDialog {
...
@@ -56,6 +53,9 @@ public class CommonTipDialog {
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
});
});
if
(!
TextUtils
.
isEmpty
(
methodName
))
{
dialogBuilder
.
addAction
(
R
.
drawable
.
shape_3c_cancel_btn_bg
,
"取消"
,
(
dialog
,
index
)
->
dialog
.
dismiss
());
}
dialogBuilder
.
create
(
R
.
style
.
MyDialogTheme2
).
show
();
dialogBuilder
.
create
(
R
.
style
.
MyDialogTheme2
).
show
();
}
}
...
@@ -74,9 +74,6 @@ public class CommonTipDialog {
...
@@ -74,9 +74,6 @@ public class CommonTipDialog {
QMUIDialog
.
MessageDialogBuilder
dialogBuilder
=
new
QMUIDialog
.
MessageDialogBuilder
(
context
);
QMUIDialog
.
MessageDialogBuilder
dialogBuilder
=
new
QMUIDialog
.
MessageDialogBuilder
(
context
);
dialogBuilder
.
setMessage
(
msg
);
dialogBuilder
.
setMessage
(
msg
);
dialogBuilder
.
setTitleIcon
(
R
.
drawable
.
qmui_icon_dialog_surprised
);
dialogBuilder
.
setTitleIcon
(
R
.
drawable
.
qmui_icon_dialog_surprised
);
if
(!
TextUtils
.
isEmpty
(
methodName
))
{
dialogBuilder
.
addAction
(
"取消"
,
(
dialog
,
index
)
->
dialog
.
dismiss
());
}
dialogBuilder
.
addAction
(
0
,
"確認"
,
QMUIDialogAction
.
ACTION_PROP_NEGATIVE
,
(
dialog
,
index
)
->
{
dialogBuilder
.
addAction
(
0
,
"確認"
,
QMUIDialogAction
.
ACTION_PROP_NEGATIVE
,
(
dialog
,
index
)
->
{
dialog
.
dismiss
();
dialog
.
dismiss
();
if
(
TextUtils
.
isEmpty
(
methodName
))
{
if
(
TextUtils
.
isEmpty
(
methodName
))
{
...
@@ -94,6 +91,9 @@ public class CommonTipDialog {
...
@@ -94,6 +91,9 @@ public class CommonTipDialog {
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
});
});
if
(!
TextUtils
.
isEmpty
(
methodName
))
{
dialogBuilder
.
addAction
(
"取消"
,
(
dialog
,
index
)
->
dialog
.
dismiss
());
}
dialogBuilder
.
create
(
R
.
style
.
MyDialogTheme2
).
show
();
dialogBuilder
.
create
(
R
.
style
.
MyDialogTheme2
).
show
();
}
}
...
@@ -112,9 +112,6 @@ public class CommonTipDialog {
...
@@ -112,9 +112,6 @@ public class CommonTipDialog {
QMUIDialog
.
MessageDialogBuilder
dialogBuilder
=
new
QMUIDialog
.
MessageDialogBuilder
(
context
);
QMUIDialog
.
MessageDialogBuilder
dialogBuilder
=
new
QMUIDialog
.
MessageDialogBuilder
(
context
);
dialogBuilder
.
setMessage
(
msg
);
dialogBuilder
.
setMessage
(
msg
);
dialogBuilder
.
setTitleIcon
(
R
.
drawable
.
qmui_icon_dialog_warn
);
dialogBuilder
.
setTitleIcon
(
R
.
drawable
.
qmui_icon_dialog_warn
);
if
(!
TextUtils
.
isEmpty
(
methodName
))
{
dialogBuilder
.
addAction
(
"取消"
,
(
dialog
,
index
)
->
dialog
.
dismiss
());
}
dialogBuilder
.
addAction
(
0
,
"確認"
,
QMUIDialogAction
.
ACTION_PROP_NEGATIVE
,
(
dialog
,
index
)
->
{
dialogBuilder
.
addAction
(
0
,
"確認"
,
QMUIDialogAction
.
ACTION_PROP_NEGATIVE
,
(
dialog
,
index
)
->
{
dialog
.
dismiss
();
dialog
.
dismiss
();
if
(
TextUtils
.
isEmpty
(
methodName
))
{
if
(
TextUtils
.
isEmpty
(
methodName
))
{
...
@@ -132,6 +129,9 @@ public class CommonTipDialog {
...
@@ -132,6 +129,9 @@ public class CommonTipDialog {
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
});
});
if
(!
TextUtils
.
isEmpty
(
methodName
))
{
dialogBuilder
.
addAction
(
"取消"
,
(
dialog
,
index
)
->
dialog
.
dismiss
());
}
dialogBuilder
.
create
(
R
.
style
.
MyDialogTheme2
).
show
();
dialogBuilder
.
create
(
R
.
style
.
MyDialogTheme2
).
show
();
}
}
...
@@ -150,9 +150,6 @@ public class CommonTipDialog {
...
@@ -150,9 +150,6 @@ public class CommonTipDialog {
QMUIDialog
.
MessageDialogBuilder
dialogBuilder
=
new
QMUIDialog
.
MessageDialogBuilder
(
context
);
QMUIDialog
.
MessageDialogBuilder
dialogBuilder
=
new
QMUIDialog
.
MessageDialogBuilder
(
context
);
dialogBuilder
.
setMessage
(
msg
);
dialogBuilder
.
setMessage
(
msg
);
dialogBuilder
.
setTitleIcon
(
R
.
drawable
.
qmui_icon_dialog_cancel
);
dialogBuilder
.
setTitleIcon
(
R
.
drawable
.
qmui_icon_dialog_cancel
);
if
(!
TextUtils
.
isEmpty
(
methodName
))
{
dialogBuilder
.
addAction
(
"取消"
,
(
dialog
,
index
)
->
dialog
.
dismiss
());
}
dialogBuilder
.
addAction
(
0
,
"確認"
,
QMUIDialogAction
.
ACTION_PROP_NEGATIVE
,
(
dialog
,
index
)
->
{
dialogBuilder
.
addAction
(
0
,
"確認"
,
QMUIDialogAction
.
ACTION_PROP_NEGATIVE
,
(
dialog
,
index
)
->
{
dialog
.
dismiss
();
dialog
.
dismiss
();
if
(
TextUtils
.
isEmpty
(
methodName
))
{
if
(
TextUtils
.
isEmpty
(
methodName
))
{
...
@@ -170,6 +167,9 @@ public class CommonTipDialog {
...
@@ -170,6 +167,9 @@ public class CommonTipDialog {
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
});
});
if
(!
TextUtils
.
isEmpty
(
methodName
))
{
dialogBuilder
.
addAction
(
"取消"
,
(
dialog
,
index
)
->
dialog
.
dismiss
());
}
dialogBuilder
.
create
(
R
.
style
.
MyDialogTheme2
).
show
();
dialogBuilder
.
create
(
R
.
style
.
MyDialogTheme2
).
show
();
}
}
...
@@ -200,9 +200,6 @@ public class CommonTipDialog {
...
@@ -200,9 +200,6 @@ public class CommonTipDialog {
dialogBuilder
.
setTitle
(
title
);
dialogBuilder
.
setTitle
(
title
);
dialogBuilder
.
setPlaceholder
(
placeholder
);
dialogBuilder
.
setPlaceholder
(
placeholder
);
dialogBuilder
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
);
dialogBuilder
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
);
if
(!
TextUtils
.
isEmpty
(
methodName
))
{
dialogBuilder
.
addAction
(
"取消"
,
(
dialog
,
index
)
->
dialog
.
dismiss
());
}
dialogBuilder
.
addAction
(
0
,
"確認"
,
QMUIDialogAction
.
ACTION_PROP_NEGATIVE
,
(
dialog
,
index
)
->
{
dialogBuilder
.
addAction
(
0
,
"確認"
,
QMUIDialogAction
.
ACTION_PROP_NEGATIVE
,
(
dialog
,
index
)
->
{
dialog
.
dismiss
();
dialog
.
dismiss
();
if
(
TextUtils
.
isEmpty
(
methodName
))
{
if
(
TextUtils
.
isEmpty
(
methodName
))
{
...
@@ -220,6 +217,9 @@ public class CommonTipDialog {
...
@@ -220,6 +217,9 @@ public class CommonTipDialog {
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
});
});
if
(!
TextUtils
.
isEmpty
(
methodName
))
{
dialogBuilder
.
addAction
(
"取消"
,
(
dialog
,
index
)
->
dialog
.
dismiss
());
}
dialogBuilder
.
create
(
R
.
style
.
MyDialogTheme2
).
show
();
dialogBuilder
.
create
(
R
.
style
.
MyDialogTheme2
).
show
();
}
}
...
...
base-module/src/main/res/layout/print_bill_adapter_item_bill.xml
→
base-module/src/main/res/layout/
base_
print_bill_adapter_item_bill.xml
View file @
90036286
File moved
main-module/src/main/java/com/gingersoft/gsa/cloud/main/mvp/presenter/SettlementReportPresenter.java
View file @
90036286
package
com
.
gingersoft
.
gsa
.
cloud
.
main
.
mvp
.
presenter
;
package
com
.
gingersoft
.
gsa
.
cloud
.
main
.
mvp
.
presenter
;
import
android.app.Activity
;
import
android.app.Application
;
import
android.app.Application
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
...
@@ -22,6 +23,8 @@ import com.jess.arms.utils.RxLifecycleUtils;
...
@@ -22,6 +23,8 @@ import com.jess.arms.utils.RxLifecycleUtils;
import
com.qmuiteam.qmui.widget.dialog.QMUIDialog
;
import
com.qmuiteam.qmui.widget.dialog.QMUIDialog
;
import
com.qmuiteam.qmui.widget.dialog.QMUIDialogAction
;
import
com.qmuiteam.qmui.widget.dialog.QMUIDialogAction
;
import
java.lang.reflect.InvocationTargetException
;
import
java.lang.reflect.Method
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -134,6 +137,18 @@ public class SettlementReportPresenter extends BasePresenter<SettlementReportCon
...
@@ -134,6 +137,18 @@ public class SettlementReportPresenter extends BasePresenter<SettlementReportCon
.
subscribe
(
new
ErrorHandleSubscriber
<
SendSettlement
>(
mErrorHandler
)
{
.
subscribe
(
new
ErrorHandleSubscriber
<
SendSettlement
>(
mErrorHandler
)
{
@Override
@Override
public
void
onComplete
()
{
super
.
onComplete
();
IActivity
.
setType
(
0
);
}
@Override
public
void
onError
(
Throwable
t
)
{
super
.
onError
(
t
);
IActivity
.
setType
(
0
);
}
@Override
public
void
onNext
(
@NonNull
SendSettlement
info
)
{
public
void
onNext
(
@NonNull
SendSettlement
info
)
{
if
(
info
!=
null
&&
info
.
isSuccess
())
{
if
(
info
!=
null
&&
info
.
isSuccess
())
{
...
@@ -167,18 +182,25 @@ public class SettlementReportPresenter extends BasePresenter<SettlementReportCon
...
@@ -167,18 +182,25 @@ public class SettlementReportPresenter extends BasePresenter<SettlementReportCon
}
}
}
else
if
(
info
.
getErrCode
().
equals
(
"restaurant.operation.0003"
))
{
}
else
if
(
info
.
getErrCode
().
equals
(
"restaurant.operation.0003"
))
{
//一天多次清機提示
//一天多次清機提示
Class
[]
parameterTypes
=
{};
CommonTipDialog
.
showDoubtDialog
(
IActivity
,
"沒有訂單數據"
,
SettlementReportPresenter
.
class
,
SettlementReportPresenter
.
this
,
Object
[]
parameters
=
{};
""
,
null
,
null
);
CommonTipDialog
.
showDoubtDialog
(
IActivity
,
"今天已清機過,是否繼續清機"
,
SettlementReportPresenter
.
class
,
SettlementReportPresenter
.
this
,
}
"sendSettlement"
,
parameterTypes
,
parameters
);
// else if (info.getErrCode().equals("restaurant.operation.0004")) {
}
else
if
(
info
.
getErrCode
().
equals
(
"restaurant.operation.0004"
))
{
// Class[] parameterTypes = {};
Class
[]
parameterTypes
=
{};
// Object[] parameters = {};
Object
[]
parameters
=
{};
// CommonTipDialog.showDoubtDialog(IActivity, "仍有外送訂單未結賬,請先結賬!", SettlementReportPresenter.class, SettlementReportPresenter.this,
CommonTipDialog
.
showDoubtDialog
(
IActivity
,
"仍有外送訂單未結賬,請先結賬!"
,
SettlementReportPresenter
.
class
,
SettlementReportPresenter
.
this
,
// "", parameterTypes, parameters);
""
,
parameterTypes
,
parameters
);
// }
else
if
(
info
.
getErrCode
().
equals
(
"restaurant.operation.0006"
))
{
//一天多次清機提示
// Class[] parameterTypes = {};
// Object[] parameters = {};
// CommonTipDialog.showDoubtDialog(IActivity, "今天已清機過,是否合併清機", SettlementReportPresenter.class, SettlementReportPresenter.this,
// "sendSettlement", parameterTypes, parameters);
showMergeSettlementDialog
(
IActivity
,
"今天已清機過,是否合併清機"
);
}
else
{
}
else
{
if
(!
TextUtils
.
isEmpty
(
info
.
getErrMsg
()))
{
if
(!
TextUtils
.
isEmpty
(
info
.
getErrMsg
()))
{
mRootView
.
showMessage
(
info
.
getErrMsg
()
+
",清機失敗"
);
mRootView
.
showMessage
(
info
.
getErrMsg
()
+
",清機失敗"
);
}
else
{
}
else
{
mRootView
.
showMessage
(
"清機失敗"
);
mRootView
.
showMessage
(
"清機失敗"
);
}
}
...
@@ -212,6 +234,23 @@ public class SettlementReportPresenter extends BasePresenter<SettlementReportCon
...
@@ -212,6 +234,23 @@ public class SettlementReportPresenter extends BasePresenter<SettlementReportCon
});
});
}
}
public
void
showMergeSettlementDialog
(
Activity
context
,
String
msg
)
{
QMUIDialog
.
MessageDialogBuilder
dialogBuilder
=
new
QMUIDialog
.
MessageDialogBuilder
(
context
);
dialogBuilder
.
setTitleIcon
(
com
.
gingersoft
.
gsa
.
cloud
.
base
.
R
.
drawable
.
qmui_icon_dialog_doubt
);
dialogBuilder
.
setMessage
(
msg
);
dialogBuilder
.
setCancelable
(
true
);
dialogBuilder
.
addAction
(
com
.
gingersoft
.
gsa
.
cloud
.
base
.
R
.
drawable
.
shape_3c_cancel_btn_bg
,
"否"
,
(
dialog
,
index
)
->
{
dialog
.
dismiss
();
sendSettlement
(
SettlementReportActivity
.
merge_settlement_type_3
);
});
dialogBuilder
.
addAction
(
com
.
gingersoft
.
gsa
.
cloud
.
base
.
R
.
drawable
.
shape_red_five_radius_bg
,
"是"
,
QMUIDialogAction
.
ACTION_PROP_NEGATIVE
,
(
dialog
,
index
)
->
{
dialog
.
dismiss
();
sendSettlement
(
SettlementReportActivity
.
merge_settlement_type_2
);
});
dialogBuilder
.
create
(
com
.
gingersoft
.
gsa
.
cloud
.
base
.
R
.
style
.
MyDialogTheme2
).
show
();
}
private
void
showSettlementErrorDialog
(
String
msg
)
{
private
void
showSettlementErrorDialog
(
String
msg
)
{
new
QMUIDialog
.
MessageDialogBuilder
(
IActivity
)
new
QMUIDialog
.
MessageDialogBuilder
(
IActivity
)
.
setTitle
(
"溫馨提示"
)
.
setTitle
(
"溫馨提示"
)
...
@@ -225,7 +264,6 @@ public class SettlementReportPresenter extends BasePresenter<SettlementReportCon
...
@@ -225,7 +264,6 @@ public class SettlementReportPresenter extends BasePresenter<SettlementReportCon
.
create
(
R
.
style
.
MyDialogTheme2
).
show
();
.
create
(
R
.
style
.
MyDialogTheme2
).
show
();
}
}
/**
/**
* 拼接未結賬臺號
* 拼接未結賬臺號
*
*
...
...
main-module/src/main/java/com/gingersoft/gsa/cloud/main/mvp/ui/activity/NewMainActivity.java
View file @
90036286
...
@@ -353,6 +353,7 @@ public class NewMainActivity extends BaseFragmentActivity<NewMainPresenter> impl
...
@@ -353,6 +353,7 @@ public class NewMainActivity extends BaseFragmentActivity<NewMainPresenter> impl
}
}
tvRestaurantName
.
setText
(
restaurantName
);
tvRestaurantName
.
setText
(
restaurantName
);
}
}
tvStoreName
.
setText
(
restaurantName
);
if
(!
TextUtils
.
isEmpty
(
memberName
))
{
if
(!
TextUtils
.
isEmpty
(
memberName
))
{
tvUserName
.
setText
(
memberName
);
tvUserName
.
setText
(
memberName
);
}
}
...
...
main-module/src/main/java/com/gingersoft/gsa/cloud/main/mvp/ui/activity/SettlementReportActivity.java
View file @
90036286
...
@@ -108,6 +108,9 @@ public class SettlementReportActivity extends BaseActivity<SettlementReportPrese
...
@@ -108,6 +108,9 @@ public class SettlementReportActivity extends BaseActivity<SettlementReportPrese
@BindView
(
R2
.
id
.
scrollView
)
@BindView
(
R2
.
id
.
scrollView
)
NestedScrollView
scrollView
;
NestedScrollView
scrollView
;
@BindView
(
R2
.
id
.
sv_cross_days
)
ScrollView
sv_cross_days
;
@BindView
(
R2
.
id
.
ll_cross_days
)
@BindView
(
R2
.
id
.
ll_cross_days
)
LinearLayout
ll_cross_days
;
LinearLayout
ll_cross_days
;
@BindView
(
R2
.
id
.
lv_order_condition
)
@BindView
(
R2
.
id
.
lv_order_condition
)
...
@@ -123,6 +126,16 @@ public class SettlementReportActivity extends BaseActivity<SettlementReportPrese
...
@@ -123,6 +126,16 @@ public class SettlementReportActivity extends BaseActivity<SettlementReportPrese
private
Button
rightBtn
;
private
Button
rightBtn
;
private
int
type
;
private
int
type
;
/**
* 1#全部計入到10號清機數據
* 2#全部計入到12號清機數據
* 3#分別按天結算
*/
public
static
final
int
merge_settlement_type_1
=
1
;
public
static
final
int
merge_settlement_type_2
=
2
;
public
static
final
int
merge_settlement_type_3
=
3
;
//币種
//币種
public
String
cashStr
=
"$"
;
public
String
cashStr
=
"$"
;
protected
String
dfformat
=
"#0.00"
;
protected
String
dfformat
=
"#0.00"
;
...
@@ -207,8 +220,8 @@ public class SettlementReportActivity extends BaseActivity<SettlementReportPrese
...
@@ -207,8 +220,8 @@ public class SettlementReportActivity extends BaseActivity<SettlementReportPrese
@OnClick
({
R2
.
id
.
btn_cancel_cross_days
})
@OnClick
({
R2
.
id
.
btn_cancel_cross_days
})
public
void
onClickCancel
(
View
v
)
{
public
void
onClickCancel
(
View
v
)
{
if
(
v
.
getId
()
==
R
.
id
.
btn_cancel_cross_days
)
{
if
(
v
.
getId
()
==
R
.
id
.
btn_cancel_cross_days
)
{
AnimateUtils
.
animateDown
(
ll
_cross_days
,
500
);
AnimateUtils
.
animateDown
(
sv
_cross_days
,
500
);
ll
_cross_days
.
setVisibility
(
View
.
GONE
);
sv
_cross_days
.
setVisibility
(
View
.
GONE
);
}
}
}
}
...
@@ -580,12 +593,12 @@ public class SettlementReportActivity extends BaseActivity<SettlementReportPrese
...
@@ -580,12 +593,12 @@ public class SettlementReportActivity extends BaseActivity<SettlementReportPrese
@Override
@Override
public
void
showCrossDaysLayout
(
boolean
show
)
{
public
void
showCrossDaysLayout
(
boolean
show
)
{
if
(
show
)
{
if
(
show
)
{
AnimateUtils
.
animateUp
(
ll
_cross_days
,
500
);
AnimateUtils
.
animateUp
(
sv
_cross_days
,
500
);
ll
_cross_days
.
setVisibility
(
View
.
VISIBLE
);
sv
_cross_days
.
setVisibility
(
View
.
VISIBLE
);
rightBtn
.
setVisibility
(
View
.
INVISIBLE
);
rightBtn
.
setVisibility
(
View
.
INVISIBLE
);
}
else
{
}
else
{
AnimateUtils
.
animateDown
(
ll
_cross_days
,
500
);
AnimateUtils
.
animateDown
(
sv
_cross_days
,
500
);
ll
_cross_days
.
setVisibility
(
View
.
GONE
);
sv
_cross_days
.
setVisibility
(
View
.
GONE
);
rightBtn
.
setVisibility
(
View
.
VISIBLE
);
rightBtn
.
setVisibility
(
View
.
VISIBLE
);
}
}
}
}
...
@@ -622,7 +635,7 @@ public class SettlementReportActivity extends BaseActivity<SettlementReportPrese
...
@@ -622,7 +635,7 @@ public class SettlementReportActivity extends BaseActivity<SettlementReportPrese
for
(
int
i
=
0
;
i
<
dateNum
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
dateNum
.
size
();
i
++)
{
SendSettlement
.
DataBean
.
DateNumBean
dateNumBean
=
dateNum
.
get
(
i
);
SendSettlement
.
DataBean
.
DateNumBean
dateNumBean
=
dateNum
.
get
(
i
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"date"
,
TimeUtil
.
getStringByFormat
(
dateNumBean
.
getDate
()
,
TimeUtil
.
dateFormatM_D
));
map
.
put
(
"date"
,
TimeUtil
.
formatDate
(
dateNumBean
.
getDate
(),
TimeUtil
.
dateFormatYMD
,
TimeUtil
.
dateFormatM_D
));
map
.
put
(
"num"
,
dateNumBean
.
getNum
());
map
.
put
(
"num"
,
dateNumBean
.
getNum
());
lists
.
add
(
map
);
lists
.
add
(
map
);
}
}
...
@@ -644,18 +657,14 @@ public class SettlementReportActivity extends BaseActivity<SettlementReportPrese
...
@@ -644,18 +657,14 @@ public class SettlementReportActivity extends BaseActivity<SettlementReportPrese
// if (type3Button != null) {
// if (type3Button != null) {
// type3Button.setChecked(false);
// type3Button.setChecked(false);
// }
// }
//
if
(
type1Button
!=
null
&&
type1Button
.
getId
()
==
checkedId
)
{
if
(
type1Button
!=
null
&&
type1Button
.
getId
()
==
checkedId
)
{
// type1Button.setChecked(true);
type
=
merge_settlement_type_1
;
type
=
1
;
}
}
if
(
type2Button
!=
null
&&
type2Button
.
getId
()
==
checkedId
)
{
if
(
type2Button
!=
null
&&
type2Button
.
getId
()
==
checkedId
)
{
// type2Button.setChecked(true);
type
=
merge_settlement_type_2
;
type
=
2
;
}
}
if
(
type3Button
!=
null
&&
type3Button
.
getId
()
==
checkedId
)
{
if
(
type3Button
!=
null
&&
type3Button
.
getId
()
==
checkedId
)
{
// type3Button.setChecked(true);
type
=
merge_settlement_type_3
;
type
=
3
;
}
}
}
}
});
});
...
@@ -738,4 +747,7 @@ public class SettlementReportActivity extends BaseActivity<SettlementReportPrese
...
@@ -738,4 +747,7 @@ public class SettlementReportActivity extends BaseActivity<SettlementReportPrese
}
}
}
}
public
void
setType
(
int
type
)
{
this
.
type
=
type
;
}
}
}
main-module/src/main/res/layout/activity_settlement_report.xml
View file @
90036286
...
@@ -24,19 +24,20 @@
...
@@ -24,19 +24,20 @@
android:textSize=
"@dimen/dp_15"
/>
android:textSize=
"@dimen/dp_15"
/>
<ScrollView
<ScrollView
android:id=
"@+id/sv_cross_days"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_cont
ent"
android:layout_height=
"
match_par
ent"
android:layout_marginTop=
"?attr/qmui_topbar_height"
android:layout_marginTop=
"?attr/qmui_topbar_height"
android:background=
"@color/theme_white_color"
android:background=
"@color/theme_white_color"
android:fillViewport=
"true"
>
android:fillViewport=
"true"
android:visibility=
"gone"
>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_cross_days"
android:id=
"@+id/ll_cross_days"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:padding=
"@dimen/dp_10"
android:padding=
"@dimen/dp_10"
>
android:visibility=
"gone"
>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
...
main-module/src/main/res/layout/item_settlement_cross_days_date_num.xml
View file @
90036286
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/theme_black"
android:textColor=
"@color/theme_black"
android:textSize=
"@dimen/sp_16"
android:textSize=
"@dimen/sp_16"
android:text=
"
7-18
"
/>
android:text=
""
/>
<TextView
<TextView
android:id=
"@+id/tv_num"
android:id=
"@+id/tv_num"
...
@@ -20,6 +20,6 @@
...
@@ -20,6 +20,6 @@
android:layout_marginLeft=
"@dimen/dp_150"
android:layout_marginLeft=
"@dimen/dp_150"
android:textColor=
"@color/theme_black"
android:textColor=
"@color/theme_black"
android:textSize=
"@dimen/sp_16"
android:textSize=
"@dimen/sp_16"
android:text=
"
7-18
"
/>
android:text=
""
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
manager-module/src/main/java/com/gingersoft/gsa/cloud/manager/mvp/ui/fragment/AddTableFragment.java
View file @
90036286
...
@@ -2,6 +2,7 @@ package com.gingersoft.gsa.cloud.manager.mvp.ui.fragment;
...
@@ -2,6 +2,7 @@ package com.gingersoft.gsa.cloud.manager.mvp.ui.fragment;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.text.InputFilter
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.view.Gravity
;
import
android.view.Gravity
;
import
android.view.LayoutInflater
;
import
android.view.LayoutInflater
;
...
@@ -157,6 +158,8 @@ public class AddTableFragment extends BaseFragment<AddTablePresenter> implements
...
@@ -157,6 +158,8 @@ public class AddTableFragment extends BaseFragment<AddTablePresenter> implements
if
(
mTableItem
.
getLayoutType
()
==
0
)
{
if
(
mTableItem
.
getLayoutType
()
==
0
)
{
tableNameEditText
.
setText
(
mTableItem
.
getTableName
());
tableNameEditText
.
setText
(
mTableItem
.
getTableName
());
}
}
InputFilter
[]
filters
=
{
new
InputFilter
.
LengthFilter
(
15
)};
tableNameEditText
.
setFilters
(
filters
);
// tableNameEditText.setWidth(QMUIDisplayHelper.dp2px(mActivity, 75));
// tableNameEditText.setWidth(QMUIDisplayHelper.dp2px(mActivity, 75));
tableNameEditText
.
setTextSize
(
16
);
tableNameEditText
.
setTextSize
(
16
);
tableNameEditText
.
setBackgroundColor
(
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
trans
));
tableNameEditText
.
setBackgroundColor
(
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
trans
));
...
@@ -310,6 +313,8 @@ public class AddTableFragment extends BaseFragment<AddTablePresenter> implements
...
@@ -310,6 +313,8 @@ public class AddTableFragment extends BaseFragment<AddTablePresenter> implements
if
(
mTableItem
.
getLayoutType
()
==
0
&&
mTableItem
.
getServiceCharge
()
!=
0
)
{
if
(
mTableItem
.
getLayoutType
()
==
0
&&
mTableItem
.
getServiceCharge
()
!=
0
)
{
serverchargeEditText
.
setText
(
mTableItem
.
getServiceCharge
()
+
""
);
serverchargeEditText
.
setText
(
mTableItem
.
getServiceCharge
()
+
""
);
}
}
InputFilter
[]
filters2
=
{
new
InputFilter
.
LengthFilter
(
2
)};
serverchargeEditText
.
setFilters
(
filters2
);
serverchargeEditText
.
setTextSize
(
16
);
serverchargeEditText
.
setTextSize
(
16
);
serverchargeEditText
.
setBackgroundColor
(
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
trans
));
serverchargeEditText
.
setBackgroundColor
(
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
trans
));
serverchargeEditText
.
setInputType
(
EditorInfo
.
TYPE_CLASS_NUMBER
);
serverchargeEditText
.
setInputType
(
EditorInfo
.
TYPE_CLASS_NUMBER
);
...
...
manager-module/src/main/res/layout/fragment_area_list.xml
View file @
90036286
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@null"
android:background=
"@null"
android:hint=
"請輸入區域名稱"
android:hint=
"請輸入區域名稱"
android:maxLength=
"
20
"
android:maxLength=
"
15
"
android:paddingLeft=
"@dimen/dp_10"
android:paddingLeft=
"@dimen/dp_10"
android:paddingRight=
"@dimen/dp_10"
android:paddingRight=
"@dimen/dp_10"
android:singleLine=
"true"
android:singleLine=
"true"
...
...
print-module/src/main/java/com/joe/print/mvp/print/PrinterRoot.java
View file @
90036286
...
@@ -414,7 +414,13 @@ public abstract class PrinterRoot implements PrintSocketHolder.OnStateChangedLis
...
@@ -414,7 +414,13 @@ public abstract class PrinterRoot implements PrintSocketHolder.OnStateChangedLis
// 默認打印方式為ip打印,調用ip打印方法
// 默認打印方式為ip打印,調用ip打印方法
// 獲取默認ip打印機
// 獲取默認ip打印機
if
(
printerDeviceBeans
!=
null
&&
printerDeviceBeans
.
size
()
>
0
)
{
if
(
printerDeviceBeans
!=
null
&&
printerDeviceBeans
.
size
()
>
0
)
{
ipDevicePrint
(
getDefaultPrintInList
(
printerDeviceBeans
),
bitmaps
);
PrinterDeviceBean
deviceBean
=
getDefaultPrintInList
(
printerDeviceBeans
);
if
(
deviceBean
==
null
)
{
//沒有默認打印機,彈出彈窗,讓用戶選擇ip打印機
showIpPrintDeviceList
(
printerDeviceBeans
,
bitmaps
);
}
else
{
ipDevicePrint
(
getDefaultPrintInList
(
printerDeviceBeans
),
bitmaps
);
}
}
else
{
}
else
{
//沒有默認打印機,彈出彈窗,讓用戶選擇ip打印機
//沒有默認打印機,彈出彈窗,讓用戶選擇ip打印機
showIpPrintDeviceList
(
printerDeviceBeans
,
bitmaps
);
showIpPrintDeviceList
(
printerDeviceBeans
,
bitmaps
);
...
@@ -480,6 +486,9 @@ public abstract class PrinterRoot implements PrintSocketHolder.OnStateChangedLis
...
@@ -480,6 +486,9 @@ public abstract class PrinterRoot implements PrintSocketHolder.OnStateChangedLis
public
void
ipDevicePrint
(
PrinterDeviceBean
public
void
ipDevicePrint
(
PrinterDeviceBean
printerDeviceBean
,
List
<
Bitmap
>
bitmaps
,
PrintSocketHolder
.
OnStateChangedListener
printerDeviceBean
,
List
<
Bitmap
>
bitmaps
,
PrintSocketHolder
.
OnStateChangedListener
stateChangedListener
,
PrintExecutor
.
OnPrintResultListener
resultListener
)
{
stateChangedListener
,
PrintExecutor
.
OnPrintResultListener
resultListener
)
{
if
(
printerDeviceBean
==
null
)
return
;
int
printWidth
;
//打印出來的內容寬度
int
printWidth
;
//打印出來的內容寬度
if
(
printerDeviceBean
.
getPaperSpecification
()
!=
null
)
{
if
(
printerDeviceBean
.
getPaperSpecification
()
!=
null
)
{
printWidth
=
Double
.
valueOf
(
printerDeviceBean
.
getPaperSpecification
()).
intValue
();
printWidth
=
Double
.
valueOf
(
printerDeviceBean
.
getPaperSpecification
()).
intValue
();
...
...
table-module/src/main/java/com/gingersoft/gsa/cloud/table/mvp/presenter/MealStandPresenter.java
View file @
90036286
...
@@ -352,11 +352,11 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
...
@@ -352,11 +352,11 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
for
(
int
i
=
0
;
i
<
mFoodComboList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
mFoodComboList
.
size
();
i
++)
{
//自动添加组合子食品
//自动添加组合子食品
ComboItem
comboItem
=
mFoodComboList
.
get
(
i
);
ComboItem
comboItem
=
mFoodComboList
.
get
(
i
);
if
(
comboItem
.
isSold
())
{
//
if (comboItem.isSold()) {
String
msg
=
"["
+
comboItem
.
getName
()
+
"]"
+
comboItem
.
getCurrentMaxNumber
();
//
String msg = "[" + comboItem.getName() + "]" + comboItem.getCurrentMaxNumber();
CommonTipDialog
.
showSurpisedDialog
(
IActivity
,
msg
,
null
,
null
,
null
,
null
,
null
);
//
CommonTipDialog.showSurpisedDialog(IActivity, msg, null, null, null, null, null);
continue
;
//
continue;
}
//
}
if
(
comboItem
.
getInvisible
()
!=
2
)
{
if
(
comboItem
.
getInvisible
()
!=
2
)
{
int
defNumber
=
Integer
.
parseInt
(
comboItem
.
getDefmodifier
());
int
defNumber
=
Integer
.
parseInt
(
comboItem
.
getDefmodifier
());
if
(
defNumber
!=
0
)
{
if
(
defNumber
!=
0
)
{
...
@@ -371,11 +371,11 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
...
@@ -371,11 +371,11 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
//自动添加mixqty>1細項
//自动添加mixqty>1細項
for
(
int
i
=
0
;
i
<
mModifierList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
mModifierList
.
size
();
i
++)
{
Modifier
modfier
=
mModifierList
.
get
(
i
);
Modifier
modfier
=
mModifierList
.
get
(
i
);
if
(
modfier
.
isSold
())
{
//
if (modfier.isSold()) {
String
msg
=
"["
+
modfier
.
getModifierName
()
+
"]"
+
modfier
.
getCurrentMaxNumber
();
//
String msg = "[" + modfier.getModifierName() + "]" + modfier.getCurrentMaxNumber();
CommonTipDialog
.
showSurpisedDialog
(
IActivity
,
msg
,
null
,
null
,
null
,
null
,
null
);
//
CommonTipDialog.showSurpisedDialog(IActivity, msg, null, null, null, null, null);
continue
;
//
continue;
}
//
}
if
(
modfier
.
getInvisible
()
!=
2
)
{
if
(
modfier
.
getInvisible
()
!=
2
)
{
int
defNumber
=
Integer
.
parseInt
(
modfier
.
getDefmodifier
());
int
defNumber
=
Integer
.
parseInt
(
modfier
.
getDefmodifier
());
if
(
defNumber
!=
0
)
{
if
(
defNumber
!=
0
)
{
...
@@ -493,6 +493,7 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
...
@@ -493,6 +493,7 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
}
}
private
int
getCutPositionByOutLimitModifier
(
Modifier
modifier
)
{
private
int
getCutPositionByOutLimitModifier
(
Modifier
modifier
)
{
int
mainOrderNumber
=
1
;
int
oldCount
=
0
;
int
oldCount
=
0
;
SparseArray
<
String
>
numberAndCutPositionMap
=
new
SparseArray
<>();
SparseArray
<
String
>
numberAndCutPositionMap
=
new
SparseArray
<>();
OrderDetail
currentMainOrderDetail
=
mSelectMealAdapter
.
getCurrentMainOrderDetail
();
OrderDetail
currentMainOrderDetail
=
mSelectMealAdapter
.
getCurrentMainOrderDetail
();
...
@@ -502,6 +503,9 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
...
@@ -502,6 +503,9 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
for
(
int
i
=
mOrderFoodList
.
size
()
-
1
;
i
>=
0
;
i
--)
{
for
(
int
i
=
mOrderFoodList
.
size
()
-
1
;
i
>=
0
;
i
--)
{
if
(
start_position
<=
i
&&
i
<=
end_position
)
{
if
(
start_position
<=
i
&&
i
<=
end_position
)
{
OrderDetail
item
=
mOrderFoodList
.
get
(
i
);
OrderDetail
item
=
mOrderFoodList
.
get
(
i
);
if
(
item
.
getItemType
()
==
1
)
{
mainOrderNumber
=
item
.
getNumber
();
}
if
(
item
.
getItemType
()
==
3
&&
item
.
getTopId
()
==
modifier
.
getTopId
())
{
if
(
item
.
getItemType
()
==
3
&&
item
.
getTopId
()
==
modifier
.
getTopId
())
{
//同一食品下的細項
//同一食品下的細項
String
comboIdAndNumber
=
numberAndCutPositionMap
.
get
((
int
)
item
.
getTopId
());
String
comboIdAndNumber
=
numberAndCutPositionMap
.
get
((
int
)
item
.
getTopId
());
...
@@ -537,7 +541,7 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
...
@@ -537,7 +541,7 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
for
(
int
i
=
0
;
i
<
numberAndCutPositionMap
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
numberAndCutPositionMap
.
size
();
i
++)
{
String
[]
numberAndCutPositionStr
=
numberAndCutPositionMap
.
valueAt
(
i
).
split
(
"_"
);
String
[]
numberAndCutPositionStr
=
numberAndCutPositionMap
.
valueAt
(
i
).
split
(
"_"
);
int
number
=
Integer
.
parseInt
(
numberAndCutPositionStr
[
0
]);
int
number
=
Integer
.
parseInt
(
numberAndCutPositionStr
[
0
]);
int
maxQty
=
Integer
.
parseInt
(
modifier
.
getMaxNumber
());
int
maxQty
=
Integer
.
parseInt
(
modifier
.
getMaxNumber
())
*
mainOrderNumber
;
;
if
(
numberAndCutPositionStr
.
length
>
1
&&
!
TextUtils
.
isEmpty
(
numberAndCutPositionStr
[
1
]))
{
if
(
numberAndCutPositionStr
.
length
>
1
&&
!
TextUtils
.
isEmpty
(
numberAndCutPositionStr
[
1
]))
{
int
cutPosition
=
Integer
.
parseInt
(
numberAndCutPositionStr
[
1
]);
int
cutPosition
=
Integer
.
parseInt
(
numberAndCutPositionStr
[
1
]);
if
(
maxQty
<=
number
&&
cutPosition
<
mOrderFoodList
.
size
())
{
if
(
maxQty
<=
number
&&
cutPosition
<
mOrderFoodList
.
size
())
{
...
@@ -553,6 +557,7 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
...
@@ -553,6 +557,7 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
}
}
private
int
getCutPositionOutLimitCombo
(
ComboItem
comboItem
)
{
private
int
getCutPositionOutLimitCombo
(
ComboItem
comboItem
)
{
int
mainOrderNumber
=
1
;
int
oldCount
=
0
;
int
oldCount
=
0
;
SparseArray
<
String
>
numberAndCutPositionMap
=
new
SparseArray
<>();
SparseArray
<
String
>
numberAndCutPositionMap
=
new
SparseArray
<>();
OrderDetail
currentMainOrderDetail
=
mSelectMealAdapter
.
getCurrentMainOrderDetail
();
OrderDetail
currentMainOrderDetail
=
mSelectMealAdapter
.
getCurrentMainOrderDetail
();
...
@@ -562,6 +567,9 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
...
@@ -562,6 +567,9 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
for
(
int
i
=
mOrderFoodList
.
size
()
-
1
;
i
>=
0
;
i
--)
{
for
(
int
i
=
mOrderFoodList
.
size
()
-
1
;
i
>=
0
;
i
--)
{
if
(
start_position
<=
i
&&
i
<=
end_position
)
{
if
(
start_position
<=
i
&&
i
<=
end_position
)
{
OrderDetail
item
=
mOrderFoodList
.
get
(
i
);
OrderDetail
item
=
mOrderFoodList
.
get
(
i
);
if
(
item
.
getItemType
()
==
1
)
{
mainOrderNumber
=
item
.
getNumber
();
}
if
(
item
.
getItemType
()
==
2
&&
item
.
getTopId
()
==
comboItem
.
getComId
())
{
if
(
item
.
getItemType
()
==
2
&&
item
.
getTopId
()
==
comboItem
.
getComId
())
{
//同一套餐下的子食品
//同一套餐下的子食品
String
comboIdAndNumber
=
numberAndCutPositionMap
.
get
((
int
)
item
.
getTopId
());
String
comboIdAndNumber
=
numberAndCutPositionMap
.
get
((
int
)
item
.
getTopId
());
...
@@ -597,7 +605,7 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
...
@@ -597,7 +605,7 @@ public class MealStandPresenter extends BaseOrderPresenter<MealStandContract.Mod
for
(
int
i
=
0
;
i
<
numberAndCutPositionMap
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
numberAndCutPositionMap
.
size
();
i
++)
{
String
[]
numberAndCutPositionStr
=
numberAndCutPositionMap
.
valueAt
(
i
).
split
(
"_"
);
String
[]
numberAndCutPositionStr
=
numberAndCutPositionMap
.
valueAt
(
i
).
split
(
"_"
);
int
number
=
Integer
.
parseInt
(
numberAndCutPositionStr
[
0
]);
int
number
=
Integer
.
parseInt
(
numberAndCutPositionStr
[
0
]);
int
maxQty
=
comboItem
.
getSelectQty
();
int
maxQty
=
comboItem
.
getSelectQty
()
*
mainOrderNumber
;
if
(
numberAndCutPositionStr
.
length
>
1
&&
!
TextUtils
.
isEmpty
(
numberAndCutPositionStr
[
1
]))
{
if
(
numberAndCutPositionStr
.
length
>
1
&&
!
TextUtils
.
isEmpty
(
numberAndCutPositionStr
[
1
]))
{
int
cutPosition
=
Integer
.
parseInt
(
numberAndCutPositionStr
[
1
]);
int
cutPosition
=
Integer
.
parseInt
(
numberAndCutPositionStr
[
1
]);
if
(
maxQty
<=
number
&&
cutPosition
<
mOrderFoodList
.
size
())
{
if
(
maxQty
<=
number
&&
cutPosition
<
mOrderFoodList
.
size
())
{
...
...
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