|
|
|
|
@ -135,12 +135,20 @@ class QxgdNewActivity : BaseActivityOaToolbarViewBinding<ActivityQxgdNewBinding>
|
|
|
|
|
) { _: String?, position: Int ->
|
|
|
|
|
gzlbValue = gzlbList[position].value
|
|
|
|
|
binding.ilGzlb.content = gzlbList[position].description
|
|
|
|
|
checkConnectServerGzxx()
|
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
dialog.show()
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override fun initData() {
|
|
|
|
|
@ -211,6 +219,13 @@ class QxgdNewActivity : BaseActivityOaToolbarViewBinding<ActivityQxgdNewBinding>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private fun initGzxxData() {
|
|
|
|
|
gzxxDialogDatas.clear()
|
|
|
|
|
for (bean in gzxxList) {
|
|
|
|
|
gzxxDialogDatas.add(bean.description)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private fun getDropDown(type:String) {
|
|
|
|
|
var param = HashMap<String,String>()
|
|
|
|
|
if(type=="jz"){
|
|
|
|
|
@ -228,10 +243,11 @@ class QxgdNewActivity : BaseActivityOaToolbarViewBinding<ActivityQxgdNewBinding>
|
|
|
|
|
}else if(type=="gzlb"){
|
|
|
|
|
//故障类别
|
|
|
|
|
param["action"] = "QXGD_GZLB_GET";
|
|
|
|
|
param["wzbm"] = wzbmValue?:"";
|
|
|
|
|
param["sbbm"] = deviceValue?:"";
|
|
|
|
|
}else if(type=="gzxx"){
|
|
|
|
|
//故障现象
|
|
|
|
|
param["action"] = "QXGD_GZXX_GET";
|
|
|
|
|
param["gzdm"] = gzlbValue?:"";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val json = GsonUtils.GsonString(param)
|
|
|
|
|
@ -292,6 +308,9 @@ class QxgdNewActivity : BaseActivityOaToolbarViewBinding<ActivityQxgdNewBinding>
|
|
|
|
|
}else if(type=="gzxx"){
|
|
|
|
|
//故障现象
|
|
|
|
|
showLog("故障现象")
|
|
|
|
|
gzxxList.clear()
|
|
|
|
|
gzxxList.addAll(bean.data)
|
|
|
|
|
initGzxxData()
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
if(type=="gzlb"){
|
|
|
|
|
@ -442,6 +461,7 @@ class QxgdNewActivity : BaseActivityOaToolbarViewBinding<ActivityQxgdNewBinding>
|
|
|
|
|
}
|
|
|
|
|
}, true, true, "连接服务器...")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private fun checkConnectServerGzxx() {
|
|
|
|
|
var param = HashMap<String,String>()
|
|
|
|
|
val json = GsonUtils.GsonString(param)
|
|
|
|
|
|