导航菜单

页面标题

页面副标题

爱心e站 v1.0.0 - RehabilitationEndActivity.java 源代码

正在查看: 爱心e站 v1.0.0 应用的 RehabilitationEndActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.newheyd.JZKFcanjiren.Activity;

import android.os.Bundle;
import android.widget.FrameLayout;
import com.newheyd.JZKFcanjiren.BaseFragmentActiviy;
import com.newheyd.JZKFcanjiren.Bean.TabItem;
import com.newheyd.JZKFcanjiren.Fragment.RehabilitationEndFragment;
import com.newheyd.JZKFcanjiren.R;
import com.newheyd.JZKFcanjiren.Utils.StastisticUtil;
import com.newheyd.JZKFcanjiren.Utils.locationUtil.LocationAddrUtil;
import com.newheyd.JZKFcanjiren.View.TitleView;
import com.newheyd.JZKFcanjiren.model.BaseResult;
import com.newheyd.JZKFcanjiren.net.NewHYTask;
import java.util.HashMap;

public class RehabilitationEndActivity extends BaseFragmentActiviy {
    private FrameLayout mContainer;
    private TitleView mTitleview;
    private RehabilitationEndFragment rehabilitationEndFragment = null;
    private String service = null;
    private String extend3 = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_rehabilitation_end);
        super.onCreate(savedInstanceState);
        freshData();
        goStatistics();
    }

    public void goStatistics() {
        HashMap<String, String> map = LocationAddrUtil.getInstance().getLocationParam(this.mContext);
        StastisticUtil.getInstance().onEvent(this.mContext, "RehabilitationEndActivity", map);
    }

    public void freshData() {
        TabItem tabEnd = new TabItem("5", "康复服务终止申请", this.service);
        tabEnd.setExtend3(this.extend3);
        this.rehabilitationEndFragment = RehabilitationEndFragment.newInstance(tabEnd);
        getSupportFragmentManager().beginTransaction().add(R.id.container, this.rehabilitationEndFragment).commitAllowingStateLoss();
    }

    public void setTitleName(String extend3) {
        if ("1".equals(extend3) || "2".equals(extend3)) {
            this.mTitleview.setTextName("康复终止申请");
        } else {
            this.mTitleview.setTextName("康复终止查看");
        }
    }

    @Override
    public void onResponseBefore(NewHYTask task) {
    }

    @Override
    public void onResponseAfter(NewHYTask task) {
    }

    @Override
    public void onResponseSuccessful(NewHYTask task, BaseResult object) {
    }

    @Override
    public void onResponseError(NewHYTask task, BaseResult object) {
    }

    @Override
    public void onServerError(NewHYTask task, int failedType) {
    }

    @Override
    public void getExtraParam() {
        this.service = getIntent().getStringExtra("service");
        this.extend3 = getIntent().getStringExtra("extend3");
    }

    @Override
    public void initViews() {
        this.mTitleview = (TitleView) findViewById(R.id.titleview);
        this.mContainer = (FrameLayout) findViewById(R.id.container);
    }

    @Override
    public void setListener() {
        this.mTitleview.setOnTitleClik(new TitleView.BackListenner() {
            @Override
            public void BackSet() {
                RehabilitationEndActivity.this.finish();
            }
        }, null);
    }
}