|
|
@ -204,6 +204,14 @@ void CampService::loadItems(CampDataPtr data)
|
|
|
|
data->setServices(srvService.all(QString("campData = %1").arg(data->id())));
|
|
|
|
data->setServices(srvService.all(QString("campData = %1").arg(data->id())));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QList<CampDataPtr> CampService::allForSeason()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
SeasonService seasonSrv;
|
|
|
|
|
|
|
|
SeasonPtr season = seasonSrv.active();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return all(QString("season = %1").arg(QString::number(season->id())));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CampService::calcPeople(CampDataPtr data)
|
|
|
|
void CampService::calcPeople(CampDataPtr data)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
foreach (ServiceItemPtr service, data->services()) {
|
|
|
|
foreach (ServiceItemPtr service, data->services()) {
|
|
|
|