|
|
@ -14,6 +14,7 @@ import java.math.BigDecimal;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.hibernate.Hibernate;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
|
@ -135,6 +136,19 @@ public class RequirementServiceImpl extends RequirementBaseServiceImpl<Requireme
|
|
|
|
// materiálů a služeb konzistentní
|
|
|
|
// materiálů a služeb konzistentní
|
|
|
|
req.setItems(items);
|
|
|
|
req.setItems(items);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
@Transactional
|
|
|
|
|
|
|
|
@LazyLoader("form")
|
|
|
|
|
|
|
|
public void loadItems(Requirement req) {
|
|
|
|
|
|
|
|
if (req == null) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Requirement r = getById(req.getId());
|
|
|
|
|
|
|
|
Hibernate.initialize(r.getItems());
|
|
|
|
|
|
|
|
req.setItems(r.getItems());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public BigDecimal calcTotalFromItem(RequirementItem item)
|
|
|
|
public BigDecimal calcTotalFromItem(RequirementItem item)
|
|
|
|