|
|
@@ -16,6 +16,7 @@ import com.common.data.JSONUtil;
|
|
|
import com.common.data.ListUtils;
|
|
|
import com.common.data.StringUtil;
|
|
|
import com.common.hmac.Md5Util;
|
|
|
+import com.core.app.MyApplication;
|
|
|
import com.core.utils.CommonUtil;
|
|
|
import com.core.utils.IntentUtils;
|
|
|
import com.modular.apputils.widget.TravelDirectionView;
|
|
|
@@ -149,7 +150,7 @@ public class BusinessTravelAdapter extends RecyclerView.Adapter<RecyclerView.Vie
|
|
|
holder.tripTv.setText(fromCity + "-" + toCity);
|
|
|
holder.mTravelDirectionView.setData(model.getSeat(), model.getAllTime());
|
|
|
//改签
|
|
|
- if (StringUtil.getText(holder.doneTv).equals(DONE_CANCEL)&&1==2) {
|
|
|
+ if (StringUtil.getText(holder.doneTv).equals(DONE_CANCEL) && 1 == 2) {
|
|
|
holder.changeTv.setVisibility(View.VISIBLE);
|
|
|
holder.changeTv.setBackgroundResource(R.drawable.text_frame_radian_hint_bg);
|
|
|
holder.changeTv.setTextColor(ct.getResources().getColor(R.color.text_hine));
|
|
|
@@ -166,7 +167,7 @@ public class BusinessTravelAdapter extends RecyclerView.Adapter<RecyclerView.Vie
|
|
|
holder.whenLongTv.setText(whenLongTv);
|
|
|
holder.businessNameTv.setText(model.getBusinessName());
|
|
|
holder.numberTv.setText(model.getNumber() + "人");
|
|
|
- holder.roomsTv.setText(model.getNumber() +"1间");
|
|
|
+ holder.roomsTv.setText(model.getNumber() + "1间");
|
|
|
holder.addressTv.setText(model.getAddress());
|
|
|
holder.dateTv.setText(DateFormatUtil.long2Str(DateFormatUtil.YMD));
|
|
|
holder.numberSubTv.setText(model.getNumber() + "人");
|
|
|
@@ -308,22 +309,39 @@ public class BusinessTravelAdapter extends RecyclerView.Adapter<RecyclerView.Vie
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
private void cancel(BusinessTravel model) {
|
|
|
reserve(model);
|
|
|
}
|
|
|
|
|
|
private void reserve(BusinessTravel model) {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
- map.put("traverorderno", model.getCode());
|
|
|
+ map.put("traverorderno", "RES56884");
|
|
|
map.put("product", model.getTitleCode());
|
|
|
map.put("costname", "成本中心");
|
|
|
- map.put("proname", "UU互联差旅订票");
|
|
|
- map.put("fpd_id", model.getId());
|
|
|
- map.put("master", CommonUtil.getMaster());
|
|
|
- map.put("baseUrl", CommonUtil.getAppBaseUrl(ct));
|
|
|
- map.put("emCode", CommonUtil.getEmcode());
|
|
|
+ map.put("proname", "所属项目");
|
|
|
+
|
|
|
+ //飞机
|
|
|
+ Map<String, String> routeMap = new HashMap<>();
|
|
|
+ routeMap.put("from", model.getStarting());
|
|
|
+ routeMap.put("fromcode", model.getStarting());
|
|
|
+ routeMap.put("arrive", model.getDestination());
|
|
|
+ routeMap.put("arrivecode", model.getDestination());
|
|
|
+ routeMap.put("startdata", DateFormatUtil.long2Str(model.getStartTime(), DateFormatUtil.YMD));
|
|
|
+ routeMap.put("arrivedate", DateFormatUtil.long2Str(model.getEndTime(), DateFormatUtil.YMD));
|
|
|
+ routeMap.put("isCanModify", "0");
|
|
|
+ map.put("route", JSON.toJSONString(routeMap));
|
|
|
+
|
|
|
+ //个人中心
|
|
|
+ Map<String, String> custinfoMap = new HashMap<>();
|
|
|
+ custinfoMap.put("backUrl", CommonUtil.getAppBaseUrl(ct));
|
|
|
+ custinfoMap.put("isNeedPush", "1");
|
|
|
+ custinfoMap.put("cusCode", CommonUtil.getMaster());
|
|
|
+ custinfoMap.put("emCode", CommonUtil.getEmcode());
|
|
|
+ custinfoMap.put("outOrderno", String.valueOf(model.getId()));
|
|
|
+ map.put("custinfo", JSON.toJSONString(routeMap));
|
|
|
+
|
|
|
String p = JSONUtil.map2JSON(map);
|
|
|
+ LogUtil.i("p="+p);
|
|
|
turn2Web(p);
|
|
|
}
|
|
|
|
|
|
@@ -331,7 +349,7 @@ public class BusinessTravelAdapter extends RecyclerView.Adapter<RecyclerView.Vie
|
|
|
LogUtil.i("点击了改签");
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("traverorderno", model.getCode());
|
|
|
- map.put("product","airgq");
|
|
|
+ map.put("product", "airgq");
|
|
|
map.put("costname", "成本中心");
|
|
|
map.put("proname", "UU互联差旅订票");
|
|
|
map.put("fpd_id", model.getId());
|
|
|
@@ -340,7 +358,6 @@ public class BusinessTravelAdapter extends RecyclerView.Adapter<RecyclerView.Vie
|
|
|
map.put("emCode", CommonUtil.getEmcode());
|
|
|
String p = JSONUtil.map2JSON(map);
|
|
|
turn2Web(p);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
private void turn2Web(String p) {
|
|
|
@@ -364,5 +381,4 @@ public class BusinessTravelAdapter extends RecyclerView.Adapter<RecyclerView.Vie
|
|
|
IntentUtils.linkCommonWeb(ct, urlBuilder.toString(), "行旅国际", "", "", false, false, false);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
}
|