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

1.展示部门信息

2.//TODO ,质检接口数据无对应问题,内部交易订单审核,审核规则,领用申请列表/退件列表/参数,坩埚下单,mes其他页面,mes质量反馈,编辑任务担当无法修改.支数参数
上级 d584580f
......@@ -33,12 +33,15 @@ public class MyFragment extends WorkBaseFg {
LinearLayout llInfo;
@BindView(R.id.ll_setting)
LinearLayout llSetting;
@BindView(R.id.tv_dep)
TextView tvDep;
@Override
protected void initView() {
ButterKnife.bind(this, getContentView());
tvNo.setText("员工编号:" + UserKeeper.getInstance().getUserErpId());
tvName.setText(UserKeeper.getInstance().getUserNickName());
tvDep.setText(UserKeeper.getInstance().getUserDepName());
}
......
......@@ -41,6 +41,7 @@ public class UserKeeper {
/**
* 同意协议
*
* @param info
*/
public void keepIsAgree(Boolean info) {
......@@ -57,6 +58,7 @@ public class UserKeeper {
/**
* mescookie
*
* @param info
*/
public void keepCookie(String info) {
......@@ -168,6 +170,17 @@ public class UserKeeper {
return infoBean.getOfDept().getId() + "";
}
public String getUserDepName() {
if (TextUtils.isEmpty(sp.getString(USER_INFO))) {
return "";
}
UserInfoBean infoBean = JSON.parseObject(sp.getString(USER_INFO), UserInfoBean.class);
if (infoBean == null || infoBean.getOfDept() == null) {
return "";
}
return infoBean.getOfDept().getName();
}
public List<String> getUserPermission() {
if (TextUtils.isEmpty(sp.getString(USER_INFO))) {
return null;
......
......@@ -35,14 +35,13 @@
android:text="李金逸"
android:textSize="18sp" />
<!--<TextView-->
<!--android:id="@+id/tv_name"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginTop="2mm"-->
<!--android:text="销售一部门/管理员"-->
<!--android:textColor="#ffdde2e6"-->
<!--android:textSize="13sp" />-->
<TextView
android:id="@+id/tv_dep"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4mm"
android:text="销售一部门/管理员"
android:textSize="13sp" />
<TextView
android:id="@+id/tv_no"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论