|
|
|
|
@ -107,43 +107,59 @@ class QxgdNewActivity : BaseActivityOaToolbarViewBinding<ActivityQxgdNewBinding>
|
|
|
|
|
binding.etQxms.setContentTextSize(54)
|
|
|
|
|
|
|
|
|
|
binding.ilJz.setOnClickListener(View.OnClickListener { v: View? ->
|
|
|
|
|
val dialog = ListDialog(
|
|
|
|
|
context, jzDialogDatas
|
|
|
|
|
) { _: String?, position: Int ->
|
|
|
|
|
jzValue = jzList[position].value
|
|
|
|
|
binding.ilJz.content = jzList[position].description
|
|
|
|
|
if(jzDialogDatas.size>0){
|
|
|
|
|
val dialog = ListDialog(
|
|
|
|
|
context, jzDialogDatas
|
|
|
|
|
) { _: String?, position: Int ->
|
|
|
|
|
jzValue = jzList[position].value
|
|
|
|
|
binding.ilJz.content = jzList[position].description
|
|
|
|
|
}
|
|
|
|
|
dialog.show()
|
|
|
|
|
}else{
|
|
|
|
|
showToast("下拉数据获取失败,请检测网络环境,返回上一级页面后再重新进入当前页面。")
|
|
|
|
|
}
|
|
|
|
|
dialog.show()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
binding.ilZy.setOnClickListener(View.OnClickListener { v: View? ->
|
|
|
|
|
val dialog = ListDialog(
|
|
|
|
|
context, zyDialogDatas
|
|
|
|
|
) { _: String?, position: Int ->
|
|
|
|
|
zyValue = zyList[position].value
|
|
|
|
|
binding.ilZy.content = zyList[position].description
|
|
|
|
|
if(zyDialogDatas.size>0){
|
|
|
|
|
val dialog = ListDialog(
|
|
|
|
|
context, zyDialogDatas
|
|
|
|
|
) { _: String?, position: Int ->
|
|
|
|
|
zyValue = zyList[position].value
|
|
|
|
|
binding.ilZy.content = zyList[position].description
|
|
|
|
|
}
|
|
|
|
|
dialog.show()
|
|
|
|
|
}else{
|
|
|
|
|
showToast("下拉数据获取失败,请检测网络环境,返回上一级页面后再重新进入当前页面。")
|
|
|
|
|
}
|
|
|
|
|
dialog.show()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
binding.ilQxlx.setOnClickListener(View.OnClickListener { v: View? ->
|
|
|
|
|
val dialog = ListDialog(
|
|
|
|
|
context, gzlxDialogDatas
|
|
|
|
|
) { _: String?, position: Int ->
|
|
|
|
|
lxvalue = gzlxList[position].value
|
|
|
|
|
binding.ilQxlx.content = gzlxList[position].description
|
|
|
|
|
if(gzlxDialogDatas.size>0){
|
|
|
|
|
val dialog = ListDialog(
|
|
|
|
|
context, gzlxDialogDatas
|
|
|
|
|
) { _: String?, position: Int ->
|
|
|
|
|
lxvalue = gzlxList[position].value
|
|
|
|
|
binding.ilQxlx.content = gzlxList[position].description
|
|
|
|
|
}
|
|
|
|
|
dialog.show()
|
|
|
|
|
}else{
|
|
|
|
|
showToast("下拉数据获取失败,请检测网络环境,返回上一级页面后再重新进入当前页面。")
|
|
|
|
|
}
|
|
|
|
|
dialog.show()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
binding.ilQxdj.setOnClickListener(View.OnClickListener { v: View? ->
|
|
|
|
|
val dialog = ListDialog(
|
|
|
|
|
context, gdjbDialogDatas
|
|
|
|
|
) { _: String?, position: Int ->
|
|
|
|
|
qxdjValue = gdjbList[position].value
|
|
|
|
|
binding.ilQxdj.content = gdjbList[position].description
|
|
|
|
|
if(gdjbDialogDatas.size>0){
|
|
|
|
|
val dialog = ListDialog(
|
|
|
|
|
context, gdjbDialogDatas
|
|
|
|
|
) { _: String?, position: Int ->
|
|
|
|
|
qxdjValue = gdjbList[position].value
|
|
|
|
|
binding.ilQxdj.content = gdjbList[position].description
|
|
|
|
|
}
|
|
|
|
|
dialog.show()
|
|
|
|
|
}else{
|
|
|
|
|
showToast("下拉数据获取失败,请检测网络环境,返回上一级页面后再重新进入当前页面。")
|
|
|
|
|
}
|
|
|
|
|
dialog.show()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
binding.ilWz.setOnClickListener(View.OnClickListener {
|
|
|
|
|
@ -158,24 +174,32 @@ class QxgdNewActivity : BaseActivityOaToolbarViewBinding<ActivityQxgdNewBinding>
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
binding.ilGzlb.setOnClickListener(View.OnClickListener { v: View? ->
|
|
|
|
|
val dialog = ListDialog(
|
|
|
|
|
context, gzlbDialogDatas
|
|
|
|
|
) { _: String?, position: Int ->
|
|
|
|
|
gzlbValue = gzlbList[position].value
|
|
|
|
|
binding.ilGzlb.content = gzlbList[position].description
|
|
|
|
|
checkConnectServerGzxx()
|
|
|
|
|
if(gzlbDialogDatas.size>0){
|
|
|
|
|
val dialog = ListDialog(
|
|
|
|
|
context, gzlbDialogDatas
|
|
|
|
|
) { _: String?, position: Int ->
|
|
|
|
|
gzlbValue = gzlbList[position].value
|
|
|
|
|
binding.ilGzlb.content = gzlbList[position].description
|
|
|
|
|
checkConnectServerGzxx()
|
|
|
|
|
}
|
|
|
|
|
dialog.show()
|
|
|
|
|
}else{
|
|
|
|
|
showToast("下拉数据获取失败,请先选择位置。")
|
|
|
|
|
}
|
|
|
|
|
dialog.show()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
binding.ilGzxx.setOnClickListener(View.OnClickListener { v: View? ->
|
|
|
|
|
val dialog = ListDialog(
|
|
|
|
|
context, gzxxDialogDatas
|
|
|
|
|
) { _: String?, position: Int ->
|
|
|
|
|
gzxxValue = gzxxList[position].value
|
|
|
|
|
binding.ilGzxx.content = gzxxList[position].description
|
|
|
|
|
if(gzxxDialogDatas.size>0){
|
|
|
|
|
val dialog = ListDialog(
|
|
|
|
|
context, gzxxDialogDatas
|
|
|
|
|
) { _: String?, position: Int ->
|
|
|
|
|
gzxxValue = gzxxList[position].value
|
|
|
|
|
binding.ilGzxx.content = gzxxList[position].description
|
|
|
|
|
}
|
|
|
|
|
dialog.show()
|
|
|
|
|
}else{
|
|
|
|
|
showToast("下拉数据获取失败,请先选择故障类别。")
|
|
|
|
|
}
|
|
|
|
|
dialog.show()
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|