info
Locale locale
String date_column
String fromDate
String toDate
String defaultDataSize
de.sep.sesam.util.RendererUtils rendererUtils
}
@*Queries:
* [
* {
* "paramName" : "client_name",
* "query" : [
* "SELECT",
* "name",
* "FROM",
* "clients",
* "WHERE",
* "client_id = 0"
* ],
* "converter" : [
* "toString(name)"
* ]
* },
* {
* "paramName" : "location_ids",
* "condition" : [
* "@returnIf(@(exist:location_ids))"
* ],
* "query" : [
* "SELECT",
* "id",
* "FROM",
* "locations",
* "WHERE",
* "parent IS NULL",
* "ORDER BY",
* "id"
* ],
* "converter" : [
* "toList(id)"
* ]
* },
* {
* "paramName" : "client_ids",
* "condition" : [
* "@returnIf(location_ids == null || location_ids.isEmpty())"
* ],
* "query" : [
* "SELECT",
* "client_id",
* "FROM",
* "clients",
* "WHERE",
* "location in (WITH RECURSIVE children(id) AS (SELECT l.id FROM locations l WHERE l.id IN @(sqlList:@(location_ids))",
* "UNION ALL SELECT l.id from children c,locations l where l.parent=c.id) SELECT * FROM children)"
* ],
* "converter" : [
* "toList(client_id)"
* ]
* },
* {
* "paramName" : "items",
* "condition" : [
* "@returnIf(client_ids == null || client_ids.isEmpty())"
* ],
* "query" : [
* "@call(msp_unit)"
* ]
* }
* ]
*@
@include("../commons/tags.html")
@include("../commons/functions.html")
@sepReportHeader("SEP Report")
@sepTitleBox("Title", sepFnGetToday(locale), client_name)
@returnIf(location_ids == null || location_ids.isEmpty())
@returnIf(client_ids == null || client_ids.isEmpty())
@returnIf(items == null || items.isEmpty())
@for (Map item : items) {
@{
Long id = (Long) item.get("locationId");
String name = (String) item.get("locationName");
Long standard = (Long) item.get("standard");
Long enterprise = (Long) item.get("enterprise");
Long enterprisePlus = (Long) item.get("enterprisePlus");
List comments = (List) item.get("comments");
}
@if("Total".equals(name)) {
@i18n("Label.Total"):
} else {
@i18n("Location.Name"): @(name)
}
| @i18n("Label.L1") |
@(standard) |
| @i18n("Label.L2") |
@(enterprise) |
| @i18n("Label.L3") |
@(enterprisePlus) |
@if(comments != null && !comments.isEmpty()) {
}
}