|
|
@@ -140,7 +140,7 @@ public class ExpenseReimbursementActivity extends BaseActivity implements View.O
|
|
|
showPopupWindow();
|
|
|
break;
|
|
|
case R.id.automatic_calculation_tv:
|
|
|
-// doAutoCalculateJudge();
|
|
|
+ doAutoCalculateJudge();
|
|
|
break;
|
|
|
case R.id.btn_save:
|
|
|
if (reimbursement_title_fet.testValidity() ){
|
|
|
@@ -151,16 +151,6 @@ public class ExpenseReimbursementActivity extends BaseActivity implements View.O
|
|
|
}
|
|
|
|
|
|
private void doAutoCalculateJudge() {
|
|
|
- if (!ListUtils.isEmpty(table_list_money)) table_list_money.clear();
|
|
|
- for (int i = 0; i < table_list_type.size(); i++) {
|
|
|
- if (dtAdapter.getTable_list_money().get(i) != null){
|
|
|
- table_list_money.add(CommonUtil.getTwoPointDouble(Double.valueOf(dtAdapter.getTable_list_money().get(i).toString())));
|
|
|
- }
|
|
|
- else {
|
|
|
- ToastMessage("请输入消费金额");
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
sum_money = 0.0;
|
|
|
if (ListUtils.isEmpty(table_list_money)){
|
|
|
ToastMessage("请输入消费金额");
|