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
73b28016
Commit
73b28016
authored
Sep 24, 2020
by
Wyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
9.24 1.顯示是否打印PDF 2、獲取登陸人數優化
Signed-off-by: Wyh <1239658231>
parent
ea884f5b
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
39 additions
and
62 deletions
+39
-62
base-module/src/androidTest/java/com/gingersoft/gsa/cloud/base/ExampleInstrumentedTest.java
+0
-30
base-module/src/main/java/com/gingersoft/gsa/cloud/print/bean/OrderDetails.kt
+1
-2
base-module/src/main/res/drawable/selector_checkbox.xml
+6
-0
base-module/src/test/java/com/gingersoft/gsa/cloud/base/ExampleUnitTest.java
+0
-18
coldchain-module/src/main/java/com/gingersoft/coldchain_module/mvp/ui/activity/ColdChainMainActivity.java
+1
-1
coldchain-module/src/main/java/com/gingersoft/coldchain_module/mvp/ui/adapter/OrderListAdapter.java
+6
-0
coldchain-module/src/main/res/layout/cold_chain_order_item2.xml
+16
-3
coldchain-module/src/main/res/layout/frozen_chain_main.xml
+3
-1
delivery_pick_module/src/main/java/com/gingersoft/gsa/delivery_pick_mode/ui/activity/OrderDetailsActivity.kt
+4
-4
login-module/src/main/java/com/gingersoft/gsa/cloud/login/mvp/ui/activity/mvp/presenter/ChooseRestaurantPresenter.java
+0
-2
login-module/src/main/java/com/gingersoft/gsa/cloud/login/mvp/ui/activity/mvp/ui/activity/ChooseRestaurantActivity.java
+2
-1
No files found.
base-module/src/androidTest/java/com/gingersoft/gsa/cloud/base/ExampleInstrumentedTest.java
deleted
100644 → 0
View file @
ea884f5b
package
com
.
gingersoft
.
gsa
.
cloud
.
base
;
import
android.content.Context
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
androidx.test.filters.SmallTest
;
import
androidx.test.platform.app.InstrumentationRegistry
;
import
androidx.test.runner.AndroidJUnit4
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith
(
AndroidJUnit4
.
class
)
@SmallTest
public
class
ExampleInstrumentedTest
{
@Test
public
void
useAppContext
()
{
// Context of the app under test.
Context
appContext
=
InstrumentationRegistry
.
getInstrumentation
().
getTargetContext
();
assertEquals
(
"com.joe.public_base.test"
,
appContext
.
getPackageName
());
}
}
base-module/src/main/java/com/gingersoft/gsa/cloud/print/bean/OrderDetails.kt
View file @
73b28016
...
...
@@ -156,8 +156,7 @@ class OrderDetails {
//1食品清单不打印 账单不打印
//2食品清单打印 账单不打印
//3食品清单不打印 账单打印
// var printTo: Int = 0
//var printTo: Int = 0
class
ChildBean
:
Serializable
{
/**
* odsId : 1654488
...
...
base-module/src/main/res/drawable/selector_checkbox.xml
0 → 100644
View file @
73b28016
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@drawable/ic_checkbox_checked"
android:state_checked=
"true"
/>
<item
android:drawable=
"@drawable/ic_checkbox_uncheck"
/>
</selector>
\ No newline at end of file
base-module/src/test/java/com/gingersoft/gsa/cloud/base/ExampleUnitTest.java
deleted
100644 → 0
View file @
ea884f5b
package
com
.
gingersoft
.
gsa
.
cloud
.
base
;
import
org.junit.Test
;
import
static
org
.
junit
.
Assert
.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public
class
ExampleUnitTest
{
@Test
public
void
addition_isCorrect
()
{
assertEquals
(
4
,
2
+
2
);
}
}
\ No newline at end of file
coldchain-module/src/main/java/com/gingersoft/coldchain_module/mvp/ui/activity/ColdChainMainActivity.java
View file @
73b28016
...
...
@@ -127,7 +127,7 @@ public class ColdChainMainActivity extends BaseFragmentActivity<ColdChainMainPre
@Override
public
int
initView
(
@Nullable
Bundle
savedInstanceState
)
{
return
R
.
layout
.
activity
_main
;
//如果你不需要框架帮你设置 setContentView(id) 需要自行设置,请返回 0
return
R
.
layout
.
frozen_chain
_main
;
//如果你不需要框架帮你设置 setContentView(id) 需要自行设置,请返回 0
}
@Override
...
...
coldchain-module/src/main/java/com/gingersoft/coldchain_module/mvp/ui/adapter/OrderListAdapter.java
View file @
73b28016
...
...
@@ -32,6 +32,12 @@ public class OrderListAdapter extends BaseQuickAdapter<OrderList.DataBeanX.DataB
@Override
protected
void
convert
(
@NotNull
BaseViewHolder
baseViewHolder
,
OrderList
.
DataBeanX
.
DataBean
dataBean
)
{
if
(
dataBean
.
getIsPrintPdf
()
==
0
)
{
baseViewHolder
.
setText
(
R
.
id
.
tv_logistics_order_print_state
,
"未打印物流單"
);
baseViewHolder
.
setGone
(
R
.
id
.
tv_logistics_order_print_state
,
false
);
}
else
{
baseViewHolder
.
setGone
(
R
.
id
.
tv_logistics_order_print_state
,
true
);
}
baseViewHolder
.
setText
(
R
.
id
.
tv_pay_method
,
dataBean
.
getOrderPayType
()
==
1
?
"貨到付款"
:
"在線支付"
);
baseViewHolder
.
setText
(
R
.
id
.
tv_order_time
,
TimeUtils
.
parseTimeRepeat
(
dataBean
.
getCREATE_TIME
(),
TimeUtils
.
DEFAULT_DATE_FORMAT
));
if
(
TextUtil
.
isEmptyOrNullOrUndefined
(
dataBean
.
getRECEIVER
()))
{
...
...
coldchain-module/src/main/res/layout/cold_chain_order_item2.xml
View file @
73b28016
...
...
@@ -18,8 +18,8 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:paddingTop=
"@dimen/dp_10"
android:paddingLeft=
"@dimen/dp_14"
android:paddingTop=
"@dimen/dp_10"
android:paddingRight=
"@dimen/dp_14"
android:paddingBottom=
"@dimen/dp_6"
>
...
...
@@ -83,16 +83,29 @@
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/dp_15"
android:layout_marginRight=
"@dimen/dp_10"
android:textColor=
"@color/color_3c"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintRight_toLeftOf=
"@id/tv_order_amount"
app:layout_constraintTop_toBottomOf=
"@id/tv_order_user_name"
app:layout_constraintVertical_bias=
"1"
android:textColor=
"@color/color_3c"
tools:text=
"用戶收貨地址"
tools:textColor=
"#868686"
/>
<TextView
android:id=
"@+id/tv_logistics_order_print_state"
style=
"@style/order_item_info_title_textStyle"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/dp_9"
android:gravity=
"right"
android:text=
"物流單已打印"
android:textColor=
"@color/color_3c"
app:layout_constraintLeft_toRightOf=
"@id/tv_pay_method"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/tv_order_time"
/>
<TextView
android:id=
"@+id/tv_delivery_state"
style=
"@style/order_item_info_title_textStyle"
android:layout_width=
"0dp"
...
...
@@ -102,7 +115,7 @@
android:textColor=
"@color/color_3c"
app:layout_constraintLeft_toRightOf=
"@id/tv_pay_method"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/tv_
order_tim
e"
app:layout_constraintTop_toBottomOf=
"@id/tv_
logistics_order_print_stat
e"
tools:text=
"已通知物流"
tools:textColor=
"@color/theme_333_color"
/>
...
...
coldchain-module/src/main/res/layout/
activity
_main.xml
→
coldchain-module/src/main/res/layout/
frozen_chain
_main.xml
View file @
73b28016
...
...
@@ -161,6 +161,7 @@
style=
"@style/otherOrder_restaurant_state_style"
android:background=
"@drawable/shape_restaurant_state_bg"
android:text=
"營業中 "
android:layout_marginRight=
"@dimen/dp_10"
app:layout_constraintBottom_toBottomOf=
"@id/ed_cold_chain_order_num_search"
app:layout_constraintRight_toLeftOf=
"@id/cb_auto_receiving_orders"
app:layout_constraintTop_toTopOf=
"@id/ed_cold_chain_order_num_search"
/>
...
...
@@ -179,9 +180,10 @@
android:id=
"@+id/cb_auto_receiving_orders"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:buttonTint=
"@color/color_a9"
android:text=
"自動接單"
android:button=
"@drawable/selector_checkbox"
android:textColor=
"@color/color_a9"
app:layout_constraintBottom_toBottomOf=
"@id/tv_cold_chain_restaurant_state"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintTop_toTopOf=
"@id/tv_cold_chain_restaurant_state"
/>
...
...
delivery_pick_module/src/main/java/com/gingersoft/gsa/delivery_pick_mode/ui/activity/OrderDetailsActivity.kt
View file @
73b28016
...
...
@@ -141,7 +141,7 @@ class OrderDetailsActivity : BaseActivity() {
btnList
.
add
(
it
)
}
orderStatusText
=
"待確認"
tv_order_state
.
setTextColor
(
ContextCompat
.
getColor
(
this
@OrderDetailsActivity
,
R
.
color
.
order_state0_color
))
tv_order_state
.
setTextColor
(
getmColor
(
R
.
color
.
order_state0_color
))
if
(
orderDetails
.
isDelete
==
0
)
{
btnBuilder
.
getLogisticsBtn
()
?.
let
{
btnList
.
add
(
it
)
...
...
@@ -162,7 +162,7 @@ class OrderDetailsActivity : BaseActivity() {
btnBuilder
.
getProductionCompletedBtn
()
?.
let
{
btnList
.
add
(
it
)
}
tv_order_state
.
setTextColor
(
ContextCompat
.
getColor
(
this
@OrderDetailsActivity
,
R
.
color
.
order_state0_color
))
tv_order_state
.
setTextColor
(
getmColor
(
R
.
color
.
order_state0_color
))
}
else
{
//製作中的外賣,應該有打印、取消物流、取消訂單
if
(
orderDetails
.
isDelete
==
0
)
{
...
...
@@ -185,7 +185,7 @@ class OrderDetailsActivity : BaseActivity() {
btnList
.
add
(
it
)
}
}
tv_order_state
.
setTextColor
(
resources
.
get
Color
(
R
.
color
.
order_state1_color
))
tv_order_state
.
setTextColor
(
getm
Color
(
R
.
color
.
order_state1_color
))
}
orderStatusText
=
"製作中"
}
...
...
@@ -203,7 +203,7 @@ class OrderDetailsActivity : BaseActivity() {
btnBuilder
.
getClosingBtn
()
?.
let
{
btnList
.
add
(
it
)
}
tv_order_state
.
setTextColor
(
ContextCompat
.
getColor
(
this
@OrderDetailsActivity
,
R
.
color
.
order_state3_color
))
tv_order_state
.
setTextColor
(
getmColor
(
R
.
color
.
order_state3_color
))
}
else
{
// 外賣有打印
// 如果是第三方物流,不顯示結賬
...
...
login-module/src/main/java/com/gingersoft/gsa/cloud/login/mvp/ui/activity/mvp/presenter/ChooseRestaurantPresenter.java
View file @
73b28016
...
...
@@ -125,8 +125,6 @@ public class ChooseRestaurantPresenter extends BasePresenter<ChooseRestaurantCon
public
void
onError
(
Throwable
t
)
{
super
.
onError
(
t
);
mRootView
.
showLoginLimit
(
null
);
// mRootView.launchActivity(new Intent(IAcitivity, LoginActivity.class));
// mRootView.jumpDownloadActivity();
}
});
}
...
...
login-module/src/main/java/com/gingersoft/gsa/cloud/login/mvp/ui/activity/mvp/ui/activity/ChooseRestaurantActivity.java
View file @
73b28016
...
...
@@ -105,7 +105,7 @@ public class ChooseRestaurantActivity extends BaseActivity<ChooseRestaurantPrese
private
QMUISection
<
SectionHeader
,
SectionRestaurantItem
>
createSection
(
BrandsBean
.
BrandsData
brandsBean
)
{
SectionHeader
header
=
new
SectionHeader
(
brandsBean
.
getBrandName
());
ArrayList
<
SectionRestaurantItem
>
contents
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
Objects
.
requireNonNull
(
brandsBean
.
getRestaurants
().
size
()
);
i
++)
{
for
(
int
i
=
0
;
i
<
brandsBean
.
getRestaurants
().
size
(
);
i
++)
{
contents
.
add
(
new
SectionRestaurantItem
(
Objects
.
requireNonNull
(
brandsBean
.
getRestaurants
().
get
(
i
))));
}
return
new
QMUISection
<>(
header
,
contents
,
false
);
...
...
@@ -343,6 +343,7 @@ public class ChooseRestaurantActivity extends BaseActivity<ChooseRestaurantPrese
}).
setGravity
(
Gravity
.
BOTTOM
).
show
();
}
else
{
showMessage
(
"獲取登陸人數失敗"
);
GsaCloudApplication
.
logOut
();
launchActivity
(
new
Intent
(
mContext
,
LoginActivity
.
class
));
}
}
...
...
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