|
|
|
|
@ -1,13 +1,19 @@
|
|
|
|
|
package com.rehome.zhdcoa.utils;
|
|
|
|
|
|
|
|
|
|
import android.app.Activity;
|
|
|
|
|
import android.content.Context;
|
|
|
|
|
import android.content.pm.ApplicationInfo;
|
|
|
|
|
import android.text.TextUtils;
|
|
|
|
|
import android.util.Log;
|
|
|
|
|
import android.view.View;
|
|
|
|
|
import android.widget.AdapterView;
|
|
|
|
|
import android.widget.ListView;
|
|
|
|
|
import android.widget.Toast;
|
|
|
|
|
|
|
|
|
|
import com.rehome.zhdcoa.Api;
|
|
|
|
|
import com.rehome.zhdcoa.App;
|
|
|
|
|
import com.rehome.zhdcoa.Contans;
|
|
|
|
|
import com.rehome.zhdcoa.R;
|
|
|
|
|
import com.rehome.zhdcoa.adapter.ApplyConferenceAdapter;
|
|
|
|
|
import com.rehome.zhdcoa.adapter.ApplyDinnerListAdapter;
|
|
|
|
|
import com.rehome.zhdcoa.adapter.ApplyListAdapter;
|
|
|
|
|
@ -20,6 +26,7 @@ import com.rehome.zhdcoa.adapter.ApplyVehicleAdapter;
|
|
|
|
|
import com.rehome.zhdcoa.adapter.GetRadioListAdapter;
|
|
|
|
|
import com.rehome.zhdcoa.adapter.MyadviceAdapter;
|
|
|
|
|
import com.rehome.zhdcoa.base.BaseCallBack;
|
|
|
|
|
import com.rehome.zhdcoa.bean.AboutMeBean;
|
|
|
|
|
import com.rehome.zhdcoa.bean.ApplyListBean;
|
|
|
|
|
import com.rehome.zhdcoa.bean.ApplyListConferenceBean;
|
|
|
|
|
import com.rehome.zhdcoa.bean.ApplyListOtherTaskBean;
|
|
|
|
|
@ -32,6 +39,9 @@ import com.rehome.zhdcoa.bean.BfwwBean;
|
|
|
|
|
import com.rehome.zhdcoa.bean.GetRadioListBean;
|
|
|
|
|
import com.rehome.zhdcoa.bean.MyadviceBean;
|
|
|
|
|
import com.rehome.zhdcoa.bean.UserInfoBean;
|
|
|
|
|
import com.yolanda.nohttp.NoHttp;
|
|
|
|
|
import com.yolanda.nohttp.RequestMethod;
|
|
|
|
|
import com.yolanda.nohttp.rest.Request;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
@ -79,8 +89,10 @@ public class ApplyListUtils {
|
|
|
|
|
private GetRadioListAdapter getRadioListAdapter;
|
|
|
|
|
private MyadviceAdapter myadviceAdapter;
|
|
|
|
|
|
|
|
|
|
private Activity context;
|
|
|
|
|
|
|
|
|
|
private ApplyListUtils(Context context) {
|
|
|
|
|
|
|
|
|
|
private ApplyListUtils(Activity context) {
|
|
|
|
|
api = HttpUtils.getApi(context);
|
|
|
|
|
datas = new ArrayList<>();
|
|
|
|
|
receiveDatas = new ArrayList<>();
|
|
|
|
|
@ -93,6 +105,7 @@ public class ApplyListUtils {
|
|
|
|
|
getRadioDates = new ArrayList<>();
|
|
|
|
|
myadviceDatas = new ArrayList<>();
|
|
|
|
|
bfwwDatas= new ArrayList<>();
|
|
|
|
|
this.context=context;
|
|
|
|
|
init();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -111,14 +124,119 @@ public class ApplyListUtils {
|
|
|
|
|
String manid = userInfo.getManid();
|
|
|
|
|
String departmentnameid = userInfo.getBzbh();
|
|
|
|
|
|
|
|
|
|
if (listcode == Contans.LISTCODE.RECEIVEVISIT) {
|
|
|
|
|
String url = Contans.BASE_URL + Contans.GET_ORDER_LIST_RSA_URL;
|
|
|
|
|
Request<String> request = NoHttp.createStringRequest(url, RequestMethod.GET);
|
|
|
|
|
request.add("listcode",listcode);
|
|
|
|
|
request.add("proposerid",proposerid);
|
|
|
|
|
request.add("manid",manid);
|
|
|
|
|
|
|
|
|
|
request.add("departmentnameid",departmentnameid);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (listcode.equals(Contans.LISTCODE.RECEIVEVISIT)) {
|
|
|
|
|
//获取接待来访详情列表
|
|
|
|
|
request.add("platform","0");
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.APPLYCONFERENCE)) {
|
|
|
|
|
//获取会议室详情列表
|
|
|
|
|
request.add("platform","0");
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.ORDINARYVISIT)) {
|
|
|
|
|
//获取订餐列表
|
|
|
|
|
request.add("platform","0");
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.APPLYTRAVEL)) {
|
|
|
|
|
//获取出差申请列表
|
|
|
|
|
request.add("platform","0");
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.APPLYVEHICLE)) {
|
|
|
|
|
//获取用车申请详情列表
|
|
|
|
|
request.add("platform","0");
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.OTHERTASK)) {
|
|
|
|
|
//获取他人任务详情列表
|
|
|
|
|
request.add("platform","0");
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.APPLYORDER)) {
|
|
|
|
|
//获取送餐详情列表
|
|
|
|
|
request.add("platform","0");
|
|
|
|
|
request.add("login_userid","");
|
|
|
|
|
request.add("istj","");
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.APPLYDINNER)) {
|
|
|
|
|
//订餐申请
|
|
|
|
|
request.add("platform","0");
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.APPLYSUPPLIES)) {
|
|
|
|
|
//获取申请列表
|
|
|
|
|
url = Contans.BASE_URL + Contans.GETAPPLYLIST2_RSA_URL;
|
|
|
|
|
request = NoHttp.createStringRequest(url, RequestMethod.GET);
|
|
|
|
|
request.add("listcode",listcode);
|
|
|
|
|
request.add("proposerid",proposerid);
|
|
|
|
|
request.add("manid",manid);
|
|
|
|
|
|
|
|
|
|
request.add("times",times);
|
|
|
|
|
request.add("timee",timee);
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.APPLYFACILITIES)) {
|
|
|
|
|
//获取申请列表
|
|
|
|
|
url = Contans.BASE_URL + Contans.GETAPPLYLIST2_RSA_URL;
|
|
|
|
|
request = NoHttp.createStringRequest(url, RequestMethod.GET);
|
|
|
|
|
request.add("listcode",listcode);
|
|
|
|
|
request.add("proposerid",proposerid);
|
|
|
|
|
request.add("manid",manid);
|
|
|
|
|
|
|
|
|
|
request.add("times",times);
|
|
|
|
|
request.add("timee",timee);
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.APPLYSUGGESTION)) {
|
|
|
|
|
//建议汇总和我的建议
|
|
|
|
|
request.add("listcode",listcode);
|
|
|
|
|
request.add("proposerid",proposerid);
|
|
|
|
|
request.add("manid",manid);
|
|
|
|
|
} else {
|
|
|
|
|
//没有就是else里面
|
|
|
|
|
request.add("listcode",listcode);
|
|
|
|
|
request.add("proposerid",proposerid);
|
|
|
|
|
request.add("manid",manid);
|
|
|
|
|
request.add("times",times);
|
|
|
|
|
request.add("timee",timee);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NohttpUtils.getInstance().add(context, 0, request, new HttpListener<String>() {
|
|
|
|
|
|
|
|
|
|
api.getReceiveList(listcode, proposerid,manid, departmentnameid, "0").enqueue(new BaseCallBack<ApplyListReceiveBean>(builder.context) {
|
|
|
|
|
@Override
|
|
|
|
|
public void onSuccess(Call<ApplyListReceiveBean> call, Response<ApplyListReceiveBean> response) {
|
|
|
|
|
ApplyListReceiveBean baseResult = response.body();
|
|
|
|
|
public void onSucceed(int what, com.yolanda.nohttp.rest.Response<String> response) {
|
|
|
|
|
|
|
|
|
|
showLog("----------------");
|
|
|
|
|
String result = response.get();
|
|
|
|
|
if(listcode.equals(Contans.LISTCODE.APPLYSUPPLIES)||listcode.equals(Contans.LISTCODE.APPLYFACILITIES)){
|
|
|
|
|
if (listcode.equals(Contans.LISTCODE.APPLYSUPPLIES)) {
|
|
|
|
|
ApplyListBean baseResult = GsonUtils.GsonToBean(result,ApplyListBean.class);
|
|
|
|
|
if (baseResult != null) {
|
|
|
|
|
if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
datas.clear();
|
|
|
|
|
datas.addAll(baseResult.getRows());
|
|
|
|
|
setListAdapter(listcode);
|
|
|
|
|
} else {
|
|
|
|
|
datas.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (listcode.equals(Contans.LISTCODE.APPLYFACILITIES)) {
|
|
|
|
|
ApplyListBean baseResult = GsonUtils.GsonToBean(result,ApplyListBean.class);
|
|
|
|
|
if (baseResult != null) {
|
|
|
|
|
if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
datas.clear();
|
|
|
|
|
datas.addAll(baseResult.getRows());
|
|
|
|
|
setListAdapter(listcode);
|
|
|
|
|
} else {
|
|
|
|
|
datas.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
String jsonDecode = RSAUtils.decryptBASE64StrClient(result);
|
|
|
|
|
showLog(result);
|
|
|
|
|
showLog(jsonDecode);
|
|
|
|
|
if (TextUtils.isEmpty(jsonDecode)) {
|
|
|
|
|
showToast(UiUtlis.getString(context, R.string.data_error));
|
|
|
|
|
} else {
|
|
|
|
|
if (listcode.equals(Contans.LISTCODE.RECEIVEVISIT)) {
|
|
|
|
|
ApplyListReceiveBean baseResult = GsonUtils.GsonToBean(jsonDecode,ApplyListReceiveBean.class);
|
|
|
|
|
if (baseResult != null) {
|
|
|
|
|
baseResult.getTotal();
|
|
|
|
|
if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
receiveDatas.clear();
|
|
|
|
|
receiveDatas.addAll(baseResult.getRows());
|
|
|
|
|
@ -127,22 +245,9 @@ public class ApplyListUtils {
|
|
|
|
|
receiveDatas.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onError(Call<ApplyListReceiveBean> call, Throwable t) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
} else if (listcode == Contans.LISTCODE.APPLYCONFERENCE) {
|
|
|
|
|
|
|
|
|
|
api.getConferenceList(listcode, proposerid,manid, departmentnameid, "0").enqueue(new BaseCallBack<ApplyListConferenceBean>(builder.context) {
|
|
|
|
|
@Override
|
|
|
|
|
public void onSuccess(Call<ApplyListConferenceBean> call, Response<ApplyListConferenceBean> response) {
|
|
|
|
|
ApplyListConferenceBean baseResult = response.body();
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.APPLYCONFERENCE)) {
|
|
|
|
|
ApplyListConferenceBean baseResult = GsonUtils.GsonToBean(jsonDecode,ApplyListConferenceBean.class);
|
|
|
|
|
if (baseResult != null) {
|
|
|
|
|
baseResult.getTotal();
|
|
|
|
|
if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
conferenceDatas.clear();
|
|
|
|
|
conferenceDatas.addAll(baseResult.getRows());
|
|
|
|
|
@ -151,24 +256,9 @@ public class ApplyListUtils {
|
|
|
|
|
conferenceDatas.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onError(Call<ApplyListConferenceBean> call, Throwable t) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (listcode == Contans.LISTCODE.ORDINARYVISIT) {
|
|
|
|
|
|
|
|
|
|
api.getOrdinaryVisitList(listcode, proposerid,manid, departmentnameid, "0").enqueue(new BaseCallBack<ApplyOrdinaryVisitBean>(builder.context) {
|
|
|
|
|
@Override
|
|
|
|
|
public void onSuccess(Call<ApplyOrdinaryVisitBean> call, Response<ApplyOrdinaryVisitBean> response) {
|
|
|
|
|
|
|
|
|
|
ApplyOrdinaryVisitBean baseResult = response.body();
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.ORDINARYVISIT)) {
|
|
|
|
|
ApplyOrdinaryVisitBean baseResult = GsonUtils.GsonToBean(jsonDecode,ApplyOrdinaryVisitBean.class);
|
|
|
|
|
if (baseResult != null) {
|
|
|
|
|
baseResult.getTotal();
|
|
|
|
|
if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
ordinaryVisiDatas.clear();
|
|
|
|
|
ordinaryVisiDatas.addAll(baseResult.getRows());
|
|
|
|
|
@ -177,21 +267,9 @@ public class ApplyListUtils {
|
|
|
|
|
conferenceDatas.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onError(Call<ApplyOrdinaryVisitBean> call, Throwable t) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else if (listcode == Contans.LISTCODE.APPLYTRAVEL) {
|
|
|
|
|
|
|
|
|
|
api.getApplyTraveList(listcode, proposerid,manid, departmentnameid, "0").enqueue(new BaseCallBack<ApplyTravelListBean>(builder.context) {
|
|
|
|
|
@Override
|
|
|
|
|
public void onSuccess(Call<ApplyTravelListBean> call, Response<ApplyTravelListBean> response) {
|
|
|
|
|
ApplyTravelListBean baseResult = response.body();
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.APPLYTRAVEL)) {
|
|
|
|
|
ApplyTravelListBean baseResult = GsonUtils.GsonToBean(jsonDecode,ApplyTravelListBean.class);
|
|
|
|
|
if (baseResult != null) {
|
|
|
|
|
baseResult.getTotal();
|
|
|
|
|
if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
travelListDatas.clear();
|
|
|
|
|
travelListDatas.addAll(baseResult.getRows());
|
|
|
|
|
@ -200,24 +278,9 @@ public class ApplyListUtils {
|
|
|
|
|
travelListDatas.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onError(Call<ApplyTravelListBean> call, Throwable t) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (listcode == Contans.LISTCODE.APPLYVEHICLE) {
|
|
|
|
|
|
|
|
|
|
api.getVehicleList(listcode, proposerid,manid, departmentnameid, "0").enqueue(new BaseCallBack<ApplyListVehicleBean>(builder.context) {
|
|
|
|
|
@Override
|
|
|
|
|
public void onSuccess(Call<ApplyListVehicleBean> call, Response<ApplyListVehicleBean> response) {
|
|
|
|
|
|
|
|
|
|
ApplyListVehicleBean baseResult = response.body();
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.APPLYVEHICLE)) {
|
|
|
|
|
ApplyListVehicleBean baseResult = GsonUtils.GsonToBean(jsonDecode,ApplyListVehicleBean.class);
|
|
|
|
|
if (baseResult != null) {
|
|
|
|
|
baseResult.getTotal();
|
|
|
|
|
if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
vehicleDatas.clear();
|
|
|
|
|
vehicleDatas.addAll(baseResult.getRows());
|
|
|
|
|
@ -226,22 +289,9 @@ public class ApplyListUtils {
|
|
|
|
|
vehicleDatas.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onError(Call<ApplyListVehicleBean> call, Throwable t) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
} else if (listcode == Contans.LISTCODE.OTHERTASK) {
|
|
|
|
|
api.getOtherTaskList(listcode, proposerid,manid, departmentnameid, "0").enqueue(new BaseCallBack<ApplyListOtherTaskBean>(builder.context) {
|
|
|
|
|
@Override
|
|
|
|
|
public void onSuccess(Call<ApplyListOtherTaskBean> call, Response<ApplyListOtherTaskBean> response) {
|
|
|
|
|
ApplyListOtherTaskBean baseResult = response.body();
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.OTHERTASK)) {
|
|
|
|
|
ApplyListOtherTaskBean baseResult = GsonUtils.GsonToBean(jsonDecode,ApplyListOtherTaskBean.class);
|
|
|
|
|
if (baseResult != null) {
|
|
|
|
|
baseResult.getTotal();
|
|
|
|
|
if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
otherTaskDatas.clear();
|
|
|
|
|
otherTaskDatas.addAll(baseResult.getRows());
|
|
|
|
|
@ -250,22 +300,9 @@ public class ApplyListUtils {
|
|
|
|
|
otherTaskDatas.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onError(Call<ApplyListOtherTaskBean> call, Throwable t) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
} else if (listcode == Contans.LISTCODE.APPLYORDER) {
|
|
|
|
|
|
|
|
|
|
api.getTakeOutList2(listcode, "0", manid,"", departmentnameid,"").enqueue(new BaseCallBack<ApplyListTakeOutBean>(builder.context) {
|
|
|
|
|
@Override
|
|
|
|
|
public void onSuccess(Call<ApplyListTakeOutBean> call, Response<ApplyListTakeOutBean> response) {
|
|
|
|
|
ApplyListTakeOutBean baseResult = response.body();
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.APPLYORDER)) {
|
|
|
|
|
ApplyListTakeOutBean baseResult = GsonUtils.GsonToBean(jsonDecode,ApplyListTakeOutBean.class);
|
|
|
|
|
if (baseResult != null) {
|
|
|
|
|
baseResult.getTotal();
|
|
|
|
|
if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
takeOutDatas.clear();
|
|
|
|
|
takeOutDatas.addAll(baseResult.getRows());
|
|
|
|
|
@ -274,50 +311,9 @@ public class ApplyListUtils {
|
|
|
|
|
takeOutDatas.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onError(Call<ApplyListTakeOutBean> call, Throwable t) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (listcode == Contans.LISTCODE.APPLYDINNER) {
|
|
|
|
|
|
|
|
|
|
api.getApplyList(listcode, proposerid,manid, departmentnameid, "0").enqueue(new BaseCallBack<ApplyListBean>(builder.context) {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onSuccess(Call<ApplyListBean> call, Response<ApplyListBean> response) {
|
|
|
|
|
ApplyListBean baseResult = response.body();
|
|
|
|
|
if (baseResult != null) {
|
|
|
|
|
baseResult.getTotal();
|
|
|
|
|
if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
datas.clear();
|
|
|
|
|
datas.addAll(baseResult.getRows());
|
|
|
|
|
setListAdapter(listcode);
|
|
|
|
|
} else {
|
|
|
|
|
datas.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onError(Call<ApplyListBean> call, Throwable t) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (listcode == Contans.LISTCODE.APPLYSUPPLIES) {
|
|
|
|
|
|
|
|
|
|
api.getApplyList2(listcode, proposerid, times, timee).enqueue(new BaseCallBack<ApplyListBean>(builder.context) {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onSuccess(Call<ApplyListBean> call, Response<ApplyListBean> response) {
|
|
|
|
|
ApplyListBean baseResult = response.body();
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.APPLYDINNER)) {
|
|
|
|
|
ApplyListBean baseResult = GsonUtils.GsonToBean(jsonDecode,ApplyListBean.class);
|
|
|
|
|
if (baseResult != null) {
|
|
|
|
|
baseResult.getTotal();
|
|
|
|
|
if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
datas.clear();
|
|
|
|
|
datas.addAll(baseResult.getRows());
|
|
|
|
|
@ -326,24 +322,9 @@ public class ApplyListUtils {
|
|
|
|
|
datas.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onError(Call<ApplyListBean> call, Throwable t) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (listcode == Contans.LISTCODE.APPLYFACILITIES) {
|
|
|
|
|
|
|
|
|
|
api.getApplyList2(listcode, proposerid, times, timee).enqueue(new BaseCallBack<ApplyListBean>(builder.context) {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onSuccess(Call<ApplyListBean> call, Response<ApplyListBean> response) {
|
|
|
|
|
ApplyListBean baseResult = response.body();
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.APPLYSUPPLIES)) {
|
|
|
|
|
ApplyListBean baseResult = GsonUtils.GsonToBean(jsonDecode,ApplyListBean.class);
|
|
|
|
|
if (baseResult != null) {
|
|
|
|
|
baseResult.getTotal();
|
|
|
|
|
if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
datas.clear();
|
|
|
|
|
datas.addAll(baseResult.getRows());
|
|
|
|
|
@ -352,24 +333,9 @@ public class ApplyListUtils {
|
|
|
|
|
datas.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onError(Call<ApplyListBean> call, Throwable t) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (listcode == Contans.LISTCODE.APPLYSUGGESTION) {
|
|
|
|
|
|
|
|
|
|
api.getMyAdvice(listcode,manid, proposerid).enqueue(new BaseCallBack<MyadviceBean>(builder.context) {
|
|
|
|
|
@Override
|
|
|
|
|
public void onSuccess(Call<MyadviceBean> call, Response<MyadviceBean> response) {
|
|
|
|
|
|
|
|
|
|
MyadviceBean myadviceBean = response.body();
|
|
|
|
|
} else if (listcode.equals(Contans.LISTCODE.APPLYSUGGESTION)) {
|
|
|
|
|
MyadviceBean myadviceBean = GsonUtils.GsonToBean(jsonDecode,MyadviceBean.class);
|
|
|
|
|
if (myadviceBean != null) {
|
|
|
|
|
myadviceBean.getTotal();
|
|
|
|
|
if (!myadviceBean.getTotal().equals("0")) {
|
|
|
|
|
myadviceDatas.clear();
|
|
|
|
|
myadviceDatas.addAll(myadviceBean.getRows());
|
|
|
|
|
@ -377,28 +343,11 @@ public class ApplyListUtils {
|
|
|
|
|
} else {
|
|
|
|
|
myadviceDatas.clear();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onError(Call<MyadviceBean> call, Throwable t) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
//没有就是else里面
|
|
|
|
|
api.getApplyList(listcode, proposerid,manid, times, timee).enqueue(new BaseCallBack<ApplyListBean>(builder.context) {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onSuccess(Call<ApplyListBean> call, Response<ApplyListBean> response) {
|
|
|
|
|
ApplyListBean baseResult = response.body();
|
|
|
|
|
ApplyListBean baseResult = GsonUtils.GsonToBean(jsonDecode,ApplyListBean.class);
|
|
|
|
|
if (baseResult != null) {
|
|
|
|
|
baseResult.getTotal();
|
|
|
|
|
if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
datas.clear();
|
|
|
|
|
datas.addAll(baseResult.getRows());
|
|
|
|
|
@ -408,13 +357,330 @@ public class ApplyListUtils {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onError(Call<ApplyListBean> call, Throwable t) {
|
|
|
|
|
public void onFailed(int what, com.yolanda.nohttp.rest.Response<String> response) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if (listcode == Contans.LISTCODE.RECEIVEVISIT) {
|
|
|
|
|
//
|
|
|
|
|
// api.getReceiveList(listcode, proposerid,manid, departmentnameid, "0").enqueue(new BaseCallBack<ApplyListReceiveBean>(builder.context) {
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onSuccess(Call<ApplyListReceiveBean> call, Response<ApplyListReceiveBean> response) {
|
|
|
|
|
// ApplyListReceiveBean baseResult = response.body();
|
|
|
|
|
// if (baseResult != null) {
|
|
|
|
|
// baseResult.getTotal();
|
|
|
|
|
// if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
// receiveDatas.clear();
|
|
|
|
|
// receiveDatas.addAll(baseResult.getRows());
|
|
|
|
|
// setListAdapter(listcode);
|
|
|
|
|
// } else {
|
|
|
|
|
// receiveDatas.clear();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onError(Call<ApplyListReceiveBean> call, Throwable t) {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
//
|
|
|
|
|
// } else if (listcode == Contans.LISTCODE.APPLYCONFERENCE) {
|
|
|
|
|
//
|
|
|
|
|
// api.getConferenceList(listcode, proposerid,manid, departmentnameid, "0").enqueue(new BaseCallBack<ApplyListConferenceBean>(builder.context) {
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onSuccess(Call<ApplyListConferenceBean> call, Response<ApplyListConferenceBean> response) {
|
|
|
|
|
// ApplyListConferenceBean baseResult = response.body();
|
|
|
|
|
// if (baseResult != null) {
|
|
|
|
|
// baseResult.getTotal();
|
|
|
|
|
// if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
// conferenceDatas.clear();
|
|
|
|
|
// conferenceDatas.addAll(baseResult.getRows());
|
|
|
|
|
// setListAdapter(listcode);
|
|
|
|
|
// } else {
|
|
|
|
|
// conferenceDatas.clear();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onError(Call<ApplyListConferenceBean> call, Throwable t) {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// } else if (listcode == Contans.LISTCODE.ORDINARYVISIT) {
|
|
|
|
|
//
|
|
|
|
|
// api.getOrdinaryVisitList(listcode, proposerid,manid, departmentnameid, "0").enqueue(new BaseCallBack<ApplyOrdinaryVisitBean>(builder.context) {
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onSuccess(Call<ApplyOrdinaryVisitBean> call, Response<ApplyOrdinaryVisitBean> response) {
|
|
|
|
|
//
|
|
|
|
|
// ApplyOrdinaryVisitBean baseResult = response.body();
|
|
|
|
|
// if (baseResult != null) {
|
|
|
|
|
// baseResult.getTotal();
|
|
|
|
|
// if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
// ordinaryVisiDatas.clear();
|
|
|
|
|
// ordinaryVisiDatas.addAll(baseResult.getRows());
|
|
|
|
|
// setListAdapter(listcode);
|
|
|
|
|
// } else {
|
|
|
|
|
// conferenceDatas.clear();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onError(Call<ApplyOrdinaryVisitBean> call, Throwable t) {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// } else if (listcode == Contans.LISTCODE.APPLYTRAVEL) {
|
|
|
|
|
//
|
|
|
|
|
// api.getApplyTraveList(listcode, proposerid,manid, departmentnameid, "0").enqueue(new BaseCallBack<ApplyTravelListBean>(builder.context) {
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onSuccess(Call<ApplyTravelListBean> call, Response<ApplyTravelListBean> response) {
|
|
|
|
|
// ApplyTravelListBean baseResult = response.body();
|
|
|
|
|
// if (baseResult != null) {
|
|
|
|
|
// baseResult.getTotal();
|
|
|
|
|
// if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
// travelListDatas.clear();
|
|
|
|
|
// travelListDatas.addAll(baseResult.getRows());
|
|
|
|
|
// setListAdapter(listcode);
|
|
|
|
|
// } else {
|
|
|
|
|
// travelListDatas.clear();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onError(Call<ApplyTravelListBean> call, Throwable t) {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// } else if (listcode == Contans.LISTCODE.APPLYVEHICLE) {
|
|
|
|
|
//
|
|
|
|
|
// api.getVehicleList(listcode, proposerid,manid, departmentnameid, "0").enqueue(new BaseCallBack<ApplyListVehicleBean>(builder.context) {
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onSuccess(Call<ApplyListVehicleBean> call, Response<ApplyListVehicleBean> response) {
|
|
|
|
|
//
|
|
|
|
|
// ApplyListVehicleBean baseResult = response.body();
|
|
|
|
|
// if (baseResult != null) {
|
|
|
|
|
// baseResult.getTotal();
|
|
|
|
|
// if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
// vehicleDatas.clear();
|
|
|
|
|
// vehicleDatas.addAll(baseResult.getRows());
|
|
|
|
|
// setListAdapter(listcode);
|
|
|
|
|
// } else {
|
|
|
|
|
// vehicleDatas.clear();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onError(Call<ApplyListVehicleBean> call, Throwable t) {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
//
|
|
|
|
|
// } else if (listcode == Contans.LISTCODE.OTHERTASK) {
|
|
|
|
|
// api.getOtherTaskList(listcode, proposerid,manid, departmentnameid, "0").enqueue(new BaseCallBack<ApplyListOtherTaskBean>(builder.context) {
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onSuccess(Call<ApplyListOtherTaskBean> call, Response<ApplyListOtherTaskBean> response) {
|
|
|
|
|
// ApplyListOtherTaskBean baseResult = response.body();
|
|
|
|
|
// if (baseResult != null) {
|
|
|
|
|
// baseResult.getTotal();
|
|
|
|
|
// if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
// otherTaskDatas.clear();
|
|
|
|
|
// otherTaskDatas.addAll(baseResult.getRows());
|
|
|
|
|
// setListAdapter(listcode);
|
|
|
|
|
// } else {
|
|
|
|
|
// otherTaskDatas.clear();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onError(Call<ApplyListOtherTaskBean> call, Throwable t) {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
//
|
|
|
|
|
// } else if (listcode == Contans.LISTCODE.APPLYORDER) {
|
|
|
|
|
//
|
|
|
|
|
// api.getTakeOutList2(listcode, "0", manid,"", departmentnameid,"").enqueue(new BaseCallBack<ApplyListTakeOutBean>(builder.context) {
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onSuccess(Call<ApplyListTakeOutBean> call, Response<ApplyListTakeOutBean> response) {
|
|
|
|
|
// ApplyListTakeOutBean baseResult = response.body();
|
|
|
|
|
// if (baseResult != null) {
|
|
|
|
|
// baseResult.getTotal();
|
|
|
|
|
// if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
// takeOutDatas.clear();
|
|
|
|
|
// takeOutDatas.addAll(baseResult.getRows());
|
|
|
|
|
// setListAdapter(listcode);
|
|
|
|
|
// } else {
|
|
|
|
|
// takeOutDatas.clear();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onError(Call<ApplyListTakeOutBean> call, Throwable t) {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// } else if (listcode == Contans.LISTCODE.APPLYDINNER) {
|
|
|
|
|
//
|
|
|
|
|
// api.getApplyList(listcode, proposerid,manid, departmentnameid, "0").enqueue(new BaseCallBack<ApplyListBean>(builder.context) {
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onSuccess(Call<ApplyListBean> call, Response<ApplyListBean> response) {
|
|
|
|
|
// ApplyListBean baseResult = response.body();
|
|
|
|
|
// if (baseResult != null) {
|
|
|
|
|
// baseResult.getTotal();
|
|
|
|
|
// if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
// datas.clear();
|
|
|
|
|
// datas.addAll(baseResult.getRows());
|
|
|
|
|
// setListAdapter(listcode);
|
|
|
|
|
// } else {
|
|
|
|
|
// datas.clear();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onError(Call<ApplyListBean> call, Throwable t) {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// } else if (listcode == Contans.LISTCODE.APPLYSUPPLIES) {
|
|
|
|
|
//
|
|
|
|
|
// api.getApplyList2(listcode, proposerid, times, timee).enqueue(new BaseCallBack<ApplyListBean>(builder.context) {
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onSuccess(Call<ApplyListBean> call, Response<ApplyListBean> response) {
|
|
|
|
|
// ApplyListBean baseResult = response.body();
|
|
|
|
|
// if (baseResult != null) {
|
|
|
|
|
// baseResult.getTotal();
|
|
|
|
|
// if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
// datas.clear();
|
|
|
|
|
// datas.addAll(baseResult.getRows());
|
|
|
|
|
// setListAdapter(listcode);
|
|
|
|
|
// } else {
|
|
|
|
|
// datas.clear();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onError(Call<ApplyListBean> call, Throwable t) {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// } else if (listcode == Contans.LISTCODE.APPLYSUGGESTION) {
|
|
|
|
|
//
|
|
|
|
|
//// api.getMyAdvice(listcode,manid, proposerid).enqueue(new BaseCallBack<MyadviceBean>(builder.context) {
|
|
|
|
|
//// @Override
|
|
|
|
|
//// public void onSuccess(Call<MyadviceBean> call, Response<MyadviceBean> response) {
|
|
|
|
|
////
|
|
|
|
|
//// MyadviceBean myadviceBean = response.body();
|
|
|
|
|
//// if (myadviceBean != null) {
|
|
|
|
|
//// myadviceBean.getTotal();
|
|
|
|
|
//// if (!myadviceBean.getTotal().equals("0")) {
|
|
|
|
|
//// myadviceDatas.clear();
|
|
|
|
|
//// myadviceDatas.addAll(myadviceBean.getRows());
|
|
|
|
|
//// setListAdapter(listcode);
|
|
|
|
|
//// } else {
|
|
|
|
|
//// myadviceDatas.clear();
|
|
|
|
|
//// }
|
|
|
|
|
////
|
|
|
|
|
//// }
|
|
|
|
|
////
|
|
|
|
|
////
|
|
|
|
|
//// }
|
|
|
|
|
////
|
|
|
|
|
//// @Override
|
|
|
|
|
//// public void onError(Call<MyadviceBean> call, Throwable t) {
|
|
|
|
|
////
|
|
|
|
|
//// }
|
|
|
|
|
//// });
|
|
|
|
|
//
|
|
|
|
|
// api.getMyAdviceRsa(listcode,manid, proposerid).enqueue(new BaseCallBack<String>(builder.context) {
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onSuccess(Call<String> call, Response<String> response) {
|
|
|
|
|
//
|
|
|
|
|
// String result = response.body();
|
|
|
|
|
// showLog("-----getMyAdviceRsa----");
|
|
|
|
|
// showLog(result);
|
|
|
|
|
//
|
|
|
|
|
// String jsonDecode = RSAUtils.decryptBASE64StrClient(result);
|
|
|
|
|
// showLog(jsonDecode);
|
|
|
|
|
// if (TextUtils.isEmpty(jsonDecode)) {
|
|
|
|
|
// showToast(UiUtlis.getString(context, R.string.data_error));
|
|
|
|
|
// } else {
|
|
|
|
|
// showToast(jsonDecode);
|
|
|
|
|
// MyadviceBean myadviceBean = GsonUtils.GsonToBean(jsonDecode,MyadviceBean.class);
|
|
|
|
|
// if (myadviceBean != null) {
|
|
|
|
|
// myadviceBean.getTotal();
|
|
|
|
|
// if (!myadviceBean.getTotal().equals("0")) {
|
|
|
|
|
// myadviceDatas.clear();
|
|
|
|
|
// myadviceDatas.addAll(myadviceBean.getRows());
|
|
|
|
|
// setListAdapter(listcode);
|
|
|
|
|
// } else {
|
|
|
|
|
// myadviceDatas.clear();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onError(Call<String> call, Throwable t) {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// } else {
|
|
|
|
|
// //没有就是else里面
|
|
|
|
|
// api.getApplyList(listcode, proposerid,manid, times, timee).enqueue(new BaseCallBack<ApplyListBean>(builder.context) {
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onSuccess(Call<ApplyListBean> call, Response<ApplyListBean> response) {
|
|
|
|
|
// ApplyListBean baseResult = response.body();
|
|
|
|
|
// if (baseResult != null) {
|
|
|
|
|
// baseResult.getTotal();
|
|
|
|
|
// if (!baseResult.getTotal().equals("0")) {
|
|
|
|
|
// datas.clear();
|
|
|
|
|
// datas.addAll(baseResult.getRows());
|
|
|
|
|
// setListAdapter(listcode);
|
|
|
|
|
// } else {
|
|
|
|
|
// datas.clear();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onError(Call<ApplyListBean> call, Throwable t) {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@ -659,7 +925,7 @@ public class ApplyListUtils {
|
|
|
|
|
return builder;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ApplyListUtils builder(Context context) {
|
|
|
|
|
public ApplyListUtils builder(Activity context) {
|
|
|
|
|
this.context = context;
|
|
|
|
|
valida();
|
|
|
|
|
return new ApplyListUtils(context);
|
|
|
|
|
@ -691,4 +957,34 @@ public class ApplyListUtils {
|
|
|
|
|
public interface OnItemClickListener {
|
|
|
|
|
void onItemClick(Object object);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void showLog(String logText) {
|
|
|
|
|
if (isApkInDebug(context)) {
|
|
|
|
|
if(TextUtils.isEmpty(logText)){
|
|
|
|
|
Log.i("app", "logText is null");
|
|
|
|
|
}else{
|
|
|
|
|
Log.i("app", logText);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 判断当前应用是否是debug状态
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
public static boolean isApkInDebug(Context context) {
|
|
|
|
|
try {
|
|
|
|
|
ApplicationInfo info = context.getApplicationInfo();
|
|
|
|
|
return (info.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public void showToast(String msg) {
|
|
|
|
|
Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void showToast(int strId) {
|
|
|
|
|
Toast.makeText(context, strId, Toast.LENGTH_SHORT).show();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|