|
|
@@ -0,0 +1,106 @@
|
|
|
+package com.wiipu.peopleheart.home.acticity;
|
|
|
+
|
|
|
+import android.content.Context;
|
|
|
+import android.content.Intent;
|
|
|
+import android.view.LayoutInflater;
|
|
|
+import android.view.View;
|
|
|
+import android.widget.FrameLayout;
|
|
|
+import android.widget.ImageView;
|
|
|
+import android.widget.TextView;
|
|
|
+
|
|
|
+import com.wiipu.commonlib.base.BaseMvpActivity;
|
|
|
+import com.wiipu.peopleheart.R;
|
|
|
+import com.wiipu.peopleheart.home.contract.researchResultContract;
|
|
|
+import com.wiipu.peopleheart.home.presenter.researchResultPresenter;
|
|
|
+import com.wiipu.peopleheart.home.response.researchResultResponse;
|
|
|
+
|
|
|
+import butterknife.BindView;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Description:首页办件查询详情
|
|
|
+ */
|
|
|
+public class researchResultActivity extends BaseMvpActivity implements researchResultContract.View{
|
|
|
+
|
|
|
+ @BindView(R.id.iv_back)
|
|
|
+ ImageView iv_back;
|
|
|
+
|
|
|
+ @BindView(R.id.research_frame)
|
|
|
+ FrameLayout mFrameLayout;
|
|
|
+
|
|
|
+ private researchResultPresenter mResearchResultPresenter;
|
|
|
+
|
|
|
+ private View itemView;
|
|
|
+
|
|
|
+ public static void start(Context context,String index,String password) {
|
|
|
+ Intent intent = new Intent(context, researchResultActivity.class);
|
|
|
+ intent.putExtra("index", index);
|
|
|
+ intent.putExtra("password", password);
|
|
|
+ context.startActivity(intent);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void showResearchResult(researchResultResponse researchResultResponse) {
|
|
|
+ itemView = LayoutInflater.from(researchResultActivity.this).inflate(R.layout.item_research_result, null);
|
|
|
+ TextView title = itemView.findViewById(R.id.item_research_title);
|
|
|
+ title.setText("索引号");
|
|
|
+ TextView content = itemView.findViewById(R.id.item_research_content);
|
|
|
+ content.setText(researchResultResponse.getIndex());
|
|
|
+ mFrameLayout.addView(itemView);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void showEmpty() {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void showError(String message) {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected void attach() {
|
|
|
+ mResearchResultPresenter = new researchResultPresenter(this);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected void detach() {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected int getLayoutId() {
|
|
|
+ return R.layout.activity_research_result;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected void initViews() {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected void initListeners() {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected void initData() {
|
|
|
+ Intent intent = getIntent();
|
|
|
+ String index = intent.getStringExtra("index");
|
|
|
+ String password = intent.getStringExtra("password");
|
|
|
+ mResearchResultPresenter.getResearchResult(index, password);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onClick(View v) {
|
|
|
+ switch (v.getId()) {
|
|
|
+ case R.id.iv_back:
|
|
|
+ finish();
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|