Skip to content
项目
Groups
代码片段
帮助
正在加载...
Sign in / Register
Toggle navigation
W
workoffice
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图表
统计图
Create a new issue
作业
提交
议题看板
Open sidebar
冷广德
workoffice
Commits
1897438a
提交
1897438a
authored
6月 14, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.修改三位小数
上级
5a9a15d5
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
6 行增加
和
5 行删除
+6
-5
WorkProDetailActivity.java
...orkoffice/ui/activity/bat/work/WorkProDetailActivity.java
+4
-4
WorkProPriceAdapter.java
...ava/com/wd/workoffice/ui/adapter/WorkProPriceAdapter.java
+2
-1
没有找到文件。
app/src/main/java/com/wd/workoffice/ui/activity/bat/work/WorkProDetailActivity.java
浏览文件 @
1897438a
...
@@ -97,7 +97,7 @@ public class WorkProDetailActivity extends WorkToolBarActivity {
...
@@ -97,7 +97,7 @@ public class WorkProDetailActivity extends WorkToolBarActivity {
tvClazz
.
setText
(
proBean
.
getProductTypeName
());
tvClazz
.
setText
(
proBean
.
getProductTypeName
());
tvKind
.
setText
(
proBean
.
getOfKind
());
tvKind
.
setText
(
proBean
.
getOfKind
());
tvUnit
.
setText
(
proBean
.
getUnit
());
tvUnit
.
setText
(
proBean
.
getUnit
());
tvWeight
.
setText
(
String
.
valueOf
(
proBean
.
getWeight
()
));
tvWeight
.
setText
(
MathUtils
.
converData
(
proBean
.
getWeight
(),
3
));
tvPrice
.
setText
(
MathUtils
.
converData
(
proBean
.
getInternalPrice
(),
3
));
tvPrice
.
setText
(
MathUtils
.
converData
(
proBean
.
getInternalPrice
(),
3
));
tvStatus
.
setText
(
TextUtils
.
equals
(
proBean
.
getStatus
(),
"1"
)
?
"正常"
:
"冻结"
);
tvStatus
.
setText
(
TextUtils
.
equals
(
proBean
.
getStatus
(),
"1"
)
?
"正常"
:
"冻结"
);
tvProcess
.
setText
(
proBean
.
getProcessType
());
tvProcess
.
setText
(
proBean
.
getProcessType
());
...
@@ -135,8 +135,8 @@ public class WorkProDetailActivity extends WorkToolBarActivity {
...
@@ -135,8 +135,8 @@ public class WorkProDetailActivity extends WorkToolBarActivity {
tvClazz
.
setText
(
productInfo
.
getProductTypeName
());
tvClazz
.
setText
(
productInfo
.
getProductTypeName
());
tvKind
.
setText
(
productInfo
.
getOfKind
());
tvKind
.
setText
(
productInfo
.
getOfKind
());
tvUnit
.
setText
(
productInfo
.
getUnit
());
tvUnit
.
setText
(
productInfo
.
getUnit
());
tvWeight
.
setText
(
String
.
valueOf
(
productInfo
.
getWeight
()
));
tvWeight
.
setText
(
MathUtils
.
converData
(
productInfo
.
getWeight
(),
3
));
tvPrice
.
setText
(
String
.
valueOf
(
productInfo
.
getInternalPrice
()
));
tvPrice
.
setText
(
MathUtils
.
converData
(
productInfo
.
getInternalPrice
(),
3
));
tvStatus
.
setText
(
TextUtils
.
equals
(
productInfo
.
getStatus
(),
"1"
)
?
"正常"
:
"冻结"
);
tvStatus
.
setText
(
TextUtils
.
equals
(
productInfo
.
getStatus
(),
"1"
)
?
"正常"
:
"冻结"
);
tvProcess
.
setText
(
productInfo
.
getProcessType
());
tvProcess
.
setText
(
productInfo
.
getProcessType
());
...
@@ -150,7 +150,7 @@ public class WorkProDetailActivity extends WorkToolBarActivity {
...
@@ -150,7 +150,7 @@ public class WorkProDetailActivity extends WorkToolBarActivity {
tvDepName
.
setText
(
depData
.
getName
());
tvDepName
.
setText
(
depData
.
getName
());
tvDepType
.
setText
(
"类别:"
+
WorkUtils
.
getClientType
(
depData
.
getPartTypeCode
()));
tvDepType
.
setText
(
"类别:"
+
WorkUtils
.
getClientType
(
depData
.
getPartTypeCode
()));
tvDepAddress
.
setText
(
"地址:"
+
depData
.
getAddress
());
tvDepAddress
.
setText
(
"地址:"
+
depData
.
getAddress
());
tvDepPrice
.
setText
(
"渠道价格:"
+
(
depData
.
getChannelPrice
()
==
null
?
"无"
:
String
.
valueOf
(
depData
.
getChannelPrice
()
)));
tvDepPrice
.
setText
(
"渠道价格:"
+
(
depData
.
getChannelPrice
()
==
null
?
"无"
:
MathUtils
.
converData
(
depData
.
getChannelPrice
(),
3
)));
tvDepPerson
.
setText
(
"维护人:"
+
depData
.
getAccountName
());
tvDepPerson
.
setText
(
"维护人:"
+
depData
.
getAccountName
());
tvDepPersonPhone
.
setText
(
"维护人手机号:"
+
depData
.
getPhone
());
tvDepPersonPhone
.
setText
(
"维护人手机号:"
+
depData
.
getPhone
());
tvDepPersonDep
.
setText
(
"维护部门:"
+
depData
.
getDeptName
());
tvDepPersonDep
.
setText
(
"维护部门:"
+
depData
.
getDeptName
());
...
...
app/src/main/java/com/wd/workoffice/ui/adapter/WorkProPriceAdapter.java
浏览文件 @
1897438a
...
@@ -5,6 +5,7 @@ import com.chad.library.adapter.base.BaseQuickAdapter;
...
@@ -5,6 +5,7 @@ import com.chad.library.adapter.base.BaseQuickAdapter;
import
com.chad.library.adapter.base.BaseViewHolder
;
import
com.chad.library.adapter.base.BaseViewHolder
;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.bean.ProPriceBean
;
import
com.wd.workoffice.bean.ProPriceBean
;
import
com.wd.workoffice.util.MathUtils
;
import
java.util.List
;
import
java.util.List
;
...
@@ -21,7 +22,7 @@ public class WorkProPriceAdapter extends BaseQuickAdapter<ProPriceBean.RecordsBe
...
@@ -21,7 +22,7 @@ public class WorkProPriceAdapter extends BaseQuickAdapter<ProPriceBean.RecordsBe
@Override
@Override
protected
void
convert
(
BaseViewHolder
helper
,
ProPriceBean
.
RecordsBean
item
)
{
protected
void
convert
(
BaseViewHolder
helper
,
ProPriceBean
.
RecordsBean
item
)
{
helper
.
setText
(
R
.
id
.
tv_price
,
String
.
valueOf
(
item
.
getNewPrice
()
));
helper
.
setText
(
R
.
id
.
tv_price
,
MathUtils
.
converData
(
item
.
getNewPrice
(),
3
));
helper
.
setText
(
R
.
id
.
tv_time
,
item
.
getCreatedTime
());
helper
.
setText
(
R
.
id
.
tv_time
,
item
.
getCreatedTime
());
helper
.
setText
(
R
.
id
.
tv_person
,
"提交人:"
.
concat
(
item
.
getCreatedByName
()));
helper
.
setText
(
R
.
id
.
tv_person
,
"提交人:"
.
concat
(
item
.
getCreatedByName
()));
helper
.
setText
(
R
.
id
.
tv_remark
,
"备注:"
.
concat
(
item
.
getRemark
()));
helper
.
setText
(
R
.
id
.
tv_remark
,
"备注:"
.
concat
(
item
.
getRemark
()));
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论