riku
2025-10-17 fbae5f3ea74727ccadc48314a864a1ea0099a945
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
package cn.flightfeather.thirdappmodule.activity
 
import android.content.Intent
import android.os.Bundle
import cn.flightfeather.thirdappmodule.R
import cn.flightfeather.thirdappmodule.bean.entity.Inspection
import cn.flightfeather.thirdappmodule.bean.entity.Scense
import cn.flightfeather.thirdappmodule.bean.entity.Subtask
import cn.flightfeather.thirdappmodule.module.base.BaseActivity
import cn.flightfeather.thirdappmodule.module.inspection.PicEvidenceActivity
import kotlinx.android.synthetic.main.activity_test.*
import java.util.*
 
/**
 * @author riku
 * Date:2022/4/13
 *
 */
class TestActivity : BaseActivity() {
    override fun getLayoutId(): Int = R.layout.activity_test
 
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val subTask = Subtask().apply {
            stguid = "bIWCguc3MMLqz5LJ"
            typeno = 1
            citycode = "3100"
            districtcode = "310116"
            executionstarttime = Date()
        }
        val inspection = Inspection().apply {
            guid = "T125JcdGXmoIM3EF"
        }
        val scene = Scense().apply {
            guid = "vwxBIriLXMqPecQu"
            typeid = 1
        }
        val lat = 0f
        val lng = 0f
        btn_test.setOnClickListener {
            val intent = Intent(this, PicEvidenceActivity::class.java).apply {
                putExtra("subTask", subTask)
                putExtra("inspection", inspection)
                putExtra("scene", scene)
                putExtra("lat", lat)
                putExtra("lng", lng)
            }
            startActivity(intent)
        }
    }
}