巡检终合统计完成
parent
980756f307
commit
b597beada9
@ -0,0 +1,32 @@
|
||||
package com.rehome.dywoa.DBModel;
|
||||
|
||||
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by HuangWenfei on 2024/9/4.
|
||||
* 巡检终合统计类型下拉数据
|
||||
*/
|
||||
|
||||
public class LxXjTjDropDown extends DataSupport {
|
||||
|
||||
private String key;
|
||||
private String value;
|
||||
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package com.rehome.dywoa.DBModel;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class LxXjTjDropDownData {
|
||||
private int state;
|
||||
private String msg;
|
||||
|
||||
private List<LxXjTjDropDown> data;
|
||||
|
||||
public int getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(int state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public List<LxXjTjDropDown> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<LxXjTjDropDown> data) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
package com.rehome.dywoa.DBModel;
|
||||
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by HuangWenfei on 2024/9/4.
|
||||
* 巡检终合统计值次下拉数据
|
||||
*/
|
||||
|
||||
public class ZcXjTjDropDown extends DataSupport {
|
||||
|
||||
private String key;
|
||||
private String value;
|
||||
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package com.rehome.dywoa.DBModel;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ZcXjTjDropDownData {
|
||||
private int state;
|
||||
private String msg;
|
||||
|
||||
private List<ZcXjTjDropDown> data;
|
||||
|
||||
public int getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(int state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public List<ZcXjTjDropDown> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<ZcXjTjDropDown> data) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
package com.rehome.dywoa.DBModel;
|
||||
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by HuangWenfei on 2024/9/4.
|
||||
* 巡检终合统计专业下拉数据
|
||||
*/
|
||||
|
||||
public class ZyXjTjDropDown extends DataSupport {
|
||||
|
||||
private String key;
|
||||
private String value;
|
||||
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package com.rehome.dywoa.DBModel;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ZyXjTjDropDownData {
|
||||
private int state;
|
||||
private String msg;
|
||||
|
||||
private List<ZyXjTjDropDown> data;
|
||||
|
||||
public int getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(int state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public List<ZyXjTjDropDown> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<ZyXjTjDropDown> data) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
package com.rehome.dywoa.adapter
|
||||
|
||||
|
||||
import android.content.Context
|
||||
import android.view.LayoutInflater
|
||||
import android.view.ViewGroup
|
||||
import com.rehome.dywoa.base.BaseViewBindingAdapter
|
||||
import com.rehome.dywoa.bean.DjZhTjBean
|
||||
import com.rehome.dywoa.bean.HistoryDjBean
|
||||
import com.rehome.dywoa.bean.XjZhTjBean
|
||||
import com.rehome.dywoa.databinding.AdapterDjZhTjBinding
|
||||
import com.rehome.dywoa.databinding.AdapterHistoryDjBinding
|
||||
import com.rehome.dywoa.databinding.AdapterXjZhTjBinding
|
||||
|
||||
class XjZhTjAdapter(var context: Context,
|
||||
var data: MutableList<XjZhTjBean.Row>) : BaseViewBindingAdapter<AdapterXjZhTjBinding>(context) {
|
||||
override fun getCount(): Int {
|
||||
return data.count()
|
||||
}
|
||||
|
||||
override fun getItem(position: Int): Any {
|
||||
return data[position]
|
||||
}
|
||||
|
||||
override fun getItemId(position: Int): Long {
|
||||
return position.toLong()
|
||||
}
|
||||
|
||||
override fun getBinding(
|
||||
inflater: LayoutInflater,
|
||||
parent: ViewGroup?
|
||||
) = AdapterXjZhTjBinding.inflate(inflater, parent, false)
|
||||
override fun handleData(position: Int, binding: AdapterXjZhTjBinding) {
|
||||
val item: XjZhTjBean.Row = data[position]
|
||||
binding.tvJhmc.text = item.name
|
||||
|
||||
binding.tvSt.text = item.startTime
|
||||
binding.tvEt.text = item.endTime
|
||||
|
||||
binding.tvZds.text = item.zds
|
||||
binding.tvYjds.text = item.yjds
|
||||
binding.tvWjds.text = item.wjds
|
||||
|
||||
binding.tvMjds.text = item.mjds
|
||||
binding.tvRate.text = item.rate
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,91 @@
|
||||
package com.rehome.dywoa.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class XjZhTjBean extends BaseListBean{
|
||||
|
||||
private List<Row> Rows;
|
||||
|
||||
public List<Row> getRows() {
|
||||
return Rows;
|
||||
}
|
||||
|
||||
public void setRows(List<Row> rows) {
|
||||
Rows = rows;
|
||||
}
|
||||
|
||||
public static class Row {
|
||||
private String name;
|
||||
private String startTime;
|
||||
private String endTime;
|
||||
private String zds;
|
||||
private String yjds;
|
||||
private String wjds;
|
||||
private String mjds;
|
||||
private String rate;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getStartTime() {
|
||||
return startTime;
|
||||
}
|
||||
|
||||
public void setStartTime(String startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public String getEndTime() {
|
||||
return endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(String endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public String getZds() {
|
||||
return zds;
|
||||
}
|
||||
|
||||
public void setZds(String zds) {
|
||||
this.zds = zds;
|
||||
}
|
||||
|
||||
public String getYjds() {
|
||||
return yjds;
|
||||
}
|
||||
|
||||
public void setYjds(String yjds) {
|
||||
this.yjds = yjds;
|
||||
}
|
||||
|
||||
public String getWjds() {
|
||||
return wjds;
|
||||
}
|
||||
|
||||
public void setWjds(String wjds) {
|
||||
this.wjds = wjds;
|
||||
}
|
||||
|
||||
public String getMjds() {
|
||||
return mjds;
|
||||
}
|
||||
|
||||
public void setMjds(String mjds) {
|
||||
this.mjds = mjds;
|
||||
}
|
||||
|
||||
public String getRate() {
|
||||
return rate;
|
||||
}
|
||||
|
||||
public void setRate(String rate) {
|
||||
this.rate = rate;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,274 @@
|
||||
package com.rehome.dywoa.ui.activity.sbxj
|
||||
|
||||
import android.util.Log
|
||||
import android.view.View
|
||||
import com.rehome.dywoa.App
|
||||
import com.rehome.dywoa.Contans
|
||||
import com.rehome.dywoa.DBModel.LxXjTjDropDown
|
||||
import com.rehome.dywoa.DBModel.ZcXjTjDropDown
|
||||
import com.rehome.dywoa.DBModel.ZyXjTjDropDown
|
||||
import com.rehome.dywoa.adapter.SpinnerAdapter
|
||||
import com.rehome.dywoa.adapter.XjZhTjAdapter
|
||||
import com.rehome.dywoa.base.BaseActivityOaToolbarViewBinding
|
||||
import com.rehome.dywoa.bean.XjZhTjBean
|
||||
import com.rehome.dywoa.databinding.ActivityXjZhTjBinding
|
||||
import com.rehome.dywoa.utils.GsonUtils
|
||||
import com.rehome.dywoa.utils.HttpListener
|
||||
import com.rehome.dywoa.utils.NoProgresshttpUtils
|
||||
import com.rehome.dywoa.utils.NohttpUtils
|
||||
import com.rehome.dywoa.weiget.DatePickDialog
|
||||
import com.yolanda.nohttp.NoHttp
|
||||
import com.yolanda.nohttp.RequestMethod
|
||||
import com.yolanda.nohttp.rest.RequestQueue
|
||||
import com.yolanda.nohttp.rest.Response
|
||||
import org.litepal.crud.DataSupport
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Calendar
|
||||
|
||||
class XjZhTjActivity : BaseActivityOaToolbarViewBinding<ActivityXjZhTjBinding>() {
|
||||
|
||||
private var stime: String = ""
|
||||
private var etime: String = ""
|
||||
|
||||
private lateinit var adapter: XjZhTjAdapter
|
||||
private var datas: MutableList<XjZhTjBean.Row> = mutableListOf()
|
||||
|
||||
private lateinit var queueNoHttp: RequestQueue
|
||||
private lateinit var username: String
|
||||
|
||||
private lateinit var adapterZy: SpinnerAdapter<*>
|
||||
private var zys: List<ZyXjTjDropDown> = mutableListOf()
|
||||
private lateinit var adapterZc: SpinnerAdapter<*>
|
||||
private var zcs: List<ZcXjTjDropDown> = mutableListOf()
|
||||
private lateinit var adapterLx: SpinnerAdapter<*>
|
||||
private var lxs: List<LxXjTjDropDown> = mutableListOf()
|
||||
|
||||
//XjZhTjAdapter XjZhTjBean adapter_xj_zh_tj
|
||||
override fun getViewBinding() = ActivityXjZhTjBinding.inflate(layoutInflater)
|
||||
|
||||
override fun getToolbar() = binding.toolbarView.toolbar
|
||||
|
||||
override fun initView() {
|
||||
initToolbar("巡检综合统计", "") {
|
||||
|
||||
}
|
||||
|
||||
queueNoHttp = NoHttp.newRequestQueue(1)
|
||||
username = App.getInstance().userInfo.manid
|
||||
|
||||
adapter = XjZhTjAdapter(context, datas)
|
||||
binding.lv.adapter = adapter
|
||||
|
||||
binding.tvNodata.visibility= View.VISIBLE
|
||||
binding.lv.visibility= View.GONE
|
||||
|
||||
|
||||
|
||||
//格式化日期的对象(转化成习惯的时间格式)
|
||||
val sdFormat = SimpleDateFormat("yyyy-MM-dd")
|
||||
var calendar = Calendar.getInstance()
|
||||
val nowStr = sdFormat.format(calendar.time)
|
||||
showLog(nowStr)
|
||||
|
||||
|
||||
binding.tvSt.text = nowStr
|
||||
binding.tvEt.text = nowStr
|
||||
|
||||
binding.tvSt.setOnClickListener(View.OnClickListener { view: View? ->
|
||||
|
||||
val dialog = DatePickDialog(
|
||||
context, calendar
|
||||
) { outPutDate: String?,calendarBack: Calendar? ->
|
||||
stime = binding.tvSt.getText().toString().trim { it <= ' ' }
|
||||
binding.tvSt.text = outPutDate
|
||||
calendar = calendarBack;
|
||||
checkServerConnectStatus()
|
||||
}
|
||||
dialog.show()
|
||||
})
|
||||
|
||||
|
||||
|
||||
binding.tvEt.setOnClickListener(View.OnClickListener { view: View? ->
|
||||
|
||||
val dialog = DatePickDialog(
|
||||
context, calendar
|
||||
) { outPutDate: String?,calendarBack: Calendar? ->
|
||||
etime = binding.tvEt.getText().toString().trim { it <= ' ' }
|
||||
binding.tvEt.text = outPutDate
|
||||
calendar = calendarBack;
|
||||
checkServerConnectStatus()
|
||||
}
|
||||
dialog.show()
|
||||
})
|
||||
|
||||
binding.tvSearch.setOnClickListener(View.OnClickListener { view: View? ->
|
||||
//检查服务器连接状态
|
||||
checkServerConnectStatus()
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
override fun initData() {
|
||||
//专业
|
||||
zys = DataSupport.findAll(ZyXjTjDropDown::class.java)
|
||||
initSpinnerZy()
|
||||
//值次
|
||||
zcs = DataSupport.findAll(ZcXjTjDropDown::class.java)
|
||||
initSpinnerZc()
|
||||
//类型
|
||||
lxs = DataSupport.findAll(LxXjTjDropDown::class.java)
|
||||
initSpinnerLx()
|
||||
|
||||
//检查服务器连接状态
|
||||
checkServerConnectStatus()
|
||||
}
|
||||
|
||||
//给专业spinner填充数据
|
||||
private fun initSpinnerZy() {
|
||||
adapterZy = SpinnerAdapter<Any?>(zys, context)
|
||||
binding.etZy.setAdapter(adapterZy)
|
||||
var item = -1
|
||||
for (i in zys.indices) {
|
||||
if (zys[i].value == "不选") {
|
||||
item = i
|
||||
break
|
||||
}
|
||||
}
|
||||
if (item != -1) {
|
||||
binding.etZy.setSelection(item)
|
||||
}
|
||||
}
|
||||
|
||||
//给值次spinner填充数据
|
||||
private fun initSpinnerZc() {
|
||||
adapterZc = SpinnerAdapter<Any?>(zcs, context)
|
||||
binding.etZc.setAdapter(adapterZc)
|
||||
var item = -1
|
||||
for (i in zcs.indices) {
|
||||
if (zcs[i].value == "不选") {
|
||||
item = i
|
||||
break
|
||||
}
|
||||
}
|
||||
if (item != -1) {
|
||||
binding.etZc.setSelection(item)
|
||||
}
|
||||
}
|
||||
|
||||
//给类型spinner填充数据
|
||||
private fun initSpinnerLx() {
|
||||
adapterLx = SpinnerAdapter<Any?>(lxs, context)
|
||||
binding.etLx.setAdapter(adapterLx)
|
||||
var item = -1
|
||||
for (i in lxs.indices) {
|
||||
if (lxs[i].value == "不选") {
|
||||
item = i
|
||||
break
|
||||
}
|
||||
}
|
||||
if (item != -1) {
|
||||
binding.etLx.setSelection(item)
|
||||
}
|
||||
}
|
||||
|
||||
//检查服务器连接状态
|
||||
private fun checkServerConnectStatus() {
|
||||
var param = HashMap<String,String>()
|
||||
param["login"] = "dywoa";
|
||||
val json = GsonUtils.GsonString(param)
|
||||
val url = Contans.IP + Contans.check_server_connect
|
||||
Log.i("app",url)
|
||||
Log.i("app",json)
|
||||
val request = NoHttp.createStringRequest(
|
||||
url,
|
||||
RequestMethod.POST
|
||||
)
|
||||
request.setDefineRequestBodyForJson(json)
|
||||
NoProgresshttpUtils.getInstance().add(this, 0, request, object : HttpListener<String?> {
|
||||
override fun onSucceed(what: Int, response: Response<String?>?) {
|
||||
val result = response?.get()
|
||||
if (result != null) {
|
||||
showLog("-----onSucceed----")
|
||||
showLog(result)
|
||||
if(result == "1"){
|
||||
showLog("connect server success")
|
||||
//获取数据
|
||||
getListData()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onFailed(what: Int, response: Response<String?>?) {
|
||||
showLog("connect server onFailed")
|
||||
showToast("无法连接到服务器,请检查网络环境")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
fun getListData() {
|
||||
|
||||
var param = HashMap<String,String>()
|
||||
param["startDate"] = binding.tvSt.text.toString().trim();
|
||||
param["endDate"] = binding.tvEt.text.toString().trim();
|
||||
|
||||
val zy = zys[binding.etZy.selectedItemPosition].key
|
||||
val zc = zcs[binding.etZc.selectedItemPosition].key
|
||||
val lx = lxs[binding.etLx.selectedItemPosition].key
|
||||
|
||||
if(zy!="不选"){
|
||||
param["zy"] = zy
|
||||
}
|
||||
|
||||
if(zc!="不选"){
|
||||
param["zc"] = zc
|
||||
}
|
||||
|
||||
if(lx!="不选"){
|
||||
param["lx"] = lx
|
||||
}
|
||||
|
||||
showLog(zy)
|
||||
showLog(zc)
|
||||
showLog(lx)
|
||||
|
||||
val json = GsonUtils.GsonString(param)
|
||||
|
||||
val url: String = Contans.IP + Contans.XJ_GET_ZH_TJ
|
||||
val request = NoHttp.createStringRequest(url, RequestMethod.POST)
|
||||
request.setDefineRequestBodyForJson(json)
|
||||
NohttpUtils.getInstance().add(this, 0, request, object : HttpListener<String> {
|
||||
override fun onSucceed(what: Int, response: Response<String>?) {
|
||||
if (response != null) {
|
||||
val result = response.get()
|
||||
showLog(result)
|
||||
val bean = GsonUtils.GsonToBean(result, XjZhTjBean::class.java)
|
||||
if (bean != null && bean.total != 0) {
|
||||
if (bean.rows != null && bean.rows.size>0) {
|
||||
datas.clear()
|
||||
datas.addAll(bean.rows)
|
||||
adapter.notifyDataSetChanged()
|
||||
binding.tvNodata.visibility= View.GONE
|
||||
binding.lv.visibility= View.VISIBLE
|
||||
}else {
|
||||
datas.clear()
|
||||
adapter.notifyDataSetChanged()
|
||||
binding.tvNodata.visibility= View.VISIBLE
|
||||
binding.lv.visibility= View.GONE
|
||||
}
|
||||
}else{
|
||||
datas.clear()
|
||||
adapter.notifyDataSetChanged()
|
||||
binding.tvNodata.visibility= View.VISIBLE
|
||||
binding.lv.visibility= View.GONE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onFailed(what: Int, response: Response<String>?) {
|
||||
|
||||
}
|
||||
|
||||
}, true, true, "正在加载数据...")
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/b3" />
|
||||
<corners android:radius="@dimen/radiussize" />
|
||||
</shape>
|
||||
@ -0,0 +1,201 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:background="#cccccc"
|
||||
tools:context=".ui.activity.sbxj.XjZhTjActivity">
|
||||
|
||||
<include
|
||||
android:id="@+id/toolbarView"
|
||||
android:visibility="visible"
|
||||
layout="@layout/layout_base" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#dddddd"
|
||||
android:padding="5dp"
|
||||
android:minHeight="30px">
|
||||
<TextView
|
||||
android:id="@+id/tv_zxsj"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="5px"
|
||||
android:gravity="center"
|
||||
android:minHeight="50px"
|
||||
android:text="执行时间:"
|
||||
android:textSize="26px" />
|
||||
<TextView
|
||||
android:id="@+id/tv_st"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="5px"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:minHeight="50px"
|
||||
android:text="点击选择开始时间"
|
||||
android:textSize="24px" />
|
||||
<TextView
|
||||
android:id="@+id/tv_to"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="5px"
|
||||
android:layout_weight="0.2"
|
||||
android:gravity="center"
|
||||
android:minHeight="50px"
|
||||
android:text="至"
|
||||
android:textSize="24px" />
|
||||
<TextView
|
||||
android:id="@+id/tv_et"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="5px"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:minHeight="50px"
|
||||
android:text="点击选择结束时间"
|
||||
android:textSize="24px" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#dddddd"
|
||||
android:padding="2dp"
|
||||
android:minHeight="30px"
|
||||
android:orientation="horizontal">
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/px_60"
|
||||
android:layout_weight="1"
|
||||
android:layout_margin="@dimen/px_5"
|
||||
android:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_zc"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:textSize="28px"
|
||||
android:gravity="right|center_vertical"
|
||||
android:text="值次:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/et_zc"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center"
|
||||
android:padding="0px"
|
||||
android:background="@drawable/bg_edittext"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/px_60"
|
||||
android:layout_weight="1"
|
||||
android:layout_margin="@dimen/px_5"
|
||||
android:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_lx"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:textSize="28px"
|
||||
android:gravity="right|center_vertical"
|
||||
android:text="类型:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/et_lx"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center"
|
||||
android:padding="0px"
|
||||
android:background="@drawable/bg_edittext"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#dddddd"
|
||||
android:padding="2dp"
|
||||
android:minHeight="30px"
|
||||
android:orientation="horizontal">
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/px_60"
|
||||
android:layout_weight="1"
|
||||
android:layout_margin="@dimen/px_5"
|
||||
android:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_zy"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:textSize="28px"
|
||||
android:gravity="right|center_vertical"
|
||||
android:text="专业:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/et_zy"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center"
|
||||
android:padding="0px"
|
||||
android:background="@drawable/bg_edittext"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/px_60"
|
||||
android:layout_weight="1"
|
||||
android:layout_margin="@dimen/px_5"
|
||||
android:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_search"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/px_60"
|
||||
android:layout_marginStart="50dp"
|
||||
android:layout_marginEnd="50dp"
|
||||
android:layout_weight="1"
|
||||
android:textSize="16sp"
|
||||
android:gravity="center"
|
||||
android:textColor="#ffffff"
|
||||
android:background="@drawable/btn_login_shape"
|
||||
android:text="查询" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1">
|
||||
|
||||
<ListView
|
||||
android:id="@+id/lv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="10dp"
|
||||
android:divider="#00000000"
|
||||
android:dividerHeight="10dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_nodata"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:text="暂无数据" />
|
||||
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
@ -0,0 +1,234 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/ll"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#ffffff"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:orientation="vertical"
|
||||
tools:ignore="UselessParent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
tools:ignore="UselessParent">
|
||||
|
||||
<LinearLayout
|
||||
style="@style/dagerListMarginTopStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
style="@style/dagerDetailLeftStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="名称:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_jhmc"
|
||||
style="@style/dagerDetailRightStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/dagerListMarginTopStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
style="@style/dagerListMarginTopStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/dagerDetailLeftStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="开始时间:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_st"
|
||||
style="@style/xjzhtjDetailRightStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
style="@style/dagerListMarginTopStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/dagerDetailLeftStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="结束时间:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_et"
|
||||
style="@style/xjzhtjDetailRightStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/dagerListMarginTopStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
style="@style/dagerListMarginTopStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/dagerDetailLeftStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="总巡检点数:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_zds"
|
||||
style="@style/dagerDetailRightStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
style="@style/dagerListMarginTopStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/dagerDetailLeftStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="已检点数:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_yjds"
|
||||
style="@style/dagerDetailRightStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/dagerListMarginTopStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/dagerDetailLeftStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="未检点数:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_wjds"
|
||||
style="@style/dagerDetailRightStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
style="@style/dagerListMarginTopStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
|
||||
|
||||
<LinearLayout
|
||||
style="@style/dagerListMarginTopStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/dagerDetailLeftStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="免检点数:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_mjds"
|
||||
style="@style/dagerDetailRightStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
style="@style/dagerListMarginTopStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/dagerDetailLeftStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="巡检完成率:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_rate"
|
||||
style="@style/dagerDetailRightStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
style="@style/dagerListMarginTopStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/dagerDetailLeftStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="专业名称:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_zy"
|
||||
style="@style/dagerDetailRightStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
Loading…
Reference in New Issue