예제 #1
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_pay_now);
   rowAmount = (RowEditTextOmegaFi) findViewById(R.id.rowEditTextAmount);
   rowDate = (RowInformation) findViewById(R.id.rowSelectDatePay);
   Date today = Calendar.getInstance().getTime();
   rowDate.setValueInfo(
       today.getMonth() + 1 + "/" + today.getDate() + "/" + (today.getYear() + 1900));
   rowPaymentMethod = (RowInformation) findViewById(R.id.selectPaymentMethod);
   infoCurrent = (LabelInfoVertical) findViewById(R.id.currentBalancePayNow);
   infoDueOn = (LabelInfoVertical) findViewById(R.id.dueOnPayNow);
   idAccount = getIntent().getExtras().getInt("id");
   backIsHome =
       getIntent().getExtras().containsKey("home")
           ? getIntent().getExtras().getBoolean("home")
           : false;
   methodTemp =
       getIntent().getExtras().containsKey("temp")
           ? (PaymentMethodTemp) getIntent().getSerializableExtra("temp")
           : null;
   if (idAccount != -1) {
     this.chargePayNow();
   }
 }