diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt deleted file mode 100644 index 251b59e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * PublicKey 登录校验Key - */ -class PublicKeyModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var isAppKaptcha = false - var isKaptcha = false - var publicKey: String? = null - var sid: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt deleted file mode 100644 index 251b59e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * PublicKey 登录校验Key - */ -class PublicKeyModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var isAppKaptcha = false - var isKaptcha = false - var publicKey: String? = null - var sid: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java new file mode 100644 index 0000000..404c223 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java @@ -0,0 +1,391 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class SearchResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private int alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private int editable; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public int getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(int alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt deleted file mode 100644 index 251b59e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * PublicKey 登录校验Key - */ -class PublicKeyModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var isAppKaptcha = false - var isKaptcha = false - var publicKey: String? = null - var sid: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java new file mode 100644 index 0000000..404c223 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java @@ -0,0 +1,391 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class SearchResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private int alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private int editable; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public int getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(int alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt deleted file mode 100644 index b9b8ac9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class SearchResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt deleted file mode 100644 index 251b59e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * PublicKey 登录校验Key - */ -class PublicKeyModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var isAppKaptcha = false - var isKaptcha = false - var publicKey: String? = null - var sid: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java new file mode 100644 index 0000000..404c223 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java @@ -0,0 +1,391 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class SearchResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private int alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private int editable; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public int getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(int alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt deleted file mode 100644 index b9b8ac9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class SearchResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt deleted file mode 100644 index 3f2b287..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.casic.qd.smartwell.model - -class SubordinateModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var deptId: String? = null - var id: String? = null - var name: String? = null - var phone: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt deleted file mode 100644 index 251b59e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * PublicKey 登录校验Key - */ -class PublicKeyModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var isAppKaptcha = false - var isKaptcha = false - var publicKey: String? = null - var sid: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java new file mode 100644 index 0000000..404c223 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java @@ -0,0 +1,391 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class SearchResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private int alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private int editable; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public int getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(int alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt deleted file mode 100644 index b9b8ac9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class SearchResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt deleted file mode 100644 index 3f2b287..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.casic.qd.smartwell.model - -class SubordinateModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var deptId: String? = null - var id: String? = null - var name: String? = null - var phone: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java new file mode 100644 index 0000000..e4137ae --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class TotalDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String total; + private String dayCount; + private String uptime; + + public String getTotal() { + return total; + } + + public void setTotal(String total) { + this.total = total; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt deleted file mode 100644 index 251b59e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * PublicKey 登录校验Key - */ -class PublicKeyModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var isAppKaptcha = false - var isKaptcha = false - var publicKey: String? = null - var sid: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java new file mode 100644 index 0000000..404c223 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java @@ -0,0 +1,391 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class SearchResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private int alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private int editable; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public int getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(int alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt deleted file mode 100644 index b9b8ac9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class SearchResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt deleted file mode 100644 index 3f2b287..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.casic.qd.smartwell.model - -class SubordinateModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var deptId: String? = null - var id: String? = null - var name: String? = null - var phone: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java new file mode 100644 index 0000000..e4137ae --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class TotalDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String total; + private String dayCount; + private String uptime; + + public String getTotal() { + return total; + } + + public void setTotal(String total) { + this.total = total; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt deleted file mode 100644 index 30bf829..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class TotalDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var total: String? = null - var deviceState: String? = null - var uptime: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt deleted file mode 100644 index 251b59e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * PublicKey 登录校验Key - */ -class PublicKeyModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var isAppKaptcha = false - var isKaptcha = false - var publicKey: String? = null - var sid: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java new file mode 100644 index 0000000..404c223 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java @@ -0,0 +1,391 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class SearchResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private int alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private int editable; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public int getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(int alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt deleted file mode 100644 index b9b8ac9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class SearchResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt deleted file mode 100644 index 3f2b287..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.casic.qd.smartwell.model - -class SubordinateModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var deptId: String? = null - var id: String? = null - var name: String? = null - var phone: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java new file mode 100644 index 0000000..e4137ae --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class TotalDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String total; + private String dayCount; + private String uptime; + + public String getTotal() { + return total; + } + + public void setTotal(String total) { + this.total = total; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt deleted file mode 100644 index 30bf829..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class TotalDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var total: String? = null - var deviceState: String? = null - var uptime: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java new file mode 100644 index 0000000..822bc40 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java @@ -0,0 +1,226 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class UserDetailModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String account; + private String attr1; + private String avatar; + private String bizData; + private List dataScope; + private String deptId; + private String deptName; + private List devices; + private String id; + private String ipAddr; + private String name; + private String phone; + private List roleList; + private List roleNames; + private List roleTips; + private String scopeType; + private String sysData; + private String targetId; + private String targetName; + private String tenantId; + + public String getAccount() { + return account; + } + + public void setAccount(String account) { + this.account = account; + } + + public String getAttr1() { + return attr1; + } + + public void setAttr1(String attr1) { + this.attr1 = attr1; + } + + public String getAvatar() { + return avatar; + } + + public void setAvatar(String avatar) { + this.avatar = avatar; + } + + public String getBizData() { + return bizData; + } + + public void setBizData(String bizData) { + this.bizData = bizData; + } + + public List getDataScope() { + return dataScope; + } + + public void setDataScope(List dataScope) { + this.dataScope = dataScope; + } + + public String getDeptId() { + return deptId; + } + + public void setDeptId(String deptId) { + this.deptId = deptId; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public List getDevices() { + return devices; + } + + public void setDevices(List devices) { + this.devices = devices; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIpAddr() { + return ipAddr; + } + + public void setIpAddr(String ipAddr) { + this.ipAddr = ipAddr; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public List getRoleList() { + return roleList; + } + + public void setRoleList(List roleList) { + this.roleList = roleList; + } + + public List getRoleNames() { + return roleNames; + } + + public void setRoleNames(List roleNames) { + this.roleNames = roleNames; + } + + public List getRoleTips() { + return roleTips; + } + + public void setRoleTips(List roleTips) { + this.roleTips = roleTips; + } + + public String getScopeType() { + return scopeType; + } + + public void setScopeType(String scopeType) { + this.scopeType = scopeType; + } + + public String getSysData() { + return sysData; + } + + public void setSysData(String sysData) { + this.sysData = sysData; + } + + public String getTargetId() { + return targetId; + } + + public void setTargetId(String targetId) { + this.targetId = targetId; + } + + public String getTargetName() { + return targetName; + } + + public void setTargetName(String targetName) { + this.targetName = targetName; + } + + public String getTenantId() { + return tenantId; + } + + public void setTenantId(String tenantId) { + this.tenantId = tenantId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt deleted file mode 100644 index 251b59e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * PublicKey 登录校验Key - */ -class PublicKeyModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var isAppKaptcha = false - var isKaptcha = false - var publicKey: String? = null - var sid: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java new file mode 100644 index 0000000..404c223 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java @@ -0,0 +1,391 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class SearchResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private int alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private int editable; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public int getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(int alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt deleted file mode 100644 index b9b8ac9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class SearchResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt deleted file mode 100644 index 3f2b287..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.casic.qd.smartwell.model - -class SubordinateModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var deptId: String? = null - var id: String? = null - var name: String? = null - var phone: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java new file mode 100644 index 0000000..e4137ae --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class TotalDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String total; + private String dayCount; + private String uptime; + + public String getTotal() { + return total; + } + + public void setTotal(String total) { + this.total = total; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt deleted file mode 100644 index 30bf829..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class TotalDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var total: String? = null - var deviceState: String? = null - var uptime: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java new file mode 100644 index 0000000..822bc40 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java @@ -0,0 +1,226 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class UserDetailModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String account; + private String attr1; + private String avatar; + private String bizData; + private List dataScope; + private String deptId; + private String deptName; + private List devices; + private String id; + private String ipAddr; + private String name; + private String phone; + private List roleList; + private List roleNames; + private List roleTips; + private String scopeType; + private String sysData; + private String targetId; + private String targetName; + private String tenantId; + + public String getAccount() { + return account; + } + + public void setAccount(String account) { + this.account = account; + } + + public String getAttr1() { + return attr1; + } + + public void setAttr1(String attr1) { + this.attr1 = attr1; + } + + public String getAvatar() { + return avatar; + } + + public void setAvatar(String avatar) { + this.avatar = avatar; + } + + public String getBizData() { + return bizData; + } + + public void setBizData(String bizData) { + this.bizData = bizData; + } + + public List getDataScope() { + return dataScope; + } + + public void setDataScope(List dataScope) { + this.dataScope = dataScope; + } + + public String getDeptId() { + return deptId; + } + + public void setDeptId(String deptId) { + this.deptId = deptId; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public List getDevices() { + return devices; + } + + public void setDevices(List devices) { + this.devices = devices; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIpAddr() { + return ipAddr; + } + + public void setIpAddr(String ipAddr) { + this.ipAddr = ipAddr; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public List getRoleList() { + return roleList; + } + + public void setRoleList(List roleList) { + this.roleList = roleList; + } + + public List getRoleNames() { + return roleNames; + } + + public void setRoleNames(List roleNames) { + this.roleNames = roleNames; + } + + public List getRoleTips() { + return roleTips; + } + + public void setRoleTips(List roleTips) { + this.roleTips = roleTips; + } + + public String getScopeType() { + return scopeType; + } + + public void setScopeType(String scopeType) { + this.scopeType = scopeType; + } + + public String getSysData() { + return sysData; + } + + public void setSysData(String sysData) { + this.sysData = sysData; + } + + public String getTargetId() { + return targetId; + } + + public void setTargetId(String targetId) { + this.targetId = targetId; + } + + public String getTargetName() { + return targetName; + } + + public void setTargetName(String targetName) { + this.targetName = targetName; + } + + public String getTenantId() { + return tenantId; + } + + public void setTenantId(String tenantId) { + this.tenantId = tenantId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt deleted file mode 100644 index 56c2e88..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt +++ /dev/null @@ -1,31 +0,0 @@ -package com.casic.qd.smartwell.model - -class UserDetailModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var avatar: String? = null - var bizData: String? = null - var dataScope: List? = null - var deptId: String? = null - var deptName: String? = null - var devices: List? = null - var id: String? = null - var ipAddr: String? = null - var name: String? = null - var phone: String? = null - var roleList: List? = null - var roleNames: List? = null - var roleTips: List? = null - var scopeType: String? = null - var sysData: String? = null - var targetId: String? = null - var targetName: String? = null - var tenantId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt deleted file mode 100644 index 251b59e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * PublicKey 登录校验Key - */ -class PublicKeyModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var isAppKaptcha = false - var isKaptcha = false - var publicKey: String? = null - var sid: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java new file mode 100644 index 0000000..404c223 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java @@ -0,0 +1,391 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class SearchResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private int alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private int editable; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public int getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(int alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt deleted file mode 100644 index b9b8ac9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class SearchResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt deleted file mode 100644 index 3f2b287..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.casic.qd.smartwell.model - -class SubordinateModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var deptId: String? = null - var id: String? = null - var name: String? = null - var phone: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java new file mode 100644 index 0000000..e4137ae --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class TotalDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String total; + private String dayCount; + private String uptime; + + public String getTotal() { + return total; + } + + public void setTotal(String total) { + this.total = total; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt deleted file mode 100644 index 30bf829..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class TotalDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var total: String? = null - var deviceState: String? = null - var uptime: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java new file mode 100644 index 0000000..822bc40 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java @@ -0,0 +1,226 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class UserDetailModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String account; + private String attr1; + private String avatar; + private String bizData; + private List dataScope; + private String deptId; + private String deptName; + private List devices; + private String id; + private String ipAddr; + private String name; + private String phone; + private List roleList; + private List roleNames; + private List roleTips; + private String scopeType; + private String sysData; + private String targetId; + private String targetName; + private String tenantId; + + public String getAccount() { + return account; + } + + public void setAccount(String account) { + this.account = account; + } + + public String getAttr1() { + return attr1; + } + + public void setAttr1(String attr1) { + this.attr1 = attr1; + } + + public String getAvatar() { + return avatar; + } + + public void setAvatar(String avatar) { + this.avatar = avatar; + } + + public String getBizData() { + return bizData; + } + + public void setBizData(String bizData) { + this.bizData = bizData; + } + + public List getDataScope() { + return dataScope; + } + + public void setDataScope(List dataScope) { + this.dataScope = dataScope; + } + + public String getDeptId() { + return deptId; + } + + public void setDeptId(String deptId) { + this.deptId = deptId; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public List getDevices() { + return devices; + } + + public void setDevices(List devices) { + this.devices = devices; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIpAddr() { + return ipAddr; + } + + public void setIpAddr(String ipAddr) { + this.ipAddr = ipAddr; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public List getRoleList() { + return roleList; + } + + public void setRoleList(List roleList) { + this.roleList = roleList; + } + + public List getRoleNames() { + return roleNames; + } + + public void setRoleNames(List roleNames) { + this.roleNames = roleNames; + } + + public List getRoleTips() { + return roleTips; + } + + public void setRoleTips(List roleTips) { + this.roleTips = roleTips; + } + + public String getScopeType() { + return scopeType; + } + + public void setScopeType(String scopeType) { + this.scopeType = scopeType; + } + + public String getSysData() { + return sysData; + } + + public void setSysData(String sysData) { + this.sysData = sysData; + } + + public String getTargetId() { + return targetId; + } + + public void setTargetId(String targetId) { + this.targetId = targetId; + } + + public String getTargetName() { + return targetName; + } + + public void setTargetName(String targetName) { + this.targetName = targetName; + } + + public String getTenantId() { + return tenantId; + } + + public void setTenantId(String tenantId) { + this.tenantId = tenantId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt deleted file mode 100644 index 56c2e88..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt +++ /dev/null @@ -1,31 +0,0 @@ -package com.casic.qd.smartwell.model - -class UserDetailModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var avatar: String? = null - var bizData: String? = null - var dataScope: List? = null - var deptId: String? = null - var deptName: String? = null - var devices: List? = null - var id: String? = null - var ipAddr: String? = null - var name: String? = null - var phone: String? = null - var roleList: List? = null - var roleNames: List? = null - var roleTips: List? = null - var scopeType: String? = null - var sysData: String? = null - var targetId: String? = null - var targetName: String? = null - var tenantId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java new file mode 100644 index 0000000..6869ebe --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class WaterSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String count; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getCount() { + return count; + } + + public void setCount(String count) { + this.count = count; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt deleted file mode 100644 index 251b59e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * PublicKey 登录校验Key - */ -class PublicKeyModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var isAppKaptcha = false - var isKaptcha = false - var publicKey: String? = null - var sid: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java new file mode 100644 index 0000000..404c223 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java @@ -0,0 +1,391 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class SearchResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private int alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private int editable; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public int getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(int alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt deleted file mode 100644 index b9b8ac9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class SearchResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt deleted file mode 100644 index 3f2b287..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.casic.qd.smartwell.model - -class SubordinateModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var deptId: String? = null - var id: String? = null - var name: String? = null - var phone: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java new file mode 100644 index 0000000..e4137ae --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class TotalDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String total; + private String dayCount; + private String uptime; + + public String getTotal() { + return total; + } + + public void setTotal(String total) { + this.total = total; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt deleted file mode 100644 index 30bf829..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class TotalDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var total: String? = null - var deviceState: String? = null - var uptime: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java new file mode 100644 index 0000000..822bc40 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java @@ -0,0 +1,226 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class UserDetailModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String account; + private String attr1; + private String avatar; + private String bizData; + private List dataScope; + private String deptId; + private String deptName; + private List devices; + private String id; + private String ipAddr; + private String name; + private String phone; + private List roleList; + private List roleNames; + private List roleTips; + private String scopeType; + private String sysData; + private String targetId; + private String targetName; + private String tenantId; + + public String getAccount() { + return account; + } + + public void setAccount(String account) { + this.account = account; + } + + public String getAttr1() { + return attr1; + } + + public void setAttr1(String attr1) { + this.attr1 = attr1; + } + + public String getAvatar() { + return avatar; + } + + public void setAvatar(String avatar) { + this.avatar = avatar; + } + + public String getBizData() { + return bizData; + } + + public void setBizData(String bizData) { + this.bizData = bizData; + } + + public List getDataScope() { + return dataScope; + } + + public void setDataScope(List dataScope) { + this.dataScope = dataScope; + } + + public String getDeptId() { + return deptId; + } + + public void setDeptId(String deptId) { + this.deptId = deptId; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public List getDevices() { + return devices; + } + + public void setDevices(List devices) { + this.devices = devices; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIpAddr() { + return ipAddr; + } + + public void setIpAddr(String ipAddr) { + this.ipAddr = ipAddr; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public List getRoleList() { + return roleList; + } + + public void setRoleList(List roleList) { + this.roleList = roleList; + } + + public List getRoleNames() { + return roleNames; + } + + public void setRoleNames(List roleNames) { + this.roleNames = roleNames; + } + + public List getRoleTips() { + return roleTips; + } + + public void setRoleTips(List roleTips) { + this.roleTips = roleTips; + } + + public String getScopeType() { + return scopeType; + } + + public void setScopeType(String scopeType) { + this.scopeType = scopeType; + } + + public String getSysData() { + return sysData; + } + + public void setSysData(String sysData) { + this.sysData = sysData; + } + + public String getTargetId() { + return targetId; + } + + public void setTargetId(String targetId) { + this.targetId = targetId; + } + + public String getTargetName() { + return targetName; + } + + public void setTargetName(String targetName) { + this.targetName = targetName; + } + + public String getTenantId() { + return tenantId; + } + + public void setTenantId(String tenantId) { + this.tenantId = tenantId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt deleted file mode 100644 index 56c2e88..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt +++ /dev/null @@ -1,31 +0,0 @@ -package com.casic.qd.smartwell.model - -class UserDetailModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var avatar: String? = null - var bizData: String? = null - var dataScope: List? = null - var deptId: String? = null - var deptName: String? = null - var devices: List? = null - var id: String? = null - var ipAddr: String? = null - var name: String? = null - var phone: String? = null - var roleList: List? = null - var roleNames: List? = null - var roleTips: List? = null - var scopeType: String? = null - var sysData: String? = null - var targetId: String? = null - var targetName: String? = null - var tenantId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java new file mode 100644 index 0000000..6869ebe --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class WaterSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String count; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getCount() { + return count; + } + + public void setCount(String count) { + this.count = count; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt deleted file mode 100644 index 97fef28..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class WaterSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var count: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt deleted file mode 100644 index 251b59e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * PublicKey 登录校验Key - */ -class PublicKeyModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var isAppKaptcha = false - var isKaptcha = false - var publicKey: String? = null - var sid: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java new file mode 100644 index 0000000..404c223 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java @@ -0,0 +1,391 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class SearchResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private int alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private int editable; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public int getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(int alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt deleted file mode 100644 index b9b8ac9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class SearchResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt deleted file mode 100644 index 3f2b287..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.casic.qd.smartwell.model - -class SubordinateModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var deptId: String? = null - var id: String? = null - var name: String? = null - var phone: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java new file mode 100644 index 0000000..e4137ae --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class TotalDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String total; + private String dayCount; + private String uptime; + + public String getTotal() { + return total; + } + + public void setTotal(String total) { + this.total = total; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt deleted file mode 100644 index 30bf829..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class TotalDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var total: String? = null - var deviceState: String? = null - var uptime: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java new file mode 100644 index 0000000..822bc40 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java @@ -0,0 +1,226 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class UserDetailModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String account; + private String attr1; + private String avatar; + private String bizData; + private List dataScope; + private String deptId; + private String deptName; + private List devices; + private String id; + private String ipAddr; + private String name; + private String phone; + private List roleList; + private List roleNames; + private List roleTips; + private String scopeType; + private String sysData; + private String targetId; + private String targetName; + private String tenantId; + + public String getAccount() { + return account; + } + + public void setAccount(String account) { + this.account = account; + } + + public String getAttr1() { + return attr1; + } + + public void setAttr1(String attr1) { + this.attr1 = attr1; + } + + public String getAvatar() { + return avatar; + } + + public void setAvatar(String avatar) { + this.avatar = avatar; + } + + public String getBizData() { + return bizData; + } + + public void setBizData(String bizData) { + this.bizData = bizData; + } + + public List getDataScope() { + return dataScope; + } + + public void setDataScope(List dataScope) { + this.dataScope = dataScope; + } + + public String getDeptId() { + return deptId; + } + + public void setDeptId(String deptId) { + this.deptId = deptId; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public List getDevices() { + return devices; + } + + public void setDevices(List devices) { + this.devices = devices; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIpAddr() { + return ipAddr; + } + + public void setIpAddr(String ipAddr) { + this.ipAddr = ipAddr; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public List getRoleList() { + return roleList; + } + + public void setRoleList(List roleList) { + this.roleList = roleList; + } + + public List getRoleNames() { + return roleNames; + } + + public void setRoleNames(List roleNames) { + this.roleNames = roleNames; + } + + public List getRoleTips() { + return roleTips; + } + + public void setRoleTips(List roleTips) { + this.roleTips = roleTips; + } + + public String getScopeType() { + return scopeType; + } + + public void setScopeType(String scopeType) { + this.scopeType = scopeType; + } + + public String getSysData() { + return sysData; + } + + public void setSysData(String sysData) { + this.sysData = sysData; + } + + public String getTargetId() { + return targetId; + } + + public void setTargetId(String targetId) { + this.targetId = targetId; + } + + public String getTargetName() { + return targetName; + } + + public void setTargetName(String targetName) { + this.targetName = targetName; + } + + public String getTenantId() { + return tenantId; + } + + public void setTenantId(String tenantId) { + this.tenantId = tenantId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt deleted file mode 100644 index 56c2e88..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt +++ /dev/null @@ -1,31 +0,0 @@ -package com.casic.qd.smartwell.model - -class UserDetailModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var avatar: String? = null - var bizData: String? = null - var dataScope: List? = null - var deptId: String? = null - var deptName: String? = null - var devices: List? = null - var id: String? = null - var ipAddr: String? = null - var name: String? = null - var phone: String? = null - var roleList: List? = null - var roleNames: List? = null - var roleTips: List? = null - var scopeType: String? = null - var sysData: String? = null - var targetId: String? = null - var targetName: String? = null - var tenantId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java new file mode 100644 index 0000000..6869ebe --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class WaterSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String count; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getCount() { + return count; + } + + public void setCount(String count) { + this.count = count; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt deleted file mode 100644 index 97fef28..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class WaterSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var count: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java new file mode 100644 index 0000000..a206774 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class WaterSevenDayModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String date; + private List data; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class AreaDataBean { + private String areaName; + private String count; + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getCount() { + return count; + } + + public void setCount(String count) { + this.count = count; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt deleted file mode 100644 index 251b59e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * PublicKey 登录校验Key - */ -class PublicKeyModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var isAppKaptcha = false - var isKaptcha = false - var publicKey: String? = null - var sid: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java new file mode 100644 index 0000000..404c223 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java @@ -0,0 +1,391 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class SearchResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private int alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private int editable; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public int getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(int alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt deleted file mode 100644 index b9b8ac9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class SearchResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt deleted file mode 100644 index 3f2b287..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.casic.qd.smartwell.model - -class SubordinateModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var deptId: String? = null - var id: String? = null - var name: String? = null - var phone: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java new file mode 100644 index 0000000..e4137ae --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class TotalDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String total; + private String dayCount; + private String uptime; + + public String getTotal() { + return total; + } + + public void setTotal(String total) { + this.total = total; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt deleted file mode 100644 index 30bf829..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class TotalDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var total: String? = null - var deviceState: String? = null - var uptime: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java new file mode 100644 index 0000000..822bc40 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java @@ -0,0 +1,226 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class UserDetailModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String account; + private String attr1; + private String avatar; + private String bizData; + private List dataScope; + private String deptId; + private String deptName; + private List devices; + private String id; + private String ipAddr; + private String name; + private String phone; + private List roleList; + private List roleNames; + private List roleTips; + private String scopeType; + private String sysData; + private String targetId; + private String targetName; + private String tenantId; + + public String getAccount() { + return account; + } + + public void setAccount(String account) { + this.account = account; + } + + public String getAttr1() { + return attr1; + } + + public void setAttr1(String attr1) { + this.attr1 = attr1; + } + + public String getAvatar() { + return avatar; + } + + public void setAvatar(String avatar) { + this.avatar = avatar; + } + + public String getBizData() { + return bizData; + } + + public void setBizData(String bizData) { + this.bizData = bizData; + } + + public List getDataScope() { + return dataScope; + } + + public void setDataScope(List dataScope) { + this.dataScope = dataScope; + } + + public String getDeptId() { + return deptId; + } + + public void setDeptId(String deptId) { + this.deptId = deptId; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public List getDevices() { + return devices; + } + + public void setDevices(List devices) { + this.devices = devices; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIpAddr() { + return ipAddr; + } + + public void setIpAddr(String ipAddr) { + this.ipAddr = ipAddr; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public List getRoleList() { + return roleList; + } + + public void setRoleList(List roleList) { + this.roleList = roleList; + } + + public List getRoleNames() { + return roleNames; + } + + public void setRoleNames(List roleNames) { + this.roleNames = roleNames; + } + + public List getRoleTips() { + return roleTips; + } + + public void setRoleTips(List roleTips) { + this.roleTips = roleTips; + } + + public String getScopeType() { + return scopeType; + } + + public void setScopeType(String scopeType) { + this.scopeType = scopeType; + } + + public String getSysData() { + return sysData; + } + + public void setSysData(String sysData) { + this.sysData = sysData; + } + + public String getTargetId() { + return targetId; + } + + public void setTargetId(String targetId) { + this.targetId = targetId; + } + + public String getTargetName() { + return targetName; + } + + public void setTargetName(String targetName) { + this.targetName = targetName; + } + + public String getTenantId() { + return tenantId; + } + + public void setTenantId(String tenantId) { + this.tenantId = tenantId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt deleted file mode 100644 index 56c2e88..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt +++ /dev/null @@ -1,31 +0,0 @@ -package com.casic.qd.smartwell.model - -class UserDetailModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var avatar: String? = null - var bizData: String? = null - var dataScope: List? = null - var deptId: String? = null - var deptName: String? = null - var devices: List? = null - var id: String? = null - var ipAddr: String? = null - var name: String? = null - var phone: String? = null - var roleList: List? = null - var roleNames: List? = null - var roleTips: List? = null - var scopeType: String? = null - var sysData: String? = null - var targetId: String? = null - var targetName: String? = null - var tenantId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java new file mode 100644 index 0000000..6869ebe --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class WaterSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String count; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getCount() { + return count; + } + + public void setCount(String count) { + this.count = count; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt deleted file mode 100644 index 97fef28..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class WaterSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var count: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java new file mode 100644 index 0000000..a206774 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class WaterSevenDayModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String date; + private List data; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class AreaDataBean { + private String areaName; + private String count; + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getCount() { + return count; + } + + public void setCount(String count) { + this.count = count; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt deleted file mode 100644 index 6cda9f2..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class WaterSevenDayModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var date: String? = null - var data: List? = null - - class AreaDataBean { - var areaName: String? = null - var count: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt deleted file mode 100644 index 251b59e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * PublicKey 登录校验Key - */ -class PublicKeyModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var isAppKaptcha = false - var isKaptcha = false - var publicKey: String? = null - var sid: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java new file mode 100644 index 0000000..404c223 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java @@ -0,0 +1,391 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class SearchResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private int alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private int editable; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public int getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(int alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt deleted file mode 100644 index b9b8ac9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class SearchResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt deleted file mode 100644 index 3f2b287..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.casic.qd.smartwell.model - -class SubordinateModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var deptId: String? = null - var id: String? = null - var name: String? = null - var phone: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java new file mode 100644 index 0000000..e4137ae --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class TotalDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String total; + private String dayCount; + private String uptime; + + public String getTotal() { + return total; + } + + public void setTotal(String total) { + this.total = total; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt deleted file mode 100644 index 30bf829..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class TotalDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var total: String? = null - var deviceState: String? = null - var uptime: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java new file mode 100644 index 0000000..822bc40 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java @@ -0,0 +1,226 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class UserDetailModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String account; + private String attr1; + private String avatar; + private String bizData; + private List dataScope; + private String deptId; + private String deptName; + private List devices; + private String id; + private String ipAddr; + private String name; + private String phone; + private List roleList; + private List roleNames; + private List roleTips; + private String scopeType; + private String sysData; + private String targetId; + private String targetName; + private String tenantId; + + public String getAccount() { + return account; + } + + public void setAccount(String account) { + this.account = account; + } + + public String getAttr1() { + return attr1; + } + + public void setAttr1(String attr1) { + this.attr1 = attr1; + } + + public String getAvatar() { + return avatar; + } + + public void setAvatar(String avatar) { + this.avatar = avatar; + } + + public String getBizData() { + return bizData; + } + + public void setBizData(String bizData) { + this.bizData = bizData; + } + + public List getDataScope() { + return dataScope; + } + + public void setDataScope(List dataScope) { + this.dataScope = dataScope; + } + + public String getDeptId() { + return deptId; + } + + public void setDeptId(String deptId) { + this.deptId = deptId; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public List getDevices() { + return devices; + } + + public void setDevices(List devices) { + this.devices = devices; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIpAddr() { + return ipAddr; + } + + public void setIpAddr(String ipAddr) { + this.ipAddr = ipAddr; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public List getRoleList() { + return roleList; + } + + public void setRoleList(List roleList) { + this.roleList = roleList; + } + + public List getRoleNames() { + return roleNames; + } + + public void setRoleNames(List roleNames) { + this.roleNames = roleNames; + } + + public List getRoleTips() { + return roleTips; + } + + public void setRoleTips(List roleTips) { + this.roleTips = roleTips; + } + + public String getScopeType() { + return scopeType; + } + + public void setScopeType(String scopeType) { + this.scopeType = scopeType; + } + + public String getSysData() { + return sysData; + } + + public void setSysData(String sysData) { + this.sysData = sysData; + } + + public String getTargetId() { + return targetId; + } + + public void setTargetId(String targetId) { + this.targetId = targetId; + } + + public String getTargetName() { + return targetName; + } + + public void setTargetName(String targetName) { + this.targetName = targetName; + } + + public String getTenantId() { + return tenantId; + } + + public void setTenantId(String tenantId) { + this.tenantId = tenantId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt deleted file mode 100644 index 56c2e88..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt +++ /dev/null @@ -1,31 +0,0 @@ -package com.casic.qd.smartwell.model - -class UserDetailModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var avatar: String? = null - var bizData: String? = null - var dataScope: List? = null - var deptId: String? = null - var deptName: String? = null - var devices: List? = null - var id: String? = null - var ipAddr: String? = null - var name: String? = null - var phone: String? = null - var roleList: List? = null - var roleNames: List? = null - var roleTips: List? = null - var scopeType: String? = null - var sysData: String? = null - var targetId: String? = null - var targetName: String? = null - var tenantId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java new file mode 100644 index 0000000..6869ebe --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class WaterSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String count; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getCount() { + return count; + } + + public void setCount(String count) { + this.count = count; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt deleted file mode 100644 index 97fef28..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class WaterSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var count: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java new file mode 100644 index 0000000..a206774 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class WaterSevenDayModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String date; + private List data; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class AreaDataBean { + private String areaName; + private String count; + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getCount() { + return count; + } + + public void setCount(String count) { + this.count = count; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt deleted file mode 100644 index 6cda9f2..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class WaterSevenDayModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var date: String? = null - var data: List? = null - - class AreaDataBean { - var areaName: String? = null - var count: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.java new file mode 100644 index 0000000..6b134ea --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.java @@ -0,0 +1,314 @@ +package com.casic.qd.smartwell.model; + +public class WellDetailModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String coordinateX; + private String coordinateY; + private int deep; + private String deptName; + private String deptid; + private String deviceCount; + private String id; + private String latBaidu; + private String latGaode; + private String lngBaidu; + private String lngGaode; + private String notes; + private String photos; + private String position; + private String qu; + private String responsibleDept; + private String responsibleDeptName; + private String ts; + private String valid; + private String wellCode; + private String wellFlag1; + private String wellFlag2; + private String wellFlag3; + private String wellName; + private String wellType; + private String wellTypeName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCoordinateX() { + return coordinateX; + } + + public void setCoordinateX(String coordinateX) { + this.coordinateX = coordinateX; + } + + public String getCoordinateY() { + return coordinateY; + } + + public void setCoordinateY(String coordinateY) { + this.coordinateY = coordinateY; + } + + public int getDeep() { + return deep; + } + + public void setDeep(int deep) { + this.deep = deep; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getLatBaidu() { + return latBaidu; + } + + public void setLatBaidu(String latBaidu) { + this.latBaidu = latBaidu; + } + + public String getLatGaode() { + return latGaode; + } + + public void setLatGaode(String latGaode) { + this.latGaode = latGaode; + } + + public String getLngBaidu() { + return lngBaidu; + } + + public void setLngBaidu(String lngBaidu) { + this.lngBaidu = lngBaidu; + } + + public String getLngGaode() { + return lngGaode; + } + + public void setLngGaode(String lngGaode) { + this.lngGaode = lngGaode; + } + + public String getNotes() { + return notes; + } + + public void setNotes(String notes) { + this.notes = notes; + } + + public String getPhotos() { + return photos; + } + + public void setPhotos(String photos) { + this.photos = photos; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getQu() { + return qu; + } + + public void setQu(String qu) { + this.qu = qu; + } + + public String getResponsibleDept() { + return responsibleDept; + } + + public void setResponsibleDept(String responsibleDept) { + this.responsibleDept = responsibleDept; + } + + public String getResponsibleDeptName() { + return responsibleDeptName; + } + + public void setResponsibleDeptName(String responsibleDeptName) { + this.responsibleDeptName = responsibleDeptName; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellFlag1() { + return wellFlag1; + } + + public void setWellFlag1(String wellFlag1) { + this.wellFlag1 = wellFlag1; + } + + public String getWellFlag2() { + return wellFlag2; + } + + public void setWellFlag2(String wellFlag2) { + this.wellFlag2 = wellFlag2; + } + + public String getWellFlag3() { + return wellFlag3; + } + + public void setWellFlag3(String wellFlag3) { + this.wellFlag3 = wellFlag3; + } + + public String getWellName() { + return wellName; + } + + public void setWellName(String wellName) { + this.wellName = wellName; + } + + public String getWellType() { + return wellType; + } + + public void setWellType(String wellType) { + this.wellType = wellType; + } + + public String getWellTypeName() { + return wellTypeName; + } + + public void setWellTypeName(String wellTypeName) { + this.wellTypeName = wellTypeName; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt deleted file mode 100644 index 251b59e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * PublicKey 登录校验Key - */ -class PublicKeyModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var isAppKaptcha = false - var isKaptcha = false - var publicKey: String? = null - var sid: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java new file mode 100644 index 0000000..404c223 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java @@ -0,0 +1,391 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class SearchResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private int alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private int editable; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public int getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(int alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt deleted file mode 100644 index b9b8ac9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class SearchResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt deleted file mode 100644 index 3f2b287..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.casic.qd.smartwell.model - -class SubordinateModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var deptId: String? = null - var id: String? = null - var name: String? = null - var phone: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java new file mode 100644 index 0000000..e4137ae --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class TotalDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String total; + private String dayCount; + private String uptime; + + public String getTotal() { + return total; + } + + public void setTotal(String total) { + this.total = total; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt deleted file mode 100644 index 30bf829..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class TotalDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var total: String? = null - var deviceState: String? = null - var uptime: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java new file mode 100644 index 0000000..822bc40 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java @@ -0,0 +1,226 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class UserDetailModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String account; + private String attr1; + private String avatar; + private String bizData; + private List dataScope; + private String deptId; + private String deptName; + private List devices; + private String id; + private String ipAddr; + private String name; + private String phone; + private List roleList; + private List roleNames; + private List roleTips; + private String scopeType; + private String sysData; + private String targetId; + private String targetName; + private String tenantId; + + public String getAccount() { + return account; + } + + public void setAccount(String account) { + this.account = account; + } + + public String getAttr1() { + return attr1; + } + + public void setAttr1(String attr1) { + this.attr1 = attr1; + } + + public String getAvatar() { + return avatar; + } + + public void setAvatar(String avatar) { + this.avatar = avatar; + } + + public String getBizData() { + return bizData; + } + + public void setBizData(String bizData) { + this.bizData = bizData; + } + + public List getDataScope() { + return dataScope; + } + + public void setDataScope(List dataScope) { + this.dataScope = dataScope; + } + + public String getDeptId() { + return deptId; + } + + public void setDeptId(String deptId) { + this.deptId = deptId; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public List getDevices() { + return devices; + } + + public void setDevices(List devices) { + this.devices = devices; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIpAddr() { + return ipAddr; + } + + public void setIpAddr(String ipAddr) { + this.ipAddr = ipAddr; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public List getRoleList() { + return roleList; + } + + public void setRoleList(List roleList) { + this.roleList = roleList; + } + + public List getRoleNames() { + return roleNames; + } + + public void setRoleNames(List roleNames) { + this.roleNames = roleNames; + } + + public List getRoleTips() { + return roleTips; + } + + public void setRoleTips(List roleTips) { + this.roleTips = roleTips; + } + + public String getScopeType() { + return scopeType; + } + + public void setScopeType(String scopeType) { + this.scopeType = scopeType; + } + + public String getSysData() { + return sysData; + } + + public void setSysData(String sysData) { + this.sysData = sysData; + } + + public String getTargetId() { + return targetId; + } + + public void setTargetId(String targetId) { + this.targetId = targetId; + } + + public String getTargetName() { + return targetName; + } + + public void setTargetName(String targetName) { + this.targetName = targetName; + } + + public String getTenantId() { + return tenantId; + } + + public void setTenantId(String tenantId) { + this.tenantId = tenantId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt deleted file mode 100644 index 56c2e88..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt +++ /dev/null @@ -1,31 +0,0 @@ -package com.casic.qd.smartwell.model - -class UserDetailModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var avatar: String? = null - var bizData: String? = null - var dataScope: List? = null - var deptId: String? = null - var deptName: String? = null - var devices: List? = null - var id: String? = null - var ipAddr: String? = null - var name: String? = null - var phone: String? = null - var roleList: List? = null - var roleNames: List? = null - var roleTips: List? = null - var scopeType: String? = null - var sysData: String? = null - var targetId: String? = null - var targetName: String? = null - var tenantId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java new file mode 100644 index 0000000..6869ebe --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class WaterSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String count; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getCount() { + return count; + } + + public void setCount(String count) { + this.count = count; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt deleted file mode 100644 index 97fef28..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class WaterSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var count: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java new file mode 100644 index 0000000..a206774 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class WaterSevenDayModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String date; + private List data; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class AreaDataBean { + private String areaName; + private String count; + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getCount() { + return count; + } + + public void setCount(String count) { + this.count = count; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt deleted file mode 100644 index 6cda9f2..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class WaterSevenDayModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var date: String? = null - var data: List? = null - - class AreaDataBean { - var areaName: String? = null - var count: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.java new file mode 100644 index 0000000..6b134ea --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.java @@ -0,0 +1,314 @@ +package com.casic.qd.smartwell.model; + +public class WellDetailModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String coordinateX; + private String coordinateY; + private int deep; + private String deptName; + private String deptid; + private String deviceCount; + private String id; + private String latBaidu; + private String latGaode; + private String lngBaidu; + private String lngGaode; + private String notes; + private String photos; + private String position; + private String qu; + private String responsibleDept; + private String responsibleDeptName; + private String ts; + private String valid; + private String wellCode; + private String wellFlag1; + private String wellFlag2; + private String wellFlag3; + private String wellName; + private String wellType; + private String wellTypeName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCoordinateX() { + return coordinateX; + } + + public void setCoordinateX(String coordinateX) { + this.coordinateX = coordinateX; + } + + public String getCoordinateY() { + return coordinateY; + } + + public void setCoordinateY(String coordinateY) { + this.coordinateY = coordinateY; + } + + public int getDeep() { + return deep; + } + + public void setDeep(int deep) { + this.deep = deep; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getLatBaidu() { + return latBaidu; + } + + public void setLatBaidu(String latBaidu) { + this.latBaidu = latBaidu; + } + + public String getLatGaode() { + return latGaode; + } + + public void setLatGaode(String latGaode) { + this.latGaode = latGaode; + } + + public String getLngBaidu() { + return lngBaidu; + } + + public void setLngBaidu(String lngBaidu) { + this.lngBaidu = lngBaidu; + } + + public String getLngGaode() { + return lngGaode; + } + + public void setLngGaode(String lngGaode) { + this.lngGaode = lngGaode; + } + + public String getNotes() { + return notes; + } + + public void setNotes(String notes) { + this.notes = notes; + } + + public String getPhotos() { + return photos; + } + + public void setPhotos(String photos) { + this.photos = photos; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getQu() { + return qu; + } + + public void setQu(String qu) { + this.qu = qu; + } + + public String getResponsibleDept() { + return responsibleDept; + } + + public void setResponsibleDept(String responsibleDept) { + this.responsibleDept = responsibleDept; + } + + public String getResponsibleDeptName() { + return responsibleDeptName; + } + + public void setResponsibleDeptName(String responsibleDeptName) { + this.responsibleDeptName = responsibleDeptName; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellFlag1() { + return wellFlag1; + } + + public void setWellFlag1(String wellFlag1) { + this.wellFlag1 = wellFlag1; + } + + public String getWellFlag2() { + return wellFlag2; + } + + public void setWellFlag2(String wellFlag2) { + this.wellFlag2 = wellFlag2; + } + + public String getWellFlag3() { + return wellFlag3; + } + + public void setWellFlag3(String wellFlag3) { + this.wellFlag3 = wellFlag3; + } + + public String getWellName() { + return wellName; + } + + public void setWellName(String wellName) { + this.wellName = wellName; + } + + public String getWellType() { + return wellType; + } + + public void setWellType(String wellType) { + this.wellType = wellType; + } + + public String getWellTypeName() { + return wellTypeName; + } + + public void setWellTypeName(String wellTypeName) { + this.wellTypeName = wellTypeName; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.kt deleted file mode 100644 index 10fb21f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.kt +++ /dev/null @@ -1,41 +0,0 @@ -package com.casic.qd.smartwell.model - -class WellDetailModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var coordinateX: String? = null - var coordinateY: String? = null - var deep: String? = null - var deptName: String? = null - var deptid: String? = null - var deviceCount: String? = null - var id: String? = null - var latBaidu: String? = null - var latGaode: String? = null - var lngBaidu: String? = null - var lngGaode: String? = null - var notes: String? = null - var photos: String? = null - var position: String? = null - var qu: String? = null - var responsibleDept: String? = null - var responsibleDeptName: String? = null - var ts: String? = null - var valid: String? = null - var wellCode: String? = null - var wellFlag1: String? = null - var wellFlag2: String? = null - var wellFlag3: String? = null - var wellName: String? = null - var wellType: String? = null - var wellTypeName: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt deleted file mode 100644 index 251b59e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * PublicKey 登录校验Key - */ -class PublicKeyModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var isAppKaptcha = false - var isKaptcha = false - var publicKey: String? = null - var sid: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java new file mode 100644 index 0000000..404c223 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java @@ -0,0 +1,391 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class SearchResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private int alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private int editable; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public int getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(int alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt deleted file mode 100644 index b9b8ac9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class SearchResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt deleted file mode 100644 index 3f2b287..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.casic.qd.smartwell.model - -class SubordinateModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var deptId: String? = null - var id: String? = null - var name: String? = null - var phone: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java new file mode 100644 index 0000000..e4137ae --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class TotalDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String total; + private String dayCount; + private String uptime; + + public String getTotal() { + return total; + } + + public void setTotal(String total) { + this.total = total; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt deleted file mode 100644 index 30bf829..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class TotalDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var total: String? = null - var deviceState: String? = null - var uptime: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java new file mode 100644 index 0000000..822bc40 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java @@ -0,0 +1,226 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class UserDetailModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String account; + private String attr1; + private String avatar; + private String bizData; + private List dataScope; + private String deptId; + private String deptName; + private List devices; + private String id; + private String ipAddr; + private String name; + private String phone; + private List roleList; + private List roleNames; + private List roleTips; + private String scopeType; + private String sysData; + private String targetId; + private String targetName; + private String tenantId; + + public String getAccount() { + return account; + } + + public void setAccount(String account) { + this.account = account; + } + + public String getAttr1() { + return attr1; + } + + public void setAttr1(String attr1) { + this.attr1 = attr1; + } + + public String getAvatar() { + return avatar; + } + + public void setAvatar(String avatar) { + this.avatar = avatar; + } + + public String getBizData() { + return bizData; + } + + public void setBizData(String bizData) { + this.bizData = bizData; + } + + public List getDataScope() { + return dataScope; + } + + public void setDataScope(List dataScope) { + this.dataScope = dataScope; + } + + public String getDeptId() { + return deptId; + } + + public void setDeptId(String deptId) { + this.deptId = deptId; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public List getDevices() { + return devices; + } + + public void setDevices(List devices) { + this.devices = devices; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIpAddr() { + return ipAddr; + } + + public void setIpAddr(String ipAddr) { + this.ipAddr = ipAddr; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public List getRoleList() { + return roleList; + } + + public void setRoleList(List roleList) { + this.roleList = roleList; + } + + public List getRoleNames() { + return roleNames; + } + + public void setRoleNames(List roleNames) { + this.roleNames = roleNames; + } + + public List getRoleTips() { + return roleTips; + } + + public void setRoleTips(List roleTips) { + this.roleTips = roleTips; + } + + public String getScopeType() { + return scopeType; + } + + public void setScopeType(String scopeType) { + this.scopeType = scopeType; + } + + public String getSysData() { + return sysData; + } + + public void setSysData(String sysData) { + this.sysData = sysData; + } + + public String getTargetId() { + return targetId; + } + + public void setTargetId(String targetId) { + this.targetId = targetId; + } + + public String getTargetName() { + return targetName; + } + + public void setTargetName(String targetName) { + this.targetName = targetName; + } + + public String getTenantId() { + return tenantId; + } + + public void setTenantId(String tenantId) { + this.tenantId = tenantId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt deleted file mode 100644 index 56c2e88..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt +++ /dev/null @@ -1,31 +0,0 @@ -package com.casic.qd.smartwell.model - -class UserDetailModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var avatar: String? = null - var bizData: String? = null - var dataScope: List? = null - var deptId: String? = null - var deptName: String? = null - var devices: List? = null - var id: String? = null - var ipAddr: String? = null - var name: String? = null - var phone: String? = null - var roleList: List? = null - var roleNames: List? = null - var roleTips: List? = null - var scopeType: String? = null - var sysData: String? = null - var targetId: String? = null - var targetName: String? = null - var tenantId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java new file mode 100644 index 0000000..6869ebe --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class WaterSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String count; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getCount() { + return count; + } + + public void setCount(String count) { + this.count = count; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt deleted file mode 100644 index 97fef28..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class WaterSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var count: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java new file mode 100644 index 0000000..a206774 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class WaterSevenDayModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String date; + private List data; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class AreaDataBean { + private String areaName; + private String count; + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getCount() { + return count; + } + + public void setCount(String count) { + this.count = count; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt deleted file mode 100644 index 6cda9f2..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class WaterSevenDayModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var date: String? = null - var data: List? = null - - class AreaDataBean { - var areaName: String? = null - var count: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.java new file mode 100644 index 0000000..6b134ea --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.java @@ -0,0 +1,314 @@ +package com.casic.qd.smartwell.model; + +public class WellDetailModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String coordinateX; + private String coordinateY; + private int deep; + private String deptName; + private String deptid; + private String deviceCount; + private String id; + private String latBaidu; + private String latGaode; + private String lngBaidu; + private String lngGaode; + private String notes; + private String photos; + private String position; + private String qu; + private String responsibleDept; + private String responsibleDeptName; + private String ts; + private String valid; + private String wellCode; + private String wellFlag1; + private String wellFlag2; + private String wellFlag3; + private String wellName; + private String wellType; + private String wellTypeName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCoordinateX() { + return coordinateX; + } + + public void setCoordinateX(String coordinateX) { + this.coordinateX = coordinateX; + } + + public String getCoordinateY() { + return coordinateY; + } + + public void setCoordinateY(String coordinateY) { + this.coordinateY = coordinateY; + } + + public int getDeep() { + return deep; + } + + public void setDeep(int deep) { + this.deep = deep; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getLatBaidu() { + return latBaidu; + } + + public void setLatBaidu(String latBaidu) { + this.latBaidu = latBaidu; + } + + public String getLatGaode() { + return latGaode; + } + + public void setLatGaode(String latGaode) { + this.latGaode = latGaode; + } + + public String getLngBaidu() { + return lngBaidu; + } + + public void setLngBaidu(String lngBaidu) { + this.lngBaidu = lngBaidu; + } + + public String getLngGaode() { + return lngGaode; + } + + public void setLngGaode(String lngGaode) { + this.lngGaode = lngGaode; + } + + public String getNotes() { + return notes; + } + + public void setNotes(String notes) { + this.notes = notes; + } + + public String getPhotos() { + return photos; + } + + public void setPhotos(String photos) { + this.photos = photos; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getQu() { + return qu; + } + + public void setQu(String qu) { + this.qu = qu; + } + + public String getResponsibleDept() { + return responsibleDept; + } + + public void setResponsibleDept(String responsibleDept) { + this.responsibleDept = responsibleDept; + } + + public String getResponsibleDeptName() { + return responsibleDeptName; + } + + public void setResponsibleDeptName(String responsibleDeptName) { + this.responsibleDeptName = responsibleDeptName; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellFlag1() { + return wellFlag1; + } + + public void setWellFlag1(String wellFlag1) { + this.wellFlag1 = wellFlag1; + } + + public String getWellFlag2() { + return wellFlag2; + } + + public void setWellFlag2(String wellFlag2) { + this.wellFlag2 = wellFlag2; + } + + public String getWellFlag3() { + return wellFlag3; + } + + public void setWellFlag3(String wellFlag3) { + this.wellFlag3 = wellFlag3; + } + + public String getWellName() { + return wellName; + } + + public void setWellName(String wellName) { + this.wellName = wellName; + } + + public String getWellType() { + return wellType; + } + + public void setWellType(String wellType) { + this.wellType = wellType; + } + + public String getWellTypeName() { + return wellTypeName; + } + + public void setWellTypeName(String wellTypeName) { + this.wellTypeName = wellTypeName; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.kt deleted file mode 100644 index 10fb21f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.kt +++ /dev/null @@ -1,41 +0,0 @@ -package com.casic.qd.smartwell.model - -class WellDetailModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var coordinateX: String? = null - var coordinateY: String? = null - var deep: String? = null - var deptName: String? = null - var deptid: String? = null - var deviceCount: String? = null - var id: String? = null - var latBaidu: String? = null - var latGaode: String? = null - var lngBaidu: String? = null - var lngGaode: String? = null - var notes: String? = null - var photos: String? = null - var position: String? = null - var qu: String? = null - var responsibleDept: String? = null - var responsibleDeptName: String? = null - var ts: String? = null - var valid: String? = null - var wellCode: String? = null - var wellFlag1: String? = null - var wellFlag2: String? = null - var wellFlag3: String? = null - var wellName: String? = null - var wellType: String? = null - var wellTypeName: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/utils/ChartViewHelper.kt b/app/src/main/java/com/casic/qd/smartwell/utils/ChartViewHelper.kt index b8fb81e..07acdc8 100644 --- a/app/src/main/java/com/casic/qd/smartwell/utils/ChartViewHelper.kt +++ b/app/src/main/java/com/casic/qd/smartwell/utils/ChartViewHelper.kt @@ -1,8 +1,6 @@ package com.casic.qd.smartwell.utils import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.casic.qd.smartwell.extensions.init import com.casic.qd.smartwell.model.LineChartEntryModel import com.casic.qd.smartwell.widgets.BarChartMarkerView import com.casic.qd.smartwell.widgets.LineChartMarkerView @@ -15,6 +13,7 @@ import com.github.mikephil.charting.interfaces.datasets.IBarDataSet import com.github.mikephil.charting.interfaces.datasets.ILineDataSet import com.pengxh.kt.lite.extensions.convertColor +import com.pengxh.kt.lite.extensions.init import java.text.DecimalFormat @@ -26,30 +25,72 @@ */ object ChartViewHelper { /** - * 折线图 + * 单条折线图 * */ - fun setLineChartData( - chart: LineChart, - xAxisDate: MutableList, - entryModels: List + fun setSingleLineChartData( + chart: LineChart, xAxisDate: MutableList, entryModel: LineChartEntryModel ) { //每次加载数据都初始化折线图 - chart.init() - //[{"entryList":[],"lineColor":-13118290}] - if (entryModels[0].entryList?.isEmpty() == true) { - chart.clearValues() + chart.init(chart.context) + if (entryModel.entryList.isEmpty()) { return } //绑定数据 val lineDataSets: MutableList = ArrayList() - val entrySize = entryModels[0].entryList!!.size + //设置数据 + val dataSet = LineDataSet(entryModel.entryList, entryModel.entryList[0].data.toString()) + dataSet.setDrawCircles(true) + //线条颜色 + dataSet.color = entryModel.lineColor + //圆点颜色 + dataSet.setCircleColor(entryModel.lineColor) + dataSet.setDrawFilled(true) + dataSet.fillColor = entryModel.lineColor + dataSet.mode = LineDataSet.Mode.CUBIC_BEZIER + lineDataSets.add(dataSet) + + val lineData = LineData(lineDataSets) + lineData.setDrawValues(false) + //添加自定义Marker + val markerView = LineChartMarkerView(chart.context) + markerView.chartView = chart + markerView.setXAxisDate(xAxisDate) + chart.marker = markerView + //设置X轴坐标 + val xAxis = chart.xAxis + if (xAxisDate.size == 1) { + xAxis.valueFormatter = object : ValueFormatter() { + override fun getFormattedValue(value: Float): String { + return xAxisDate[0] + } + } + } else { + xAxis.valueFormatter = object : ValueFormatter() { + override fun getFormattedValue(value: Float): String { + return xAxisDate[value.toInt()] + } + } + } + chart.data = lineData + chart.invalidate() + } + + /** + * 多条折线图 + * */ + fun setLineChartData( + chart: LineChart, xAxisDate: MutableList, entryModels: List + ) { + //每次加载数据都初始化折线图 + chart.init(chart.context) + if (entryModels[0].entryList.isEmpty()) { + return + } + //绑定数据 + val lineDataSets: MutableList = ArrayList() entryModels.forEachIndexed { index, it -> //设置数据 - val dataSet = if (entrySize == 1) { - LineDataSet(it.entryList, it.entryList?.get(0)?.data.toString()) - } else { - LineDataSet(it.entryList, it.entryList?.get(index)?.data.toString()) - } + val dataSet = LineDataSet(it.entryList, it.entryList?.get(index)?.data.toString()) dataSet.setDrawCircles(true) //线条颜色 dataSet.color = it.lineColor @@ -63,23 +104,15 @@ val lineData = LineData(lineDataSets) lineData.setDrawValues(false) //添加自定义Marker - val markerView = LineChartMarkerView(BaseApplication.obtainInstance()) + val markerView = LineChartMarkerView(chart.context) markerView.chartView = chart markerView.setXAxisDate(xAxisDate) chart.marker = markerView //设置X轴坐标 val xAxis = chart.xAxis - xAxis.valueFormatter = if (entrySize == 1) { - object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return xAxisDate[0] - } - } - } else { - object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return xAxisDate[value.toInt()] - } + xAxis.valueFormatter = object : ValueFormatter() { + override fun getFormattedValue(value: Float): String { + return xAxisDate[value.toInt()] } } chart.data = lineData @@ -96,11 +129,11 @@ dateType: String ) { //每次加载数据都初始化饼图 - chart.init(xAxisLabel) + chart.init(chart.context, xAxisLabel) val barDataSets: MutableList = ArrayList() //绑定数据 val dataSet = BarDataSet(entries, "") - dataSet.color = R.color.color_1.convertColor(BaseApplication.obtainInstance()) + dataSet.color = R.color.color_1.convertColor(chart.context) dataSet.valueFormatter = object : ValueFormatter() { override fun getFormattedValue(value: Float): String { return DecimalFormat("##0").format(value.toDouble()) @@ -110,7 +143,7 @@ val barData = BarData(barDataSets) barData.barWidth = 0.5f //添加自定义Marker - val markerView = BarChartMarkerView(BaseApplication.obtainInstance()) + val markerView = BarChartMarkerView(chart.context) markerView.chartView = chart markerView.setXAxisLabel(xAxisLabel) markerView.setBarDataType(dateType) @@ -128,11 +161,11 @@ entries: List ) { //每次加载数据都初始化饼图 - chart.init(xAxisLabel) + chart.init(chart.context, xAxisLabel) val barDataSets: MutableList = ArrayList() //绑定数据 val dataSet = BarDataSet(entries, "") - dataSet.color = R.color.color_6.convertColor(BaseApplication.obtainInstance()) + dataSet.color = R.color.color_6.convertColor(chart.context) dataSet.valueFormatter = object : ValueFormatter() { override fun getFormattedValue(value: Float): String { return DecimalFormat("##0").format(value.toDouble()) @@ -142,7 +175,7 @@ val barData = BarData(barDataSets) barData.barWidth = 0.5f //添加自定义Marker - val markerView = BarChartMarkerView(BaseApplication.obtainInstance()) + val markerView = BarChartMarkerView(chart.context) markerView.chartView = chart markerView.setXAxisLabel(xAxisLabel) markerView.setBarDataType("") @@ -156,9 +189,8 @@ * */ fun setPieChartData(chart: PieChart, entries: List) { //每次加载数据都初始化饼图 - chart.init() + chart.init(chart.context) if (entries.isEmpty()) { - chart.clearValues() return } //绑定数据 @@ -168,14 +200,14 @@ //设置饼图块颜色 val colors: MutableList = ArrayList() for (i in entries.indices) { - colors.add(LocaleConstant.COLORS[i].convertColor(BaseApplication.obtainInstance())) + colors.add(LocaleConstant.COLORS[i].convertColor(chart.context)) } dataSet.colors = colors //设置标签显示在饼图块外面 dataSet.xValuePosition = PieDataSet.ValuePosition.OUTSIDE_SLICE dataSet.yValuePosition = PieDataSet.ValuePosition.OUTSIDE_SLICE dataSet.valueLineColor = - R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) + R.color.mainThemeColor.convertColor(chart.context) dataSet.valueLinePart1Length = 0.55f //标签指示线前半截长度 dataSet.valueLinePart2Length = 0.65f //标签指示线后半截长度 val data = PieData(dataSet) @@ -185,7 +217,7 @@ } }) data.setValueTextSize(12f) - data.setValueTextColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //数据值颜色 + data.setValueTextColor(R.color.mainThemeColor.convertColor(chart.context)) //数据值颜色 chart.data = data chart.highlightValues(null) chart.invalidate() diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt deleted file mode 100644 index 251b59e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * PublicKey 登录校验Key - */ -class PublicKeyModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var isAppKaptcha = false - var isKaptcha = false - var publicKey: String? = null - var sid: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java new file mode 100644 index 0000000..404c223 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java @@ -0,0 +1,391 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class SearchResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private int alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private int editable; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public int getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(int alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt deleted file mode 100644 index b9b8ac9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class SearchResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt deleted file mode 100644 index 3f2b287..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.casic.qd.smartwell.model - -class SubordinateModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var deptId: String? = null - var id: String? = null - var name: String? = null - var phone: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java new file mode 100644 index 0000000..e4137ae --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class TotalDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String total; + private String dayCount; + private String uptime; + + public String getTotal() { + return total; + } + + public void setTotal(String total) { + this.total = total; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt deleted file mode 100644 index 30bf829..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class TotalDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var total: String? = null - var deviceState: String? = null - var uptime: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java new file mode 100644 index 0000000..822bc40 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java @@ -0,0 +1,226 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class UserDetailModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String account; + private String attr1; + private String avatar; + private String bizData; + private List dataScope; + private String deptId; + private String deptName; + private List devices; + private String id; + private String ipAddr; + private String name; + private String phone; + private List roleList; + private List roleNames; + private List roleTips; + private String scopeType; + private String sysData; + private String targetId; + private String targetName; + private String tenantId; + + public String getAccount() { + return account; + } + + public void setAccount(String account) { + this.account = account; + } + + public String getAttr1() { + return attr1; + } + + public void setAttr1(String attr1) { + this.attr1 = attr1; + } + + public String getAvatar() { + return avatar; + } + + public void setAvatar(String avatar) { + this.avatar = avatar; + } + + public String getBizData() { + return bizData; + } + + public void setBizData(String bizData) { + this.bizData = bizData; + } + + public List getDataScope() { + return dataScope; + } + + public void setDataScope(List dataScope) { + this.dataScope = dataScope; + } + + public String getDeptId() { + return deptId; + } + + public void setDeptId(String deptId) { + this.deptId = deptId; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public List getDevices() { + return devices; + } + + public void setDevices(List devices) { + this.devices = devices; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIpAddr() { + return ipAddr; + } + + public void setIpAddr(String ipAddr) { + this.ipAddr = ipAddr; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public List getRoleList() { + return roleList; + } + + public void setRoleList(List roleList) { + this.roleList = roleList; + } + + public List getRoleNames() { + return roleNames; + } + + public void setRoleNames(List roleNames) { + this.roleNames = roleNames; + } + + public List getRoleTips() { + return roleTips; + } + + public void setRoleTips(List roleTips) { + this.roleTips = roleTips; + } + + public String getScopeType() { + return scopeType; + } + + public void setScopeType(String scopeType) { + this.scopeType = scopeType; + } + + public String getSysData() { + return sysData; + } + + public void setSysData(String sysData) { + this.sysData = sysData; + } + + public String getTargetId() { + return targetId; + } + + public void setTargetId(String targetId) { + this.targetId = targetId; + } + + public String getTargetName() { + return targetName; + } + + public void setTargetName(String targetName) { + this.targetName = targetName; + } + + public String getTenantId() { + return tenantId; + } + + public void setTenantId(String tenantId) { + this.tenantId = tenantId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt deleted file mode 100644 index 56c2e88..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt +++ /dev/null @@ -1,31 +0,0 @@ -package com.casic.qd.smartwell.model - -class UserDetailModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var avatar: String? = null - var bizData: String? = null - var dataScope: List? = null - var deptId: String? = null - var deptName: String? = null - var devices: List? = null - var id: String? = null - var ipAddr: String? = null - var name: String? = null - var phone: String? = null - var roleList: List? = null - var roleNames: List? = null - var roleTips: List? = null - var scopeType: String? = null - var sysData: String? = null - var targetId: String? = null - var targetName: String? = null - var tenantId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java new file mode 100644 index 0000000..6869ebe --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class WaterSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String count; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getCount() { + return count; + } + + public void setCount(String count) { + this.count = count; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt deleted file mode 100644 index 97fef28..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class WaterSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var count: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java new file mode 100644 index 0000000..a206774 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class WaterSevenDayModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String date; + private List data; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class AreaDataBean { + private String areaName; + private String count; + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getCount() { + return count; + } + + public void setCount(String count) { + this.count = count; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt deleted file mode 100644 index 6cda9f2..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class WaterSevenDayModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var date: String? = null - var data: List? = null - - class AreaDataBean { - var areaName: String? = null - var count: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.java new file mode 100644 index 0000000..6b134ea --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.java @@ -0,0 +1,314 @@ +package com.casic.qd.smartwell.model; + +public class WellDetailModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String coordinateX; + private String coordinateY; + private int deep; + private String deptName; + private String deptid; + private String deviceCount; + private String id; + private String latBaidu; + private String latGaode; + private String lngBaidu; + private String lngGaode; + private String notes; + private String photos; + private String position; + private String qu; + private String responsibleDept; + private String responsibleDeptName; + private String ts; + private String valid; + private String wellCode; + private String wellFlag1; + private String wellFlag2; + private String wellFlag3; + private String wellName; + private String wellType; + private String wellTypeName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCoordinateX() { + return coordinateX; + } + + public void setCoordinateX(String coordinateX) { + this.coordinateX = coordinateX; + } + + public String getCoordinateY() { + return coordinateY; + } + + public void setCoordinateY(String coordinateY) { + this.coordinateY = coordinateY; + } + + public int getDeep() { + return deep; + } + + public void setDeep(int deep) { + this.deep = deep; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getLatBaidu() { + return latBaidu; + } + + public void setLatBaidu(String latBaidu) { + this.latBaidu = latBaidu; + } + + public String getLatGaode() { + return latGaode; + } + + public void setLatGaode(String latGaode) { + this.latGaode = latGaode; + } + + public String getLngBaidu() { + return lngBaidu; + } + + public void setLngBaidu(String lngBaidu) { + this.lngBaidu = lngBaidu; + } + + public String getLngGaode() { + return lngGaode; + } + + public void setLngGaode(String lngGaode) { + this.lngGaode = lngGaode; + } + + public String getNotes() { + return notes; + } + + public void setNotes(String notes) { + this.notes = notes; + } + + public String getPhotos() { + return photos; + } + + public void setPhotos(String photos) { + this.photos = photos; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getQu() { + return qu; + } + + public void setQu(String qu) { + this.qu = qu; + } + + public String getResponsibleDept() { + return responsibleDept; + } + + public void setResponsibleDept(String responsibleDept) { + this.responsibleDept = responsibleDept; + } + + public String getResponsibleDeptName() { + return responsibleDeptName; + } + + public void setResponsibleDeptName(String responsibleDeptName) { + this.responsibleDeptName = responsibleDeptName; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellFlag1() { + return wellFlag1; + } + + public void setWellFlag1(String wellFlag1) { + this.wellFlag1 = wellFlag1; + } + + public String getWellFlag2() { + return wellFlag2; + } + + public void setWellFlag2(String wellFlag2) { + this.wellFlag2 = wellFlag2; + } + + public String getWellFlag3() { + return wellFlag3; + } + + public void setWellFlag3(String wellFlag3) { + this.wellFlag3 = wellFlag3; + } + + public String getWellName() { + return wellName; + } + + public void setWellName(String wellName) { + this.wellName = wellName; + } + + public String getWellType() { + return wellType; + } + + public void setWellType(String wellType) { + this.wellType = wellType; + } + + public String getWellTypeName() { + return wellTypeName; + } + + public void setWellTypeName(String wellTypeName) { + this.wellTypeName = wellTypeName; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.kt deleted file mode 100644 index 10fb21f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.kt +++ /dev/null @@ -1,41 +0,0 @@ -package com.casic.qd.smartwell.model - -class WellDetailModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var coordinateX: String? = null - var coordinateY: String? = null - var deep: String? = null - var deptName: String? = null - var deptid: String? = null - var deviceCount: String? = null - var id: String? = null - var latBaidu: String? = null - var latGaode: String? = null - var lngBaidu: String? = null - var lngGaode: String? = null - var notes: String? = null - var photos: String? = null - var position: String? = null - var qu: String? = null - var responsibleDept: String? = null - var responsibleDeptName: String? = null - var ts: String? = null - var valid: String? = null - var wellCode: String? = null - var wellFlag1: String? = null - var wellFlag2: String? = null - var wellFlag3: String? = null - var wellName: String? = null - var wellType: String? = null - var wellTypeName: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/utils/ChartViewHelper.kt b/app/src/main/java/com/casic/qd/smartwell/utils/ChartViewHelper.kt index b8fb81e..07acdc8 100644 --- a/app/src/main/java/com/casic/qd/smartwell/utils/ChartViewHelper.kt +++ b/app/src/main/java/com/casic/qd/smartwell/utils/ChartViewHelper.kt @@ -1,8 +1,6 @@ package com.casic.qd.smartwell.utils import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.casic.qd.smartwell.extensions.init import com.casic.qd.smartwell.model.LineChartEntryModel import com.casic.qd.smartwell.widgets.BarChartMarkerView import com.casic.qd.smartwell.widgets.LineChartMarkerView @@ -15,6 +13,7 @@ import com.github.mikephil.charting.interfaces.datasets.IBarDataSet import com.github.mikephil.charting.interfaces.datasets.ILineDataSet import com.pengxh.kt.lite.extensions.convertColor +import com.pengxh.kt.lite.extensions.init import java.text.DecimalFormat @@ -26,30 +25,72 @@ */ object ChartViewHelper { /** - * 折线图 + * 单条折线图 * */ - fun setLineChartData( - chart: LineChart, - xAxisDate: MutableList, - entryModels: List + fun setSingleLineChartData( + chart: LineChart, xAxisDate: MutableList, entryModel: LineChartEntryModel ) { //每次加载数据都初始化折线图 - chart.init() - //[{"entryList":[],"lineColor":-13118290}] - if (entryModels[0].entryList?.isEmpty() == true) { - chart.clearValues() + chart.init(chart.context) + if (entryModel.entryList.isEmpty()) { return } //绑定数据 val lineDataSets: MutableList = ArrayList() - val entrySize = entryModels[0].entryList!!.size + //设置数据 + val dataSet = LineDataSet(entryModel.entryList, entryModel.entryList[0].data.toString()) + dataSet.setDrawCircles(true) + //线条颜色 + dataSet.color = entryModel.lineColor + //圆点颜色 + dataSet.setCircleColor(entryModel.lineColor) + dataSet.setDrawFilled(true) + dataSet.fillColor = entryModel.lineColor + dataSet.mode = LineDataSet.Mode.CUBIC_BEZIER + lineDataSets.add(dataSet) + + val lineData = LineData(lineDataSets) + lineData.setDrawValues(false) + //添加自定义Marker + val markerView = LineChartMarkerView(chart.context) + markerView.chartView = chart + markerView.setXAxisDate(xAxisDate) + chart.marker = markerView + //设置X轴坐标 + val xAxis = chart.xAxis + if (xAxisDate.size == 1) { + xAxis.valueFormatter = object : ValueFormatter() { + override fun getFormattedValue(value: Float): String { + return xAxisDate[0] + } + } + } else { + xAxis.valueFormatter = object : ValueFormatter() { + override fun getFormattedValue(value: Float): String { + return xAxisDate[value.toInt()] + } + } + } + chart.data = lineData + chart.invalidate() + } + + /** + * 多条折线图 + * */ + fun setLineChartData( + chart: LineChart, xAxisDate: MutableList, entryModels: List + ) { + //每次加载数据都初始化折线图 + chart.init(chart.context) + if (entryModels[0].entryList.isEmpty()) { + return + } + //绑定数据 + val lineDataSets: MutableList = ArrayList() entryModels.forEachIndexed { index, it -> //设置数据 - val dataSet = if (entrySize == 1) { - LineDataSet(it.entryList, it.entryList?.get(0)?.data.toString()) - } else { - LineDataSet(it.entryList, it.entryList?.get(index)?.data.toString()) - } + val dataSet = LineDataSet(it.entryList, it.entryList?.get(index)?.data.toString()) dataSet.setDrawCircles(true) //线条颜色 dataSet.color = it.lineColor @@ -63,23 +104,15 @@ val lineData = LineData(lineDataSets) lineData.setDrawValues(false) //添加自定义Marker - val markerView = LineChartMarkerView(BaseApplication.obtainInstance()) + val markerView = LineChartMarkerView(chart.context) markerView.chartView = chart markerView.setXAxisDate(xAxisDate) chart.marker = markerView //设置X轴坐标 val xAxis = chart.xAxis - xAxis.valueFormatter = if (entrySize == 1) { - object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return xAxisDate[0] - } - } - } else { - object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return xAxisDate[value.toInt()] - } + xAxis.valueFormatter = object : ValueFormatter() { + override fun getFormattedValue(value: Float): String { + return xAxisDate[value.toInt()] } } chart.data = lineData @@ -96,11 +129,11 @@ dateType: String ) { //每次加载数据都初始化饼图 - chart.init(xAxisLabel) + chart.init(chart.context, xAxisLabel) val barDataSets: MutableList = ArrayList() //绑定数据 val dataSet = BarDataSet(entries, "") - dataSet.color = R.color.color_1.convertColor(BaseApplication.obtainInstance()) + dataSet.color = R.color.color_1.convertColor(chart.context) dataSet.valueFormatter = object : ValueFormatter() { override fun getFormattedValue(value: Float): String { return DecimalFormat("##0").format(value.toDouble()) @@ -110,7 +143,7 @@ val barData = BarData(barDataSets) barData.barWidth = 0.5f //添加自定义Marker - val markerView = BarChartMarkerView(BaseApplication.obtainInstance()) + val markerView = BarChartMarkerView(chart.context) markerView.chartView = chart markerView.setXAxisLabel(xAxisLabel) markerView.setBarDataType(dateType) @@ -128,11 +161,11 @@ entries: List ) { //每次加载数据都初始化饼图 - chart.init(xAxisLabel) + chart.init(chart.context, xAxisLabel) val barDataSets: MutableList = ArrayList() //绑定数据 val dataSet = BarDataSet(entries, "") - dataSet.color = R.color.color_6.convertColor(BaseApplication.obtainInstance()) + dataSet.color = R.color.color_6.convertColor(chart.context) dataSet.valueFormatter = object : ValueFormatter() { override fun getFormattedValue(value: Float): String { return DecimalFormat("##0").format(value.toDouble()) @@ -142,7 +175,7 @@ val barData = BarData(barDataSets) barData.barWidth = 0.5f //添加自定义Marker - val markerView = BarChartMarkerView(BaseApplication.obtainInstance()) + val markerView = BarChartMarkerView(chart.context) markerView.chartView = chart markerView.setXAxisLabel(xAxisLabel) markerView.setBarDataType("") @@ -156,9 +189,8 @@ * */ fun setPieChartData(chart: PieChart, entries: List) { //每次加载数据都初始化饼图 - chart.init() + chart.init(chart.context) if (entries.isEmpty()) { - chart.clearValues() return } //绑定数据 @@ -168,14 +200,14 @@ //设置饼图块颜色 val colors: MutableList = ArrayList() for (i in entries.indices) { - colors.add(LocaleConstant.COLORS[i].convertColor(BaseApplication.obtainInstance())) + colors.add(LocaleConstant.COLORS[i].convertColor(chart.context)) } dataSet.colors = colors //设置标签显示在饼图块外面 dataSet.xValuePosition = PieDataSet.ValuePosition.OUTSIDE_SLICE dataSet.yValuePosition = PieDataSet.ValuePosition.OUTSIDE_SLICE dataSet.valueLineColor = - R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) + R.color.mainThemeColor.convertColor(chart.context) dataSet.valueLinePart1Length = 0.55f //标签指示线前半截长度 dataSet.valueLinePart2Length = 0.65f //标签指示线后半截长度 val data = PieData(dataSet) @@ -185,7 +217,7 @@ } }) data.setValueTextSize(12f) - data.setValueTextColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //数据值颜色 + data.setValueTextColor(R.color.mainThemeColor.convertColor(chart.context)) //数据值颜色 chart.data = data chart.highlightValues(null) chart.invalidate() diff --git a/app/src/main/java/com/casic/qd/smartwell/view/DeviceDataDetailActivity.kt b/app/src/main/java/com/casic/qd/smartwell/view/DeviceDataDetailActivity.kt index 7660a79..04cdd6b 100644 --- a/app/src/main/java/com/casic/qd/smartwell/view/DeviceDataDetailActivity.kt +++ b/app/src/main/java/com/casic/qd/smartwell/view/DeviceDataDetailActivity.kt @@ -34,6 +34,19 @@ leftBackView.setOnClickListener { finish() } deviceCode = intent.getStringExtra(LocaleConstant.INTENT_PARAM)!! titleView.text = String.format("${deviceCode}历史数据") + } + + override fun initData() { + deviceViewModel = ViewModelProvider(this).get(DeviceViewModel::class.java) + //默认加载近一周的数据 + val time = System.currentTimeMillis() + val startTime = time.timestampToLastWeekTime() + val endTime = time.timestampToTime() + deviceViewModel.obtainSevenDayData(deviceCode, startTime, endTime) + deviceViewModel.obtainTotalDayData(deviceCode, startTime, endTime) + } + + override fun initEvent() { rightOptionView.setOnClickListener { DateSelectDialog.Builder() .setContext(this) @@ -60,59 +73,45 @@ .setCalendarType(Type.ALL) .build().show() } - } - override fun initData() { - deviceViewModel = ViewModelProvider(this).get(DeviceViewModel::class.java) - //默认加载近一周的数据 - val time = System.currentTimeMillis() - val startTime = time.timestampToLastWeekTime() - val endTime = time.timestampToTime() - deviceViewModel.obtainSevenDayData(deviceCode, startTime, endTime) - deviceViewModel.obtainTotalDayData(deviceCode, startTime, endTime) - } - - override fun initEvent() { deviceViewModel.dayDataModel.observe(this, { if (it.code == 200) { - val entryModels: MutableList = ArrayList() val xAxisDate: MutableList = ArrayList() - val entries: ArrayList = ArrayList() - val entryModel = LineChartEntryModel() - - entryModel.lineColor = LocaleConstant.COLORS[7].convertColor(this) - it.data?.forEachIndexed { index, dataBean -> + val dayDataEntryModel = LineChartEntryModel() + val dayDataEntries: ArrayList = ArrayList() + it.data.forEachIndexed { index, dataBean -> val split = dataBean.time.toString().split("-") xAxisDate.add("${split[1]}/${split[2]}") - entries.add(Entry(index.toFloat(), dataBean.value!!.toFloat(), "日用水量")) + dayDataEntries.add(Entry(index.toFloat(), dataBean.value!!.toFloat(), "日用水量")) } - entryModel.entryList = entries - entryModels.add(entryModel) - ChartViewHelper.setLineChartData(dayWaterLineChart, xAxisDate, entryModels) + dayDataEntryModel.lineColor = LocaleConstant.COLORS[7].convertColor(this) + dayDataEntryModel.entryList = dayDataEntries + ChartViewHelper.setSingleLineChartData( + dayWaterLineChart, xAxisDate, dayDataEntryModel + ) } }) deviceViewModel.totalDataModel.observe(this, { - val entryModels: MutableList = ArrayList() val xAxisDate: MutableList = ArrayList() - val entries: ArrayList = ArrayList() - val entryModel = LineChartEntryModel() - - entryModel.lineColor = LocaleConstant.COLORS[7].convertColor(this) + val totalDataEntryModel = LineChartEntryModel() + val totalDataEntries: ArrayList = ArrayList() it.data?.forEachIndexed { index, dataBean -> val split = dataBean.uptime.toString().split(" ")[0].split("-") xAxisDate.add("${split[1]}/${split[2]}") - entries.add(Entry(index.toFloat(), dataBean.total!!.toFloat(), "总用水量")) + totalDataEntries.add(Entry(index.toFloat(), dataBean.total!!.toFloat(), "总用水量")) } - entryModel.entryList = entries - entryModels.add(entryModel) + totalDataEntryModel.lineColor = LocaleConstant.COLORS[7].convertColor(this) + totalDataEntryModel.entryList = totalDataEntries /** * 总用水量日期和日用水量日期是反的,需要调整一致 * */ xAxisDate.reverse() - ChartViewHelper.setLineChartData(totalWaterLineChart, xAxisDate, entryModels) + ChartViewHelper.setSingleLineChartData( + totalWaterLineChart, xAxisDate, totalDataEntryModel + ) }) } } \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt deleted file mode 100644 index 7bc343e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/BarChart.kt +++ /dev/null @@ -1,50 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.BarChart -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun BarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - xAxis.labelRotationAngle = -45f //X轴标签斜45度 - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt deleted file mode 100644 index 21e98d9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/HorizontalBarChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.HorizontalBarChart -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.github.mikephil.charting.formatter.ValueFormatter -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun HorizontalBarChart.init(barLabels: MutableList) { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - if (barLabels.isEmpty()) { - this.clearValues() - return - } - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.animateY(1200, Easing.EaseInOutQuad) - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.setScaleEnabled(false) - //去掉描述 - this.description.isEnabled = false - //去掉图例 - this.legend.isEnabled = false - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.labelCount = barLabels.size // 设置x轴上的标签个数 - xAxis.valueFormatter = object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return barLabels[value.toInt()] - } - } - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt deleted file mode 100644 index e38aa69..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/LineChart.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.LineChart -import com.github.mikephil.charting.components.Legend -import com.github.mikephil.charting.components.XAxis -import com.github.mikephil.charting.components.YAxis -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun LineChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setDrawGridBackground(false) - this.setDrawBorders(false) - this.animateY(1200, Easing.EaseInOutQuad) - //设置样式 - val rightAxis: YAxis = this.axisRight - //设置图表右边的y轴禁用 - rightAxis.isEnabled = false - val leftAxis: YAxis = this.axisLeft - leftAxis.axisMinimum = 0f - this.isScaleXEnabled = true //X轴可缩放 - this.isScaleYEnabled = false //Y轴不可缩放 - //设置x轴 - val xAxis: XAxis = this.xAxis - xAxis.textColor = R.color.mainTextColor.convertColor(BaseApplication.obtainInstance()) - xAxis.textSize = 10f - xAxis.setLabelCount(7, true) - xAxis.setDrawLabels(true) //绘制标签 指x轴上的对应数值 - xAxis.setDrawAxisLine(true) //是否绘制轴线 - xAxis.setDrawGridLines(false) //设置x轴上每个点对应的线 - xAxis.granularity = 1f //禁止放大后x轴标签重绘 - xAxis.position = XAxis.XAxisPosition.BOTTOM - this.extraBottomOffset = 5f //解决X轴显示不完全问题 - //去掉描述 - this.description.isEnabled = false - //设置图例 - val legend = this.legend - legend.orientation = Legend.LegendOrientation.HORIZONTAL - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt b/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt deleted file mode 100644 index 921de2d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/extensions/PieChart.kt +++ /dev/null @@ -1,40 +0,0 @@ -package com.casic.qd.smartwell.extensions - -import android.graphics.Color -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.animation.Easing -import com.github.mikephil.charting.charts.Chart -import com.github.mikephil.charting.charts.PieChart -import com.github.mikephil.charting.components.Legend -import com.pengxh.kt.lite.extensions.convertColor -import com.pengxh.kt.lite.extensions.dp2px - -fun PieChart.init() { - this.setNoDataText("无数据,无法渲染...") - this.setNoDataTextColor(R.color.orangeTextColor) - this.getPaint(Chart.PAINT_INFO).textSize = 14f.dp2px(BaseApplication.obtainInstance()).toFloat() - this.setUsePercentValues(false) //百分比数字显示 - this.description.isEnabled = false - this.dragDecelerationFrictionCoef = 0.95f //图表转动阻力摩擦系数[0,1] - this.setBackgroundColor(Color.WHITE) //设置图表背景色 - this.rotationAngle = 0f - this.isRotationEnabled = false - this.isHighlightPerTapEnabled = true - this.animateY(1200, Easing.EaseInOutQuad) // 设置图表展示动画效果 - this.setDrawEntryLabels(false) //不显示分类标签 - this.isDrawHoleEnabled = false //圆环显示 - this.setDrawCenterText(false) //圆环中心文字 - this.centerText = "分区用水占比图" - this.setEntryLabelColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //图表文本字体颜色 - this.setEntryLabelTextSize(12f) - //设置图表上下左右的偏移,类似于外边距,可以控制饼图大小 - this.setExtraOffsets(7.5f, 2.5f, 7.5f, 2.5f) - //设置图例位置 - val legend = this.legend - legend.verticalAlignment = Legend.LegendVerticalAlignment.BOTTOM - legend.horizontalAlignment = Legend.LegendHorizontalAlignment.CENTER - legend.orientation = Legend.LegendOrientation.HORIZONTAL - //图例是否自动换行 - legend.isWordWrapEnabled = true -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java new file mode 100644 index 0000000..0362385 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmContentModel { + + private int code; + private DataBean data; + private String message; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private String deviceType; + private String alarmType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt deleted file mode 100644 index 3802496..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmContentModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmContentModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - - class DataBean { - var list: List? = null - - class ListBean { - var deviceType: String? = null - var alarmType: String? = null - var name: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java new file mode 100644 index 0000000..10fffba --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.java @@ -0,0 +1,292 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private int alarmContent; + private String deptName; + private String jobStatus; + private String alarmContentName; + private String wellCode; + private String alarmTime; + private String deptid; + private String alarmTypeName; + private String alarmMessage; + private String staff; + private String deviceId; + private String jobId; + private String alarmType; + private String alarmValue; + private String devcode; + private String statusName; + private String alarmLevel; + private String tel; + private String id; + private String position; + private String areaFullName; + private String wellId; + private String status; + private String jobStatusName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt deleted file mode 100644 index de1293f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmListModel.kt +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var alarmContentName: String? = null - var wellCode: String? = null - var alarmTime: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var alarmMessage: String? = null - var staff: String? = null - var deviceId: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmValue: String? = null - var devcode: String? = null - var statusName: String? = null - var alarmLevel: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var position: String? = null - var status: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java new file mode 100644 index 0000000..0dae542 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.java @@ -0,0 +1,82 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String alarm; + private String warning; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getAlarm() { + return alarm; + } + + public void setAlarm(String alarm) { + this.alarm = alarm; + } + + public String getWarning() { + return warning; + } + + public void setWarning(String warning) { + this.warning = warning; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt deleted file mode 100644 index 520f824..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmSecondAreaModel.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var alarm: String? = null - var warning: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java new file mode 100644 index 0000000..4b4e0d3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AlarmTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt deleted file mode 100644 index ba9a6c7..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AlarmTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class AlarmTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java new file mode 100644 index 0000000..9f94a51 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.java @@ -0,0 +1,172 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class AreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String id; + private String isSync; + private String lat; + private int level; + private String levelName; + private String lng; + private String name; + private int num; + private String pName; + private String pid; + private String pids; + private String simplename; + private String targetIdSync; + private String targetPidSync; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIsSync() { + return isSync; + } + + public void setIsSync(String isSync) { + this.isSync = isSync; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public String getLevelName() { + return levelName; + } + + public void setLevelName(String levelName) { + this.levelName = levelName; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } + + public String getPName() { + return pName; + } + + public void setPName(String pName) { + this.pName = pName; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getPids() { + return pids; + } + + public void setPids(String pids) { + this.pids = pids; + } + + public String getSimplename() { + return simplename; + } + + public void setSimplename(String simplename) { + this.simplename = simplename; + } + + public String getTargetIdSync() { + return targetIdSync; + } + + public void setTargetIdSync(String targetIdSync) { + this.targetIdSync = targetIdSync; + } + + public String getTargetPidSync() { + return targetPidSync; + } + + public void setTargetPidSync(String targetPidSync) { + this.targetPidSync = targetPidSync; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt deleted file mode 100644 index 8761adf..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/AreaModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class AreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var id: String? = null - var isSync: String? = null - var lat: String? = null - var level = 0 - var levelName: String? = null - var lng: String? = null - var name: String? = null - var num = 0 - var pName: String? = null - var pid: String? = null - var pids: String? = null - var simplename: String? = null - var targetIdSync: String? = null - var targetPidSync: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java new file mode 100644 index 0000000..ce03376 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.java @@ -0,0 +1,32 @@ +package com.casic.qd.smartwell.model; + +public class BannerImageModel { + + private String imageLink; + private String imageTitle; + private String webPageLink; + + public String getImageLink() { + return imageLink; + } + + public void setImageLink(String imageLink) { + this.imageLink = imageLink; + } + + public String getImageTitle() { + return imageTitle; + } + + public void setImageTitle(String imageTitle) { + this.imageTitle = imageTitle; + } + + public String getWebPageLink() { + return webPageLink; + } + + public void setWebPageLink(String webPageLink) { + this.webPageLink = webPageLink; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt deleted file mode 100644 index 4365045..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/BannerImageModel.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.casic.qd.smartwell.model - -class BannerImageModel { - /** - * imageTitle : 亚洲首例300级深水导管架“海基一号”成... - * imageLink : https://www.cnoocengineering.com/picture/0/9c577a461ef24aafb9b1e06b8387f0ce.jpg - * webPageLink : /art/2022/4/12/art_29351_15325995.html - */ - var imageTitle: String? = null - var imageLink: String? = null - var webPageLink: String? = null -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java new file mode 100644 index 0000000..e69c7b9 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.java @@ -0,0 +1,44 @@ +package com.casic.qd.smartwell.model; + +/** + * 普通实体类,失败/成功数据结构一致 + */ +public class CommonResultModel { + + private int code; + private String data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt deleted file mode 100644 index d8cf8d3..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/CommonResultModel.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * 普通实体类,失败/成功数据结构一致 - */ -class CommonResultModel { - var code = 0 - var data: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java new file mode 100644 index 0000000..1bd3a8f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DayDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String time; + private String value; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt deleted file mode 100644 index 18d1399..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DayDataModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DayDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var time: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java new file mode 100644 index 0000000..34e869a --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceDataModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt deleted file mode 100644 index 4e4fcf6..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceDataModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceDataModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java new file mode 100644 index 0000000..ae182eb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.java @@ -0,0 +1,373 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt deleted file mode 100644 index 955a38e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceListModel.kt +++ /dev/null @@ -1,49 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java new file mode 100644 index 0000000..6a9f0d7 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.java @@ -0,0 +1,64 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceStatisticsModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String deviceCount; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt deleted file mode 100644 index 12e14a4..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceStatisticsModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceStatisticsModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var deviceCount: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java new file mode 100644 index 0000000..677a29b --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class DeviceTypeModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String deviceType; + private String name; + private String value; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt deleted file mode 100644 index 04d2a8a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/DeviceTypeModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class DeviceTypeModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var deviceType: String? = null - var name: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java new file mode 100644 index 0000000..9b1f5bc --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.java @@ -0,0 +1,50 @@ +package com.casic.qd.smartwell.model; + +public class ErrorMessageModel { + + private int code; + private String data; + private String exceptionClazz; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getExceptionClazz() { + return exceptionClazz; + } + + public void setExceptionClazz(String exceptionClazz) { + this.exceptionClazz = exceptionClazz; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt deleted file mode 100644 index 554e513..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ErrorMessageModel.kt +++ /dev/null @@ -1,9 +0,0 @@ -package com.casic.qd.smartwell.model - -class ErrorMessageModel { - var code = 0 - var data: String? = null - var exceptionClazz: String? = null - var message: String? = null - var isSuccess = false -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java new file mode 100644 index 0000000..63f5078 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.java @@ -0,0 +1,20 @@ +package com.casic.qd.smartwell.model; + +public class ExpandableDataModel { + + private final String orderStateTime; + private final String operationPerson; + + public ExpandableDataModel(String orderStateTime, String operationPerson) { + this.orderStateTime = orderStateTime; + this.operationPerson = operationPerson; + } + + public String getOrderStateTime() { + return orderStateTime; + } + + public String getOperationPerson() { + return operationPerson; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt deleted file mode 100644 index 0dc633d..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/ExpandableDataModel.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.casic.qd.smartwell.model - -class ExpandableDataModel(var orderStateTime: String?, var operationPerson: String?) \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java new file mode 100644 index 0000000..1c114f6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.java @@ -0,0 +1,29 @@ +package com.casic.qd.smartwell.model; + +import com.github.mikephil.charting.data.Entry; + +import java.util.List; + +public class LineChartEntryModel { + //折线数据 + private List entryList; + + //折线颜色 + private Integer lineColor; + + public List getEntryList() { + return entryList; + } + + public void setEntryList(List entryList) { + this.entryList = entryList; + } + + public Integer getLineColor() { + return lineColor; + } + + public void setLineColor(Integer lineColor) { + this.lineColor = lineColor; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt deleted file mode 100644 index 5089e83..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LineChartEntryModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.github.mikephil.charting.data.Entry -import com.pengxh.kt.lite.extensions.convertColor - -class LineChartEntryModel { - //折线数据 - var entryList: List? = null - - //折线颜色 - var lineColor = R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java new file mode 100644 index 0000000..520c1bb --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.java @@ -0,0 +1,62 @@ +package com.casic.qd.smartwell.model; + +public class LoginResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String kaptcha; + private String token; + + public String getKaptcha() { + return kaptcha; + } + + public void setKaptcha(String kaptcha) { + this.kaptcha = kaptcha; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt deleted file mode 100644 index c92507a..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/LoginResultModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.qd.smartwell.model - -class LoginResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var kaptcha: String? = null - var token: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java new file mode 100644 index 0000000..4ce2d3f --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.java @@ -0,0 +1,352 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class MapDeviceListModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String communication; + private String concenCode; + private String concenId; + private String dayCount; + private String deptName; + private String deptid; + private String devcode; + private String deviceName; + private String deviceType; + private String deviceTypeName; + private String id; + private String installDate; + private String latitude; + private String longitude; + private String modelId; + private String modelName; + private String monthCount; + private String onlineState; + private String onlineStateName; + private String position; + private String pressure; + private String statusName; + private String totalCount; + private String ts; + private String uptime; + private String valid; + private String watchNum; + private String watchType; + private String wellCode; + private String wellId; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCommunication() { + return communication; + } + + public void setCommunication(String communication) { + this.communication = communication; + } + + public String getConcenCode() { + return concenCode; + } + + public void setConcenCode(String concenCode) { + this.concenCode = concenCode; + } + + public String getConcenId() { + return concenId; + } + + public void setConcenId(String concenId) { + this.concenId = concenId; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceTypeName() { + return deviceTypeName; + } + + public void setDeviceTypeName(String deviceTypeName) { + this.deviceTypeName = deviceTypeName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getInstallDate() { + return installDate; + } + + public void setInstallDate(String installDate) { + this.installDate = installDate; + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude; + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + public String getModelId() { + return modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public String getMonthCount() { + return monthCount; + } + + public void setMonthCount(String monthCount) { + this.monthCount = monthCount; + } + + public String getOnlineState() { + return onlineState; + } + + public void setOnlineState(String onlineState) { + this.onlineState = onlineState; + } + + public String getOnlineStateName() { + return onlineStateName; + } + + public void setOnlineStateName(String onlineStateName) { + this.onlineStateName = onlineStateName; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public String getTotalCount() { + return totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWatchNum() { + return watchNum; + } + + public void setWatchNum(String watchNum) { + this.watchNum = watchNum; + } + + public String getWatchType() { + return watchType; + } + + public void setWatchType(String watchType) { + this.watchType = watchType; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt deleted file mode 100644 index 1360f4f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/MapDeviceListModel.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.casic.qd.smartwell.model - -class MapDeviceListModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var communication: String? = null - var concenCode: String? = null - var concenId: String? = null - var dayCount: String? = null - var deptName: String? = null - var deptid: String? = null - var devcode: String? = null - var deviceName: String? = null - var deviceType: String? = null - var deviceTypeName: String? = null - var id: String? = null - var installDate: String? = null - var latitude: String? = null - var longitude: String? = null - var modelId: String? = null - var modelName: String? = null - var monthCount: String? = null - var onlineState: String? = null - var onlineStateName: String? = null - var position: String? = null - var statusName: String? = null - var totalCount: String? = null - var ts: String? = null - var uptime: String? = null - var valid: String? = null - var watchNum: String? = null - var watchType: String? = null - var wellCode: String? = null - var wellId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java new file mode 100644 index 0000000..5967b38 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.java @@ -0,0 +1,445 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderDetailModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String firstState; + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String firstStatePhotos; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private List flow; + private int editable; + private String alarmTime; + private String handleMessage; + private String alarmMessage; + private String staff; + private String handlePhotos; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public String getFirstState() { + return firstState; + } + + public void setFirstState(String firstState) { + this.firstState = firstState; + } + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getFirstStatePhotos() { + return firstStatePhotos; + } + + public void setFirstStatePhotos(String firstStatePhotos) { + this.firstStatePhotos = firstStatePhotos; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getFlow() { + return flow; + } + + public void setFlow(List flow) { + this.flow = flow; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getHandleMessage() { + return handleMessage; + } + + public void setHandleMessage(String handleMessage) { + this.handleMessage = handleMessage; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getHandlePhotos() { + return handlePhotos; + } + + public void setHandlePhotos(String handlePhotos) { + this.handlePhotos = handlePhotos; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public static class FlowBean { + private String from; + private String to; + private String time; + + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt deleted file mode 100644 index c5d2c70..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderDetailModel.kt +++ /dev/null @@ -1,58 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderDetailModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var firstState: String? = null - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var firstStatePhotos: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var flow: MutableList? = null - var editable = 0 - var alarmTime: String? = null - var handleMessage: String? = null - var alarmMessage: String? = null - var staff: String? = null - var handlePhotos: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - - class FlowBean { - var from: String? = null - var to: String? = null - var time: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java new file mode 100644 index 0000000..7574692 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.java @@ -0,0 +1,382 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderListModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private String alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public String getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(String alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt deleted file mode 100644 index 5457fde..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderListModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderListModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var success = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java new file mode 100644 index 0000000..dae7de6 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OrderStatusModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String name; + private String id; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt deleted file mode 100644 index 336ebed..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OrderStatusModel.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.casic.qd.smartwell.model - -class OrderStatusModel { - /** - * code : 200 - * data : [{"name":"待处理","id":"84","value":"0"},{"name":"待确认","id":"85","value":"1"},{"name":"处理中","id":"86","value":"2"},{"name":"已完成","id":"87","value":"3"},{"name":"已取消","id":"93","value":"4"}] - * message : 请求成功 - * success : true - */ - var code = 0 - var message: String? = null - var success = false - var data: List? = null - - class DataBean { - /** - * name : 待处理 - * id : 84 - * value : 0 - */ - var name: String? = null - var id: String? = null - var value: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java new file mode 100644 index 0000000..c97130e --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.java @@ -0,0 +1,130 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class OwnerShipModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List list; + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + private boolean checked; + private String code; + private String id; + private String name; + private boolean open; + private String pcodes; + private String pid; + private String value; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isOpen() { + return open; + } + + public void setOpen(boolean open) { + this.open = open; + } + + public String getPcodes() { + return pcodes; + } + + public void setPcodes(String pcodes) { + this.pcodes = pcodes; + } + + public String getPid() { + return pid; + } + + public void setPid(String pid) { + this.pid = pid; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt deleted file mode 100644 index 7ced62c..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/OwnerShipModel.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.casic.qd.smartwell.model - -class OwnerShipModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var list: List? = null - - class ListBean { - var isChecked = false - var code: String? = null - var id: String? = null - var name: String? = null - var isOpen = false - var pcodes: String? = null - var pid: String? = null - var value: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java new file mode 100644 index 0000000..8fc2cd3 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.java @@ -0,0 +1,83 @@ +package com.casic.qd.smartwell.model; + +/** + * PublicKey 登录校验Key + */ +public class PublicKeyModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private boolean appKaptcha; + private boolean kaptcha; + private String publicKey; + private String sid; + + public boolean isAppKaptcha() { + return appKaptcha; + } + + public void setAppKaptcha(boolean appKaptcha) { + this.appKaptcha = appKaptcha; + } + + public boolean isKaptcha() { + return kaptcha; + } + + public void setKaptcha(boolean kaptcha) { + this.kaptcha = kaptcha; + } + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt deleted file mode 100644 index 251b59e..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/PublicKeyModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -/** - * PublicKey 登录校验Key - */ -class PublicKeyModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var isAppKaptcha = false - var isKaptcha = false - var publicKey: String? = null - var sid: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java new file mode 100644 index 0000000..404c223 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.java @@ -0,0 +1,391 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class SearchResultModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private List rows; + private int total; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public int getTotal() { + return total; + } + + public void setTotal(int total) { + this.total = total; + } + + public static class RowsBean { + private int alarmContent; + private String deptName; + private String jobStatus; + private String handleJobPerson; + private String alarmContentName; + private String shouldGetTime; + private String wellCode; + private String deptid; + private String alarmTypeName; + private String jobCode; + private String jobBelongTo; + private String jobFlag; + private String confirmJobPerson; + private String confirmJobTime; + private String jobStatusName; + private String alarmValue; + private String alarmId; + private int alarmLevel; + private String handleJobTime; + private String tel; + private String id; + private String wellId; + private String jobType; + private int editable; + private String alarmTime; + private String alarmMessage; + private String staff; + private String getJobTime; + private String getJobPerson; + private String shouldHandleTime; + private String jobId; + private String alarmType; + private String alarmStatus; + private String devcode; + private String createTime; + private String position; + + public int getAlarmContent() { + return alarmContent; + } + + public void setAlarmContent(int alarmContent) { + this.alarmContent = alarmContent; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getJobStatus() { + return jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public String getHandleJobPerson() { + return handleJobPerson; + } + + public void setHandleJobPerson(String handleJobPerson) { + this.handleJobPerson = handleJobPerson; + } + + public String getAlarmContentName() { + return alarmContentName; + } + + public void setAlarmContentName(String alarmContentName) { + this.alarmContentName = alarmContentName; + } + + public String getShouldGetTime() { + return shouldGetTime; + } + + public void setShouldGetTime(String shouldGetTime) { + this.shouldGetTime = shouldGetTime; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getAlarmTypeName() { + return alarmTypeName; + } + + public void setAlarmTypeName(String alarmTypeName) { + this.alarmTypeName = alarmTypeName; + } + + public String getJobCode() { + return jobCode; + } + + public void setJobCode(String jobCode) { + this.jobCode = jobCode; + } + + public String getJobBelongTo() { + return jobBelongTo; + } + + public void setJobBelongTo(String jobBelongTo) { + this.jobBelongTo = jobBelongTo; + } + + public String getJobFlag() { + return jobFlag; + } + + public void setJobFlag(String jobFlag) { + this.jobFlag = jobFlag; + } + + public String getConfirmJobPerson() { + return confirmJobPerson; + } + + public void setConfirmJobPerson(String confirmJobPerson) { + this.confirmJobPerson = confirmJobPerson; + } + + public String getConfirmJobTime() { + return confirmJobTime; + } + + public void setConfirmJobTime(String confirmJobTime) { + this.confirmJobTime = confirmJobTime; + } + + public String getJobStatusName() { + return jobStatusName; + } + + public void setJobStatusName(String jobStatusName) { + this.jobStatusName = jobStatusName; + } + + public String getAlarmValue() { + return alarmValue; + } + + public void setAlarmValue(String alarmValue) { + this.alarmValue = alarmValue; + } + + public String getAlarmId() { + return alarmId; + } + + public void setAlarmId(String alarmId) { + this.alarmId = alarmId; + } + + public int getAlarmLevel() { + return alarmLevel; + } + + public void setAlarmLevel(int alarmLevel) { + this.alarmLevel = alarmLevel; + } + + public String getHandleJobTime() { + return handleJobTime; + } + + public void setHandleJobTime(String handleJobTime) { + this.handleJobTime = handleJobTime; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getWellId() { + return wellId; + } + + public void setWellId(String wellId) { + this.wellId = wellId; + } + + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public int getEditable() { + return editable; + } + + public void setEditable(int editable) { + this.editable = editable; + } + + public String getAlarmTime() { + return alarmTime; + } + + public void setAlarmTime(String alarmTime) { + this.alarmTime = alarmTime; + } + + public String getAlarmMessage() { + return alarmMessage; + } + + public void setAlarmMessage(String alarmMessage) { + this.alarmMessage = alarmMessage; + } + + public String getStaff() { + return staff; + } + + public void setStaff(String staff) { + this.staff = staff; + } + + public String getGetJobTime() { + return getJobTime; + } + + public void setGetJobTime(String getJobTime) { + this.getJobTime = getJobTime; + } + + public String getGetJobPerson() { + return getJobPerson; + } + + public void setGetJobPerson(String getJobPerson) { + this.getJobPerson = getJobPerson; + } + + public String getShouldHandleTime() { + return shouldHandleTime; + } + + public void setShouldHandleTime(String shouldHandleTime) { + this.shouldHandleTime = shouldHandleTime; + } + + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public String getAlarmType() { + return alarmType; + } + + public void setAlarmType(String alarmType) { + this.alarmType = alarmType; + } + + public String getAlarmStatus() { + return alarmStatus; + } + + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + public String getDevcode() { + return devcode; + } + + public void setDevcode(String devcode) { + this.devcode = devcode; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt deleted file mode 100644 index b9b8ac9..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SearchResultModel.kt +++ /dev/null @@ -1,52 +0,0 @@ -package com.casic.qd.smartwell.model - -class SearchResultModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var rows: MutableList? = null - var total = 0 - - class RowsBean { - var alarmContent = 0 - var deptName: String? = null - var jobStatus: String? = null - var handleJobPerson: String? = null - var alarmContentName: String? = null - var shouldGetTime: String? = null - var wellCode: String? = null - var deptid: String? = null - var alarmTypeName: String? = null - var jobCode: String? = null - var jobBelongTo: String? = null - var jobFlag: String? = null - var confirmJobPerson: String? = null - var confirmJobTime: String? = null - var jobStatusName: String? = null - var alarmValue: String? = null - var alarmId: String? = null - var alarmLevel: String? = null - var handleJobTime: String? = null - var tel: String? = null - var id: String? = null - var wellId: String? = null - var jobType: String? = null - var editable = 0 - var alarmTime: String? = null - var alarmMessage: String? = null - var staff: String? = null - var getJobTime: String? = null - var getJobPerson: String? = null - var shouldHandleTime: String? = null - var jobId: String? = null - var alarmType: String? = null - var alarmStatus: String? = null - var devcode: String? = null - var createTime: String? = null - var position: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt deleted file mode 100644 index 3f2b287..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/SubordinateModel.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.casic.qd.smartwell.model - -class SubordinateModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var deptId: String? = null - var id: String? = null - var name: String? = null - var phone: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java new file mode 100644 index 0000000..e4137ae --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class TotalDataModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String total; + private String dayCount; + private String uptime; + + public String getTotal() { + return total; + } + + public void setTotal(String total) { + this.total = total; + } + + public String getDayCount() { + return dayCount; + } + + public void setDayCount(String dayCount) { + this.dayCount = dayCount; + } + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt deleted file mode 100644 index 30bf829..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/TotalDataModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class TotalDataModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var total: String? = null - var deviceState: String? = null - var uptime: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java new file mode 100644 index 0000000..822bc40 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.java @@ -0,0 +1,226 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class UserDetailModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String account; + private String attr1; + private String avatar; + private String bizData; + private List dataScope; + private String deptId; + private String deptName; + private List devices; + private String id; + private String ipAddr; + private String name; + private String phone; + private List roleList; + private List roleNames; + private List roleTips; + private String scopeType; + private String sysData; + private String targetId; + private String targetName; + private String tenantId; + + public String getAccount() { + return account; + } + + public void setAccount(String account) { + this.account = account; + } + + public String getAttr1() { + return attr1; + } + + public void setAttr1(String attr1) { + this.attr1 = attr1; + } + + public String getAvatar() { + return avatar; + } + + public void setAvatar(String avatar) { + this.avatar = avatar; + } + + public String getBizData() { + return bizData; + } + + public void setBizData(String bizData) { + this.bizData = bizData; + } + + public List getDataScope() { + return dataScope; + } + + public void setDataScope(List dataScope) { + this.dataScope = dataScope; + } + + public String getDeptId() { + return deptId; + } + + public void setDeptId(String deptId) { + this.deptId = deptId; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public List getDevices() { + return devices; + } + + public void setDevices(List devices) { + this.devices = devices; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIpAddr() { + return ipAddr; + } + + public void setIpAddr(String ipAddr) { + this.ipAddr = ipAddr; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public List getRoleList() { + return roleList; + } + + public void setRoleList(List roleList) { + this.roleList = roleList; + } + + public List getRoleNames() { + return roleNames; + } + + public void setRoleNames(List roleNames) { + this.roleNames = roleNames; + } + + public List getRoleTips() { + return roleTips; + } + + public void setRoleTips(List roleTips) { + this.roleTips = roleTips; + } + + public String getScopeType() { + return scopeType; + } + + public void setScopeType(String scopeType) { + this.scopeType = scopeType; + } + + public String getSysData() { + return sysData; + } + + public void setSysData(String sysData) { + this.sysData = sysData; + } + + public String getTargetId() { + return targetId; + } + + public void setTargetId(String targetId) { + this.targetId = targetId; + } + + public String getTargetName() { + return targetName; + } + + public void setTargetName(String targetName) { + this.targetName = targetName; + } + + public String getTenantId() { + return tenantId; + } + + public void setTenantId(String tenantId) { + this.tenantId = tenantId; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt deleted file mode 100644 index 56c2e88..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/UserDetailModel.kt +++ /dev/null @@ -1,31 +0,0 @@ -package com.casic.qd.smartwell.model - -class UserDetailModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var account: String? = null - var attr1: String? = null - var avatar: String? = null - var bizData: String? = null - var dataScope: List? = null - var deptId: String? = null - var deptName: String? = null - var devices: List? = null - var id: String? = null - var ipAddr: String? = null - var name: String? = null - var phone: String? = null - var roleList: List? = null - var roleNames: List? = null - var roleTips: List? = null - var scopeType: String? = null - var sysData: String? = null - var targetId: String? = null - var targetName: String? = null - var tenantId: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java new file mode 100644 index 0000000..6869ebe --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.java @@ -0,0 +1,73 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class WaterSecondAreaModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String areaId; + private String areaName; + private String count; + + public String getAreaId() { + return areaId; + } + + public void setAreaId(String areaId) { + this.areaId = areaId; + } + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getCount() { + return count; + } + + public void setCount(String count) { + this.count = count; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt deleted file mode 100644 index 97fef28..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WaterSecondAreaModel.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.casic.qd.smartwell.model - -class WaterSecondAreaModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var areaId: String? = null - var areaName: String? = null - var count: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java new file mode 100644 index 0000000..a206774 --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.java @@ -0,0 +1,85 @@ +package com.casic.qd.smartwell.model; + +import java.util.List; + +public class WaterSevenDayModel { + + private int code; + private List data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String date; + private List data; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class AreaDataBean { + private String areaName; + private String count; + + public String getAreaName() { + return areaName; + } + + public void setAreaName(String areaName) { + this.areaName = areaName; + } + + public String getCount() { + return count; + } + + public void setCount(String count) { + this.count = count; + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt deleted file mode 100644 index 6cda9f2..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WaterSevenDayModel.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.casic.qd.smartwell.model - -class WaterSevenDayModel { - var code = 0 - var data: List? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var date: String? = null - var data: List? = null - - class AreaDataBean { - var areaName: String? = null - var count: String? = null - } - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.java b/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.java new file mode 100644 index 0000000..6b134ea --- /dev/null +++ b/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.java @@ -0,0 +1,314 @@ +package com.casic.qd.smartwell.model; + +public class WellDetailModel { + + private int code; + private DataBean data; + private String message; + private boolean success; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public static class DataBean { + private String area; + private String areaFullName; + private String bfzt; + private String bfztName; + private String coordinateX; + private String coordinateY; + private int deep; + private String deptName; + private String deptid; + private String deviceCount; + private String id; + private String latBaidu; + private String latGaode; + private String lngBaidu; + private String lngGaode; + private String notes; + private String photos; + private String position; + private String qu; + private String responsibleDept; + private String responsibleDeptName; + private String ts; + private String valid; + private String wellCode; + private String wellFlag1; + private String wellFlag2; + private String wellFlag3; + private String wellName; + private String wellType; + private String wellTypeName; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaFullName() { + return areaFullName; + } + + public void setAreaFullName(String areaFullName) { + this.areaFullName = areaFullName; + } + + public String getBfzt() { + return bfzt; + } + + public void setBfzt(String bfzt) { + this.bfzt = bfzt; + } + + public String getBfztName() { + return bfztName; + } + + public void setBfztName(String bfztName) { + this.bfztName = bfztName; + } + + public String getCoordinateX() { + return coordinateX; + } + + public void setCoordinateX(String coordinateX) { + this.coordinateX = coordinateX; + } + + public String getCoordinateY() { + return coordinateY; + } + + public void setCoordinateY(String coordinateY) { + this.coordinateY = coordinateY; + } + + public int getDeep() { + return deep; + } + + public void setDeep(int deep) { + this.deep = deep; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getDeptid() { + return deptid; + } + + public void setDeptid(String deptid) { + this.deptid = deptid; + } + + public String getDeviceCount() { + return deviceCount; + } + + public void setDeviceCount(String deviceCount) { + this.deviceCount = deviceCount; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getLatBaidu() { + return latBaidu; + } + + public void setLatBaidu(String latBaidu) { + this.latBaidu = latBaidu; + } + + public String getLatGaode() { + return latGaode; + } + + public void setLatGaode(String latGaode) { + this.latGaode = latGaode; + } + + public String getLngBaidu() { + return lngBaidu; + } + + public void setLngBaidu(String lngBaidu) { + this.lngBaidu = lngBaidu; + } + + public String getLngGaode() { + return lngGaode; + } + + public void setLngGaode(String lngGaode) { + this.lngGaode = lngGaode; + } + + public String getNotes() { + return notes; + } + + public void setNotes(String notes) { + this.notes = notes; + } + + public String getPhotos() { + return photos; + } + + public void setPhotos(String photos) { + this.photos = photos; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getQu() { + return qu; + } + + public void setQu(String qu) { + this.qu = qu; + } + + public String getResponsibleDept() { + return responsibleDept; + } + + public void setResponsibleDept(String responsibleDept) { + this.responsibleDept = responsibleDept; + } + + public String getResponsibleDeptName() { + return responsibleDeptName; + } + + public void setResponsibleDeptName(String responsibleDeptName) { + this.responsibleDeptName = responsibleDeptName; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getValid() { + return valid; + } + + public void setValid(String valid) { + this.valid = valid; + } + + public String getWellCode() { + return wellCode; + } + + public void setWellCode(String wellCode) { + this.wellCode = wellCode; + } + + public String getWellFlag1() { + return wellFlag1; + } + + public void setWellFlag1(String wellFlag1) { + this.wellFlag1 = wellFlag1; + } + + public String getWellFlag2() { + return wellFlag2; + } + + public void setWellFlag2(String wellFlag2) { + this.wellFlag2 = wellFlag2; + } + + public String getWellFlag3() { + return wellFlag3; + } + + public void setWellFlag3(String wellFlag3) { + this.wellFlag3 = wellFlag3; + } + + public String getWellName() { + return wellName; + } + + public void setWellName(String wellName) { + this.wellName = wellName; + } + + public String getWellType() { + return wellType; + } + + public void setWellType(String wellType) { + this.wellType = wellType; + } + + public String getWellTypeName() { + return wellTypeName; + } + + public void setWellTypeName(String wellTypeName) { + this.wellTypeName = wellTypeName; + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.kt b/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.kt deleted file mode 100644 index 10fb21f..0000000 --- a/app/src/main/java/com/casic/qd/smartwell/model/WellDetailModel.kt +++ /dev/null @@ -1,41 +0,0 @@ -package com.casic.qd.smartwell.model - -class WellDetailModel { - var code = 0 - var data: DataBean? = null - var message: String? = null - var isSuccess = false - - class DataBean { - var area: String? = null - var areaFullName: String? = null - var bfzt: String? = null - var bfztName: String? = null - var coordinateX: String? = null - var coordinateY: String? = null - var deep: String? = null - var deptName: String? = null - var deptid: String? = null - var deviceCount: String? = null - var id: String? = null - var latBaidu: String? = null - var latGaode: String? = null - var lngBaidu: String? = null - var lngGaode: String? = null - var notes: String? = null - var photos: String? = null - var position: String? = null - var qu: String? = null - var responsibleDept: String? = null - var responsibleDeptName: String? = null - var ts: String? = null - var valid: String? = null - var wellCode: String? = null - var wellFlag1: String? = null - var wellFlag2: String? = null - var wellFlag3: String? = null - var wellName: String? = null - var wellType: String? = null - var wellTypeName: String? = null - } -} \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/utils/ChartViewHelper.kt b/app/src/main/java/com/casic/qd/smartwell/utils/ChartViewHelper.kt index b8fb81e..07acdc8 100644 --- a/app/src/main/java/com/casic/qd/smartwell/utils/ChartViewHelper.kt +++ b/app/src/main/java/com/casic/qd/smartwell/utils/ChartViewHelper.kt @@ -1,8 +1,6 @@ package com.casic.qd.smartwell.utils import com.casic.qd.smartwell.R -import com.casic.qd.smartwell.base.BaseApplication -import com.casic.qd.smartwell.extensions.init import com.casic.qd.smartwell.model.LineChartEntryModel import com.casic.qd.smartwell.widgets.BarChartMarkerView import com.casic.qd.smartwell.widgets.LineChartMarkerView @@ -15,6 +13,7 @@ import com.github.mikephil.charting.interfaces.datasets.IBarDataSet import com.github.mikephil.charting.interfaces.datasets.ILineDataSet import com.pengxh.kt.lite.extensions.convertColor +import com.pengxh.kt.lite.extensions.init import java.text.DecimalFormat @@ -26,30 +25,72 @@ */ object ChartViewHelper { /** - * 折线图 + * 单条折线图 * */ - fun setLineChartData( - chart: LineChart, - xAxisDate: MutableList, - entryModels: List + fun setSingleLineChartData( + chart: LineChart, xAxisDate: MutableList, entryModel: LineChartEntryModel ) { //每次加载数据都初始化折线图 - chart.init() - //[{"entryList":[],"lineColor":-13118290}] - if (entryModels[0].entryList?.isEmpty() == true) { - chart.clearValues() + chart.init(chart.context) + if (entryModel.entryList.isEmpty()) { return } //绑定数据 val lineDataSets: MutableList = ArrayList() - val entrySize = entryModels[0].entryList!!.size + //设置数据 + val dataSet = LineDataSet(entryModel.entryList, entryModel.entryList[0].data.toString()) + dataSet.setDrawCircles(true) + //线条颜色 + dataSet.color = entryModel.lineColor + //圆点颜色 + dataSet.setCircleColor(entryModel.lineColor) + dataSet.setDrawFilled(true) + dataSet.fillColor = entryModel.lineColor + dataSet.mode = LineDataSet.Mode.CUBIC_BEZIER + lineDataSets.add(dataSet) + + val lineData = LineData(lineDataSets) + lineData.setDrawValues(false) + //添加自定义Marker + val markerView = LineChartMarkerView(chart.context) + markerView.chartView = chart + markerView.setXAxisDate(xAxisDate) + chart.marker = markerView + //设置X轴坐标 + val xAxis = chart.xAxis + if (xAxisDate.size == 1) { + xAxis.valueFormatter = object : ValueFormatter() { + override fun getFormattedValue(value: Float): String { + return xAxisDate[0] + } + } + } else { + xAxis.valueFormatter = object : ValueFormatter() { + override fun getFormattedValue(value: Float): String { + return xAxisDate[value.toInt()] + } + } + } + chart.data = lineData + chart.invalidate() + } + + /** + * 多条折线图 + * */ + fun setLineChartData( + chart: LineChart, xAxisDate: MutableList, entryModels: List + ) { + //每次加载数据都初始化折线图 + chart.init(chart.context) + if (entryModels[0].entryList.isEmpty()) { + return + } + //绑定数据 + val lineDataSets: MutableList = ArrayList() entryModels.forEachIndexed { index, it -> //设置数据 - val dataSet = if (entrySize == 1) { - LineDataSet(it.entryList, it.entryList?.get(0)?.data.toString()) - } else { - LineDataSet(it.entryList, it.entryList?.get(index)?.data.toString()) - } + val dataSet = LineDataSet(it.entryList, it.entryList?.get(index)?.data.toString()) dataSet.setDrawCircles(true) //线条颜色 dataSet.color = it.lineColor @@ -63,23 +104,15 @@ val lineData = LineData(lineDataSets) lineData.setDrawValues(false) //添加自定义Marker - val markerView = LineChartMarkerView(BaseApplication.obtainInstance()) + val markerView = LineChartMarkerView(chart.context) markerView.chartView = chart markerView.setXAxisDate(xAxisDate) chart.marker = markerView //设置X轴坐标 val xAxis = chart.xAxis - xAxis.valueFormatter = if (entrySize == 1) { - object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return xAxisDate[0] - } - } - } else { - object : ValueFormatter() { - override fun getFormattedValue(value: Float): String { - return xAxisDate[value.toInt()] - } + xAxis.valueFormatter = object : ValueFormatter() { + override fun getFormattedValue(value: Float): String { + return xAxisDate[value.toInt()] } } chart.data = lineData @@ -96,11 +129,11 @@ dateType: String ) { //每次加载数据都初始化饼图 - chart.init(xAxisLabel) + chart.init(chart.context, xAxisLabel) val barDataSets: MutableList = ArrayList() //绑定数据 val dataSet = BarDataSet(entries, "") - dataSet.color = R.color.color_1.convertColor(BaseApplication.obtainInstance()) + dataSet.color = R.color.color_1.convertColor(chart.context) dataSet.valueFormatter = object : ValueFormatter() { override fun getFormattedValue(value: Float): String { return DecimalFormat("##0").format(value.toDouble()) @@ -110,7 +143,7 @@ val barData = BarData(barDataSets) barData.barWidth = 0.5f //添加自定义Marker - val markerView = BarChartMarkerView(BaseApplication.obtainInstance()) + val markerView = BarChartMarkerView(chart.context) markerView.chartView = chart markerView.setXAxisLabel(xAxisLabel) markerView.setBarDataType(dateType) @@ -128,11 +161,11 @@ entries: List ) { //每次加载数据都初始化饼图 - chart.init(xAxisLabel) + chart.init(chart.context, xAxisLabel) val barDataSets: MutableList = ArrayList() //绑定数据 val dataSet = BarDataSet(entries, "") - dataSet.color = R.color.color_6.convertColor(BaseApplication.obtainInstance()) + dataSet.color = R.color.color_6.convertColor(chart.context) dataSet.valueFormatter = object : ValueFormatter() { override fun getFormattedValue(value: Float): String { return DecimalFormat("##0").format(value.toDouble()) @@ -142,7 +175,7 @@ val barData = BarData(barDataSets) barData.barWidth = 0.5f //添加自定义Marker - val markerView = BarChartMarkerView(BaseApplication.obtainInstance()) + val markerView = BarChartMarkerView(chart.context) markerView.chartView = chart markerView.setXAxisLabel(xAxisLabel) markerView.setBarDataType("") @@ -156,9 +189,8 @@ * */ fun setPieChartData(chart: PieChart, entries: List) { //每次加载数据都初始化饼图 - chart.init() + chart.init(chart.context) if (entries.isEmpty()) { - chart.clearValues() return } //绑定数据 @@ -168,14 +200,14 @@ //设置饼图块颜色 val colors: MutableList = ArrayList() for (i in entries.indices) { - colors.add(LocaleConstant.COLORS[i].convertColor(BaseApplication.obtainInstance())) + colors.add(LocaleConstant.COLORS[i].convertColor(chart.context)) } dataSet.colors = colors //设置标签显示在饼图块外面 dataSet.xValuePosition = PieDataSet.ValuePosition.OUTSIDE_SLICE dataSet.yValuePosition = PieDataSet.ValuePosition.OUTSIDE_SLICE dataSet.valueLineColor = - R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance()) + R.color.mainThemeColor.convertColor(chart.context) dataSet.valueLinePart1Length = 0.55f //标签指示线前半截长度 dataSet.valueLinePart2Length = 0.65f //标签指示线后半截长度 val data = PieData(dataSet) @@ -185,7 +217,7 @@ } }) data.setValueTextSize(12f) - data.setValueTextColor(R.color.mainThemeColor.convertColor(BaseApplication.obtainInstance())) //数据值颜色 + data.setValueTextColor(R.color.mainThemeColor.convertColor(chart.context)) //数据值颜色 chart.data = data chart.highlightValues(null) chart.invalidate() diff --git a/app/src/main/java/com/casic/qd/smartwell/view/DeviceDataDetailActivity.kt b/app/src/main/java/com/casic/qd/smartwell/view/DeviceDataDetailActivity.kt index 7660a79..04cdd6b 100644 --- a/app/src/main/java/com/casic/qd/smartwell/view/DeviceDataDetailActivity.kt +++ b/app/src/main/java/com/casic/qd/smartwell/view/DeviceDataDetailActivity.kt @@ -34,6 +34,19 @@ leftBackView.setOnClickListener { finish() } deviceCode = intent.getStringExtra(LocaleConstant.INTENT_PARAM)!! titleView.text = String.format("${deviceCode}历史数据") + } + + override fun initData() { + deviceViewModel = ViewModelProvider(this).get(DeviceViewModel::class.java) + //默认加载近一周的数据 + val time = System.currentTimeMillis() + val startTime = time.timestampToLastWeekTime() + val endTime = time.timestampToTime() + deviceViewModel.obtainSevenDayData(deviceCode, startTime, endTime) + deviceViewModel.obtainTotalDayData(deviceCode, startTime, endTime) + } + + override fun initEvent() { rightOptionView.setOnClickListener { DateSelectDialog.Builder() .setContext(this) @@ -60,59 +73,45 @@ .setCalendarType(Type.ALL) .build().show() } - } - override fun initData() { - deviceViewModel = ViewModelProvider(this).get(DeviceViewModel::class.java) - //默认加载近一周的数据 - val time = System.currentTimeMillis() - val startTime = time.timestampToLastWeekTime() - val endTime = time.timestampToTime() - deviceViewModel.obtainSevenDayData(deviceCode, startTime, endTime) - deviceViewModel.obtainTotalDayData(deviceCode, startTime, endTime) - } - - override fun initEvent() { deviceViewModel.dayDataModel.observe(this, { if (it.code == 200) { - val entryModels: MutableList = ArrayList() val xAxisDate: MutableList = ArrayList() - val entries: ArrayList = ArrayList() - val entryModel = LineChartEntryModel() - - entryModel.lineColor = LocaleConstant.COLORS[7].convertColor(this) - it.data?.forEachIndexed { index, dataBean -> + val dayDataEntryModel = LineChartEntryModel() + val dayDataEntries: ArrayList = ArrayList() + it.data.forEachIndexed { index, dataBean -> val split = dataBean.time.toString().split("-") xAxisDate.add("${split[1]}/${split[2]}") - entries.add(Entry(index.toFloat(), dataBean.value!!.toFloat(), "日用水量")) + dayDataEntries.add(Entry(index.toFloat(), dataBean.value!!.toFloat(), "日用水量")) } - entryModel.entryList = entries - entryModels.add(entryModel) - ChartViewHelper.setLineChartData(dayWaterLineChart, xAxisDate, entryModels) + dayDataEntryModel.lineColor = LocaleConstant.COLORS[7].convertColor(this) + dayDataEntryModel.entryList = dayDataEntries + ChartViewHelper.setSingleLineChartData( + dayWaterLineChart, xAxisDate, dayDataEntryModel + ) } }) deviceViewModel.totalDataModel.observe(this, { - val entryModels: MutableList = ArrayList() val xAxisDate: MutableList = ArrayList() - val entries: ArrayList = ArrayList() - val entryModel = LineChartEntryModel() - - entryModel.lineColor = LocaleConstant.COLORS[7].convertColor(this) + val totalDataEntryModel = LineChartEntryModel() + val totalDataEntries: ArrayList = ArrayList() it.data?.forEachIndexed { index, dataBean -> val split = dataBean.uptime.toString().split(" ")[0].split("-") xAxisDate.add("${split[1]}/${split[2]}") - entries.add(Entry(index.toFloat(), dataBean.total!!.toFloat(), "总用水量")) + totalDataEntries.add(Entry(index.toFloat(), dataBean.total!!.toFloat(), "总用水量")) } - entryModel.entryList = entries - entryModels.add(entryModel) + totalDataEntryModel.lineColor = LocaleConstant.COLORS[7].convertColor(this) + totalDataEntryModel.entryList = totalDataEntries /** * 总用水量日期和日用水量日期是反的,需要调整一致 * */ xAxisDate.reverse() - ChartViewHelper.setLineChartData(totalWaterLineChart, xAxisDate, entryModels) + ChartViewHelper.setSingleLineChartData( + totalWaterLineChart, xAxisDate, totalDataEntryModel + ) }) } } \ No newline at end of file diff --git a/app/src/main/java/com/casic/qd/smartwell/widgets/TimeLineBottomSheet.kt b/app/src/main/java/com/casic/qd/smartwell/widgets/TimeLineBottomSheet.kt index 712f214..625ad8e 100644 --- a/app/src/main/java/com/casic/qd/smartwell/widgets/TimeLineBottomSheet.kt +++ b/app/src/main/java/com/casic/qd/smartwell/widgets/TimeLineBottomSheet.kt @@ -2,17 +2,18 @@ import android.app.Dialog import android.content.Context -import android.graphics.Color -import android.graphics.drawable.ColorDrawable import android.os.Bundle -import android.view.* +import android.view.Gravity +import android.view.LayoutInflater +import android.view.View +import android.view.ViewGroup import android.widget.ImageView import android.widget.TextView import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import com.casic.qd.smartwell.R import com.casic.qd.smartwell.model.OrderDetailModel -import com.pengxh.kt.lite.extensions.obtainScreenWidth +import com.pengxh.kt.lite.extensions.resetParams class TimeLineBottomSheet private constructor(builder: Builder) : Dialog( builder.context!!, R.style.ActionSheetDialogStyle @@ -41,7 +42,7 @@ override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - configDialogLayout() + resetParams(Gravity.BOTTOM, R.style.ActionSheetDialogAnimation, 1.0) setContentView(R.layout.dialog_bottom_sheet) setCancelable(true) setCanceledOnTouchOutside(true) @@ -56,31 +57,19 @@ } } - private fun configDialogLayout() { - val window = window ?: return - window.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT)) - window.decorView.setBackgroundColor(Color.TRANSPARENT) - window.setGravity(Gravity.BOTTOM) - //设置Dialog出现的动画 - window.setWindowAnimations(R.style.ActionSheetDialogAnimation) - val params = window.attributes - params.width = ctx.obtainScreenWidth() - params.height = WindowManager.LayoutParams.WRAP_CONTENT - window.attributes = params - } - internal inner class OrderFlowAdapter : RecyclerView.Adapter() { private var layoutInflater: LayoutInflater = LayoutInflater.from(ctx) override fun onCreateViewHolder( - parent: ViewGroup, - viewType: Int + parent: ViewGroup, viewType: Int ): OrderFlowAdapter.ItemViewHolder { - val view: View = - layoutInflater.inflate(R.layout.item_order_flow_recycleview, parent, false) - return ItemViewHolder(view) + return ItemViewHolder( + layoutInflater.inflate( + R.layout.item_order_flow_recycleview, parent, false + ) + ) } override fun getItemCount(): Int = items.size