|
|
@ -36,6 +36,7 @@ import com.example.jingyuan_mes.entity.device.BxSubmitBeen;
|
|
|
|
import com.example.jingyuan_mes.entity.device.DeviceBeen;
|
|
|
|
import com.example.jingyuan_mes.entity.device.DeviceBeen;
|
|
|
|
import com.example.jingyuan_mes.entity.device.Dict;
|
|
|
|
import com.example.jingyuan_mes.entity.device.Dict;
|
|
|
|
import com.example.jingyuan_mes.entity.device.MaintainBeen;
|
|
|
|
import com.example.jingyuan_mes.entity.device.MaintainBeen;
|
|
|
|
|
|
|
|
import com.example.jingyuan_mes.entity.device.Outsourcing;
|
|
|
|
import com.example.jingyuan_mes.entity.store.PdaRouters;
|
|
|
|
import com.example.jingyuan_mes.entity.store.PdaRouters;
|
|
|
|
import com.example.jingyuan_mes.uitls.SharedPreferencesUtils;
|
|
|
|
import com.example.jingyuan_mes.uitls.SharedPreferencesUtils;
|
|
|
|
import com.google.gson.reflect.TypeToken;
|
|
|
|
import com.google.gson.reflect.TypeToken;
|
|
|
@ -52,6 +53,9 @@ import java.util.Date;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Optional;
|
|
|
|
import java.util.Optional;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 故障报修
|
|
|
|
|
|
|
|
*/
|
|
|
|
public class BxActivity extends BaseActivity implements DisposalFileAdapter.ItemClickCall {
|
|
|
|
public class BxActivity extends BaseActivity implements DisposalFileAdapter.ItemClickCall {
|
|
|
|
private DisposalFileAdapter adapter;
|
|
|
|
private DisposalFileAdapter adapter;
|
|
|
|
private List<CheckInstanceFiles> filesList;
|
|
|
|
private List<CheckInstanceFiles> filesList;
|
|
|
@ -73,6 +77,7 @@ public class BxActivity extends BaseActivity implements DisposalFileAdapter.Item
|
|
|
|
adapter.setList(filesList);
|
|
|
|
adapter.setList(filesList);
|
|
|
|
binding.setAdapter1(adapter);
|
|
|
|
binding.setAdapter1(adapter);
|
|
|
|
been = new BxSubmitBeen();
|
|
|
|
been = new BxSubmitBeen();
|
|
|
|
|
|
|
|
outStrRequest();
|
|
|
|
binding.setVm(been);
|
|
|
|
binding.setVm(been);
|
|
|
|
initRequest("dms_fault_type");
|
|
|
|
initRequest("dms_fault_type");
|
|
|
|
lpw = new ListPopupWindow(this);
|
|
|
|
lpw = new ListPopupWindow(this);
|
|
|
@ -98,6 +103,26 @@ public class BxActivity extends BaseActivity implements DisposalFileAdapter.Item
|
|
|
|
});
|
|
|
|
});
|
|
|
|
imgDialog = new ImgDialog(this);
|
|
|
|
imgDialog = new ImgDialog(this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询外协
|
|
|
|
|
|
|
|
private void outStrRequest() {
|
|
|
|
|
|
|
|
OkGo.<MyResult>get(url + "/dms/mobile/getOutsrcInfos").tag(this)
|
|
|
|
|
|
|
|
.headers("Authorization", SharedPreferencesUtils.getstring("access_token", ""))
|
|
|
|
|
|
|
|
.execute(new MyRecultCall(dialog, this) {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onSuccess(Response<MyResult> response) {
|
|
|
|
|
|
|
|
super.onSuccess(response);
|
|
|
|
|
|
|
|
var body = response.body();
|
|
|
|
|
|
|
|
if (body.getCode() == 200) {
|
|
|
|
|
|
|
|
List<Outsourcing> outsourcingList=gson.fromJson(body.getData().toString(),new TypeToken<List<Outsourcing>>() {
|
|
|
|
|
|
|
|
}.getType());
|
|
|
|
|
|
|
|
been.setOutsourcingList(outsourcingList);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Toast.makeText(BxActivity.this, "", Toast.LENGTH_SHORT).show();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 维修
|
|
|
|
// 维修
|
|
|
|
private void initRequest(String uri) {
|
|
|
|
private void initRequest(String uri) {
|
|
|
|