|
|
@@ -138,7 +138,7 @@ public class PurchaseDetailsActivity extends BaseNetActivity implements OnSmartH
|
|
|
replyNumber = 0;
|
|
|
List<Map<String, Object>> mapList = new ArrayList<>();
|
|
|
for (int i = 1; i < purchases.size(); i++) {
|
|
|
- Purchase purchase=purchases.get(i);
|
|
|
+ Purchase purchase = purchases.get(i);
|
|
|
if (!TextUtils.isEmpty(purchase.getDate()) && purchase.isCanInput()) {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("qty", StringUtil.getFirstInt(purchase.getNumber(), 0));
|
|
|
@@ -198,6 +198,7 @@ public class PurchaseDetailsActivity extends BaseNetActivity implements OnSmartH
|
|
|
if (replyNumber == 0) {
|
|
|
Toast.makeText(MyApplication.getInstance(), "回复成功", Toast.LENGTH_SHORT).show();
|
|
|
if (this != null) {
|
|
|
+ setResult(0x12);
|
|
|
this.finish();
|
|
|
}
|
|
|
}
|
|
|
@@ -208,6 +209,12 @@ public class PurchaseDetailsActivity extends BaseNetActivity implements OnSmartH
|
|
|
@Override
|
|
|
public void onFailure(int what, String message, Tags tag) throws Exception {
|
|
|
ToastUtil.showToast(ct, message);
|
|
|
+ if (0x12 == what && StringUtil.isEmpty(message) && this != null) {
|
|
|
+ setResult(0x12);
|
|
|
+ this.finish();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|