|
|
@@ -195,19 +195,24 @@ public class ReportQueryCriteriaActivity extends BaseActivity implements View.On
|
|
|
}
|
|
|
|
|
|
private void initDatas() {
|
|
|
- if (mReportInfo != null) {
|
|
|
- progressDialog.show();
|
|
|
- String url = Constants.getAppBaseUrl(this) + "mobile/qry/reportCondition.action";
|
|
|
- Map<String, Object> params = new HashMap<>();
|
|
|
- params.put("caller", mReportInfo.getCaller());
|
|
|
- params.put("title", mReportInfo.getTitle());
|
|
|
- LinkedHashMap<String, Object> headers = new LinkedHashMap<>();
|
|
|
- headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
|
- ViewUtil.httpSendRequest(this, url, params, mHandler, headers, GET_OPTION_DATA, null, null, "post");
|
|
|
+ if (!CommonUtil.isNetWorkConnected(this)) {
|
|
|
+ ToastMessage(getString(R.string.networks_out));
|
|
|
} else {
|
|
|
- ToastMessage("方案信息获取失败!");
|
|
|
+ if (mReportInfo != null) {
|
|
|
+ progressDialog.show();
|
|
|
+ String url = Constants.getAppBaseUrl(this) + "mobile/qry/reportCondition.action";
|
|
|
+ Map<String, Object> params = new HashMap<>();
|
|
|
+ params.put("caller", mReportInfo.getCaller());
|
|
|
+ params.put("title", mReportInfo.getTitle());
|
|
|
+ LinkedHashMap<String, Object> headers = new LinkedHashMap<>();
|
|
|
+ headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
|
+ ViewUtil.httpSendRequest(this, url, params, mHandler, headers, GET_OPTION_DATA, null, null, "post");
|
|
|
+ } else {
|
|
|
+ ToastMessage("方案信息获取失败!");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Override
|