|
|
|
@ -50,6 +50,7 @@ public class CheckActivity extends BaseActivity implements AdapterClickCall, InP
|
|
|
|
private TakePictureDialog takeDialog;
|
|
|
|
private TakePictureDialog takeDialog;
|
|
|
|
private long id;
|
|
|
|
private long id;
|
|
|
|
private long inspectionId;
|
|
|
|
private long inspectionId;
|
|
|
|
|
|
|
|
private int backIndex;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
@ -76,6 +77,7 @@ public class CheckActivity extends BaseActivity implements AdapterClickCall, InP
|
|
|
|
});*/
|
|
|
|
});*/
|
|
|
|
Intent intent = getIntent();
|
|
|
|
Intent intent = getIntent();
|
|
|
|
id = intent.getLongExtra("id", 0);
|
|
|
|
id = intent.getLongExtra("id", 0);
|
|
|
|
|
|
|
|
backIndex = intent.getIntExtra("backIndex", 0);
|
|
|
|
inspectionId = intent.getLongExtra("inspectionId", 0);
|
|
|
|
inspectionId = intent.getLongExtra("inspectionId", 0);
|
|
|
|
String code = intent.getStringExtra("code");
|
|
|
|
String code = intent.getStringExtra("code");
|
|
|
|
initRequest(code);
|
|
|
|
initRequest(code);
|
|
|
|
@ -146,12 +148,17 @@ public class CheckActivity extends BaseActivity implements AdapterClickCall, InP
|
|
|
|
.params("tableId", id)
|
|
|
|
.params("tableId", id)
|
|
|
|
.params("json", gson.toJson(list))
|
|
|
|
.params("json", gson.toJson(list))
|
|
|
|
.params("inspectionId",inspectionId)
|
|
|
|
.params("inspectionId",inspectionId)
|
|
|
|
|
|
|
|
.params("user", SharedPreferencesUtils.getstring("user",""))
|
|
|
|
.addFileParams("files",files)
|
|
|
|
.addFileParams("files",files)
|
|
|
|
.execute(new MyRecultCall(dialog, this) {
|
|
|
|
.execute(new MyRecultCall(dialog, this) {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onSuccess(Response<MyResult> response) {
|
|
|
|
public void onSuccess(Response<MyResult> response) {
|
|
|
|
super.onSuccess(response);
|
|
|
|
super.onSuccess(response);
|
|
|
|
Toast.makeText(CheckActivity.this, "提交成功", Toast.LENGTH_SHORT).show();
|
|
|
|
Toast.makeText(CheckActivity.this, "提交成功", Toast.LENGTH_SHORT).show();
|
|
|
|
|
|
|
|
Intent resultIntent = new Intent();
|
|
|
|
|
|
|
|
resultIntent.putExtra("backIndex", backIndex);
|
|
|
|
|
|
|
|
files.forEach(File::delete);
|
|
|
|
|
|
|
|
setResult(RESULT_OK, resultIntent);
|
|
|
|
finish();
|
|
|
|
finish();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|