@Override
  public void initView() {
    // TODO Auto-generated method stub
    initBaseView("电台参数设置");
    Btn_Left.setOnClickListener(this);
    Btn_Right.setBackgroundResource(R.drawable.btsure);
    Btn_Right.setOnClickListener(this);

    edit_senddelay = (EditText) findViewById(R.id.edit_senddelay);
    edit_recvdelay = (EditText) findViewById(R.id.edit_recedelay);
    sp_type = (Spinner) findViewById(R.id.sp_casttype);
    sp_power = (Spinner) findViewById(R.id.sp_casrpower);

    ArrayAdapter<String> typeadapter =
        new ArrayAdapter<String>(mContext, android.R.layout.simple_spinner_dropdown_item, Type);
    sp_type.setAdapter(typeadapter);

    ArrayAdapter<String> poweradapter =
        new ArrayAdapter<String>(mContext, android.R.layout.simple_spinner_dropdown_item, Power);
    sp_power.setAdapter(poweradapter);

    edit_senddelay.setText(sp.getString(senddeley, ""));
    edit_recvdelay.setText(sp.getString(recvdeley, ""));

    sp_power.setSelection(sp.getInt(powerindex, 0));
    sp_type.setSelection(sp.getInt(typeindex, 0));
  }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_creat_bddata);
    contact = getIntent().getStringExtra("contact");
    initBaseView("北斗报文");
    Btn_Left.setOnClickListener(this);
    Btn_Right.setBackgroundResource(R.drawable.sendmail);
    Btn_Right.setOnClickListener(this);

    edit_card = (EditText) findViewById(R.id.edit_bdcard);
    edit_time = (EditText) findViewById(R.id.edit_time);
    edit_time.setInputType(InputType.TYPE_NULL);
    edit_time.setOnClickListener(this);
    findViewById(R.id.bt_addoption).setOnClickListener(this);
  }
  public void initView() {
    // TODO Auto-generated method stub
    list_Cotent = (ListView) findViewById(R.id.list_content);

    Btn_Left = (Button) findViewById(R.id.bt_left);
    Btn_Right = (Button) findViewById(R.id.bt_right);
    text_title = (TextView) findViewById(R.id.title_text);
    if (Btn_Left != null) {
      Btn_Left.setOnClickListener(this);
    }
    if (Btn_Right != null) {
      Btn_Right.setOnClickListener(this);
    }
    if (OverAllData.getPostion() > 0) {
      Btn_Right.setBackgroundResource(R.drawable.search);
    } else {
      Btn_Right.setVisibility(View.INVISIBLE);
    }

    text_title.setText("许可查询");
    getDataList();
  }