">
holder.reason.setVisibility(View.GONE);
} else {
holder.reason.setVisibility(View.VISIBLE);
holder.reason.setText("原因:" + deny_inf);
}
}
holder.item_fast.setText(datas.get(position).getString("fast_num") + "个");
holder.item_slow.setText(datas.get(position).getString("slow_num") + "个");
holder.item_zhan_address.setText(datas.get(position).getString("zhan_address"));
// Log.e("pic===",datas.get(position).getString("pic"));
holder.item_picnum.setText(datas.get(position).getString("pic_counts"));
if (!datas.get(position).getString("pic").equals("")) {
JSONArray jsonArray = new JSONArray(datas.get(position).getString("pic"));
List<Pic> listPic = JsonUtils.parseToObjectList(datas.get(position).getString("pic"), Pic.class);
// Log.e("pic.size===", listPic.size() + "");
if (listPic.size() > 0) {
Picasso.with(MainApplication.context)
.load(MainApplication.url + "/zhannew/uploadfile/" + listPic.get(0).getUrl())
.into(holder.item_pic);
Picasso.with(MainApplication.context).load(MainApplication.url + "/zhannew/uploadfile/" + listPic.get(0).getUrl()).into(holder.item_pic);
}
}
@ -387,33 +384,27 @@ public class PrivateZhuangListAdapter extends BaseAdapter {
}
private class ViewHolder {
TextView item_zhan_name, item_status, item_fast, item_slow, item_zhan_address, item_control, item_picnum, item_edit;
TextView item_zhan_name, item_status, item_fast, item_slow, item_zhan_address, item_control, item_picnum, item_edit, reason;
ImageView item_pic;
}
private void changeStatus(String status, String zhan_id) {
String url = MainApplication.url + "/zhannew/basic/web/index.php/applist/setstatus?id=" + zhan_id + "&status=" + status + "&user_id=" + MainApplication.userId;
// Log.e("changeStatus==",url);
OkHttpUtils.get()
.url(url)
.build()
.execute(new StringCallback() {
@Override
public void onError(Call call, Exception e) {
}
OkHttpUtils.get().url(url).build().execute(new StringCallback() {
@Override
public void onError(Call call, Exception e) {
e.printStackTrace();
}
@Override
public void onResponse(String response) {
// Log.e(TAG, "onResponse: "+response );
String code = JsonUtils.getKeyResult(response, "code");
// Log.e("code===", code);
if (code.equals("200")) {
getListData();
notifyDataSetChanged();
}
}
});
@Override
public void onResponse(String response) {
String code = JsonUtils.getKeyResult(response, "code");
if (code.equals("200")) {
getListData();
notifyDataSetChanged();
}
}
});
}
@ -427,44 +418,37 @@ public class PrivateZhuangListAdapter extends BaseAdapter {
} catch (Exception e) {
e.printStackTrace();
}
OkHttpUtils.get()
.url(url)
.build()
.execute(new StringCallback() {
@Override
public void onError(Call call, Exception e) {
OkHttpUtils.get().url(url).build().execute(new StringCallback() {
@Override
public void onError(Call call, Exception e) {
e.printStackTrace();
}
@Override
public void onResponse(String response) {
String code = JsonUtils.getKeyResult(response, "code");
if (code.equals("200")) {
String list = JsonUtils.getKeyResult(response, "list");
ArrayList<JSONObject> datas = new ArrayList<JSONObject>();
JSONArray jsonArray = null;
try {
jsonArray = new JSONArray(list);
} catch (JSONException e) {
e.printStackTrace();
}
datas.clear();
for (int j = 0; j < jsonArray.length(); j++) {
JSONObject jsonObject4 = (JSONObject) jsonArray.opt(j);
datas.add(jsonObject4);
}
@Override
public void onResponse(String response) {
// Log.e("response===",response);
String code = JsonUtils.getKeyResult(response, "code");
if (code.equals("200")) {
String list = JsonUtils.getKeyResult(response, "list");
ArrayList<JSONObject> datas = new ArrayList<JSONObject>();
JSONArray jsonArray = null;
try {
jsonArray = new JSONArray(list);
} catch (JSONException e) {
e.printStackTrace();
}
datas.clear();
for (int j = 0; j < jsonArray.length(); j++) {
JSONObject jsonObject4 = (JSONObject) jsonArray
.opt(j);
datas.add(jsonObject4);
}
if (datas.size() > 0) {
// Toast.makeText(this,datas.size()+"",Toast.LENGTH_SHORT).show();
PrivateZhaungListActivity.privateZhuangListAdapter = new PrivateZhuangListAdapter(datas, MainApplication.context);
PrivateZhaungListActivity.listview.setAdapter(PrivateZhaungListActivity.privateZhuangListAdapter);
}
}
if (datas.size() > 0) {
PrivateZhaungListActivity.privateZhuangListAdapter = new PrivateZhuangListAdapter(datas, MainApplication.context);
PrivateZhaungListActivity.listview.setAdapter(PrivateZhaungListActivity.privateZhuangListAdapter);
}
});
}
}
});
}
}
|
||
| 1 | 1 |
|
| 2 | 2 |
|
| 3 |
|
|
| 4 | 3 |
|
| 5 | 4 |
|
| 6 | 5 |
|
|
||
| 23 | 22 |
|
| 24 | 23 |
|
| 25 | 24 |
|
| 26 |
|
|
| 27 | 25 |
|
| 26 |
|
|
| 28 | 27 |
|
| 29 | 28 |
|
| 30 | 29 |
|
|
||
| 39 | 38 |
|
| 40 | 39 |
|
| 41 | 40 |
|
| 42 |
|
|
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 | 41 |
|
| 42 |
|
|
| 50 | 43 |
|
| 51 | 44 |
|
| 52 |
|
|
| 53 |
|
|
| 45 |
|
|
| 46 |
|
|
| 54 | 47 |
|
| 55 | 48 |
|
| 56 |
|
|
| 57 |
|
|
| 49 |
|
|
| 58 | 50 |
|
| 59 | 51 |
|
| 60 | 52 |
|
|
||
| 62 | 54 |
|
| 63 | 55 |
|
| 64 | 56 |
|
| 57 |
|
|
| 65 | 58 |
|
| 66 |
|
|
| 67 | 59 |
|
| 68 |
|
|
| 69 |
|
|
| 70 |
|
|
| 60 |
|
|
| 71 | 61 |
|
| 72 |
|
|
| 62 |
|
|
|
||
| 273 | 273 |
|
| 274 | 274 |
|
| 275 | 275 |
|
| 276 |
|
|
| 277 | 276 |
|
| 278 |
|
|
| 277 |
|
|
| 279 | 278 |
|
| 280 | 279 |
|
| 281 | 280 |
|
|
||
| 341 | 340 |
|
| 342 | 341 |
|
| 343 | 342 |
|
| 344 |
|
|
| 343 |
|
|
| 345 | 344 |
|
| 346 | 345 |
|
| 347 | 346 |
|
|
||
| 1 | 1 |
|
| 2 | 2 |
|
| 3 |
|
|
| 3 | 4 |
|
| 4 | 5 |
|
| 5 | 6 |
|
|
||
| 8 | 9 |
|
| 9 | 10 |
|
| 10 | 11 |
|
| 11 |
|
|
| 12 |
|
|
| 12 |
|
|
| 13 |
|
|
| 13 | 14 |
|
| 14 | 15 |
|
| 15 | 16 |
|
| 16 |
|
|
| 17 | 17 |
|
| 18 | 18 |
|
| 19 | 19 |
|
| 20 |
|
|
| 21 | 20 |
|
| 21 |
|
|
| 22 |
|
|
| 22 | 23 |
|
| 23 |
|
|
| 24 |
|
|
| 24 | 25 |
|
| 25 | 26 |
|
| 26 | 27 |
|
|
||
| 28 | 29 |
|
| 29 | 30 |
|
| 30 | 31 |
|
| 31 |
|
|
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 32 |
|
|
| 36 | 33 |
|
| 37 | 34 |
|
| 38 |
|
|
| 39 |
|
|
| 40 | 35 |
|
| 41 |
|
|
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 42 | 43 |
|
| 43 | 44 |
|
| 44 | 45 |
|
| 45 | 46 |
|
| 46 | 47 |
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 | 48 |
|
| 52 | 49 |
|
| 53 | 50 |
|
| 54 |
|
|
| 51 |
|
|
| 52 |
|
|
| 55 | 53 |
|
| 56 | 54 |
|
| 57 |
|
|
| 58 |
|
|
| 55 |
|
|
| 59 | 56 |
|
| 60 | 57 |
|
| 61 | 58 |
|
|
||
| 66 | 63 |
|
| 67 | 64 |
|
| 68 | 65 |
|
| 69 |
|
|
| 70 |
|
|
| 71 | 66 |
|
| 67 |
|
|
| 72 | 68 |
|
| 73 |
|
|
| 69 |
|
|
| 70 |
|
|
| 74 | 71 |
|
| 75 | 72 |
|
| 76 | 73 |
|
| 77 | 74 |
|
| 78 | 75 |
|
| 79 |
|
|
| 80 | 76 |
|
| 81 | 77 |
|
| 82 | 78 |
|
| 83 |
|
|
| 84 |
|
|
| 79 |
|
|
| 80 |
|
|
| 85 | 81 |
|
| 86 | 82 |
|
| 87 | 83 |
|
|
||
| 96 | 92 |
|
| 97 | 93 |
|
| 98 | 94 |
|
| 95 |
|
|
| 99 | 96 |
|
| 100 | 97 |
|
| 101 | 98 |
|
| 102 | 99 |
|
| 103 | 100 |
|
| 104 |
|
|
| 105 | 101 |
|
| 106 |
|
|
| 102 |
|
|
| 107 | 103 |
|
| 108 | 104 |
|
| 109 | 105 |
|
|
||
| 111 | 107 |
|
| 112 | 108 |
|
| 113 | 109 |
|
| 110 |
|
|
| 114 | 111 |
|
| 115 | 112 |
|
| 116 | 113 |
|
| 117 | 114 |
|
| 118 | 115 |
|
| 119 |
|
|
| 120 | 116 |
|
| 121 |
|
|
| 117 |
|
|
| 122 | 118 |
|
| 123 | 119 |
|
| 124 | 120 |
|
|
||
| 127 | 123 |
|
| 128 | 124 |
|
| 129 | 125 |
|
| 130 |
|
|
| 131 |
|
|
| 132 |
|
|
| 133 |
|
|
| 134 | 126 |
|
| 135 |
|
|
| 127 |
|
|
| 128 |
|
|
| 129 |
|
|
| 130 |
|
|
| 131 |
|
|
| 136 | 132 |
|
| 137 |
|
|
| 133 |
|
|
| 138 | 134 |
|
| 139 | 135 |
|
| 140 | 136 |
|
| 141 | 137 |
|
| 142 |
|
|
| 138 |
|
|
| 143 | 139 |
|
| 144 |
|
|
| 140 |
|
|
| 145 | 141 |
|
| 146 |
|
|
| 142 |
|
|
| 147 | 143 |
|
| 148 | 144 |
|
| 149 |
|
|
| 145 |
|
|
| 150 | 146 |
|
| 151 |
|
|
| 147 |
|
|
| 148 |
|
|
| 149 |
|
|
| 150 |
|
|
| 151 |
|
|
| 152 |
|
|
| 153 |
|
|
| 154 |
|
|
| 155 |
|
|
| 156 |
|
|
| 157 |
|
|
| 158 |
|
|
| 159 |
|
|
| 160 |
|
|
| 152 | 161 |
|
| 153 | 162 |
|
| 154 | 163 |
|
| 155 |
|
|
| 156 |
|
|
| 157 |
|
|
| 158 |
|
|
| 164 |
|
|
| 165 |
|
|
| 166 |
|
|
| 159 | 167 |
|
| 160 | 168 |
|
| 161 | 169 |
|
| 162 | 170 |
|
| 163 |
|
|
| 171 |
|
|
| 172 |
|
|
| 164 | 173 |
|
| 165 | 174 |
|
| 166 | 175 |
|
| 167 |
|
|
| 168 |
|
|
| 176 |
|
|
| 177 |
|
|
| 178 |
|
|
| 169 | 179 |
|
| 170 |
|
|
| 180 |
|
|
| 181 |
|
|
| 171 | 182 |
|
| 172 | 183 |
|
| 173 | 184 |
|
| 174 | 185 |
|
| 175 |
|
|
| 186 |
|
|
| 187 |
|
|
| 176 | 188 |
|
| 177 | 189 |
|
| 178 |
|
|
| 179 | 190 |
|
| 191 |
|
|
| 192 |
|
|
| 193 |
|
|
| 194 |
|
|
| 180 | 195 |
|
| 181 | 196 |
|
| 182 |
|
|
| 183 |
|
|
| 184 |
|
|
| 185 |
|
|
| 197 |
|
|
| 186 | 198 |
|
| 187 | 199 |
|
| 188 | 200 |
|
| 189 | 201 |
|
| 190 |
|
|
| 191 |
|
|
| 192 |
|
|
| 193 |
|
|
| 202 |
|
|
| 194 | 203 |
|
| 195 | 204 |
|
| 196 | 205 |
|
| 197 | 206 |
|
| 198 | 207 |
|
| 199 |
|
|
| 200 |
|
|
| 208 |
|
|
| 209 |
|
|
| 201 | 210 |
|
| 202 | 211 |
|