完成 报修功能
@ -0,0 +1,79 @@
|
||||
package com.example.beijingnopowercon.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.databinding.DataBindingUtil;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.example.beijingnopowercon.BR;
|
||||
import com.example.beijingnopowercon.R;
|
||||
import com.example.beijingnopowercon.data.CheckInstanceFiles;
|
||||
import com.example.beijingnopowercon.databinding.ItemDisposalImgBinding;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2024/3/11
|
||||
*/
|
||||
public class DisposalFileAdapter extends RecyclerView.Adapter<DisposalFileAdapter.MyViewHolder> {
|
||||
private List<CheckInstanceFiles> list;
|
||||
private static Context context;
|
||||
private LayoutInflater inflater;
|
||||
private ItemClickCall clickCall;
|
||||
public DisposalFileAdapter(Context context, ItemClickCall clickCall) {
|
||||
this.context = context;
|
||||
this.clickCall = clickCall;
|
||||
inflater = LayoutInflater.from(context);
|
||||
}
|
||||
|
||||
public void setList(List<CheckInstanceFiles> list) {
|
||||
this.list = list;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public MyViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||
ItemDisposalImgBinding binding = DataBindingUtil.inflate(inflater, R.layout.item_disposal_img, parent, false);
|
||||
return new MyViewHolder(binding);
|
||||
}
|
||||
|
||||
// @SuppressLint("CheckResult")
|
||||
@Override
|
||||
public void onBindViewHolder(@NonNull MyViewHolder holder, int position) {
|
||||
var outstock = list.get(position);
|
||||
var binding = holder.binding;
|
||||
binding.setVariable(BR.vm,outstock);
|
||||
Log.e("TAG", "onBindViewHolder:" + outstock.isState());
|
||||
Glide.with(context)
|
||||
.load(outstock.getFaultFile())
|
||||
.into(binding.disFile);
|
||||
binding.disFile.setOnClickListener(v -> clickCall.onClick(position,true));
|
||||
binding.disposalDelect.setOnClickListener(v -> clickCall.onClick(position,false));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemCount() {
|
||||
return list==null?0:list.size();
|
||||
}
|
||||
|
||||
class MyViewHolder extends RecyclerView.ViewHolder {
|
||||
private ItemDisposalImgBinding binding;
|
||||
|
||||
public MyViewHolder(ItemDisposalImgBinding binding) {
|
||||
super(binding.getRoot());
|
||||
this.binding = binding;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public interface ItemClickCall {
|
||||
void onClick(int position,boolean type);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.example.beijingnopowercon.data;
|
||||
|
||||
import androidx.databinding.BaseObservable;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* 图片用
|
||||
* @date 2024/3/11 10:00
|
||||
*/
|
||||
public class CheckInstanceFiles extends BaseObservable {
|
||||
private String faultFile;
|
||||
private boolean state=false;
|
||||
|
||||
public boolean isState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(boolean state) {
|
||||
this.state = state;
|
||||
|
||||
}
|
||||
|
||||
public String getFaultFile() {
|
||||
return faultFile;
|
||||
}
|
||||
|
||||
public void setFaultFile(String faultFile) {
|
||||
this.faultFile = faultFile;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CheckInstanceFiles{" +
|
||||
"faultFile='" + faultFile + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,75 @@
|
||||
package com.example.beijingnopowercon.data;
|
||||
|
||||
/**
|
||||
* 故障类别维护对象 device_base_fault
|
||||
*
|
||||
* @author wangh
|
||||
* @date 2025-09-24
|
||||
*/
|
||||
public class DeviceBaseFault {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private Long objid;
|
||||
/**
|
||||
* 故障代码
|
||||
*/
|
||||
private String faultCode;
|
||||
|
||||
/**
|
||||
* 故障名称
|
||||
*/
|
||||
private String faultName;
|
||||
|
||||
/**
|
||||
* 故障说明
|
||||
*/
|
||||
private String faultInfo;
|
||||
|
||||
/**
|
||||
* 应急措施
|
||||
*/
|
||||
private String emergencyMeasures;
|
||||
|
||||
public Long getObjid() {
|
||||
return objid;
|
||||
}
|
||||
|
||||
public void setObjid(Long objid) {
|
||||
this.objid = objid;
|
||||
}
|
||||
|
||||
public String getFaultCode() {
|
||||
return faultCode;
|
||||
}
|
||||
|
||||
public void setFaultCode(String faultCode) {
|
||||
this.faultCode = faultCode;
|
||||
}
|
||||
|
||||
public String getFaultName() {
|
||||
return faultName;
|
||||
}
|
||||
|
||||
public void setFaultName(String faultName) {
|
||||
this.faultName = faultName;
|
||||
}
|
||||
|
||||
public String getFaultInfo() {
|
||||
return faultInfo;
|
||||
}
|
||||
|
||||
public void setFaultInfo(String faultInfo) {
|
||||
this.faultInfo = faultInfo;
|
||||
}
|
||||
|
||||
public String getEmergencyMeasures() {
|
||||
return emergencyMeasures;
|
||||
}
|
||||
|
||||
public void setEmergencyMeasures(String emergencyMeasures) {
|
||||
this.emergencyMeasures = emergencyMeasures;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,73 @@
|
||||
package com.example.beijingnopowercon.data;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2024/4/1 10:00
|
||||
*/
|
||||
public class DeviceBeen {
|
||||
|
||||
|
||||
private int deviceId;
|
||||
private String deviceCode;
|
||||
private String deviceName;
|
||||
private String deviceLocation;
|
||||
private Long deviceTypeId;
|
||||
private String deviceSpec;
|
||||
private int deviceStatus;
|
||||
|
||||
public int getDeviceId() {
|
||||
return deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(int deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceLocation() {
|
||||
return deviceLocation;
|
||||
}
|
||||
|
||||
public void setDeviceLocation(String deviceLocation) {
|
||||
this.deviceLocation = deviceLocation;
|
||||
}
|
||||
|
||||
public Long getDeviceTypeId() {
|
||||
return deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(Long deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getDeviceSpec() {
|
||||
return deviceSpec;
|
||||
}
|
||||
|
||||
public void setDeviceSpec(String deviceSpec) {
|
||||
this.deviceSpec = deviceSpec;
|
||||
}
|
||||
|
||||
public int getDeviceStatus() {
|
||||
return deviceStatus;
|
||||
}
|
||||
|
||||
public void setDeviceStatus(int deviceStatus) {
|
||||
this.deviceStatus = deviceStatus;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,52 @@
|
||||
package com.example.beijingnopowercon.data;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2024/3/22 10:36
|
||||
*/
|
||||
public class Dict {
|
||||
private String dictLabel;
|
||||
private String dictValue;
|
||||
private String dictType;
|
||||
private String dictCode;
|
||||
|
||||
public String getDictLabel() {
|
||||
return dictLabel;
|
||||
}
|
||||
|
||||
public void setDictLabel(String dictLabel) {
|
||||
this.dictLabel = dictLabel;
|
||||
}
|
||||
|
||||
public String getDictValue() {
|
||||
return dictValue;
|
||||
}
|
||||
|
||||
public void setDictValue(String dictValue) {
|
||||
this.dictValue = dictValue;
|
||||
}
|
||||
|
||||
public String getDictType() {
|
||||
return dictType;
|
||||
}
|
||||
|
||||
public void setDictType(String dictType) {
|
||||
this.dictType = dictType;
|
||||
}
|
||||
|
||||
public String getDictCode() {
|
||||
return dictCode;
|
||||
}
|
||||
|
||||
public void setDictCode(String dictCode) {
|
||||
this.dictCode = dictCode;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Dict{" +
|
||||
"dictLabel='" + dictLabel + '\'' +
|
||||
", dictValue='" + dictValue + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package com.example.beijingnopowercon.data;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2024/4/1 14:02
|
||||
* 外协单位
|
||||
*/
|
||||
public class Outsourcing {
|
||||
|
||||
/**
|
||||
* outsrcId : 1
|
||||
* outsrcCode : code0001
|
||||
* outsrcName : 青岛软控
|
||||
*/
|
||||
|
||||
private int outsrcId;
|
||||
private String outsrcCode;
|
||||
private String outsrcName;
|
||||
|
||||
public int getOutsrcId() {
|
||||
return outsrcId;
|
||||
}
|
||||
|
||||
public void setOutsrcId(int outsrcId) {
|
||||
this.outsrcId = outsrcId;
|
||||
}
|
||||
|
||||
public String getOutsrcCode() {
|
||||
return outsrcCode;
|
||||
}
|
||||
|
||||
public void setOutsrcCode(String outsrcCode) {
|
||||
this.outsrcCode = outsrcCode;
|
||||
}
|
||||
|
||||
public String getOutsrcName() {
|
||||
return outsrcName;
|
||||
}
|
||||
|
||||
public void setOutsrcName(String outsrcName) {
|
||||
this.outsrcName = outsrcName;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package com.example.beijingnopowercon.dialog;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.view.LayoutInflater;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.databinding.DataBindingUtil;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.example.beijingnopowercon.R;
|
||||
import com.example.beijingnopowercon.databinding.DialogImgBinding;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2024/2/22 11:07
|
||||
*/
|
||||
public class ImgDialog extends Dialog {
|
||||
private DialogImgBinding binding;
|
||||
|
||||
private Context context;
|
||||
|
||||
public void setRawReturn(String url) {
|
||||
Glide.with(context).load(url).into(binding.dialogImg);
|
||||
binding.executePendingBindings();
|
||||
show();
|
||||
|
||||
}
|
||||
|
||||
public ImgDialog(@NonNull Context context) {
|
||||
super(context,R.style.dialog);
|
||||
this.context=context;
|
||||
binding = DataBindingUtil.inflate(LayoutInflater.from(context), R.layout.dialog_img, null, false);
|
||||
setContentView(binding.getRoot());
|
||||
binding.dialogImgDis.setOnClickListener(v -> dismiss());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -1,9 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
android:width="1024dp"
|
||||
android:height="1024dp"
|
||||
android:viewportWidth="1024"
|
||||
android:viewportHeight="1024">
|
||||
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M4,6H2v14c0,1.1 0.9,2 2,2h14v-2H4V6zm16,-4H8c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2V4c0,-1.1 -0.9,-2 -2,-2zm-8,12.5v-9l6,4.5 -6,4.5z" />
|
||||
</vector>
|
||||
android:fillColor="#000000"
|
||||
android:pathData="M652,64 C691.187,64,724.524,89.044,736.879,124 L802,124
|
||||
C851.209,124,891.193,163.493,891.988,212.512 L892,214 L892,870
|
||||
C892,919.209,852.507,959.193,803.488,959.988 L802,960 L222,960
|
||||
C172.791,960,132.807,920.507,132.012,871.488 L132,870 L132,214
|
||||
C132,164.791,171.493,124.807,220.512,124.012 L222,124 L287.121,124
|
||||
C299.476,89.044,332.813,64,372,64 Z M282,184 L222,184
|
||||
C205.597,184,192.269,197.164,192.004,213.504 L192,214 L192,870
|
||||
C192,886.403,205.164,899.731,221.504,899.996 L222,900 L802,900
|
||||
C818.403,900,831.731,886.836,831.996,870.496 L832,870 L832,214
|
||||
C832,197.597,818.836,184.269,802.496,184.004 L802,184 L742,184 L742,204
|
||||
C742,225.87,724.448,243.641,702.661,243.995 L702,244 L322,244
|
||||
C299.909,244,282,226.091,282,204 L282,184 Z M512,330
|
||||
C647.31,330,757,439.69,757,575 S647.31,820,512,820 S267,710.31,267,575
|
||||
S376.69,330,512,330 Z M512,390 C409.827,390,327,472.827,327,575
|
||||
S409.827,760,512,760 S697,677.173,697,575 S614.173,390,512,390 Z M512,652
|
||||
C528.569,652,542,665.431,542,682 C542,698.569,528.569,712,512,712
|
||||
C495.431,712,482,698.569,482,682 C482,665.431,495.431,652,512,652 Z M512,430
|
||||
C528.569,430,542,443.431,542,460 L542,602 C542,618.569,528.569,632,512,632
|
||||
C495.431,632,482,618.569,482,602 L482,460 C482,443.431,495.431,430,512,430 Z
|
||||
M652,124 L372,124 C355.431,124,342,137.431,342,154 L342,184 L682,184 L682,154
|
||||
C682,137.597,668.836,124.269,652.496,124.004 L652,124 Z" />
|
||||
</vector>
|
||||
|
After Width: | Height: | Size: 262 B |
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="8dp"/>
|
||||
<stroke android:color="@color/black" android:width="1dp"/>
|
||||
<solid android:color="@color/white"/>
|
||||
</shape>
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/white"/>
|
||||
<corners android:radius="6dp"/>
|
||||
</shape>
|
||||
@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<data>
|
||||
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="400dp"
|
||||
android:background="@drawable/text_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
style="@style/text_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:text="查看图片" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:background="#e1e1e1" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/dialog_img"
|
||||
android:layout_width="380dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
|
||||
<Button
|
||||
style="@style/button_style"
|
||||
android:id="@+id/dialog_img_dis"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:text="关闭" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
@ -1,22 +1,306 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ui.slideshow.SlideshowFragment">
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_slideshow"
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="title"
|
||||
type="String" />
|
||||
|
||||
<variable
|
||||
name="adapter1"
|
||||
type="com.example.beijingnopowercon.adapter.DisposalFileAdapter" />
|
||||
|
||||
<variable
|
||||
name="vm"
|
||||
type="com.example.beijingnopowercon.data.DeviceRepartBills" />
|
||||
|
||||
<variable
|
||||
name="device"
|
||||
type="com.example.beijingnopowercon.data.DeviceInfo" />
|
||||
|
||||
<import type="android.view.View" />
|
||||
<variable
|
||||
name="faultTypes"
|
||||
type="java.util.List" />
|
||||
</data>
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:textAlignment="center"
|
||||
android:textSize="20sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/activity_bg">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".ui.slideshow.SlideshowFragment">
|
||||
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="1dp">
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="扫描设备:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/selectNameView"
|
||||
style="@style/text_san"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:layout_weight="1"
|
||||
android:drawableEnd="@mipmap/ic_scan"
|
||||
android:paddingEnd="5dp" />
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="设备名称:" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@{device.deviceName}" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="设备类型:" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@{device.typeName}" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="设备位置:" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@{device.asName}" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:background="@drawable/text_bg">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/activity_bg"
|
||||
android:text="故障类别:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/bx_fault_spinner"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:entries="@{faultTypes}"
|
||||
android:onItemSelected="@{vm.onItemSelected}"
|
||||
android:spinnerMode="dropdown"
|
||||
android:textAlignment="center" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:background="@drawable/text_bg">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/activity_bg"
|
||||
android:text="涉及操作:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/bx_des_ope"
|
||||
style="@style/text_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="45dp"
|
||||
android:drawableRight="@drawable/ic_xl"
|
||||
android:paddingRight="8dp"
|
||||
android:spinnerMode="dropdown"
|
||||
android:text="@={vm.operation}"
|
||||
android:textAlignment="center" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="65dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="top|center"
|
||||
android:text="故障情况:" />
|
||||
|
||||
<EditText
|
||||
style="@style/text_san"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@={vm.remark}" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<!-- <LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="维修类型:" />
|
||||
|
||||
<RadioGroup
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:onClick="@{()->vm.repairTypeSelect(1)}"
|
||||
android:text="内部维修" />
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:onClick="@{()->vm.repairTypeSelect(2)}"
|
||||
android:text="委外维修" />
|
||||
|
||||
</RadioGroup>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:background="@drawable/text_bg"
|
||||
android:visibility="@{vm.outsrcVis?View.VISIBLE: View.GONE}">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/activity_bg"
|
||||
android:text="外协单位:" />
|
||||
|
||||
<Spinner
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:entries="@{vm.outsourcingStringList}"
|
||||
android:onItemSelected="@{vm.setOutsrcld}"
|
||||
android:spinnerMode="dropdown"
|
||||
android:textAlignment="center" />
|
||||
</LinearLayout>-->
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left"
|
||||
android:text="故障图片:" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/white"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="90dp"
|
||||
android:layout_weight="1"
|
||||
android:adapter="@{adapter1}"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingRight="5dp"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/disposal_file_add"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@mipmap/ic_add_file" />
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/bx_submit_button"
|
||||
style="@style/button_style"
|
||||
android:layout_width="380dp"
|
||||
android:layout_height="55dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
|
||||
android:text="提交" />
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
</layout>
|
||||
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="vm"
|
||||
type="com.example.beijingnopowercon.data.CheckInstanceFiles" />
|
||||
|
||||
<import type="android.view.View" />
|
||||
</data>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@mipmap/ic_picture_err"
|
||||
android:padding="20dp"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/dis_file"
|
||||
android:paddingTop="5dp"
|
||||
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/disposal_delect"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_gravity="right"
|
||||
android:src="@mipmap/ic_cha2"
|
||||
android:visibility="@{vm.state?View.VISIBLE:View.GONE}" />
|
||||
</FrameLayout>
|
||||
</layout>
|
||||
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
||||
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 982 B |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 7.6 KiB |
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string-array name="open">
|
||||
<item>涂装</item>
|
||||
<item>清洁</item>
|
||||
<item>除锈</item>
|
||||
<item>防腐处理</item>
|
||||
<item>登高</item>
|
||||
<item>脚手架搭设与拆除</item>
|
||||
<item>泄漏点封堵</item>
|
||||
<item>安全附件检修</item>
|
||||
<item>电气维修</item>
|
||||
<item>进入受限空间</item>
|
||||
<item>起重吊装</item>
|
||||
<item>拆卸与组装</item>
|
||||
<item>管道维修</item>
|
||||
<item>机械部件更换</item>
|
||||
<item>设备调试</item>
|
||||
<item>液压与气动系统维修</item>
|
||||
<item>轴承拆装与维护</item>
|
||||
<item>密封件更换</item>
|
||||
<item>电缆敷设与接线</item>
|
||||
<item>仪器仪表校准与维修</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
||||
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<paths xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<external-path
|
||||
name="my_images"
|
||||
path="."/>
|
||||
<!-- <files-path name="my_images" path="images/"/>-->
|
||||
</paths>
|
||||