|
|
|
@ -22,6 +22,7 @@ import com.example.jingyuan_mes.entity.check.CheckInstanceFiles;
|
|
|
|
|
import com.example.jingyuan_mes.entity.device.DeviceRepair;
|
|
|
|
|
import com.example.jingyuan_mes.entity.device.DeviceRepairPart;
|
|
|
|
|
import com.example.jingyuan_mes.entity.device.Dict;
|
|
|
|
|
import com.example.jingyuan_mes.entity.device.InstanceFile;
|
|
|
|
|
import com.example.jingyuan_mes.entity.device.Outsourcing;
|
|
|
|
|
import com.example.jingyuan_mes.uitls.SharedPreferencesUtils;
|
|
|
|
|
import com.google.gson.reflect.TypeToken;
|
|
|
|
@ -105,8 +106,21 @@ public class DeviceRepairInfoActivity extends BaseActivity {
|
|
|
|
|
repairPartAddDialog.dismiss();
|
|
|
|
|
deviceRepairPartAdapter.notifyDataSetChanged();
|
|
|
|
|
});
|
|
|
|
|
// 显示维修完成的图片
|
|
|
|
|
var dmsInstanceFiles1 = deviceRepair.getDmsInstanceFiles1();
|
|
|
|
|
if (dmsInstanceFiles1==null || dmsInstanceFiles1.isEmpty()){
|
|
|
|
|
overRepairLookList = new ArrayList<>();
|
|
|
|
|
}else {
|
|
|
|
|
dmsInstanceFiles1.stream().forEach(t->{
|
|
|
|
|
CheckInstanceFiles files = new CheckInstanceFiles();
|
|
|
|
|
files.setFaultFile(t.getFilePath());
|
|
|
|
|
files.setState(false);
|
|
|
|
|
overRepairLookList.add(files);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 维修完成的图片
|
|
|
|
|
overRepairLookList = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
fileAdapter2 = new DisposalFileAdapter(this, (position, type) -> {
|
|
|
|
|
CheckInstanceFiles checkInstanceFiles = overRepairLookList.get(position);
|
|
|
|
|
if (type) {
|
|
|
|
@ -126,6 +140,7 @@ public class DeviceRepairInfoActivity extends BaseActivity {
|
|
|
|
|
fileAdapter2.notifyDataSetChanged();
|
|
|
|
|
});
|
|
|
|
|
fileAdapter2.setList(overRepairLookList);
|
|
|
|
|
fileAdapter2.notifyDataSetChanged();
|
|
|
|
|
binding.setAdapter2(fileAdapter2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|