提交 c279262e authored 作者: lgd's avatar lgd

1.设备维修提交

2.//TODO 坩埚下单,mes其他页面,mes用户反馈空也展示,编辑任务担当无法修改
上级 d17b5f33
......@@ -143,32 +143,7 @@ public class DeviceBuyConfirmActivity extends WorkToolBarActivity {
@Override
protected void initEvent() {
addNumListener(etInput5, tvInput5);
}
/**
* 添加字数监听器
*
* @param et
* @param tv
*/
private void addNumListener(EditText et, TextView tv) {
et.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
}
@Override
public void afterTextChanged(Editable s) {
tv.setText(s.length() + "/140");
}
});
WorkUtils.addNumListener(etInput5,tvInput5);
}
@Override
......
......@@ -15,6 +15,8 @@ import com.wd.workoffice.R;
import com.wd.workoffice.app.BaseBean;
import com.wd.workoffice.app.WorkToolBarActivity;
import com.wd.workoffice.bean.DeviceBean;
import com.wd.workoffice.bean.event.AddDeviceEvent;
import com.wd.workoffice.bean.event.CheckDeviceEvent;
import com.wd.workoffice.bean.event.ModifyCarEvent;
import com.wd.workoffice.retrofit.RtfUtils;
import com.wd.workoffice.retrofit.WorkObserver;
......@@ -242,4 +244,9 @@ public class DeviceBuyProductActivity extends WorkToolBarActivity {
carList.clear();
carList.addAll(JSON.parseArray(pro, DeviceBean.RecordsBean.class));
}
@Subscribe(threadMode = ThreadMode.MAIN)
public void onMessageEvent(AddDeviceEvent event) {
finish();
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论