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
6c6d1fed
提交
6c6d1fed
authored
5月 06, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.编辑连铸机供应商
2.//TODO erp用户是否选择新部门为空,质检接口数据无对应问题,内部交易订单审核,审核规则,领用申请列表/退件列表/参数,坩埚下单,mes,刷新token,编辑任务担当无法修改.
上级
cdfe2c14
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
59 行增加
和
109 行删除
+59
-109
MesUserDataDetailModifyActivity.java
...ui/activity/mes/user/MesUserDataDetailModifyActivity.java
+55
-107
activity_mes_user_data_detail_modify.xml
.../main/res/layout/activity_mes_user_data_detail_modify.xml
+4
-2
没有找到文件。
app/src/main/java/com/wd/workoffice/ui/activity/mes/user/MesUserDataDetailModifyActivity.java
浏览文件 @
6c6d1fed
package
com
.
wd
.
workoffice
.
ui
.
activity
.
mes
.
user
;
import
android.view.LayoutInflater
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.Menu
;
import
android.view.MenuItem
;
import
android.view.View
;
...
...
@@ -16,21 +17,15 @@ import com.chad.library.adapter.base.BaseQuickAdapter;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.app.BaseMesBean
;
import
com.wd.workoffice.app.WorkToolBarActivity
;
import
com.wd.workoffice.bean.event.AddFactoryEvent
;
import
com.wd.workoffice.bean.event.AddMachineAddChildEvent
;
import
com.wd.workoffice.bean.event.AddMachineEvent
;
import
com.wd.workoffice.bean.event.AddMachineModifyChildEvent
;
import
com.wd.workoffice.bean.event.AddUserDataEvent
;
import
com.wd.workoffice.bean.event.ModifyUserDataEvent
;
import
com.wd.workoffice.bean.event.RefreshMachineEvent
;
import
com.wd.workoffice.bean.mesBean.FactoryDetailBean
;
import
com.wd.workoffice.bean.mesBean.MachineDetailBean
;
import
com.wd.workoffice.bean.mesBean.MesClientBean
;
import
com.wd.workoffice.bean.mesBean.UserDataDetailBean
;
import
com.wd.workoffice.retrofit.RtfUtils
;
import
com.wd.workoffice.retrofit.WorkObserver
;
import
com.wd.workoffice.ui.adapter.UserDataAdd3Adapter
;
import
com.wd.workoffice.ui.adapter.UserDataAdd3LabelAdapter
;
import
com.wd.workoffice.ui.adapter.UserDataAdd3RefAdapter
;
import
com.wd.workoffice.ui.adapter.UserDataDetailFactory1Adapter
;
import
com.wd.workoffice.ui.adapter.UserDataDetailFactory2Adapter
;
import
com.wd.workoffice.ui.adapter.UserDataMachineAdapter
;
...
...
@@ -43,7 +38,7 @@ import java.util.ArrayList;
import
java.util.List
;
import
java.util.Map
;
import
androidx.a
ppcompat.app.AlertDialog
;
import
androidx.a
nnotation.Nullable
;
import
androidx.recyclerview.widget.LinearLayoutManager
;
import
androidx.recyclerview.widget.RecyclerView
;
import
butterknife.BindView
;
...
...
@@ -141,7 +136,9 @@ public class MesUserDataDetailModifyActivity extends WorkToolBarActivity {
@BindView
(
R
.
id
.
tv_cover3
)
EditText
tvCover3
;
@BindView
(
R
.
id
.
tv_cover4
)
EditText
tvCover4
;
TextView
tvCover4
;
@BindView
(
R
.
id
.
rl_cover4
)
RelativeLayout
rlCover4
;
@BindView
(
R
.
id
.
ll_cover
)
LinearLayout
llCover
;
@BindView
(
R
.
id
.
rl_protection
)
...
...
@@ -153,7 +150,9 @@ public class MesUserDataDetailModifyActivity extends WorkToolBarActivity {
@BindView
(
R
.
id
.
tv_protection3
)
EditText
tvProtection3
;
@BindView
(
R
.
id
.
tv_protection4
)
EditText
tvProtection4
;
TextView
tvProtection4
;
@BindView
(
R
.
id
.
rl_protection4
)
RelativeLayout
rlProtection4
;
@BindView
(
R
.
id
.
ll_protection
)
LinearLayout
llProtection
;
@BindView
(
R
.
id
.
rv_data1
)
...
...
@@ -491,11 +490,19 @@ public class MesUserDataDetailModifyActivity extends WorkToolBarActivity {
}
@OnClick
({
R
.
id
.
iv_modify_client
,
R
.
id
.
iv_modify_machine
,
R
.
id
.
iv_modify_steel
,
@OnClick
({
R
.
id
.
rl_cover4
,
R
.
id
.
rl_protection4
,
R
.
id
.
iv_modify_client
,
R
.
id
.
iv_modify_machine
,
R
.
id
.
iv_modify_steel
,
R
.
id
.
tv_add5
,
R
.
id
.
tv_add6
,
R
.
id
.
tv_add1
,
R
.
id
.
tv_add3
,
R
.
id
.
tv_add4
})
public
void
onViewClicked
(
View
view
)
{
switch
(
view
.
getId
())
{
case
R
.
id
.
rl_cover4
:
startActivityForResult
(
MesChooseClientActivity
.
class
,
10001
,
"from"
,
"1"
);
break
;
case
R
.
id
.
rl_protection4
:
startActivityForResult
(
MesChooseClientActivity
.
class
,
10002
,
"from"
,
"1"
);
break
;
case
R
.
id
.
iv_modify_client
:
if
(
userDataDetailBean
==
null
)
{
toast
(
"数据加载中,请稍后"
);
...
...
@@ -601,13 +608,13 @@ public class MesUserDataDetailModifyActivity extends WorkToolBarActivity {
changeViewClick
(
tvCover1
,
!
tvCover1
.
isClickable
());
changeViewClick
(
tvCover2
,
!
tvCover2
.
isClickable
());
changeViewClick
(
tvCover3
,
!
tvCover3
.
isClickable
());
changeViewClick
(
tvCover4
,
!
tvCover4
.
isClickable
());
//
changeViewClick(tvCover4, !tvCover4.isClickable());
rlCover4
.
setClickable
(!
rlCover4
.
isClickable
());
changeViewClick
(
tvProtection1
,
!
tvProtection1
.
isClickable
());
changeViewClick
(
tvProtection2
,
!
tvProtection2
.
isClickable
());
changeViewClick
(
tvProtection3
,
!
tvProtection3
.
isClickable
());
changeViewClick
(
tvProtection4
,
!
tvProtection4
.
isClickable
());
//
changeViewClick(tvProtection4, !tvProtection4.isClickable());
tvProtection4
.
setClickable
(!
tvProtection4
.
isClickable
());
break
;
}
}
...
...
@@ -783,96 +790,37 @@ public class MesUserDataDetailModifyActivity extends WorkToolBarActivity {
getData
();
}
// @Subscribe
// public void modify(AddMachineModifyChildEvent event) {
// switch (event.getType()) {
// case 1:
// List<MachineDetailBean.ProductListBean> productList = machineDetailBean.getProductList();
// if (productList == null) {
// machineDetailBean.setProductList(new ArrayList<>());
// }
// productList.remove(event.getPosition());
// productList.add(event.getPosition(), JSON.parseObject(event.getData(), MachineDetailBean.ProductListBean.class));
// break;
// case 2:
// break;
// case 3:
// List<MachineDetailBean.OtherSupListBean> supplyList = machineDetailBean.getOtherSupList();
// if (supplyList == null) {
// machineDetailBean.setOtherSupList(new ArrayList<>());
// }
// supplyList.remove(event.getPosition());
// supplyList.add(event.getPosition(), JSON.parseObject(event.getData(), MachineDetailBean.OtherSupListBean.class));
// break;
// case 4:
// List<MachineDetailBean.OtherLadleListBean> otherLadleList = machineDetailBean.getOtherLadleList();
// if (otherLadleList == null) {
// machineDetailBean.setOtherLadleList(new ArrayList<>());
// }
// otherLadleList.remove(event.getPosition());
// otherLadleList.add(event.getPosition(), JSON.parseObject(event.getData(), MachineDetailBean.OtherLadleListBean.class));
// break;
// case 5:
// List<MachineDetailBean.StockListBean> stockList = machineDetailBean.getStockList();
// if (stockList == null) {
// machineDetailBean.setStockList(new ArrayList<>());
// }
// stockList.remove(event.getPosition());
// stockList.add(event.getPosition(), JSON.parseObject(event.getData(), MachineDetailBean.StockListBean.class));
// break;
// case 6:
// List<MachineDetailBean.SettleListBean> settleList = machineDetailBean.getSettleList();
// if (settleList == null) {
// machineDetailBean.setSettleList(new ArrayList<>());
// }
// settleList.remove(event.getPosition());
// settleList.add(event.getPosition(), JSON.parseObject(event.getData(), MachineDetailBean.SettleListBean.class));
// break;
// }
// changeList();
// }
// @Subscribe
// public void refresh(AddMachineAddChildEvent event) {
// switch (event.getType()) {
// case 1:
// List<MachineDetailBean.ProductListBean> productList = machineDetailBean.getProductList();
// if (productList == null) {
// machineDetailBean.setProductList(new ArrayList<>());
// }
// machineDetailBean.getProductList().add(JSON.parseObject(event.getData(), MachineDetailBean.ProductListBean.class));
// break;
// case 2:
// break;
// case 3:
// List<MachineDetailBean.OtherSupListBean> supplyList = machineDetailBean.getOtherSupList();
// if (supplyList == null) {
// machineDetailBean.setOtherSupList(new ArrayList<>());
// }
// machineDetailBean.getOtherSupList().add(JSON.parseObject(event.getData(), MachineDetailBean.OtherSupListBean.class));
// break;
// case 4:
// List<MachineDetailBean.OtherLadleListBean> otherLadleList = machineDetailBean.getOtherLadleList();
// if (otherLadleList == null) {
// machineDetailBean.setOtherLadleList(new ArrayList<>());
// }
// machineDetailBean.getOtherLadleList().add(JSON.parseObject(event.getData(), MachineDetailBean.OtherLadleListBean.class));
// break;
// case 5:
// List<MachineDetailBean.StockListBean> stockList = machineDetailBean.getStockList();
// if (stockList == null) {
// machineDetailBean.setStockList(new ArrayList<>());
// }
// machineDetailBean.getStockList().add(JSON.parseObject(event.getData(), MachineDetailBean.StockListBean.class));
// break;
// case 6:
// List<MachineDetailBean.SettleListBean> settleList = machineDetailBean.getSettleList();
// if (settleList == null) {
// machineDetailBean.setSettleList(new ArrayList<>());
// }
// machineDetailBean.getSettleList().add(JSON.parseObject(event.getData(), MachineDetailBean.SettleListBean.class));
// break;
// }
// changeList();
// }
@Override
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
@Nullable
Intent
data
)
{
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
);
switch
(
requestCode
)
{
case
10001
:
if
(
resultCode
==
10001
)
{
MesClientBean
.
ListBean
modifyClient
=
JSON
.
parseObject
(
data
.
getStringExtra
(
"data"
),
MesClientBean
.
ListBean
.
class
);
MachineDetailBean
.
CovAgentBean
covAgent
=
machineDetailBean
.
getCovAgent
();
if
(
covAgent
==
null
)
{
covAgent
=
new
MachineDetailBean
.
CovAgentBean
();
machineDetailBean
.
setCovAgent
(
covAgent
);
}
tvCover4
.
setText
(
modifyClient
.
getCustomerName
());
covAgent
.
setSupplierCode
(
modifyClient
.
getCustomerCode
());
covAgent
.
setSupplierName
(
modifyClient
.
getCustomerName
());
}
break
;
case
10002
:
if
(
resultCode
==
10001
)
{
MesClientBean
.
ListBean
modifyClient
=
JSON
.
parseObject
(
data
.
getStringExtra
(
"data"
),
MesClientBean
.
ListBean
.
class
);
MachineDetailBean
.
MouldFluBean
mouldFlu
=
machineDetailBean
.
getMouldFlu
();
if
(
mouldFlu
==
null
)
{
mouldFlu
=
new
MachineDetailBean
.
MouldFluBean
();
machineDetailBean
.
setMouldFlu
(
mouldFlu
);
}
tvProtection4
.
setText
(
modifyClient
.
getCustomerName
());
mouldFlu
.
setSupplierCode
(
modifyClient
.
getCustomerCode
());
mouldFlu
.
setSupplierCode
(
modifyClient
.
getCustomerName
());
}
break
;
}
}
}
app/src/main/res/layout/activity_mes_user_data_detail_modify.xml
浏览文件 @
6c6d1fed
...
...
@@ -842,6 +842,7 @@
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/rl_cover4"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@android:color/white"
...
...
@@ -857,7 +858,7 @@
android:textSize=
"14sp"
/>
<
EditText
<
TextView
android:id=
"@+id/tv_cover4"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
@@ -982,6 +983,7 @@
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/rl_protection4"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@android:color/white"
...
...
@@ -997,7 +999,7 @@
android:textSize=
"14sp"
/>
<
EditText
<
TextView
android:id=
"@+id/tv_protection4"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论