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
2aef863a
提交
2aef863a
authored
6月 16, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.修改激活顺序
2.//todo 回款管理的客户接口
上级
3a257b52
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
70 行增加
和
28 行删除
+70
-28
ActivationUserBean.java
.../main/java/com/wd/workoffice/bean/ActivationUserBean.java
+3
-3
ErpActivationOneActivity.java
...orkoffice/ui/activity/login/ErpActivationOneActivity.java
+17
-8
ErpActivationTwoActivity.java
...orkoffice/ui/activity/login/ErpActivationTwoActivity.java
+15
-12
activity_erp_activation_one.xml
app/src/main/res/layout/activity_erp_activation_one.xml
+34
-5
activity_erp_activation_two.xml
app/src/main/res/layout/activity_erp_activation_two.xml
+1
-0
没有找到文件。
app/src/main/java/com/wd/workoffice/bean/ActivationUserBean.java
浏览文件 @
2aef863a
...
...
@@ -42,7 +42,7 @@ public class ActivationUserBean {
private
String
status
;
private
String
erpId
;
private
int
deptId
;
private
Object
deptName
;
private
String
deptName
;
private
Object
verifyCode
;
public
Object
getCreatedBy
()
{
...
...
@@ -165,11 +165,11 @@ public class ActivationUserBean {
this
.
deptId
=
deptId
;
}
public
Object
getDeptName
()
{
public
String
getDeptName
()
{
return
deptName
;
}
public
void
setDeptName
(
Object
deptName
)
{
public
void
setDeptName
(
String
deptName
)
{
this
.
deptName
=
deptName
;
}
...
...
app/src/main/java/com/wd/workoffice/ui/activity/login/ErpActivationOneActivity.java
浏览文件 @
2aef863a
package
com
.
wd
.
workoffice
.
ui
.
activity
.
login
;
import
android.os.Bundle
;
import
android.text.Editable
;
import
android.text.TextUtils
;
import
android.text.TextWatcher
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.EditText
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
com.alibaba.fastjson.JSON
;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.app.WorkToolBarActivity
;
...
...
@@ -15,6 +18,7 @@ import com.wd.workoffice.bean.workEnum.CodeType;
import
com.wd.workoffice.contract.ErpActivationContract
;
import
com.wd.workoffice.presenter.ErpActivationPresenter
;
import
com.wd.workoffice.util.WorkUtils
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
...
...
@@ -26,15 +30,18 @@ import flexible.xd.android_base.utils.ToastUtil;
* */
public
class
ErpActivationOneActivity
extends
WorkToolBarActivity
implements
ErpActivationContract
.
View
{
@BindView
(
R
.
id
.
et_phone
)
EditText
etPhone
;
@BindView
(
R
.
id
.
tv_discover
)
TextView
tvDiscover
;
@BindView
(
R
.
id
.
et_staff_code
)
EditText
etStaffCode
;
TextView
etStaffCode
;
@BindView
(
R
.
id
.
tv_dep
)
TextView
tvDep
;
@BindView
(
R
.
id
.
ll_dep
)
LinearLayout
llDep
;
@BindView
(
R
.
id
.
et_name
)
EditText
etName
;
TextView
etName
;
@BindView
(
R
.
id
.
et_code
)
EditText
etCode
;
@BindView
(
R
.
id
.
tv_code
)
...
...
@@ -111,7 +118,7 @@ public class ErpActivationOneActivity extends WorkToolBarActivity implements Erp
switch
(
view
.
getId
())
{
case
R
.
id
.
tv_discover
:
String
discover
=
etPhone
.
getText
().
toString
();
if
(!
RegexUtils
.
isMobileSimple
(
discover
)){
if
(!
RegexUtils
.
isMobileSimple
(
discover
))
{
toast
(
"请输入正确的手机号"
);
return
;
}
...
...
@@ -119,10 +126,10 @@ public class ErpActivationOneActivity extends WorkToolBarActivity implements Erp
break
;
case
R
.
id
.
tv_code
:
String
phone
=
etPhone
.
getText
().
toString
();
erpActivationPresenter
.
getCode
(
phone
,
CodeType
.
REGISTER
.
getName
());
erpActivationPresenter
.
getCode
(
phone
,
CodeType
.
REGISTER
.
getName
());
break
;
case
R
.
id
.
btn_next
:
if
(
infoData
==
null
)
{
if
(
infoData
==
null
)
{
toast
(
"请检测用户信息"
);
return
;
}
...
...
@@ -142,6 +149,7 @@ public class ErpActivationOneActivity extends WorkToolBarActivity implements Erp
infoData
=
data
;
etName
.
setText
(
data
.
getNickName
());
etStaffCode
.
setText
(
data
.
getErpId
());
tvDep
.
setText
(
data
.
getDeptName
());
}
@Override
...
...
@@ -153,7 +161,8 @@ public class ErpActivationOneActivity extends WorkToolBarActivity implements Erp
@Override
public
void
verifySuccess
()
{
startActivity
(
ErpActivationTwoActivity
.
class
,
"phone"
,
etPhone
.
getText
().
toString
(),
"code"
,
etCode
.
getText
().
toString
(),
"info"
,
JSON
.
toJSONString
(
infoData
));
"phone"
,
etPhone
.
getText
().
toString
(),
"code"
,
etCode
.
getText
().
toString
(),
"info"
,
JSON
.
toJSONString
(
infoData
));
}
}
app/src/main/java/com/wd/workoffice/ui/activity/login/ErpActivationTwoActivity.java
浏览文件 @
2aef863a
...
...
@@ -71,6 +71,9 @@ public class ErpActivationTwoActivity extends WorkToolBarActivity {
ActivationUserBean
info
=
JSON
.
parseObject
(
getIntent
().
getStringExtra
(
"info"
),
ActivationUserBean
.
class
);
param
.
put
(
"email"
,
info
.
getEmail
());
param
.
put
(
"nickName"
,
info
.
getNickName
());
param
.
put
(
"deptId"
,
info
.
getDeptId
());
param
.
put
(
"ofRegisterNewDept"
,
0
);
etName
.
setText
(
info
.
getUserName
());
}
@Override
...
...
@@ -199,21 +202,21 @@ public class ErpActivationTwoActivity extends WorkToolBarActivity {
toast
(
"两次输入的密码不一致"
);
return
;
}
if
(
dep
==
null
)
{
toast
(
"请选择部门"
);
return
;
}
//
if (dep == null) {
//
toast("请选择部门");
//
return;
//
}
param
.
put
(
"userName"
,
name
);
param
.
put
(
"password"
,
pwd
);
param
.
put
(
"ofRegisterNewDept"
,
dep
.
getOfRegisterNewDept
());
if
(
dep
.
getOfRegisterNewDept
()
==
1
)
{
param
.
put
(
"newDeptName"
,
dep
.
getName
());
param
.
put
(
"newDeptErpId"
,
dep
.
getCode
());
param
.
put
(
"newDeptType"
,
dep
.
getType
());
}
else
{
param
.
put
(
"deptId"
,
dep
.
getId
());
}
//
param.put("ofRegisterNewDept", dep.getOfRegisterNewDept());
//
if (dep.getOfRegisterNewDept() == 1) {
//
param.put("newDeptName", dep.getName());
//
param.put("newDeptErpId", dep.getCode());
//
param.put("newDeptType", dep.getType());
//
} else {
//
param.put("deptId", dep.getId());
//
}
submit
();
break
;
case
R
.
id
.
tv_go_protocol
:
...
...
app/src/main/res/layout/activity_erp_activation_one.xml
浏览文件 @
2aef863a
...
...
@@ -50,8 +50,8 @@
android:layout_marginLeft=
"10mm"
android:layout_weight=
"1"
android:background=
"@null"
android:inputType=
"phone"
android:hint=
"输入手机号检测是否为ERP员工"
android:inputType=
"phone"
android:textSize=
"12sp"
/>
<TextView
...
...
@@ -80,19 +80,47 @@
android:layout_marginLeft=
"13mm"
android:background=
"@mipmap/login_phone"
/>
<
EditText
<
TextView
android:id=
"@+id/et_staff_code"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"10mm"
android:layout_weight=
"1"
android:gravity=
"center_vertical"
android:background=
"@null"
android:hint=
"员工编号"
android:textSize=
"12sp"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/ll_dep"
android:layout_width=
"match_parent"
android:layout_height=
"50mm"
android:layout_centerInParent=
"true"
android:layout_marginTop=
"20mm"
android:background=
"@drawable/shape_login_et"
android:gravity=
"center_vertical"
>
<ImageView
android:layout_width=
"20mm"
android:layout_height=
"20mm"
android:layout_marginLeft=
"13mm"
android:background=
"@mipmap/login_pwd"
/>
<TextView
android:id=
"@+id/tv_dep"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"10mm"
android:layout_weight=
"1"
android:hint=
"员工部门"
android:gravity=
"center_vertical"
android:textSize=
"12sp"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"50mm"
...
...
@@ -107,7 +135,7 @@
android:layout_marginLeft=
"13mm"
android:background=
"@mipmap/login_phone"
/>
<
EditText
<
TextView
android:id=
"@+id/et_name"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
...
...
@@ -115,6 +143,7 @@
android:layout_marginLeft=
"10mm"
android:layout_weight=
"1"
android:background=
"@null"
android:gravity=
"center_vertical"
android:hint=
"员工姓名"
android:textSize=
"12sp"
/>
...
...
@@ -161,9 +190,9 @@
android:id=
"@+id/btn_next"
android:layout_width=
"match_parent"
android:layout_height=
"50mm"
android:background=
"@drawable/selector_btn"
android:layout_marginHorizontal=
"58mm"
android:layout_marginTop=
"40mm"
android:background=
"@drawable/selector_btn"
android:text=
"下一步"
android:textColor=
"@color/white"
android:textSize=
"20sp"
/>
...
...
@@ -172,9 +201,9 @@
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:gravity=
"bottom"
android:layout_gravity=
"center_horizontal|bottom"
android:layout_marginBottom=
"30mm"
android:gravity=
"bottom"
android:text=
"注册即代表同意《软件服务协议》及隐私协议"
android:textColor=
"@color/flexible_text_sup"
android:textSize=
"13sp"
/>
...
...
app/src/main/res/layout/activity_erp_activation_two.xml
浏览文件 @
2aef863a
...
...
@@ -115,6 +115,7 @@
<LinearLayout
android:id=
"@+id/ll_dep"
android:visibility=
"gone"
android:layout_width=
"match_parent"
android:layout_height=
"50mm"
android:layout_centerInParent=
"true"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论