Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TangKuPos
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王海
TangKuPos
Commits
f883af19
Commit
f883af19
authored
Nov 12, 2019
by
陈前
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
布局国际化修改
parent
110ea964
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
282 additions
and
203 deletions
+282
-203
app/src/main/java/com/xingdata/zzdpos/ui/manage/replenishment/fragment/ReplenishmentDetailFragment.java
...e/replenishment/fragment/ReplenishmentDetailFragment.java
+1
-1
app/src/main/java/com/xingdata/zzdpos/util/ConvertUtil.java
app/src/main/java/com/xingdata/zzdpos/util/ConvertUtil.java
+5
-1
app/src/main/res/layout/fragment_replenishement_detail.xml
app/src/main/res/layout/fragment_replenishement_detail.xml
+212
-124
app/src/main/res/layout/item_replenishment.xml
app/src/main/res/layout/item_replenishment.xml
+17
-10
app/src/main/res/layout/item_replenishment_detail.xml
app/src/main/res/layout/item_replenishment_detail.xml
+42
-66
app/src/main/res/values-en/strings.xml
app/src/main/res/values-en/strings.xml
+1
-1
app/src/main/res/values-en/strings_chen.xml
app/src/main/res/values-en/strings_chen.xml
+1
-0
app/src/main/res/values-zh/strings_chen.xml
app/src/main/res/values-zh/strings_chen.xml
+2
-0
app/src/main/res/values/strings_chen.xml
app/src/main/res/values/strings_chen.xml
+1
-0
No files found.
app/src/main/java/com/xingdata/zzdpos/ui/manage/replenishment/fragment/ReplenishmentDetailFragment.java
View file @
f883af19
...
...
@@ -215,7 +215,7 @@ public class ReplenishmentDetailFragment extends BaseFragment<ReplenishmentPrese
mViewBinding
.
setFinallyPrice
(
ConvertUtil
.
fenToYuan
(
getSumPrice
(),
true
));
}
else
{
mViewBinding
.
setSumNum
(
"0"
);
mViewBinding
.
setFinallyPrice
(
"
¥0.00
"
);
mViewBinding
.
setFinallyPrice
(
"
---
"
);
}
mViewBinding
.
setShopOderName
(
LoginPresenter
.
loginReturnBean
.
getOperName
());
mViewBinding
.
setShopName
(
LoginPresenter
.
loginReturnBean
.
getShopNameAbcn
());
...
...
app/src/main/java/com/xingdata/zzdpos/util/ConvertUtil.java
View file @
f883af19
...
...
@@ -3,6 +3,8 @@ package com.xingdata.zzdpos.util;
import
com.blankj.utilcode.util.StringUtils
;
import
java.math.BigDecimal
;
import
java.util.Currency
;
import
java.util.Locale
;
public
class
ConvertUtil
{
...
...
@@ -62,7 +64,9 @@ public class ConvertUtil {
* @return 元
*/
public
static
String
fenToYuan
(
Long
fen
,
boolean
isMonetary
)
{
return
(
isMonetary
?
"¥"
:
""
)
+
fenToYuan
(
fen
);
Currency
currency
=
Currency
.
getInstance
(
Locale
.
getDefault
());
String
symbol
=
currency
.
getSymbol
();
return
(
isMonetary
?
symbol
:
""
)
+
fenToYuan
(
fen
);
}
/**
...
...
app/src/main/res/layout/fragment_replenishement_detail.xml
View file @
f883af19
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/item_replenishment.xml
View file @
f883af19
...
...
@@ -73,10 +73,10 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/all_padding"
android:paddingBottom=
"@dimen/dp_4"
android:paddingEnd=
"@dimen/all_padding"
android:paddingStart=
"@dimen/all_padding"
android:paddingTop=
"@dimen/dp_4"
android:paddingEnd=
"@dimen/all_padding"
android:paddingBottom=
"@dimen/dp_4"
android:text=
"@{status}"
android:textColor=
"@color/white"
app:layout_constraintBottom_toBottomOf=
"@id/ll_boss"
...
...
@@ -101,9 +101,9 @@
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingBottom=
"@dimen/dp_4"
android:paddingStart=
"@dimen/all_padding"
android:paddingTop=
"@dimen/dp_4"
android:paddingBottom=
"@dimen/dp_4"
android:text=
"@{date}"
android:textColor=
"@color/black"
android:textSize=
"@dimen/all_text_size_low"
/>
...
...
@@ -230,8 +230,8 @@
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_padding"
android:layout_marginRight=
"@dimen/all_padding"
android:layout_marginTop=
"@dimen/all_margin"
android:layout_marginRight=
"@dimen/all_padding"
android:gravity=
"end"
android:orientation=
"horizontal"
app:layout_constraintEnd_toEndOf=
"parent"
...
...
@@ -241,25 +241,32 @@
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:
text=
"@{num}
"
android:text
Color=
"@color/reddeep
"
android:text
Size=
"@dimen/all_text_size_big
"
/>
android:
padding=
"@dimen/dp_4
"
android:text
=
"@string/cart_product_count
"
android:text
Color=
"@color/black
"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"@dimen/dp_4"
android:text=
"件"
android:text=
":"
android:textColor=
"@color/black"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@{num}"
android:textColor=
"@color/reddeep"
android:textSize=
"@dimen/all_text_size_big"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/ll_price"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"@dimen/all_padding"
android:layout_marginTop=
"@dimen/all_margin"
android:layout_marginEnd=
"@dimen/all_padding"
android:gravity=
"end"
android:orientation=
"horizontal"
app:layout_constraintEnd_toEndOf=
"@id/ll_cut"
...
...
app/src/main/res/layout/item_replenishment_detail.xml
View file @
f883af19
...
...
@@ -20,6 +20,8 @@
android:id=
"@+id/img_goods"
android:layout_width=
"65dp"
android:layout_height=
"65dp"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:placeholderImage=
"@mipmap/icon_goods_default"
/>
<TextView
...
...
@@ -27,8 +29,8 @@
style=
"@style/other_select_blacktext_style"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"@dimen/all_bounced_padding"
android:layout_marginStart=
"@dimen/all_bounced_padding"
android:layout_marginEnd=
"@dimen/all_bounced_padding"
android:text=
""
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@id/img_goods"
...
...
@@ -38,11 +40,11 @@
android:id=
"@+id/tv_goods_code_hint"
style=
"@style/other_select_smallstyle"
android:layout_width=
"wrap_content"
android:layout_height=
"
28dp
"
android:layout_height=
"
wrap_content
"
android:layout_marginTop=
"@dimen/all_padding"
android:text=
"@string/sku_barcode"
app:layout_constraint
Top_toBottom
Of=
"@id/tv_goods_name"
tools:layout_editor_absoluteX=
"97dp
"
/>
app:layout_constraint
Start_toStart
Of=
"@id/tv_goods_name"
app:layout_constraintTop_toBottomOf=
"@id/tv_goods_name
"
/>
<TextView
android:id=
"@+id/tv_goods_code"
...
...
@@ -96,6 +98,40 @@
app:layout_constraintTop_toTopOf=
"@id/tv_price_hint"
/>
<TextView
android:id=
"@+id/tv_stock_hint"
style=
"@style/other_select_smallstyle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/all_padding"
android:text=
"@string/sssku_stock"
android:textStyle=
"bold"
app:layout_constraintStart_toStartOf=
"@id/tv_goods_code_hint"
app:layout_constraintTop_toBottomOf=
"@id/tv_goods_code_hint"
/>
<TextView
android:id=
"@+id/tv_stock"
style=
"@style/other_select_smallstyle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textStyle=
"bold"
app:layout_constraintBottom_toBottomOf=
"@id/tv_stock_hint"
app:layout_constraintStart_toEndOf=
"@id/tv_goods_code_hint"
app:layout_constraintTop_toTopOf=
"@id/tv_stock_hint"
/>
<TextView
android:id=
"@+id/tv_price_hint"
style=
"@style/other_select_smallstyle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/all_padding"
android:text=
"@string/sku_cost"
android:textStyle=
"bold"
app:layout_constraintStart_toStartOf=
"@id/tv_stock_hint"
app:layout_constraintTop_toBottomOf=
"@id/tv_stock_hint"
/>
<LinearLayout
android:id=
"@+id/linearLayout"
android:layout_width=
"wrap_content"
...
...
@@ -103,9 +139,8 @@
android:layout_marginEnd=
"@dimen/all_padding"
android:gravity=
"center"
android:orientation=
"horizontal"
app:layout_constraintBottom_toBottomOf=
"@id/tv_price_hint"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_to
Top
Of=
"@id/tv_price_hint"
app:layout_constraintTop_to
Bottom
Of=
"@id/tv_price_hint"
>
...
...
@@ -131,8 +166,8 @@
android:id=
"@+id/et_count"
android:layout_width=
"50dp"
android:layout_height=
"match_parent"
android:layout_marginBottom=
"@dimen/dp_4"
android:layout_marginTop=
"@dimen/dp_4"
android:layout_marginBottom=
"@dimen/dp_4"
android:layout_weight=
"1"
android:background=
"@drawable/selector_edit_frame_blue_background"
android:gravity=
"center"
...
...
@@ -154,65 +189,6 @@
tools:layout_editor_absoluteY=
"97dp"
/>
</LinearLayout>
<TextView
android:id=
"@+id/tv_stock_hint"
style=
"@style/other_select_smallstyle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/all_padding"
android:text=
"@string/sssku_stock"
android:textStyle=
"bold"
app:layout_constraintStart_toStartOf=
"@id/tv_goods_code_hint"
app:layout_constraintTop_toBottomOf=
"@id/tv_goods_code_hint"
/>
<TextView
android:id=
"@+id/tv_stock"
style=
"@style/other_select_smallstyle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"0dp"
android:text=
"0个"
android:textStyle=
"bold"
app:layout_constraintBottom_toBottomOf=
"@id/tv_stock_hint"
app:layout_constraintStart_toEndOf=
"@id/tv_goods_code_hint"
app:layout_constraintTop_toTopOf=
"@id/tv_stock_hint"
/>
<!--<TextView-->
<!--android:id="@+id/tv_traffic_hint"-->
<!--style="@style/other_select_smallstyle"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginStart="@dimen/all_margin_big"-->
<!--android:text="在途:"-->
<!--android:textStyle="bold"-->
<!--app:layout_constraintBottom_toBottomOf="@id/tv_stock"-->
<!--app:layout_constraintStart_toEndOf="@id/tv_stock"-->
<!--app:layout_constraintTop_toTopOf="@id/tv_stock" />-->
<!--<TextView-->
<!--android:id="@+id/tv_traffic"-->
<!--style="@style/other_select_smallstyle"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:text="0个"-->
<!--android:textStyle="bold"-->
<!--app:layout_constraintBottom_toBottomOf="@id/tv_traffic_hint"-->
<!--app:layout_constraintStart_toEndOf="@id/tv_traffic_hint" />-->
<TextView
android:id=
"@+id/tv_price_hint"
style=
"@style/other_select_smallstyle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/all_padding"
android:text=
"@string/sku_cost"
android:textStyle=
"bold"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"@id/tv_stock_hint"
app:layout_constraintTop_toBottomOf=
"@id/tv_stock_hint"
/>
</android.support.constraint.ConstraintLayout>
...
...
app/src/main/res/values-en/strings.xml
View file @
f883af19
...
...
@@ -326,7 +326,7 @@
<string
name=
"ing_dialog_title"
>
System reminder
</string>
<!--货币-->
<string
name=
"money_rmb"
>
¥
</string>
<string
name=
"money_rmb"
>
$
</string>
<!--星期-->
<string
name=
"week_mon"
>
Monday
</string>
...
...
app/src/main/res/values-en/strings_chen.xml
View file @
f883af19
...
...
@@ -27,6 +27,7 @@
<string
name=
"replenishment_tv_replenishmentDetail"
>
Order details
</string>
<string
name=
"replenishment_toast_noNeedDo"
>
Stock is normal
</string>
<string
name=
"replenishment_tv_amt"
>
Amount
</string>
<string
name=
"replenishment_tv_shop"
>
Shop
</string>
<!--盘点界面-->
...
...
app/src/main/res/values-zh/strings_chen.xml
View file @
f883af19
...
...
@@ -27,6 +27,8 @@
<string
name=
"replenishment_tv_replenishmentDetail"
>
定货详情
</string>
<string
name=
"replenishment_toast_noNeedDo"
>
库存正常,无需补货
</string>
<string
name=
"replenishment_tv_amt"
>
金额
</string>
<string
name=
"replenishment_tv_shop"
>
定货方
</string>
<!--盘点界面-->
...
...
app/src/main/res/values/strings_chen.xml
View file @
f883af19
...
...
@@ -27,6 +27,7 @@
<string
name=
"replenishment_tv_replenishmentDetail"
>
定货详情
</string>
<string
name=
"replenishment_toast_noNeedDo"
>
库存正常,无需补货
</string>
<string
name=
"replenishment_tv_amt"
>
金额
</string>
<string
name=
"replenishment_tv_shop"
>
定货方
</string>
<!--盘点界面-->
...
...
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