Když není vybraná sestava, tak je zakázané tlačítko "Tisk". Sjednocení

vzhledu dialogů tisku. 
closes #82
multitenant
Josef Rokos 11 years ago
parent cfb7e43173
commit 452ea9c698

@ -46,7 +46,7 @@ public class ReportDialogVM {
return selected; return selected;
} }
@NotifyChange("optionsForm") @NotifyChange({"optionsForm", "selected"})
public void setSelected(Report selected) { public void setSelected(Report selected) {
this.selected = selected; this.selected = selected;
reportDefinition.setReport(selected); reportDefinition.setReport(selected);

@ -1,10 +1,11 @@
<?page title="${labels.ReportReport}" contentType="text/html;charset=UTF-8"?> <?page title="${labels.ReportReport}" contentType="text/html;charset=UTF-8"?>
<zk> <zk>
<window title="${labels.ReportReport}" border="normal" closable="true" apply="org.zkoss.bind.BindComposer" <window border="normal" closable="true" apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('info.bukova.isspst.ui.reporting.ReportVM')"> viewModel="@id('vm') @init('info.bukova.isspst.ui.reporting.ReportVM')">
<caption src="/img/print.png" zclass="form-caption" label="${labels.ReportReport}" />
<toolbar> <toolbar>
<toolbarbutton image="/img/send.png" tooltiptext="${labels.ReportSend}"/> <toolbarbutton image="/img/send.png" tooltiptext="${labels.ReportSend}"/>
</toolbar> </toolbar>
<iframe width="800px" height="680px" src="/api/report.pdf"/> <iframe width="800px" height="660px" src="/api/report.pdf"/>
</window> </window>
</zk> </zk>

@ -1,8 +1,9 @@
<?page title="${labels.ReportReports}" contentType="text/html;charset=UTF-8"?> <?page title="${labels.ReportReports}" contentType="text/html;charset=UTF-8"?>
<zk> <zk>
<window id="reportDialog" title="${labels.ReportReports}" border="normal" apply="org.zkoss.bind.BindComposer" <window id="reportDialog" border="normal" apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('info.bukova.isspst.ui.reporting.ReportDialogVM')" viewModel="@id('vm') @init('info.bukova.isspst.ui.reporting.ReportDialogVM')"
closable="true" width="550px"> closable="true" width="550px">
<caption src="/img/print.png" zclass="form-caption" label="${labels.ReportReports}" />
<hbox> <hbox>
<listbox model="@load(vm.reports)" width="250px" height="350px" selectedItem="@bind(vm.selected)"> <listbox model="@load(vm.reports)" width="250px" height="350px" selectedItem="@bind(vm.selected)">
@ -15,7 +16,7 @@
<include src="@load(vm.optionsForm)"/> <include src="@load(vm.optionsForm)"/>
</hbox> </hbox>
<hbox> <hbox>
<button label="${labels.ReportPrint}" onClick="@command('print', window=reportDialog)"/> <button label="${labels.ButtonStorno}" onClick="reportDialog.detach()"/> <button image="/img/print-button.png" label="${labels.ReportPrint}" onClick="@command('print', window=reportDialog)" sclass="nicebutton" disabled="@bind(empty vm.selected)"/> <button image="~./zul/img/misc/drag-disallow.png" label="${labels.ButtonStorno}" onClick="reportDialog.detach()" sclass="nicebutton"/>
</hbox> </hbox>
</window> </window>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Loading…
Cancel
Save