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
3de780c2
提交
3de780c2
authored
3月 25, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.往来详情 信息
2.//TODO erp用户激活,忘记密码测试,产品下单还差附件,bat,mes,消息,我的,刷新token
上级
f2ad2c35
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
10 行增加
和
114 行删除
+10
-114
WorkContactsInfoActivity.java
...office/ui/activity/bat/work/WorkContactsInfoActivity.java
+2
-0
WorkContactsInfoAdapter.java
...com/wd/workoffice/ui/adapter/WorkContactsInfoAdapter.java
+1
-1
activity_work_contacts_info.xml
app/src/main/res/layout/activity_work_contacts_info.xml
+7
-113
没有找到文件。
app/src/main/java/com/wd/workoffice/ui/activity/bat/work/WorkContactsInfoActivity.java
浏览文件 @
3de780c2
...
@@ -53,6 +53,7 @@ public class WorkContactsInfoActivity extends WorkToolBarActivity {
...
@@ -53,6 +53,7 @@ public class WorkContactsInfoActivity extends WorkToolBarActivity {
ButterKnife
.
bind
(
this
);
ButterKnife
.
bind
(
this
);
rvData
.
setLayoutManager
(
new
LinearLayoutManager
(
this
,
RecyclerView
.
VERTICAL
,
false
));
rvData
.
setLayoutManager
(
new
LinearLayoutManager
(
this
,
RecyclerView
.
VERTICAL
,
false
));
workContactsInfoAdapter
=
new
WorkContactsInfoAdapter
(
R
.
layout
.
item_work_contacts_info
,
partTypeRelList
);
workContactsInfoAdapter
=
new
WorkContactsInfoAdapter
(
R
.
layout
.
item_work_contacts_info
,
partTypeRelList
);
workContactsInfoAdapter
.
bindToRecyclerView
(
rvData
);
}
}
@Override
@Override
...
@@ -88,6 +89,7 @@ public class WorkContactsInfoActivity extends WorkToolBarActivity {
...
@@ -88,6 +89,7 @@ public class WorkContactsInfoActivity extends WorkToolBarActivity {
tvAddress
.
setText
(
dataBean
.
getAddress
());
tvAddress
.
setText
(
dataBean
.
getAddress
());
tvProcess
.
setText
(
getProcessString
(
dataBean
.
getProcessList
()));
tvProcess
.
setText
(
getProcessString
(
dataBean
.
getProcessList
()));
partTypeRelList
.
addAll
(
dataBean
.
getPartTypeRelList
());
partTypeRelList
.
addAll
(
dataBean
.
getPartTypeRelList
());
workContactsInfoAdapter
.
notifyDataSetChanged
();
}
}
});
});
}
}
...
...
app/src/main/java/com/wd/workoffice/ui/adapter/WorkContactsInfoAdapter.java
浏览文件 @
3de780c2
...
@@ -24,7 +24,7 @@ public class WorkContactsInfoAdapter extends BaseQuickAdapter<ContactsBean.PartT
...
@@ -24,7 +24,7 @@ public class WorkContactsInfoAdapter extends BaseQuickAdapter<ContactsBean.PartT
helper
.
setText
(
R
.
id
.
tv_first_contact_type
,
item
.
getTransitPartType
());
helper
.
setText
(
R
.
id
.
tv_first_contact_type
,
item
.
getTransitPartType
());
helper
.
setText
(
R
.
id
.
tv_first_dep
,
item
.
getDeptName
());
helper
.
setText
(
R
.
id
.
tv_first_dep
,
item
.
getDeptName
());
helper
.
setText
(
R
.
id
.
tv_first_person
,
item
.
getAccountName
());
helper
.
setText
(
R
.
id
.
tv_first_person
,
item
.
getAccountName
());
helper
.
setText
(
R
.
id
.
tv_level
,
"类别"
.
concat
(
MathUtils
.
conver
(
helper
.
getAdapterPosition
())));
helper
.
setText
(
R
.
id
.
tv_level
,
"类别"
.
concat
(
MathUtils
.
conver
(
helper
.
getAdapterPosition
()
+
1
)));
}
}
}
}
app/src/main/res/layout/activity_work_contacts_info.xml
浏览文件 @
3de780c2
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
</LinearLayout>
</LinearLayout>
<
Relative
Layout
<
Linear
Layout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_gravity=
"center"
...
@@ -53,14 +53,18 @@
...
@@ -53,14 +53,18 @@
<TextView
<TextView
android:id=
"@+id/tv_company_name"
android:id=
"@+id/tv_company_name"
android:layout_width=
"wrap_content"
android:layout_width=
"0dp"
android:layout_weight=
"1"
android:ellipsize=
"end"
android:maxLines=
"1"
android:gravity=
"right"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:text=
"销售二公司"
android:text=
"销售二公司"
android:textColor=
"@color/flexible_text_gray"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"16sp"
android:textSize=
"16sp"
/>
/>
</
Relative
Layout>
</
Linear
Layout>
<View
style=
"@style/dividerX"
/>
<View
style=
"@style/dividerX"
/>
...
@@ -184,115 +188,5 @@
...
@@ -184,115 +188,5 @@
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<LinearLayout
android:id=
"@+id/ll_second"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:layout_marginTop=
"10mm"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingVertical=
"10mm"
>
<View
android:layout_width=
"8mm"
android:layout_height=
"18mm"
android:background=
"@color/red_btn_bg"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"10mm"
android:text=
"类别二"
android:textSize=
"16sp"
/>
</LinearLayout>
<View
style=
"@style/dividerX"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:background=
"@color/white"
android:gravity=
"center"
android:paddingHorizontal=
"20mm"
android:paddingVertical=
"15mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"往来单位类型"
android:textSize=
"16sp"
/>
<TextView
android:id=
"@+id/tv_second_contact_type"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:text=
"销售二公司"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"16sp"
/>
</RelativeLayout>
<View
style=
"@style/dividerX"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:background=
"@color/white"
android:gravity=
"center"
android:paddingHorizontal=
"20mm"
android:paddingVertical=
"15mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"部门"
android:textSize=
"16sp"
/>
<TextView
android:id=
"@+id/tv_second_dep"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:text=
"销售二公司"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"16sp"
/>
</RelativeLayout>
<View
style=
"@style/dividerX"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:background=
"@color/white"
android:gravity=
"center"
android:paddingHorizontal=
"20mm"
android:paddingVertical=
"15mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"维护人"
android:textSize=
"16sp"
/>
<TextView
android:id=
"@+id/tv_second_person"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:text=
"销售二公司"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"16sp"
/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</androidx.core.widget.NestedScrollView>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论