| | |
| | | import com.dayu.general.bean.card.DebugCard |
| | | import com.dayu.general.bean.card.UserCard |
| | | import com.dayu.general.bean.net.CardInfoResult |
| | | import com.dayu.general.bean.net.ClientInfo |
| | | import com.dayu.general.dao.BaseDaoSingleton |
| | | import com.dayu.general.databinding.ActivityNfcWriteGeBinding |
| | | import com.dayu.general.net.ApiManager |
| | |
| | | private var projectNumber: String = "" |
| | | |
| | | private var cardInfo: CardInfoResult? = null |
| | | |
| | | private var clientInfo: ClientInfo? = null |
| | | |
| | | override fun onCreate(savedInstanceState: Bundle?) { |
| | | super.onCreate(savedInstanceState) |
| | |
| | | orderNumber = intent?.getStringExtra("orderNumber") ?: "" |
| | | operationType = CardOperationType.fromCode(operationTypeCode) |
| | | cardInfo = intent?.getSerializableExtra("cardInfo") as? CardInfoResult |
| | | clientInfo = intent?.getSerializableExtra("clientInfo") as? ClientInfo |
| | | |
| | | // 获取充值相关金额 |
| | | rechargeAmount = intent?.getDoubleExtra("rechargeAmount", 0.0) ?: 0.0 |
| | |
| | | putExtra("cardInfo", it) |
| | | } |
| | | |
| | | // 传递客户信息对象 |
| | | clientInfo?.let { |
| | | putExtra("clientInfo", it) |
| | | } |
| | | |
| | | startActivity(this) |
| | | } |