|
@@ -56,6 +56,9 @@ class PocActivity : BaseActivity(), DIAware {
|
|
|
|
|
|
private lateinit var version: TextView
|
|
|
|
|
|
+ // 测试用,后期动态设置
|
|
|
+ private val jdRequest = AdmRequest(userId = admjd, projectId = "Pj9909990002", groupCode = "JD")
|
|
|
+
|
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
|
super.onCreate(savedInstanceState)
|
|
|
setContentView(R.layout.activity_poc)
|
|
@@ -104,11 +107,7 @@ class PocActivity : BaseActivity(), DIAware {
|
|
|
|
|
|
dictBtn.setOnClickListener {
|
|
|
mVm.requestDict(
|
|
|
- AdmRequest(
|
|
|
- userId = "bdtp",
|
|
|
- projectId = "Pj5001120003",
|
|
|
- groupCode = "XG"
|
|
|
- )
|
|
|
+ jdRequest
|
|
|
) {
|
|
|
val builder = AlertDialog.Builder(this)
|
|
|
val dialog = builder.setMessage("数据字典下载成功")
|
|
@@ -121,11 +120,7 @@ class PocActivity : BaseActivity(), DIAware {
|
|
|
|
|
|
configBtn.setOnClickListener {
|
|
|
mVm.requestConfig(
|
|
|
- AdmRequest(
|
|
|
- userId = "bdtp",
|
|
|
- projectId = "Pj5001120003",
|
|
|
- groupCode = "XG"
|
|
|
- )
|
|
|
+ jdRequest
|
|
|
) {
|
|
|
val builder = AlertDialog.Builder(this)
|
|
|
val dialog = builder.setMessage("配置信息下载成功")
|
|
@@ -138,11 +133,7 @@ class PocActivity : BaseActivity(), DIAware {
|
|
|
|
|
|
frameBtn.setOnClickListener {
|
|
|
mVm.requestFrame(
|
|
|
- AdmRequest(
|
|
|
- userId = "bdtp",
|
|
|
- projectId = "Pj5001120003",
|
|
|
- groupCode = "XG"
|
|
|
- )
|
|
|
+ jdRequest
|
|
|
) {
|
|
|
val builder = AlertDialog.Builder(this)
|
|
|
val dialog = builder.setMessage("框架数据下载成功")
|