| | |
| | | package com.future.driver.ui.main.add_order |
| | | |
| | | import android.content.Intent |
| | | import android.view.View |
| | | import androidx.recyclerview.widget.LinearLayoutManager |
| | | import androidx.recyclerview.widget.RecyclerView |
| | |
| | | override fun mapObject(): HashMap<String?, Any?>? { |
| | | var map = getMapByAny() |
| | | map["driverId"] = getUserId() |
| | | map["endId"] = endId |
| | | map["startId"] = startId |
| | | // map["endId"] = endId |
| | | // map["startId"] = startId |
| | | return map |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | override fun setOnItemClickListener(view: View?, position: Int) { |
| | | EventBus.getDefault().post(BaseEvent(BaseEvent.SELECT_LINE_SITE,selectLineAdapter.data[position].id.toString(),selectLineAdapter.data[position].name)) |
| | | onBackPressed() |
| | | val itemData = selectLineAdapter.data[position] |
| | | val intent = Intent() |
| | | intent.putExtra("id",itemData.id.toString()).putExtra("name",itemData.name) |
| | | .putExtra("startCity",itemData.startCityName).putExtra("startCityId",itemData.startCityId).putExtra("startSite",itemData.startSiteName) |
| | | .putExtra("endCity",itemData.endCityName).putExtra("endCityId",itemData.endCityId).putExtra("endSite",itemData.endSiteName) |
| | | setResult(RESULT_OK,intent) |
| | | finish() |
| | | } |
| | | |
| | | |