return new WorkBasedPriceInput(controlId, new Model<WorkEfforts>() {
private static final long serialVersionUID = 1L;
@Override
public WorkEfforts getObject() {
WorkEfforts workEfforts = new WorkEfforts();
workEfforts.setWorkingHours(tenderData.getWorkingHours());
workEfforts.setWorkPrice(tenderData.getTotalPrice());
return workEfforts;
}
@Override
public void setObject(WorkEfforts workEfforts) {
tenderData.setTotalPrice(workEfforts.getWorkPrice());
tenderData.setWorkingHours(workEfforts.getWorkingHours());
}
});
} else if (PriceType.PER_ITEM == priceType) {
// Total price input