ElectronicCardInfoOKActivity.java
2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package com.hjx.personalcenter.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import com.hjx.personalcenter.R;
import com.hjx.personalcenter.util.GetDevicesUtil;
/**确认保卡信息
* Created by h on 2017/8/11.
*/
public class ElectronicCardInfoOKActivity extends Activity implements View.OnClickListener {
private Button btn_finish;
private ImageView iv_last_step;
private TextView usename,deviceModel,customer_address,mac_adress,shoptime,deviceNumber,shopadress,phone,tlePhone;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_ok_cardinfo);
initView();
initData();
initLister();
}
private void initView() {
btn_finish = (Button) findViewById(R.id.btn_finish);
usename = (TextView) findViewById(R.id.iv_card_username);
deviceModel = (TextView) findViewById(R.id.tv_card_deviceModel);
customer_address = (TextView) findViewById(R.id.tv_card_adress);
mac_adress = (TextView) findViewById(R.id.tv_card_mac);
shoptime = (TextView) findViewById(R.id.tv_card_time);
deviceNumber = (TextView) findViewById(R.id.tv_card_deviceNumber);
shopadress = (TextView) findViewById(R.id.tv_card_shopAdress);
phone = (TextView) findViewById(R.id.tv_card_phone);
tlePhone = (TextView) findViewById(R.id.tv_card_tleNember);
}
private void initData() {
//获取设备信息
deviceModel.setText(GetDevicesUtil.getDevicesInfo(this).getDeviceModel());
deviceNumber.setText(GetDevicesUtil.getDevicesInfo(this).getDeviceNumber());
mac_adress.setText(GetDevicesUtil.getDevicesInfo(this).getMac());
//获取保卡信息
}
private void initLister() {
btn_finish.setOnClickListener(this);
}
@Override
public void onClick(View v) {
switch (v.getId()){
case R.id.btn_finish:
Intent intent = new Intent();
intent.setClass(ElectronicCardInfoOKActivity.this,TheStartPageActivity.class);
startActivity(intent);
overridePendingTransition(R.anim.rightin, R.anim.rightout);
break;
}
}
}