|
|
@ -3,6 +3,7 @@ package com.example.aucma_mes;
|
|
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
|
|
import androidx.databinding.DataBindingUtil;
|
|
|
|
import androidx.databinding.DataBindingUtil;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.graphics.Color;
|
|
|
|
import android.graphics.Color;
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.util.Log;
|
|
|
|
import android.util.Log;
|
|
|
@ -57,13 +58,16 @@ public class CheckActivity extends BaseActivity implements CheckAdapter.CheckIte
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
binding = DataBindingUtil.setContentView(this, R.layout.activity_check);
|
|
|
|
binding = DataBindingUtil.setContentView(this, R.layout.activity_check);
|
|
|
|
checkViewModel = new CheckViewModel();
|
|
|
|
checkViewModel = new CheckViewModel();
|
|
|
|
|
|
|
|
getSupportActionBar().hide();
|
|
|
|
binding.setVm(checkViewModel);
|
|
|
|
binding.setVm(checkViewModel);
|
|
|
|
checkAdapter = new CheckAdapter(this, this);
|
|
|
|
checkAdapter = new CheckAdapter(this, this);
|
|
|
|
submitList = new ArrayList<>();
|
|
|
|
submitList = new ArrayList<>();
|
|
|
|
checkAdapter.setList(submitList);
|
|
|
|
checkAdapter.setList(submitList);
|
|
|
|
binding.recyclerView.setAdapter(checkAdapter);
|
|
|
|
binding.recyclerView.setAdapter(checkAdapter);
|
|
|
|
String stationCode = getIntent().getStringExtra("stationCode");
|
|
|
|
Intent intent = getIntent();
|
|
|
|
|
|
|
|
String stationCode = intent.getStringExtra("stationCode");
|
|
|
|
checkViewModel.setStationCode(stationCode);
|
|
|
|
checkViewModel.setStationCode(stationCode);
|
|
|
|
|
|
|
|
binding.setTitle("质量检测 - "+ intent.getStringExtra("stationName"));
|
|
|
|
// 三联
|
|
|
|
// 三联
|
|
|
|
initOptionpb(stationCode);
|
|
|
|
initOptionpb(stationCode);
|
|
|
|
tipDialog = new RepairSubmintInfoDialog(this, this);
|
|
|
|
tipDialog = new RepairSubmintInfoDialog(this, this);
|
|
|
@ -113,7 +117,7 @@ public class CheckActivity extends BaseActivity implements CheckAdapter.CheckIte
|
|
|
|
|
|
|
|
|
|
|
|
// 测试
|
|
|
|
// 测试
|
|
|
|
public void checkSubmint1(View view) {
|
|
|
|
public void checkSubmint1(View view) {
|
|
|
|
sanInfo("B24010181060283110001");
|
|
|
|
sanInfo("B24010181060282920007");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 提交
|
|
|
|
// 提交
|
|
|
|
public void checkSubmint(View view) {
|
|
|
|
public void checkSubmint(View view) {
|
|
|
|