|
|
@@ -358,24 +358,24 @@ public class SCSMTCheckFragment extends BaseFragment implements View.OnClickList
|
|
|
tvMsgNotice.setTextColor(getResources().getColor(R.color.green));
|
|
|
tvMsgNotice.setText(notice);
|
|
|
} else {
|
|
|
- notice = notice + "未校验站位"
|
|
|
- + CommonUtil.doubleFormat(notCheckCount) + "条";
|
|
|
-
|
|
|
+ notice = notice + "未校验站位" + CommonUtil.doubleFormat(notCheckCount) + "条";
|
|
|
JSONArray notFeedArray = dataObject.optJSONArray("NotCheckLocation");
|
|
|
if (notFeedArray != null && notFeedArray.length() != 0) {
|
|
|
- notice = notice + "\n站位:\n";
|
|
|
+ //notice = notice + "\n站位:\n";
|
|
|
for (int i = 0; i < notFeedArray.length(); i++) {
|
|
|
JSONObject notCheckObject = notFeedArray.optJSONObject(i);
|
|
|
if (notCheckObject != null) {
|
|
|
String psl_location = JsonUtils.optStringNotNull(notCheckObject, "PSL_LOCATION");
|
|
|
+ String psl_prodcode = JsonUtils.optStringNotNull(notCheckObject, "PSL_PRODCODE");
|
|
|
if (i == 0 && mOrderSwitch) {
|
|
|
mCollectEditText.setText(psl_location);
|
|
|
confirmEvent(psl_location);
|
|
|
}
|
|
|
- notice = notice + psl_location + ",";
|
|
|
+ //notice = notice + psl_location + ",";
|
|
|
+ notice += "\n站位:" + psl_location + " 料号:" + psl_prodcode;
|
|
|
}
|
|
|
}
|
|
|
- notice = notice.substring(0, notice.length() - 1);
|
|
|
+ //notice = notice.substring(0, notice.length() - 1);
|
|
|
}
|
|
|
mNoticeStr = notice;
|
|
|
tvMsgNotice.setTextColor(getResources().getColor(R.color.green));
|
|
|
@@ -383,11 +383,9 @@ public class SCSMTCheckFragment extends BaseFragment implements View.OnClickList
|
|
|
tvMsgNotice.setText(spannableString);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
} catch (Exception e) {
|
|
|
-
|
|
|
+ e.printStackTrace();
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
},
|
|
|
new Response.ErrorListener() {
|
|
|
@@ -893,27 +891,29 @@ public class SCSMTCheckFragment extends BaseFragment implements View.OnClickList
|
|
|
tvMsgNotice.setText(notice);
|
|
|
} else {
|
|
|
String buffer = notice;
|
|
|
- notice = notice + "\n未校验站位"
|
|
|
- + CommonUtil.doubleFormat(notCheckCount) + "条";
|
|
|
+ notice = notice + "\n未校验站位" + CommonUtil.doubleFormat(notCheckCount) + "条";
|
|
|
String noticeStr = "未校验站位" + CommonUtil.doubleFormat(notCheckCount) + "条";
|
|
|
JSONArray notCheckArray = dataObject.optJSONArray("NotCheckLocation");
|
|
|
if (notCheckArray != null && notCheckArray.length() != 0) {
|
|
|
- notice = notice + "\n站位:";
|
|
|
- noticeStr = noticeStr + "\n站位:";
|
|
|
+ //notice = notice + "\n站位:";
|
|
|
+ //noticeStr = noticeStr + "\n站位:";
|
|
|
for (int i = 0; i < notCheckArray.length(); i++) {
|
|
|
JSONObject notCheckObject = notCheckArray.optJSONObject(i);
|
|
|
if (notCheckObject != null) {
|
|
|
String psl_location = JsonUtils.optStringNotNull(notCheckObject, "PSL_LOCATION");
|
|
|
+ String psl_prodcode = JsonUtils.optStringNotNull(notCheckObject, "PSL_PRODCODE");
|
|
|
if (i == 0 && mOrderSwitch) {
|
|
|
mCollectEditText.setText(psl_location);
|
|
|
confirmEvent(psl_location);
|
|
|
}
|
|
|
- notice = notice + psl_location + ",";
|
|
|
- noticeStr = noticeStr + psl_location + ",";
|
|
|
+ //notice = notice + psl_location + ",";
|
|
|
+ //noticeStr = noticeStr + psl_location + ",";
|
|
|
+ notice += "\n站位:" + psl_location + " 料号:" + psl_prodcode;
|
|
|
+ noticeStr += "\n站位:" + psl_location + " 料号:" + psl_prodcode;
|
|
|
}
|
|
|
}
|
|
|
- notice = notice.substring(0, notice.length() - 1);
|
|
|
- noticeStr = noticeStr.substring(0, noticeStr.length() - 1);
|
|
|
+ //notice = notice.substring(0, notice.length() - 1);
|
|
|
+ //noticeStr = noticeStr.substring(0, noticeStr.length() - 1);
|
|
|
}
|
|
|
mNoticeStr = noticeStr;
|
|
|
tvMsgNotice.setTextColor(getResources().getColor(R.color.green));
|
|
|
@@ -1087,24 +1087,24 @@ public class SCSMTCheckFragment extends BaseFragment implements View.OnClickList
|
|
|
tvMsgNotice.setTextColor(getResources().getColor(R.color.green));
|
|
|
tvMsgNotice.setText(notice);
|
|
|
} else {
|
|
|
- notice = notice + "未校验站位"
|
|
|
- + CommonUtil.doubleFormat(notCheckCount) + "条";
|
|
|
-
|
|
|
+ notice = notice + "未校验站位" + CommonUtil.doubleFormat(notCheckCount) + "条";
|
|
|
JSONArray notFeedArray = dataObject.optJSONArray("NotCheckLocation");
|
|
|
if (notFeedArray != null && notFeedArray.length() != 0) {
|
|
|
- notice = notice + "\n站位:";
|
|
|
+ //notice = notice + "\n站位:";
|
|
|
for (int i = 0; i < notFeedArray.length(); i++) {
|
|
|
JSONObject notCheckObject = notFeedArray.optJSONObject(i);
|
|
|
if (notCheckObject != null) {
|
|
|
String psl_location = JsonUtils.optStringNotNull(notCheckObject, "PSL_LOCATION");
|
|
|
+ String psl_prodcode = JsonUtils.optStringNotNull(notCheckObject, "PSL_PRODCODE");
|
|
|
if (i == 0 && mOrderSwitch) {
|
|
|
mCollectEditText.setText(psl_location);
|
|
|
confirmEvent(psl_location);
|
|
|
}
|
|
|
- notice = notice + psl_location + ",";
|
|
|
+ //notice = notice + psl_location + ",";
|
|
|
+ notice += "\n站位:" + psl_location + " 料号:" + psl_prodcode;
|
|
|
}
|
|
|
}
|
|
|
- notice = notice.substring(0, notice.length() - 1);
|
|
|
+ //notice = notice.substring(0, notice.length() - 1);
|
|
|
}
|
|
|
mNoticeStr = notice;
|
|
|
tvMsgNotice.setTextColor(getResources().getColor(R.color.green));
|
|
|
@@ -1112,9 +1112,8 @@ public class SCSMTCheckFragment extends BaseFragment implements View.OnClickList
|
|
|
tvMsgNotice.setText(spannableString);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
} catch (Exception e) {
|
|
|
-
|
|
|
+ e.printStackTrace();
|
|
|
}
|
|
|
|
|
|
}
|