|
|
@ -19,6 +19,7 @@ import org.zkoss.zul.Messagebox;
|
|
|
|
import org.zkoss.zul.Window;
|
|
|
|
import org.zkoss.zul.Window;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
public class TripBillForm extends FormWithUpload<TripBill> {
|
|
|
|
public class TripBillForm extends FormWithUpload<TripBill> {
|
|
|
@ -36,6 +37,11 @@ public class TripBillForm extends FormWithUpload<TripBill> {
|
|
|
|
vehicles = new ArrayList<Vehicle>();
|
|
|
|
vehicles = new ArrayList<Vehicle>();
|
|
|
|
vehicles.add(null);
|
|
|
|
vehicles.add(null);
|
|
|
|
vehicles.addAll(settingsService.getSettings().getVehicles());
|
|
|
|
vehicles.addAll(settingsService.getSettings().getVehicles());
|
|
|
|
|
|
|
|
TripBill bill = getDataBean();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (bill.getResultMessageDate() == null) {
|
|
|
|
|
|
|
|
bill.setResultMessageDate(new Date());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Command
|
|
|
|
@Command
|
|
|
|