Podpora tisku. Implementace tisku dynamických sestav.

This commit is contained in:
2014-05-26 21:44:55 +02:00
parent 34c4144f46
commit 25a4d2dfb7
27 changed files with 724 additions and 4 deletions
+10
View File
@@ -0,0 +1,10 @@
<?page title="${labels.ReportReport}" contentType="text/html;charset=UTF-8"?>
<zk>
<window title="${labels.ReportReport}" border="normal" closable="true" apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('info.bukova.isspst.ui.ReportVM')">
<toolbar>
<toolbarbutton image="/img/send.png" tooltiptext="${labels.ReportSend}"/>
</toolbar>
<iframe width="800px" height="680px" src="/api/report.pdf"/>
</window>
</zk>
+32
View File
@@ -0,0 +1,32 @@
<?page title="${labels.ReportReports}" contentType="text/html;charset=UTF-8"?>
<zk>
<window id="reportDialog" title="${labels.ReportReports}" border="normal" apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('info.bukova.isspst.ui.ReportDialogVM')"
closable="true" width="550px">
<hbox>
<listbox model="@load(vm.reports)" width="250px" height="350px" selectedItem="@bind(vm.selected)">
<template name="model">
<listitem>
<listcell><label value="@load(each.name)"/></listcell>
</listitem>
</template>
</listbox>
<groupbox mold="3d" closable="false" width="270px">
<caption label="${labels.ReportOptions}"></caption>
<hbox>
<label value="${labels.ReportTitle}"/> <textbox value="@bind(vm.reportDefinition.reportTitle)"/>
</hbox>
<vbox children="@load(vm.columns.checks)">
<template name="children">
<checkbox label="@load(each.member)" checked="@bind(each.checked)"/>
</template>
</vbox>
</groupbox>
</hbox>
<hbox>
<button label="${labels.ReportPrint}" onClick="@command('print', window=reportDialog)"/> <button label="${labels.ButtonStorno}" onClick="reportDialog.detach()"/>
</hbox>
</window>
</zk>
+1
View File
@@ -5,5 +5,6 @@
<toolbarbutton image="/img/edit.png" tooltiptext="Upravit" id="btnEdit" onClick="@command('edit')" disabled="@load(empty vm.dataBean ? 'true' : 'false')"/>
<toolbarbutton image="/img/delete.png" tooltiptext="Smazat" id="btnDelete" onClick="@command('delete')" disabled="@load(empty vm.dataBean ? 'true' : 'false')"/>
<toolbarbutton image="/img/funnel.png" tooltiptext="Filtr" id="btnFilter" onClick="@command('filter')" />
<toolbarbutton image="/img/print.png" tooltiptext="Filtr" id="btnPrint" onClick="@command('onPrint')" />
</toolbar>
</zk>