lmw
2024-05-21 0af0750101f969b6ff18d7ade37354b4bcdccd03
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.future.dispatch.ui.order.change_order
 
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.future.dispatch.base.BaseRecyclerActivity
import com.future.dispatch.base.BaseRvAdapter
import com.future.dispatch.bean.ApplyReassignBean
import com.future.dispatch.netUtls.Api
import com.future.dispatch.ui.adapter.ChangeHistoryAdapter
import com.future.dispatch.utils.getMapByAnys
import org.jetbrains.anko.startActivity
import java.util.HashMap
 
/**
 * @ClassName ChangeOrderHistoryActivity
 * @Description 改派记录
 * @Author Administrator
 * @Date 2020/10/9 15:21
 * @Version 1.0
 */
class ChangeOrderHistoryActivity: BaseRecyclerActivity<ApplyReassignBean.DataBean>() {
 
 
    val changeAdapter by lazy {
        ChangeHistoryAdapter()
    }
 
    override fun initView() {
        setTitleText("改派记录")
    }
 
    override fun setOnclick() {
    }
 
    override fun getDatas(t: String?): List<ApplyReassignBean.DataBean> {
        return gson.fromJson<ApplyReassignBean>(t,ApplyReassignBean::class.java).data
    }
 
    override fun pathUrl(): String? {
        return Api.queryApplyReassignList
    }
 
    override fun mapObject(): HashMap<String?, Any?>? {
        var map = getMapByAnys()
        map?.set("state", "2")
        return map
    }
 
    override fun getAdapter(): BaseRvAdapter<ApplyReassignBean.DataBean>? {
        return changeAdapter
    }
 
    override fun getlayoutManager(): RecyclerView.LayoutManager? {
        return LinearLayoutManager(this)
    }
 
    override fun setOnItemClickListener(view: View?, position: Int) {
        startActivity<RightAwayActivity>("id" to changeAdapter.data[position].id.toString(),"type" to "2")
    }
}