|
|
@@ -65,9 +65,11 @@ class MaterialInspectionPlanFragment :
|
|
|
|
|
|
when(it?.status) {
|
|
|
"0" -> mBinding?.cbStart?.visibility = View.VISIBLE
|
|
|
+ "1" -> {
|
|
|
+ mBinding?.cbContinue?.visibility = View.VISIBLE
|
|
|
+ }
|
|
|
"2" -> {
|
|
|
mBinding?.cbSign?.visibility = View.VISIBLE
|
|
|
- mBinding?.cbContinue?.visibility = View.VISIBLE
|
|
|
mBinding?.cbSubmit?.visibility = View.VISIBLE
|
|
|
}
|
|
|
}
|
|
|
@@ -77,7 +79,6 @@ class MaterialInspectionPlanFragment :
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- mBinding?.cbSign?.visibility = View.VISIBLE
|
|
|
mBinding?.cbSign?.setOnClickListener {
|
|
|
mPlanId?.let {
|
|
|
navigateTo(MaterialInspectionPlanFragmentDirections.actionInspectionPlanFragmentToInspectionSignatureFragment(it))
|
|
|
@@ -89,7 +90,9 @@ class MaterialInspectionPlanFragment :
|
|
|
}
|
|
|
|
|
|
mBinding?.cbContinue?.setOnClickListener {
|
|
|
-
|
|
|
+ mPlanId?.let {
|
|
|
+ navigateTo(MaterialInspectionPlanFragmentDirections.actionInspectionPlanFragmentToInspectionTableFragment(it))
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
mBinding?.cbSubmit?.setOnClickListener {
|