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
7155acc1
提交
7155acc1
authored
8月 17, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.维修
上级
ed3dc739
全部展开
显示空白字符变更
内嵌
并排
正在显示
17 个修改的文件
包含
269 行增加
和
127 行删除
+269
-127
DeviceBean.java
app/src/main/java/com/wd/workoffice/bean/DeviceBean.java
+0
-0
RepairBean.java
app/src/main/java/com/wd/workoffice/bean/RepairBean.java
+18
-0
DeviceRepairVo.java
...c/main/java/com/wd/workoffice/bean/vo/DeviceRepairVo.java
+18
-8
DeviceBuyRepairAddActivity.java
...fice/ui/activity/bat/work/DeviceBuyRepairAddActivity.java
+30
-10
DeviceBuyRepairConfirmActivity.java
.../ui/activity/bat/work/DeviceBuyRepairConfirmActivity.java
+14
-13
DeviceBuyRepairProductActivity.java
.../ui/activity/bat/work/DeviceBuyRepairProductActivity.java
+20
-19
DeviceRepairDetailActivity.java
...fice/ui/activity/bat/work/DeviceRepairDetailActivity.java
+23
-28
DeviceRepairAdapter.java
...ava/com/wd/workoffice/ui/adapter/DeviceRepairAdapter.java
+2
-1
DeviceRepairDetailAdapter.java
...m/wd/workoffice/ui/adapter/DeviceRepairDetailAdapter.java
+3
-2
DeviceRepairProductAdapter.java
.../wd/workoffice/ui/adapter/DeviceRepairProductAdapter.java
+1
-1
activity_device_buy_pro_repair.xml
app/src/main/res/layout/activity_device_buy_pro_repair.xml
+22
-25
activity_device_buy_repair.xml
app/src/main/res/layout/activity_device_buy_repair.xml
+56
-4
activity_device_buy_repair_confirm.xml
...rc/main/res/layout/activity_device_buy_repair_confirm.xml
+27
-3
activity_device_repair_detail.xml
app/src/main/res/layout/activity_device_repair_detail.xml
+0
-0
item_device_product_repair.xml
app/src/main/res/layout/item_device_product_repair.xml
+5
-6
item_device_repair.xml
app/src/main/res/layout/item_device_repair.xml
+23
-2
item_device_repair_detail.xml
app/src/main/res/layout/item_device_repair_detail.xml
+7
-5
没有找到文件。
app/src/main/java/com/wd/workoffice/bean/DeviceBean.java
浏览文件 @
7155acc1
No preview for this file type
app/src/main/java/com/wd/workoffice/bean/RepairBean.java
浏览文件 @
7155acc1
...
@@ -160,6 +160,24 @@ public class RepairBean {
...
@@ -160,6 +160,24 @@ public class RepairBean {
private
Object
userDeptMesId
;
private
Object
userDeptMesId
;
private
Object
receiveUserErpId
;
private
Object
receiveUserErpId
;
private
String
ensureComment
;
private
String
ensureComment
;
private
String
repairDateTimeBegin
;
private
String
repairDateTimeEnd
;
public
String
getRepairDateTimeBegin
()
{
return
repairDateTimeBegin
;
}
public
void
setRepairDateTimeBegin
(
String
repairDateTimeBegin
)
{
this
.
repairDateTimeBegin
=
repairDateTimeBegin
;
}
public
String
getRepairDateTimeEnd
()
{
return
repairDateTimeEnd
;
}
public
void
setRepairDateTimeEnd
(
String
repairDateTimeEnd
)
{
this
.
repairDateTimeEnd
=
repairDateTimeEnd
;
}
public
int
getCreatedBy
()
{
public
int
getCreatedBy
()
{
return
createdBy
;
return
createdBy
;
...
...
app/src/main/java/com/wd/workoffice/bean/vo/DeviceRepairVo.java
浏览文件 @
7155acc1
...
@@ -9,10 +9,27 @@ public class DeviceRepairVo {
...
@@ -9,10 +9,27 @@ public class DeviceRepairVo {
private
int
equipmentId
;
private
int
equipmentId
;
private
int
subEquipmentId
;
private
int
subEquipmentId
;
private
int
replaceS
parePartId
;
private
int
s
parePartId
;
private
String
equipmentName
;
private
String
equipmentName
;
private
String
subEquipmentName
;
private
String
subEquipmentName
;
private
String
replaceSparePartName
;
private
String
replaceSparePartName
;
private
String
amount
;
public
int
getSparePartId
()
{
return
sparePartId
;
}
public
void
setSparePartId
(
int
sparePartId
)
{
this
.
sparePartId
=
sparePartId
;
}
public
String
getAmount
()
{
return
amount
;
}
public
void
setAmount
(
String
amount
)
{
this
.
amount
=
amount
;
}
public
int
getEquipmentId
()
{
public
int
getEquipmentId
()
{
return
equipmentId
;
return
equipmentId
;
...
@@ -30,13 +47,6 @@ public class DeviceRepairVo {
...
@@ -30,13 +47,6 @@ public class DeviceRepairVo {
this
.
subEquipmentId
=
subEquipmentId
;
this
.
subEquipmentId
=
subEquipmentId
;
}
}
public
int
getReplaceSparePartId
()
{
return
replaceSparePartId
;
}
public
void
setReplaceSparePartId
(
int
replaceSparePartId
)
{
this
.
replaceSparePartId
=
replaceSparePartId
;
}
public
String
getEquipmentName
()
{
public
String
getEquipmentName
()
{
return
equipmentName
;
return
equipmentName
;
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/work/DeviceBuyRepairAddActivity.java
浏览文件 @
7155acc1
...
@@ -53,10 +53,14 @@ public class DeviceBuyRepairAddActivity extends WorkToolBarActivity {
...
@@ -53,10 +53,14 @@ public class DeviceBuyRepairAddActivity extends WorkToolBarActivity {
RelativeLayout
rlDep
;
RelativeLayout
rlDep
;
@BindView
(
R
.
id
.
et_price
)
@BindView
(
R
.
id
.
et_price
)
EditText
etPrice
;
EditText
etPrice
;
@BindView
(
R
.
id
.
tv_time
)
@BindView
(
R
.
id
.
tv_start_time
)
TextView
tvTime
;
TextView
tvStartTime
;
@BindView
(
R
.
id
.
rl_time
)
@BindView
(
R
.
id
.
rl_start_time
)
RelativeLayout
rlTime
;
RelativeLayout
rlStartTime
;
@BindView
(
R
.
id
.
tv_end_time
)
TextView
tvEndTime
;
@BindView
(
R
.
id
.
rl_end_time
)
RelativeLayout
rlEndTime
;
@BindView
(
R
.
id
.
tv_product
)
@BindView
(
R
.
id
.
tv_product
)
TextView
tvProduct
;
TextView
tvProduct
;
@BindView
(
R
.
id
.
rl_product
)
@BindView
(
R
.
id
.
rl_product
)
...
@@ -124,14 +128,22 @@ public class DeviceBuyRepairAddActivity extends WorkToolBarActivity {
...
@@ -124,14 +128,22 @@ public class DeviceBuyRepairAddActivity extends WorkToolBarActivity {
}
}
@OnClick
({
R
.
id
.
rl_dep
,
R
.
id
.
rl_time
,
R
.
id
.
rl_product
})
@OnClick
({
R
.
id
.
rl_dep
,
R
.
id
.
rl_
start_time
,
R
.
id
.
rl_end_
time
,
R
.
id
.
rl_product
})
public
void
onViewClicked
(
View
view
)
{
public
void
onViewClicked
(
View
view
)
{
switch
(
view
.
getId
())
{
switch
(
view
.
getId
())
{
case
R
.
id
.
rl_time
:
case
R
.
id
.
rl_
start_
time
:
PickTimeUtils
.
showPickThree
(
this
,
new
OnTimeSelectListener
()
{
PickTimeUtils
.
showPickThree
(
this
,
new
OnTimeSelectListener
()
{
@Override
@Override
public
void
onTimeSelect
(
Date
date
,
View
view
)
{
public
void
onTimeSelect
(
Date
date
,
View
view
)
{
tvTime
.
setText
(
TimeUtils
.
date2String
(
date
,
new
SimpleDateFormat
(
"yyyy-MM-dd"
)));
tvStartTime
.
setText
(
TimeUtils
.
date2String
(
date
,
new
SimpleDateFormat
(
"yyyy-MM-dd"
)));
}
}).
show
();
break
;
case
R
.
id
.
rl_end_time
:
PickTimeUtils
.
showPickThree
(
this
,
new
OnTimeSelectListener
()
{
@Override
public
void
onTimeSelect
(
Date
date
,
View
view
)
{
tvEndTime
.
setText
(
TimeUtils
.
date2String
(
date
,
new
SimpleDateFormat
(
"yyyy-MM-dd"
)));
}
}
}).
show
();
}).
show
();
break
;
break
;
...
@@ -147,18 +159,25 @@ public class DeviceBuyRepairAddActivity extends WorkToolBarActivity {
...
@@ -147,18 +159,25 @@ public class DeviceBuyRepairAddActivity extends WorkToolBarActivity {
toast
(
"请填写金额"
);
toast
(
"请填写金额"
);
return
;
return
;
}
}
if
(
TextUtils
.
isEmpty
(
tvTime
.
getText
().
toString
()))
{
if
(
TextUtils
.
isEmpty
(
tvStartTime
.
getText
().
toString
()))
{
toast
(
"请填写时间"
);
toast
(
"请填写开始时间"
);
return
;
}
if
(
TextUtils
.
isEmpty
(
tvEndTime
.
getText
().
toString
()))
{
toast
(
"请填写结束时间"
);
return
;
return
;
}
}
startActivity
(
DeviceBuyRepairProductActivity
.
class
,
startActivity
(
DeviceBuyRepairProductActivity
.
class
,
"depId"
,
chooseDep
.
getId
()
+
""
,
"depId"
,
chooseDep
.
getId
()
+
""
,
"depName"
,
chooseDep
.
getName
(),
"depName"
,
chooseDep
.
getName
(),
"amount"
,
etPrice
.
getText
().
toString
(),
"amount"
,
etPrice
.
getText
().
toString
(),
"repairDateTime"
,
tvTime
.
getText
().
toString
());
"repairDateTimeBegin"
,
tvStartTime
.
getText
().
toString
()+
" 00:00:00"
,
"repairDateTimeEnd"
,
tvEndTime
.
getText
().
toString
()+
" 00:00:00"
);
break
;
break
;
}
}
}
}
@Override
@Override
public
void
onStart
()
{
public
void
onStart
()
{
super
.
onStart
();
super
.
onStart
();
...
@@ -175,4 +194,5 @@ public class DeviceBuyRepairAddActivity extends WorkToolBarActivity {
...
@@ -175,4 +194,5 @@ public class DeviceBuyRepairAddActivity extends WorkToolBarActivity {
public
void
onMessageEvent
(
AddDeviceEvent
event
)
{
public
void
onMessageEvent
(
AddDeviceEvent
event
)
{
finish
();
finish
();
}
}
}
}
app/src/main/java/com/wd/workoffice/ui/activity/bat/work/DeviceBuyRepairConfirmActivity.java
浏览文件 @
7155acc1
package
com
.
wd
.
workoffice
.
ui
.
activity
.
bat
.
work
;
package
com
.
wd
.
workoffice
.
ui
.
activity
.
bat
.
work
;
import
android.text.Editable
;
import
android.os.Bundle
;
import
android.text.TextWatcher
;
import
android.view.Menu
;
import
android.view.Menu
;
import
android.view.MenuItem
;
import
android.view.MenuItem
;
import
android.view.View
;
import
android.widget.EditText
;
import
android.widget.EditText
;
import
android.widget.RelativeLayout
;
import
android.widget.RelativeLayout
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.app.BaseBean
;
import
com.wd.workoffice.app.BaseBean
;
import
com.wd.workoffice.app.WorkToolBarActivity
;
import
com.wd.workoffice.app.WorkToolBarActivity
;
...
@@ -18,7 +15,6 @@ import com.wd.workoffice.bean.event.AddDeviceEvent;
...
@@ -18,7 +15,6 @@ import com.wd.workoffice.bean.event.AddDeviceEvent;
import
com.wd.workoffice.bean.vo.DeviceRepairVo
;
import
com.wd.workoffice.bean.vo.DeviceRepairVo
;
import
com.wd.workoffice.retrofit.RtfUtils
;
import
com.wd.workoffice.retrofit.RtfUtils
;
import
com.wd.workoffice.retrofit.WorkObserver
;
import
com.wd.workoffice.retrofit.WorkObserver
;
import
com.wd.workoffice.ui.activity.bat.store.StoreOrderSuccessActivity
;
import
com.wd.workoffice.ui.adapter.DeviceRepairProductAdapter
;
import
com.wd.workoffice.ui.adapter.DeviceRepairProductAdapter
;
import
com.wd.workoffice.util.UserKeeper
;
import
com.wd.workoffice.util.UserKeeper
;
import
com.wd.workoffice.util.WorkUtils
;
import
com.wd.workoffice.util.WorkUtils
;
...
@@ -34,7 +30,6 @@ import androidx.recyclerview.widget.LinearLayoutManager;
...
@@ -34,7 +30,6 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import
androidx.recyclerview.widget.RecyclerView
;
import
androidx.recyclerview.widget.RecyclerView
;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
import
flexible.xd.android_base.network.rtfhttp.Transformer
;
import
flexible.xd.android_base.network.rtfhttp.Transformer
;
import
io.reactivex.disposables.Disposable
;
import
io.reactivex.disposables.Disposable
;
...
@@ -48,16 +43,18 @@ public class DeviceBuyRepairConfirmActivity extends WorkToolBarActivity {
...
@@ -48,16 +43,18 @@ public class DeviceBuyRepairConfirmActivity extends WorkToolBarActivity {
@BindView
(
R
.
id
.
tv_num
)
@BindView
(
R
.
id
.
tv_num
)
TextView
tvNum
;
TextView
tvNum
;
@BindView
(
R
.
id
.
tv_price
)
TextView
tvPrice
;
@BindView
(
R
.
id
.
tv_ok
)
@BindView
(
R
.
id
.
tv_ok
)
TextView
tvOk
;
TextView
tvOk
;
@BindView
(
R
.
id
.
ll_bottom
)
@BindView
(
R
.
id
.
ll_bottom
)
RelativeLayout
llBottom
;
RelativeLayout
llBottom
;
@BindView
(
R
.
id
.
tv_dep
)
@BindView
(
R
.
id
.
tv_dep
)
TextView
tvDep
;
TextView
tvDep
;
@BindView
(
R
.
id
.
tv_time
)
@BindView
(
R
.
id
.
tv_price
)
TextView
tvTime
;
TextView
tvPrice
;
@BindView
(
R
.
id
.
tv_start_time
)
TextView
tvStartTime
;
@BindView
(
R
.
id
.
tv_end_time
)
TextView
tvEndTime
;
@BindView
(
R
.
id
.
rv_pro
)
@BindView
(
R
.
id
.
rv_pro
)
RecyclerView
rvPro
;
RecyclerView
rvPro
;
@BindView
(
R
.
id
.
et_input5
)
@BindView
(
R
.
id
.
et_input5
)
...
@@ -79,7 +76,8 @@ public class DeviceBuyRepairConfirmActivity extends WorkToolBarActivity {
...
@@ -79,7 +76,8 @@ public class DeviceBuyRepairConfirmActivity extends WorkToolBarActivity {
protected
void
initData
()
{
protected
void
initData
()
{
tvDep
.
setText
(
getIntent
().
getStringExtra
(
"depName"
));
tvDep
.
setText
(
getIntent
().
getStringExtra
(
"depName"
));
tvPrice
.
setText
(
getIntent
().
getStringExtra
(
"amount"
));
tvPrice
.
setText
(
getIntent
().
getStringExtra
(
"amount"
));
tvTime
.
setText
(
getIntent
().
getStringExtra
(
"repairDateTime"
));
tvStartTime
.
setText
(
getIntent
().
getStringExtra
(
"repairDateTimeBegin"
));
tvEndTime
.
setText
(
getIntent
().
getStringExtra
(
"repairDateTimeEnd"
));
proList
=
new
ArrayList
<>();
proList
=
new
ArrayList
<>();
proAdapter
=
new
DeviceRepairProductAdapter
(
R
.
layout
.
item_device_product_repair
,
proList
,
1
);
proAdapter
=
new
DeviceRepairProductAdapter
(
R
.
layout
.
item_device_product_repair
,
proList
,
1
);
proAdapter
.
bindToRecyclerView
(
rvPro
);
proAdapter
.
bindToRecyclerView
(
rvPro
);
...
@@ -89,7 +87,8 @@ public class DeviceBuyRepairConfirmActivity extends WorkToolBarActivity {
...
@@ -89,7 +87,8 @@ public class DeviceBuyRepairConfirmActivity extends WorkToolBarActivity {
param
.
put
(
"receiveDeptId"
,
getIntent
().
getStringExtra
(
"depId"
));
param
.
put
(
"receiveDeptId"
,
getIntent
().
getStringExtra
(
"depId"
));
param
.
put
(
"launchUserId"
,
UserKeeper
.
getInstance
().
getUserId
());
param
.
put
(
"launchUserId"
,
UserKeeper
.
getInstance
().
getUserId
());
param
.
put
(
"launchDeptId"
,
UserKeeper
.
getInstance
().
getUserDepId
());
param
.
put
(
"launchDeptId"
,
UserKeeper
.
getInstance
().
getUserDepId
());
param
.
put
(
"repairDateTime"
,
getIntent
().
getStringExtra
(
"repairDateTime"
));
param
.
put
(
"repairDateTimeBegin"
,
getIntent
().
getStringExtra
(
"repairDateTimeBegin"
));
param
.
put
(
"repairDateTimeEnd"
,
getIntent
().
getStringExtra
(
"repairDateTimeEnd"
));
param
.
put
(
"amount"
,
getIntent
().
getStringExtra
(
"amount"
));
param
.
put
(
"amount"
,
getIntent
().
getStringExtra
(
"amount"
));
}
}
...
@@ -106,7 +105,7 @@ public class DeviceBuyRepairConfirmActivity extends WorkToolBarActivity {
...
@@ -106,7 +105,7 @@ public class DeviceBuyRepairConfirmActivity extends WorkToolBarActivity {
* @param tv
* @param tv
*/
*/
private
void
addNumListener
(
EditText
et
,
TextView
tv
)
{
private
void
addNumListener
(
EditText
et
,
TextView
tv
)
{
WorkUtils
.
addNumListener
(
et
,
tv
);
WorkUtils
.
addNumListener
(
et
,
tv
);
}
}
@Override
@Override
...
@@ -145,6 +144,7 @@ public class DeviceBuyRepairConfirmActivity extends WorkToolBarActivity {
...
@@ -145,6 +144,7 @@ public class DeviceBuyRepairConfirmActivity extends WorkToolBarActivity {
}
}
});
});
}
}
@Override
@Override
public
boolean
onCreateOptionsMenu
(
Menu
menu
)
{
public
boolean
onCreateOptionsMenu
(
Menu
menu
)
{
getMenuInflater
().
inflate
(
R
.
menu
.
menu_report
,
menu
);
getMenuInflater
().
inflate
(
R
.
menu
.
menu_report
,
menu
);
...
@@ -161,4 +161,5 @@ public class DeviceBuyRepairConfirmActivity extends WorkToolBarActivity {
...
@@ -161,4 +161,5 @@ public class DeviceBuyRepairConfirmActivity extends WorkToolBarActivity {
}
}
return
super
.
onOptionsItemSelected
(
item
);
return
super
.
onOptionsItemSelected
(
item
);
}
}
}
}
app/src/main/java/com/wd/workoffice/ui/activity/bat/work/DeviceBuyRepairProductActivity.java
浏览文件 @
7155acc1
package
com
.
wd
.
workoffice
.
ui
.
activity
.
bat
.
work
;
package
com
.
wd
.
workoffice
.
ui
.
activity
.
bat
.
work
;
import
android.content.DialogInterface
;
import
android.content.DialogInterface
;
import
android.os.Bundle
;
import
android.text.TextUtils
;
import
android.view.Menu
;
import
android.view.Menu
;
import
android.view.MenuItem
;
import
android.view.MenuItem
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.EditText
;
import
android.widget.LinearLayout
;
import
android.widget.LinearLayout
;
import
android.widget.RelativeLayout
;
import
android.widget.RelativeLayout
;
import
android.widget.TextView
;
import
android.widget.TextView
;
...
@@ -17,7 +20,6 @@ import com.wd.workoffice.app.WorkToolBarActivity;
...
@@ -17,7 +20,6 @@ import com.wd.workoffice.app.WorkToolBarActivity;
import
com.wd.workoffice.bean.DeviceBean
;
import
com.wd.workoffice.bean.DeviceBean
;
import
com.wd.workoffice.bean.SparePartsBean
;
import
com.wd.workoffice.bean.SparePartsBean
;
import
com.wd.workoffice.bean.event.AddDeviceEvent
;
import
com.wd.workoffice.bean.event.AddDeviceEvent
;
import
com.wd.workoffice.bean.event.ModifyCarEvent
;
import
com.wd.workoffice.bean.vo.DeviceRepairVo
;
import
com.wd.workoffice.bean.vo.DeviceRepairVo
;
import
com.wd.workoffice.retrofit.RtfUtils
;
import
com.wd.workoffice.retrofit.RtfUtils
;
import
com.wd.workoffice.retrofit.WorkObserver
;
import
com.wd.workoffice.retrofit.WorkObserver
;
...
@@ -56,10 +58,6 @@ public class DeviceBuyRepairProductActivity extends WorkToolBarActivity {
...
@@ -56,10 +58,6 @@ public class DeviceBuyRepairProductActivity extends WorkToolBarActivity {
TextView
tvMachine
;
TextView
tvMachine
;
@BindView
(
R
.
id
.
rl_machine
)
@BindView
(
R
.
id
.
rl_machine
)
RelativeLayout
rlMachine
;
RelativeLayout
rlMachine
;
@BindView
(
R
.
id
.
tv_components
)
TextView
tvComponents
;
@BindView
(
R
.
id
.
rl_components
)
RelativeLayout
rlComponents
;
@BindView
(
R
.
id
.
tv_spare_parts
)
@BindView
(
R
.
id
.
tv_spare_parts
)
TextView
tvSpareParts
;
TextView
tvSpareParts
;
@BindView
(
R
.
id
.
rl_spare_parts
)
@BindView
(
R
.
id
.
rl_spare_parts
)
...
@@ -70,6 +68,8 @@ public class DeviceBuyRepairProductActivity extends WorkToolBarActivity {
...
@@ -70,6 +68,8 @@ public class DeviceBuyRepairProductActivity extends WorkToolBarActivity {
TextView
tvOk
;
TextView
tvOk
;
@BindView
(
R
.
id
.
ll_add
)
@BindView
(
R
.
id
.
ll_add
)
LinearLayout
llAdd
;
LinearLayout
llAdd
;
@BindView
(
R
.
id
.
et_amount
)
EditText
etAmount
;
private
Map
<
String
,
Object
>
param
;
private
Map
<
String
,
Object
>
param
;
private
List
<
DeviceRepairVo
>
dataList
;
private
List
<
DeviceRepairVo
>
dataList
;
private
DeviceRepairProductAdapter
dataAdapter
;
private
DeviceRepairProductAdapter
dataAdapter
;
...
@@ -94,10 +94,10 @@ public class DeviceBuyRepairProductActivity extends WorkToolBarActivity {
...
@@ -94,10 +94,10 @@ public class DeviceBuyRepairProductActivity extends WorkToolBarActivity {
machineDialog
=
DialogUtils
.
listDialog
(
this
);
machineDialog
=
DialogUtils
.
listDialog
(
this
);
componentsDialog
=
DialogUtils
.
listDialog
(
this
);
componentsDialog
=
DialogUtils
.
listDialog
(
this
);
sparePartsDialog
=
DialogUtils
.
listDialog
(
this
);
sparePartsDialog
=
DialogUtils
.
listDialog
(
this
);
WorkUtils
.
addDecimalsListener
(
etAmount
);
}
}
@Override
@Override
protected
void
initData
()
{
protected
void
initData
()
{
dataList
=
new
ArrayList
<>();
dataList
=
new
ArrayList
<>();
...
@@ -151,7 +151,7 @@ public class DeviceBuyRepairProductActivity extends WorkToolBarActivity {
...
@@ -151,7 +151,7 @@ public class DeviceBuyRepairProductActivity extends WorkToolBarActivity {
private
void
clearViewData
()
{
private
void
clearViewData
()
{
chooseComponents
=
null
;
chooseComponents
=
null
;
chooseSpareParts
=
null
;
chooseSpareParts
=
null
;
tvComponents
.
setText
(
""
);
etAmount
.
setText
(
""
);
tvSpareParts
.
setText
(
""
);
tvSpareParts
.
setText
(
""
);
}
}
...
@@ -187,7 +187,7 @@ public class DeviceBuyRepairProductActivity extends WorkToolBarActivity {
...
@@ -187,7 +187,7 @@ public class DeviceBuyRepairProductActivity extends WorkToolBarActivity {
@Override
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
chooseComponents
=
componentsList
.
get
(
which
);
chooseComponents
=
componentsList
.
get
(
which
);
tvComponents
.
setText
(
componentsNameList
.
get
(
which
));
etAmount
.
setText
(
componentsNameList
.
get
(
which
));
dialog
.
dismiss
();
dialog
.
dismiss
();
}
}
});
});
...
@@ -269,24 +269,23 @@ public class DeviceBuyRepairProductActivity extends WorkToolBarActivity {
...
@@ -269,24 +269,23 @@ public class DeviceBuyRepairProductActivity extends WorkToolBarActivity {
}
}
startActivity
(
DeviceBuyRepairConfirmActivity
.
class
,
startActivity
(
DeviceBuyRepairConfirmActivity
.
class
,
"pro"
,
JSON
.
toJSONString
(
dataList
),
"pro"
,
JSON
.
toJSONString
(
dataList
),
"depId"
,
getIntent
().
getStringExtra
(
"depId"
),
"depId"
,
getIntent
().
getStringExtra
(
"depId"
),
"depName"
,
getIntent
().
getStringExtra
(
"depName"
),
"depName"
,
getIntent
().
getStringExtra
(
"depName"
),
"amount"
,
getIntent
().
getStringExtra
(
"amount"
),
"amount"
,
getIntent
().
getStringExtra
(
"amount"
),
"repairDateTime"
,
getIntent
().
getStringExtra
(
"repairDateTime"
));
"repairDateTimeBegin"
,
getIntent
().
getStringExtra
(
"repairDateTimeBegin"
),
"repairDateTimeEnd"
,
getIntent
().
getStringExtra
(
"repairDateTimeEnd"
));
break
;
break
;
}
}
return
super
.
onOptionsItemSelected
(
item
);
return
super
.
onOptionsItemSelected
(
item
);
}
}
@OnClick
({
R
.
id
.
tv_add
,
R
.
id
.
rl_machine
,
R
.
id
.
rl_
components
,
R
.
id
.
rl_
spare_parts
,
R
.
id
.
tv_cancel
,
R
.
id
.
tv_ok
})
@OnClick
({
R
.
id
.
tv_add
,
R
.
id
.
rl_machine
,
R
.
id
.
rl_spare_parts
,
R
.
id
.
tv_cancel
,
R
.
id
.
tv_ok
})
public
void
onViewClicked
(
View
view
)
{
public
void
onViewClicked
(
View
view
)
{
switch
(
view
.
getId
())
{
switch
(
view
.
getId
())
{
case
R
.
id
.
rl_machine
:
case
R
.
id
.
rl_machine
:
machineDialog
.
show
();
machineDialog
.
show
();
break
;
break
;
case
R
.
id
.
rl_components
:
componentsDialog
.
show
();
break
;
case
R
.
id
.
rl_spare_parts
:
case
R
.
id
.
rl_spare_parts
:
sparePartsDialog
.
show
();
sparePartsDialog
.
show
();
break
;
break
;
...
@@ -304,12 +303,13 @@ public class DeviceBuyRepairProductActivity extends WorkToolBarActivity {
...
@@ -304,12 +303,13 @@ public class DeviceBuyRepairProductActivity extends WorkToolBarActivity {
}
}
private
void
addData
()
{
private
void
addData
()
{
String
amount
=
etAmount
.
getText
().
toString
();
if
(
chooseMachine
==
null
)
{
if
(
chooseMachine
==
null
)
{
toast
(
"请选择设备"
);
toast
(
"请选择设备"
);
return
;
return
;
}
}
if
(
chooseComponents
==
null
)
{
if
(
TextUtils
.
isEmpty
(
amount
)||
Double
.
valueOf
(
amount
)==
0
d
)
{
toast
(
"请
选择组件
"
);
toast
(
"请
输入消耗数量
"
);
return
;
return
;
}
}
if
(
chooseSpareParts
==
null
)
{
if
(
chooseSpareParts
==
null
)
{
...
@@ -319,9 +319,10 @@ public class DeviceBuyRepairProductActivity extends WorkToolBarActivity {
...
@@ -319,9 +319,10 @@ public class DeviceBuyRepairProductActivity extends WorkToolBarActivity {
DeviceRepairVo
deviceRepairVo
=
new
DeviceRepairVo
();
DeviceRepairVo
deviceRepairVo
=
new
DeviceRepairVo
();
deviceRepairVo
.
setEquipmentId
(
chooseMachine
.
getId
());
deviceRepairVo
.
setEquipmentId
(
chooseMachine
.
getId
());
deviceRepairVo
.
setEquipmentName
(
chooseMachine
.
getTitle
());
deviceRepairVo
.
setEquipmentName
(
chooseMachine
.
getTitle
());
deviceRepairVo
.
setSubEquipmentId
(
chooseComponents
.
getId
());
// deviceRepairVo.setSubEquipmentId(chooseComponents.getId());
deviceRepairVo
.
setSubEquipmentName
(
chooseComponents
.
getTitle
());
// deviceRepairVo.setSubEquipmentName(chooseComponents.getTitle());
deviceRepairVo
.
setReplaceSparePartId
(
chooseSpareParts
.
getId
());
deviceRepairVo
.
setAmount
(
amount
);
deviceRepairVo
.
setSparePartId
(
chooseSpareParts
.
getId
());
deviceRepairVo
.
setReplaceSparePartName
(
chooseSpareParts
.
getItemName
());
deviceRepairVo
.
setReplaceSparePartName
(
chooseSpareParts
.
getItemName
());
dataList
.
add
(
deviceRepairVo
);
dataList
.
add
(
deviceRepairVo
);
dataAdapter
.
notifyDataSetChanged
();
dataAdapter
.
notifyDataSetChanged
();
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/work/DeviceRepairDetailActivity.java
浏览文件 @
7155acc1
...
@@ -17,13 +17,13 @@ import com.wd.workoffice.app.BaseBean;
...
@@ -17,13 +17,13 @@ import com.wd.workoffice.app.BaseBean;
import
com.wd.workoffice.app.WorkToolBarActivity
;
import
com.wd.workoffice.app.WorkToolBarActivity
;
import
com.wd.workoffice.bean.DeviceBean
;
import
com.wd.workoffice.bean.DeviceBean
;
import
com.wd.workoffice.bean.DeviceBuyBean
;
import
com.wd.workoffice.bean.DeviceBuyBean
;
import
com.wd.workoffice.bean.RepairBean
;
import
com.wd.workoffice.bean.event.CheckDeviceEvent
;
import
com.wd.workoffice.bean.event.CheckDeviceEvent
;
import
com.wd.workoffice.bean.workEnum.PagePermissionType
;
import
com.wd.workoffice.bean.workEnum.PagePermissionType
;
import
com.wd.workoffice.retrofit.RtfUtils
;
import
com.wd.workoffice.retrofit.RtfUtils
;
import
com.wd.workoffice.retrofit.WorkObserver
;
import
com.wd.workoffice.retrofit.WorkObserver
;
import
com.wd.workoffice.ui.adapter.DeviceRepairDetailAdapter
;
import
com.wd.workoffice.ui.adapter.DeviceRepairDetailAdapter
;
import
com.wd.workoffice.util.DialogUtils
;
import
com.wd.workoffice.util.DialogUtils
;
import
com.wd.workoffice.util.MathUtils
;
import
com.wd.workoffice.util.WorkUtils
;
import
com.wd.workoffice.util.WorkUtils
;
import
org.greenrobot.eventbus.EventBus
;
import
org.greenrobot.eventbus.EventBus
;
...
@@ -50,68 +50,69 @@ import io.reactivex.disposables.Disposable;
...
@@ -50,68 +50,69 @@ import io.reactivex.disposables.Disposable;
* github: https://github.com/FlexibleXd
* github: https://github.com/FlexibleXd
**/
**/
public
class
DeviceRepairDetailActivity
extends
WorkToolBarActivity
{
public
class
DeviceRepairDetailActivity
extends
WorkToolBarActivity
{
@BindView
(
R
.
id
.
tv_finish
)
TextView
tvFinish
;
@BindView
(
R
.
id
.
tv_refuse
)
@BindView
(
R
.
id
.
tv_refuse
)
TextView
tvRefuse
;
TextView
tvRefuse
;
@BindView
(
R
.
id
.
tv_agree
)
@BindView
(
R
.
id
.
tv_agree
)
TextView
tvAgree
;
TextView
tvAgree
;
@BindView
(
R
.
id
.
ll_check
)
LinearLayout
llCheck
;
@BindView
(
R
.
id
.
ll_bottom
)
@BindView
(
R
.
id
.
ll_bottom
)
LinearLayout
llBottom
;
LinearLayout
llBottom
;
@BindView
(
R
.
id
.
tv_code
)
@BindView
(
R
.
id
.
tv_code
)
TextView
tvCode
;
TextView
tvCode
;
@BindView
(
R
.
id
.
ll_code
)
RelativeLayout
llCode
;
@BindView
(
R
.
id
.
tv_status
)
@BindView
(
R
.
id
.
tv_status
)
TextView
tvStatus
;
TextView
tvStatus
;
@BindView
(
R
.
id
.
ll_status
)
RelativeLayout
llStatus
;
@BindView
(
R
.
id
.
tv_receive_dep
)
@BindView
(
R
.
id
.
tv_receive_dep
)
TextView
tvReceiveDep
;
TextView
tvReceiveDep
;
@BindView
(
R
.
id
.
tv_order_people
)
@BindView
(
R
.
id
.
tv_order_people
)
TextView
tvOrderPeople
;
TextView
tvOrderPeople
;
@BindView
(
R
.
id
.
tv_order_dep
)
@BindView
(
R
.
id
.
tv_order_dep
)
TextView
tvOrderDep
;
TextView
tvOrderDep
;
@BindView
(
R
.
id
.
tv_order_time
)
@BindView
(
R
.
id
.
tv_start_time
)
TextView
tvOrderTime
;
TextView
tvStartTime
;
@BindView
(
R
.
id
.
tv_end_time
)
TextView
tvEndTime
;
@BindView
(
R
.
id
.
tv_price_desc
)
TextView
tvPriceDesc
;
@BindView
(
R
.
id
.
tv_price
)
@BindView
(
R
.
id
.
tv_price
)
TextView
tvPrice
;
TextView
tvPrice
;
@BindView
(
R
.
id
.
tv_remark
)
@BindView
(
R
.
id
.
tv_remark
)
TextView
tvRemark
;
TextView
tvRemark
;
@BindView
(
R
.
id
.
rv_data
)
RecyclerView
rvData
;
@BindView
(
R
.
id
.
tv_desc
)
@BindView
(
R
.
id
.
tv_desc
)
TextView
tvDesc
;
TextView
tvDesc
;
@BindView
(
R
.
id
.
tv_finish
)
@BindView
(
R
.
id
.
rv_data
)
TextView
tvFinish
;
RecyclerView
rvData
;
@BindView
(
R
.
id
.
ll_check
)
LinearLayout
llCheck
;
@BindView
(
R
.
id
.
ll_code
)
RelativeLayout
llCode
;
@BindView
(
R
.
id
.
ll_status
)
RelativeLayout
llStatus
;
@BindView
(
R
.
id
.
tv_price_desc
)
TextView
tvPriceDesc
;
private
List
<
DeviceBean
.
RecordsBean
>
dataList
;
private
List
<
DeviceBean
.
RecordsBean
>
dataList
;
private
DeviceRepairDetailAdapter
dataAdapter
;
private
DeviceRepairDetailAdapter
dataAdapter
;
private
Map
<
String
,
Object
>
param
;
private
Map
<
String
,
Object
>
param
;
private
DeviceBuy
Bean
.
RecordsBean
info
;
private
Repair
Bean
.
RecordsBean
info
;
@Override
@Override
protected
void
initView
()
{
protected
void
initView
()
{
ButterKnife
.
bind
(
this
);
ButterKnife
.
bind
(
this
);
rvData
.
setLayoutManager
(
new
LinearLayoutManager
(
this
,
RecyclerView
.
VERTICAL
,
false
));
rvData
.
setLayoutManager
(
new
LinearLayoutManager
(
this
,
RecyclerView
.
VERTICAL
,
false
));
tvDesc
.
setText
(
"维修明细"
);
llCode
.
setVisibility
(
View
.
GONE
);
llCode
.
setVisibility
(
View
.
GONE
);
llStatus
.
setVisibility
(
View
.
GONE
);
llStatus
.
setVisibility
(
View
.
GONE
);
tvPriceDesc
.
setText
(
"维修时间"
);
}
}
@Override
@Override
protected
void
initData
()
{
protected
void
initData
()
{
info
=
JSON
.
parseObject
(
getIntent
().
getStringExtra
(
"info"
),
DeviceBuy
Bean
.
RecordsBean
.
class
);
info
=
JSON
.
parseObject
(
getIntent
().
getStringExtra
(
"info"
),
Repair
Bean
.
RecordsBean
.
class
);
getData
(
info
.
getId
()
+
""
);
getData
(
info
.
getId
()
+
""
);
tvCode
.
setText
(
info
.
getId
());
tvCode
.
setText
(
info
.
getId
());
tvStatus
.
setText
(
WorkUtils
.
getDeviceStatus
(
info
.
getStatus
()));
tvStatus
.
setText
(
WorkUtils
.
getDeviceStatus
(
info
.
getStatus
()));
tvReceiveDep
.
setText
(
info
.
getReceiveDeptName
());
tvReceiveDep
.
setText
(
info
.
getReceiveDeptName
());
tvOrderPeople
.
setText
(
info
.
getLaunchUserName
());
tvOrderPeople
.
setText
(
info
.
getLaunchUserName
());
tvOrderDep
.
setText
(
info
.
getLaunchDeptName
());
tvOrderDep
.
setText
(
info
.
getLaunchDeptName
());
tvOrderTime
.
setText
(
info
.
getCreatedTime
());
tvStartTime
.
setText
(
info
.
getRepairDateTimeBegin
());
tvPrice
.
setText
(
info
.
getCreatedTime
().
split
(
" "
)[
0
]);
tvEndTime
.
setText
(
info
.
getRepairDateTimeEnd
());
tvPrice
.
setText
(
info
.
getCreatedTime
());
tvRemark
.
setText
(
info
.
getRemark
());
tvRemark
.
setText
(
info
.
getRemark
());
changePermissionView
();
changePermissionView
();
dataList
=
new
ArrayList
<>();
dataList
=
new
ArrayList
<>();
...
@@ -186,7 +187,7 @@ public class DeviceRepairDetailActivity extends WorkToolBarActivity {
...
@@ -186,7 +187,7 @@ public class DeviceRepairDetailActivity extends WorkToolBarActivity {
@Override
@Override
protected
int
layoutId
()
{
protected
int
layoutId
()
{
return
R
.
layout
.
activity_device_
buy
_detail
;
return
R
.
layout
.
activity_device_
repair
_detail
;
}
}
...
@@ -319,10 +320,4 @@ public class DeviceRepairDetailActivity extends WorkToolBarActivity {
...
@@ -319,10 +320,4 @@ public class DeviceRepairDetailActivity extends WorkToolBarActivity {
});
});
}
}
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
// TODO: add setContentView(...) invocation
ButterKnife
.
bind
(
this
);
}
}
}
app/src/main/java/com/wd/workoffice/ui/adapter/DeviceRepairAdapter.java
浏览文件 @
7155acc1
...
@@ -29,7 +29,8 @@ public class DeviceRepairAdapter extends BaseQuickAdapter<RepairBean.RecordsBean
...
@@ -29,7 +29,8 @@ public class DeviceRepairAdapter extends BaseQuickAdapter<RepairBean.RecordsBean
helper
.
setText
(
R
.
id
.
tv_order_dep
,
item
.
getLaunchDeptName
());
helper
.
setText
(
R
.
id
.
tv_order_dep
,
item
.
getLaunchDeptName
());
helper
.
setText
(
R
.
id
.
tv_code
,
item
.
getId
());
helper
.
setText
(
R
.
id
.
tv_code
,
item
.
getId
());
helper
.
setText
(
R
.
id
.
tv_order_time
,
item
.
getCreatedTime
());
helper
.
setText
(
R
.
id
.
tv_order_time
,
item
.
getCreatedTime
());
helper
.
setText
(
R
.
id
.
tv_repair_time
,
item
.
getRepairDateTime
());
helper
.
setText
(
R
.
id
.
tv_start_time
,
item
.
getRepairDateTimeBegin
());
helper
.
setText
(
R
.
id
.
tv_end_time
,
item
.
getRepairDateTimeEnd
());
helper
.
setText
(
R
.
id
.
tv_status
,
WorkUtils
.
getDeviceStatus
(
item
.
getStatus
()));
helper
.
setText
(
R
.
id
.
tv_status
,
WorkUtils
.
getDeviceStatus
(
item
.
getStatus
()));
helper
.
setText
(
R
.
id
.
tv_all_price
,
MathUtils
.
converData
(
item
.
getAmount
(),
3
));
helper
.
setText
(
R
.
id
.
tv_all_price
,
MathUtils
.
converData
(
item
.
getAmount
(),
3
));
}
}
...
...
app/src/main/java/com/wd/workoffice/ui/adapter/DeviceRepairDetailAdapter.java
浏览文件 @
7155acc1
...
@@ -6,6 +6,7 @@ import com.chad.library.adapter.base.BaseViewHolder;
...
@@ -6,6 +6,7 @@ import com.chad.library.adapter.base.BaseViewHolder;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.bean.DeviceBean
;
import
com.wd.workoffice.bean.DeviceBean
;
import
com.wd.workoffice.util.MathUtils
;
import
com.wd.workoffice.util.MathUtils
;
import
com.wd.workoffice.util.WorkUtils
;
import
java.util.List
;
import
java.util.List
;
...
@@ -23,8 +24,8 @@ public class DeviceRepairDetailAdapter extends BaseQuickAdapter<DeviceBean.Recor
...
@@ -23,8 +24,8 @@ public class DeviceRepairDetailAdapter extends BaseQuickAdapter<DeviceBean.Recor
@Override
@Override
protected
void
convert
(
BaseViewHolder
helper
,
DeviceBean
.
RecordsBean
item
)
{
protected
void
convert
(
BaseViewHolder
helper
,
DeviceBean
.
RecordsBean
item
)
{
helper
.
setText
(
R
.
id
.
tv_name
,
item
.
getEquipmentName
());
helper
.
setText
(
R
.
id
.
tv_name
,
item
.
getEquipmentName
());
helper
.
setText
(
R
.
id
.
tv_
component
,
item
.
getSubEquipmentName
(
));
helper
.
setText
(
R
.
id
.
tv_
amount
,
MathUtils
.
converData
(
item
.
getAmount
(),
3
));
helper
.
setText
(
R
.
id
.
tv_spare_parts
,
item
.
get
Replace
SparePartName
()
);
helper
.
setText
(
R
.
id
.
tv_spare_parts
,
item
.
getSparePartName
()
);
}
}
}
}
app/src/main/java/com/wd/workoffice/ui/adapter/DeviceRepairProductAdapter.java
浏览文件 @
7155acc1
...
@@ -23,7 +23,7 @@ public class DeviceRepairProductAdapter extends BaseQuickAdapter<DeviceRepairVo,
...
@@ -23,7 +23,7 @@ public class DeviceRepairProductAdapter extends BaseQuickAdapter<DeviceRepairVo,
@Override
@Override
protected
void
convert
(
BaseViewHolder
helper
,
DeviceRepairVo
item
)
{
protected
void
convert
(
BaseViewHolder
helper
,
DeviceRepairVo
item
)
{
helper
.
setText
(
R
.
id
.
tv_component_name
,
item
.
get
SubEquipmentName
());
helper
.
setText
(
R
.
id
.
tv_component_name
,
item
.
get
Amount
());
helper
.
setText
(
R
.
id
.
tv_spare_parts_name
,
item
.
getReplaceSparePartName
());
helper
.
setText
(
R
.
id
.
tv_spare_parts_name
,
item
.
getReplaceSparePartName
());
helper
.
setText
(
R
.
id
.
tv_machine_name
,
item
.
getEquipmentName
());
helper
.
setText
(
R
.
id
.
tv_machine_name
,
item
.
getEquipmentName
());
helper
.
addOnClickListener
(
R
.
id
.
tv_delete
);
helper
.
addOnClickListener
(
R
.
id
.
tv_delete
);
...
...
app/src/main/res/layout/activity_device_buy_pro_repair.xml
浏览文件 @
7155acc1
...
@@ -31,8 +31,8 @@
...
@@ -31,8 +31,8 @@
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_add"
android:visibility=
"gone"
android:visibility=
"gone"
android:id=
"@+id/ll_add"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#70000000"
android:background=
"#70000000"
...
@@ -103,6 +103,7 @@
...
@@ -103,6 +103,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"10mm"
android:layout_marginRight=
"10mm"
android:hint=
"请选择设备"
android:hint=
"请选择设备"
android:gravity=
"right"
android:textSize=
"16sp"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
@@ -114,8 +115,9 @@
...
@@ -114,8 +115,9 @@
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
<RelativeLayout
android:id=
"@+id/rl_
componen
ts"
android:id=
"@+id/rl_
spare_par
ts"
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"
...
@@ -133,17 +135,18 @@
...
@@ -133,17 +135,18 @@
<View
<View
android:layout_width=
"12mm"
android:layout_width=
"12mm"
android:layout_height=
"12mm"
android:layout_height=
"12mm"
android:background=
"#
C45D5D
"
/>
android:background=
"#
FFE3AD6E
"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"10mm"
android:layout_marginLeft=
"10mm"
android:text=
"
选择组件
"
android:text=
"
消耗物料(备件)
"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -151,11 +154,12 @@
...
@@ -151,11 +154,12 @@
android:gravity=
"center_vertical"
>
android:gravity=
"center_vertical"
>
<TextView
<TextView
android:id=
"@+id/tv_
componen
ts"
android:id=
"@+id/tv_
spare_par
ts"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"10mm"
android:layout_marginRight=
"10mm"
android:hint=
"请选择组件"
android:hint=
"请选择消耗物料"
android:gravity=
"right"
android:textSize=
"16sp"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
@@ -167,8 +171,8 @@
...
@@ -167,8 +171,8 @@
</RelativeLayout>
</RelativeLayout>
<
Relative
Layout
<
Linear
Layout
android:id=
"@+id/rl_
spare_par
ts"
android:id=
"@+id/rl_
componen
ts"
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"
...
@@ -186,40 +190,33 @@
...
@@ -186,40 +190,33 @@
<View
<View
android:layout_width=
"12mm"
android:layout_width=
"12mm"
android:layout_height=
"12mm"
android:layout_height=
"12mm"
android:background=
"#
FFE3AD6E
"
/>
android:background=
"#
C45D5D
"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"10mm"
android:layout_marginLeft=
"10mm"
android:text=
"
替换备件
"
android:text=
"
消耗数量
"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<EditText
android:layout_width=
"wrap_content"
android:id=
"@+id/et_amount"
android:layout_height=
"wrap_content"
android:layout_width=
"0dp"
android:layout_alignParentRight=
"true"
android:layout_weight=
"1"
android:gravity=
"center_vertical"
>
<TextView
android:id=
"@+id/tv_spare_parts"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"10mm"
android:layout_marginRight=
"10mm"
android:hint=
"请选择替换备件"
android:gravity=
"right"
android:background=
"@null"
android:hint=
"请输入消耗数量"
android:textSize=
"16sp"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<ImageView
android:layout_width=
"6mm"
android:layout_height=
"10mm"
android:background=
"@mipmap/arrow_right_blue"
/>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
...
...
app/src/main/res/layout/activity_device_buy_repair.xml
浏览文件 @
7155acc1
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
<RelativeLayout
android:id=
"@+id/rl_time"
android:id=
"@+id/rl_
start_
time"
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"
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"10mm"
android:layout_marginLeft=
"10mm"
android:text=
"
选择接维修
时间"
android:text=
"
维修开始
时间"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -159,11 +159,11 @@
...
@@ -159,11 +159,11 @@
android:gravity=
"center_vertical"
>
android:gravity=
"center_vertical"
>
<TextView
<TextView
android:id=
"@+id/tv_time"
android:id=
"@+id/tv_
start_
time"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"10mm"
android:layout_marginRight=
"10mm"
android:text=
"请选择维修时间"
android:text=
"请选择维修
开始
时间"
android:textSize=
"16sp"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
@@ -175,7 +175,59 @@
...
@@ -175,7 +175,59 @@
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/rl_end_time"
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=
"22mm"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:gravity=
"center_vertical"
>
<View
android:layout_width=
"12mm"
android:layout_height=
"12mm"
android:background=
"#FF3F617F"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"10mm"
android:text=
"维修结束时间"
android:textSize=
"16sp"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:gravity=
"center_vertical"
>
<TextView
android:id=
"@+id/tv_end_time"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"10mm"
android:text=
"请选择维修结束时间"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
<ImageView
android:layout_width=
"6mm"
android:layout_height=
"10mm"
android:background=
"@mipmap/arrow_right_blue"
/>
</LinearLayout>
</RelativeLayout>
<TextView
<TextView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"60mm"
android:layout_height=
"60mm"
...
...
app/src/main/res/layout/activity_device_buy_repair_confirm.xml
浏览文件 @
7155acc1
...
@@ -144,13 +144,13 @@
...
@@ -144,13 +144,13 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:layout_alignParentLeft=
"true"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:text=
"维修时间"
android:text=
"维修
开始
时间"
android:textColor=
"@color/flexible_text_gray"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
<TextView
<TextView
android:id=
"@+id/tv_time"
android:id=
"@+id/tv_
start_
time"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
...
@@ -159,8 +159,32 @@
...
@@ -159,8 +159,32 @@
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:paddingHorizontal=
"20mm"
android:paddingVertical=
"9mm"
>
<View
style=
"@style/ViewX"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:layout_centerVertical=
"true"
android:text=
"维修结束时间"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"14sp"
/>
<TextView
android:id=
"@+id/tv_end_time"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_marginRight=
"3mm"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"14sp"
/>
</RelativeLayout>
<View
style=
"@style/ViewX"
/>
<View
style=
"@style/ViewX"
/>
...
...
app/src/main/res/layout/activity_device_repair_detail.xml
0 → 100644
浏览文件 @
7155acc1
差异被折叠。
点击展开。
app/src/main/res/layout/item_device_product_repair.xml
浏览文件 @
7155acc1
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
<RelativeLayout
android:id=
"@+id/rl_num"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
>
android:layout_marginTop=
"10mm"
>
...
@@ -48,21 +49,19 @@
...
@@ -48,21 +49,19 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:layout_alignParentLeft=
"true"
android:text=
"
组件名称
"
android:text=
"
消耗物料(备件)
"
android:textColor=
"@color/flexible_text_gray"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
android:textSize=
"12sp"
/>
<TextView
<TextView
android:id=
"@+id/tv_
component
_name"
android:id=
"@+id/tv_
spare_parts
_name"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
android:textSize=
"12sp"
/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
<RelativeLayout
android:id=
"@+id/rl_num"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
>
android:layout_marginTop=
"10mm"
>
...
@@ -71,12 +70,12 @@
...
@@ -71,12 +70,12 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:layout_alignParentLeft=
"true"
android:text=
"
替换组件名称
"
android:text=
"
消耗数量
"
android:textColor=
"@color/flexible_text_gray"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
android:textSize=
"12sp"
/>
<TextView
<TextView
android:id=
"@+id/tv_
spare_parts
_name"
android:id=
"@+id/tv_
component
_name"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
...
...
app/src/main/res/layout/item_device_repair.xml
浏览文件 @
7155acc1
...
@@ -133,12 +133,33 @@
...
@@ -133,12 +133,33 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:layout_alignParentLeft=
"true"
android:text=
"维修时间"
android:text=
"维修
开始
时间"
android:textColor=
"@color/flexible_text_gray"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
android:textSize=
"12sp"
/>
<TextView
<TextView
android:id=
"@+id/tv_repair_time"
android:id=
"@+id/tv_start_time"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:text=
"维修结束时间"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/tv_end_time"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
...
...
app/src/main/res/layout/item_device_repair_detail.xml
浏览文件 @
7155acc1
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:layout_alignParentLeft=
"true"
android:text=
"设备
名字
"
android:text=
"设备"
android:textColor=
"@color/flexible_text_gray"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
android:textSize=
"12sp"
/>
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
android:textSize=
"12sp"
/>
android:textSize=
"12sp"
/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -47,18 +48,19 @@
...
@@ -47,18 +48,19 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:layout_alignParentLeft=
"true"
android:text=
"
组件名称
"
android:text=
"
消耗物料(备件)
"
android:textColor=
"@color/flexible_text_gray"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
android:textSize=
"12sp"
/>
<TextView
<TextView
android:id=
"@+id/tv_
component
"
android:id=
"@+id/tv_
spare_parts
"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:textColor=
"@color/flexible_text_gray"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
android:textSize=
"12sp"
/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -68,12 +70,12 @@
...
@@ -68,12 +70,12 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:layout_alignParentLeft=
"true"
android:text=
"
替换备件名称
"
android:text=
"
消耗数量
"
android:textColor=
"@color/flexible_text_gray"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
android:textSize=
"12sp"
/>
<TextView
<TextView
android:id=
"@+id/tv_
spare_parts
"
android:id=
"@+id/tv_
amount
"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论