|
|
@@ -123,6 +123,7 @@ public class SCSMTCheckFragment extends BaseFragment implements View.OnClickList
|
|
|
private MyArrayAdapter<String> mAutoStringAdapter;
|
|
|
private TextView mRecalibrationTextView;
|
|
|
private String mNoticeStr;
|
|
|
+ private boolean mOrderSwitch = false;
|
|
|
|
|
|
@Override
|
|
|
protected int getLayout() {
|
|
|
@@ -133,6 +134,7 @@ public class SCSMTCheckFragment extends BaseFragment implements View.OnClickList
|
|
|
protected void initViews() {
|
|
|
((FunctionActivity) getActivity()).setSmtQueryIvVisible(true);
|
|
|
|
|
|
+ mOrderSwitch = SharedPreUtil.getInt(mActivity, Constants.FLAG.CACHE_DEFAULT_ORDER_SWITCH + CommonUtil.getUserName(mActivity), 0) == 1;
|
|
|
//->校验方式
|
|
|
tvCheckStyle = (TextView) root.findViewById(R.id.tvCurCheckContent);
|
|
|
btnChange = (Button) root.findViewById(R.id.btn_changecheck_smtcheck);
|
|
|
@@ -362,6 +364,10 @@ public class SCSMTCheckFragment extends BaseFragment implements View.OnClickList
|
|
|
JSONObject notCheckObject = notFeedArray.optJSONObject(i);
|
|
|
if (notCheckObject != null) {
|
|
|
String psl_location = JsonUtils.optStringNotNull(notCheckObject, "PSL_LOCATION");
|
|
|
+ if (i == 0 && mOrderSwitch) {
|
|
|
+ mCollectEditText.setText(psl_location);
|
|
|
+ confirmEvent(psl_location);
|
|
|
+ }
|
|
|
notice = notice + psl_location + ",";
|
|
|
}
|
|
|
}
|
|
|
@@ -812,6 +818,10 @@ public class SCSMTCheckFragment extends BaseFragment implements View.OnClickList
|
|
|
JSONObject dataObject = resultObject.optJSONObject("data");
|
|
|
String notice = "站位[" + location + "]+物料[" + collect + "]匹配成功!";
|
|
|
if (dataObject != null) {
|
|
|
+ mSmtDslBean = new SmtDslBean();
|
|
|
+ mLocationTextView.setText("");
|
|
|
+ mCollectEditText.setText("");
|
|
|
+
|
|
|
double notCheckCount = JsonUtils.optDoubleNotNull(dataObject, "NotCheckCount");
|
|
|
tvMsgNotice.setTextColor(getResources().getColor(R.color.green));
|
|
|
if (notCheckCount == 0) {
|
|
|
@@ -833,6 +843,10 @@ public class SCSMTCheckFragment extends BaseFragment implements View.OnClickList
|
|
|
JSONObject notCheckObject = notCheckArray.optJSONObject(i);
|
|
|
if (notCheckObject != null) {
|
|
|
String psl_location = JsonUtils.optStringNotNull(notCheckObject, "PSL_LOCATION");
|
|
|
+ if (i == 0 && mOrderSwitch) {
|
|
|
+ mCollectEditText.setText(psl_location);
|
|
|
+ confirmEvent(psl_location);
|
|
|
+ }
|
|
|
notice = notice + psl_location + ",";
|
|
|
noticeStr = noticeStr + psl_location + ",";
|
|
|
}
|
|
|
@@ -846,9 +860,6 @@ public class SCSMTCheckFragment extends BaseFragment implements View.OnClickList
|
|
|
tvMsgNotice.setText(spannableString);
|
|
|
}
|
|
|
|
|
|
- mSmtDslBean = new SmtDslBean();
|
|
|
- mLocationTextView.setText("");
|
|
|
- mCollectEditText.setText("");
|
|
|
mCollectEditText.postDelayed(new Runnable() {
|
|
|
@Override
|
|
|
public void run() {
|
|
|
@@ -1025,6 +1036,10 @@ public class SCSMTCheckFragment extends BaseFragment implements View.OnClickList
|
|
|
JSONObject notCheckObject = notFeedArray.optJSONObject(i);
|
|
|
if (notCheckObject != null) {
|
|
|
String psl_location = JsonUtils.optStringNotNull(notCheckObject, "PSL_LOCATION");
|
|
|
+ if (i == 0 && mOrderSwitch) {
|
|
|
+ mCollectEditText.setText(psl_location);
|
|
|
+ confirmEvent(psl_location);
|
|
|
+ }
|
|
|
notice = notice + psl_location + ",";
|
|
|
}
|
|
|
}
|