Commit c11ee194 authored by hywang's avatar hywang

1.锡盟临时打标功能,修改名称

parent ec787706
...@@ -63,7 +63,7 @@ public class CattleMarkVM extends BackBarVM<Repository> { ...@@ -63,7 +63,7 @@ public class CattleMarkVM extends BackBarVM<Repository> {
//初始化ToolBar //初始化ToolBar
public void initToolbar() { public void initToolbar() {
setBackTitleText("补打标签"); setBackTitleText("基础信息录入");
setSettingVisibleObservable(View.GONE); setSettingVisibleObservable(View.GONE);
setBackRightTextVisible(View.VISIBLE); setBackRightTextVisible(View.VISIBLE);
setBackRightText("保存"); setBackRightText("保存");
......
...@@ -72,7 +72,7 @@ public class CattleUploadVM extends BackBarVM<Repository> { ...@@ -72,7 +72,7 @@ public class CattleUploadVM extends BackBarVM<Repository> {
.compose(RxUtils.bindToLifecycle(getLifecycleProvider())) .compose(RxUtils.bindToLifecycle(getLifecycleProvider()))
.compose(RxUtils.schedulersTransformer()) .compose(RxUtils.schedulersTransformer())
.compose(RxUtils.exceptionTransformer()) .compose(RxUtils.exceptionTransformer())
.doOnSubscribe(disposable -> showDialog("正在上传补打记录数据...")) .doOnSubscribe(disposable -> showDialog("正在上传基础数据..."))
.subscribe((Consumer<CattleResponse<List<CattleLabelEntity>>>) response -> { .subscribe((Consumer<CattleResponse<List<CattleLabelEntity>>>) response -> {
KLog.e(response.getCode() + response.getMsg()); KLog.e(response.getCode() + response.getMsg());
if (response.getCode() == 0) { if (response.getCode() == 0) {
...@@ -84,13 +84,13 @@ public class CattleUploadVM extends BackBarVM<Repository> { ...@@ -84,13 +84,13 @@ public class CattleUploadVM extends BackBarVM<Repository> {
dismissDialog(); dismissDialog();
refreshUploadCount(); refreshUploadCount();
}else{ }else{
ToastUtils.showShort("删除补打记录失败"); ToastUtils.showShort("删除基础数据失败");
} }
} }
}).deleteAsyncAll(CattleLabelEntity.class); }).deleteAsyncAll(CattleLabelEntity.class);
} else { } else {
dismissDialog(); dismissDialog();
ToastUtils.showShort("补打记录上传失败"); ToastUtils.showShort("基础数据上传失败");
} }
}, (Consumer<ResponseThrowable>) throwable -> { }, (Consumer<ResponseThrowable>) throwable -> {
dismissDialog(); dismissDialog();
......
<resources> <resources>
<!-- <string name="app_name">追溯系统</string>--> <!-- <string name="app_name">追溯系统</string>-->
<string name="app_name">补打系统</string> <string name="app_name">基础信息录入</string>
<string name="setting">设置</string> <string name="setting">设置</string>
<string name="jobNum">工号:</string> <string name="jobNum">工号:</string>
<string name="pleaseInputUserName">请输入用户名</string> <string name="pleaseInputUserName">请输入用户名</string>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment