|
@@ -0,0 +1,44 @@
|
|
|
+package com.pan_american.android.ui.efficiency_tools.require_gather
|
|
|
+
|
|
|
+import android.annotation.SuppressLint
|
|
|
+import android.os.Bundle
|
|
|
+import android.webkit.WebChromeClient
|
|
|
+import android.webkit.WebSettings
|
|
|
+import android.webkit.WebViewClient
|
|
|
+import com.pan_american.android.OASystem
|
|
|
+import com.pan_american.android.R
|
|
|
+import com.pan_american.android.base.BaseActivity
|
|
|
+import com.pan_american.android.databinding.ActivityRequireGatherBinding
|
|
|
+import com.pan_american.android.databinding.LayoutTitleBinding
|
|
|
+
|
|
|
+class RequireGatherActivity : BaseActivity<ActivityRequireGatherBinding>() {
|
|
|
+
|
|
|
+ private lateinit var titleBinding: LayoutTitleBinding
|
|
|
+
|
|
|
+ override fun getViewBinding() = ActivityRequireGatherBinding.inflate(layoutInflater)
|
|
|
+
|
|
|
+ @SuppressLint("SetJavaScriptEnabled")
|
|
|
+ override fun onCreate(savedInstanceState: Bundle?) {
|
|
|
+ super.onCreate(savedInstanceState)
|
|
|
+
|
|
|
+ initTitle()
|
|
|
+
|
|
|
+ binding.webView.apply {
|
|
|
+ settings.javaScriptEnabled = true
|
|
|
+ settings.mixedContentMode = WebSettings.MIXED_CONTENT_ALWAYS_ALLOW
|
|
|
+ webViewClient = WebViewClient()
|
|
|
+ webChromeClient = WebChromeClient()
|
|
|
+ loadUrl("http://oa.pan-american-intl.com:4399/#/MarketplacePick?userid=${OASystem.userInfo.userId}")
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ override fun initTitle() {
|
|
|
+ titleBinding = LayoutTitleBinding.bind(binding.root).apply {
|
|
|
+ titleText.text = resources.getString(R.string.require_gather)
|
|
|
+
|
|
|
+ backButton.setOnClickListener {
|
|
|
+ back()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|