public String search() { provinceList = provinceService.getAllProvince(); cityList = cityService.roGetCitysByProvince(kenProvince); bookingList = incomeService.roSearchIncome(kenProvince, kenCity, customerId, stDate, endDate); for (int i = 0; i < bookingList.size(); i++) { Booking income = bookingList.get(i); bookingList.set(i, income); totalpax += income.getPax(); totalDbamt = totalDbamt.add(income.getDbamt()); totalCramt = totalCramt.add(income.getCramt()); totalUnpay = totalDbamt.subtract(totalCramt); } return SUCCESS; }
public String input() { provinceList = provinceService.getAllProvince(); cityList = cityService.roGetCitysByProvince(kenProvince); return INPUT; }