eventBus.register(this);
eventBus.registerForBinding(this);
addColumns(ImmutableMap.of(
+ "planned", NATURAL,
"partner.humanId", NATURAL,
"partner.name", NATURAL,
"project.humanId", NATURAL,
onDoubleClick="@command('onEditIncoming')"
forward="onOK=submit.onClick, onCancel=cancel.onClick">
<listhead sizable="true">
+ <listheader width="30px" label="Terv" sort="auto(planned)" align="left"/>
<listheader label="Szállító" sort="auto(partner.name)" align="left"/>
<listheader label="Sorszám" sort="auto(humanId)" align="left"/>
<listheader label="Megnevezés" sort="auto(title)" align="left"/>
</listhead>
<template name="model">
<listitem>
- <listcell label="@load(each.partner.name)"/>
- <listcell label="@load(each.humanId)"/>
- <listcell label="@load(each.title)"/>
+ <listcell>
+ <a iconSclass="z-icon-map-marker" visible="@load(each.planned)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
+ </listcell>
+ <listcell label="@load(each.partner.name)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
+ <listcell label="@load(each.humanId)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
+ <listcell label="@load(each.title)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
<listcell
- label="@load(each.netAmount) @converter('hu.user.lis.ui.converter.DoubleToStringConverter')"/>
- <listcell label="@load(each.currency)"/>
+ label="@load(each.netAmount) @converter('hu.user.lis.ui.converter.DoubleToStringConverter')"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
+ <listcell label="@load(each.currency)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
<listcell
- label="@load(each.completionDate) @converter('hu.user.lis.ui.converter.DateToStringConverter')"/>
+ label="@load(each.completionDate) @converter('hu.user.lis.ui.converter.DateToStringConverter')"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
<listcell
- label="@load(each.paymentDeadline) @converter('hu.user.lis.ui.converter.DateToStringConverter')"/>
+ label="@load(each.paymentDeadline) @converter('hu.user.lis.ui.converter.DateToStringConverter')"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
</listitem>
</template>
</listbox>
onDoubleClick="@command('onEditOutgoing')"
forward="onOK=submit.onClick, onCancel=cancel.onClick">
<listhead sizable="true">
+ <listheader width="30px" label="Terv" sort="auto(planned)" align="left"/>
<listheader label="Vevő" sort="auto(partner.name)" align="left"/>
<listheader label="Sorszám" sort="auto(humanId)" align="left"/>
<listheader label="Megnevezés" sort="auto(title)" align="left"/>
</listhead>
<template name="model">
<listitem>
- <listcell label="@load(each.partner.name)"/>
- <listcell label="@load(each.humanId)"/>
- <listcell label="@load(each.title)"/>
+ <listcell>
+ <a iconSclass="z-icon-map-marker" visible="@load(each.planned)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
+ </listcell>
+ <listcell label="@load(each.partner.name)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
+ <listcell label="@load(each.humanId)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
+ <listcell label="@load(each.title)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
<listcell
- label="@load(each.netAmount) @converter('hu.user.lis.ui.converter.DoubleToStringConverter')"/>
- <listcell label="@load(each.currency)"/>
+ label="@load(each.netAmount) @converter('hu.user.lis.ui.converter.DoubleToStringConverter')"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
+ <listcell label="@load(each.currency)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
<listcell
- label="@load(each.completionDate) @converter('hu.user.lis.ui.converter.DateToStringConverter')"/>
+ label="@load(each.completionDate) @converter('hu.user.lis.ui.converter.DateToStringConverter')"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
<listcell
- label="@load(each.paymentDeadline) @converter('hu.user.lis.ui.converter.DateToStringConverter')"/>
+ label="@load(each.paymentDeadline) @converter('hu.user.lis.ui.converter.DateToStringConverter')"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
</listitem>
</template>
</listbox>
autopaging="true" mold="paging" pagingPosition="top" multiple="false"
onSelect="@command('onListSelection')" onDoubleClick="@command('onEdit')">
<listhead sizable="true">
+ <listheader width="30px" label="Terv" sort="auto(planned)" align="left"
+ sortDirection="@load(vm.cols['planned'].sortDirection)"/>
<listheader label="Sorszám" sort="auto(partner.humanId)" align="left"
sortDirection="@load(vm.cols['partner.name'].sortDirection)"/>
<listheader label="Partner név" sort="auto(partner.name)" align="left"
</listhead>
<template name="model">
<listitem>
- <listcell label="@load(each.humanId)"/>
- <listcell label="@load(each.partner.name)"/>
- <listcell label="@load(each.project.humanId)"/>
- <listcell label="@load(each.project.name)"/>
+ <listcell>
+ <a iconSclass="z-icon-map-marker" visible="@load(each.planned)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
+ </listcell>
+ <listcell label="@load(each.humanId)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
+ <listcell label="@load(each.partner.name)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
+ <listcell label="@load(each.project.humanId)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
+ <listcell label="@load(each.project.name)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
<listcell
- label="@load(each.paymentDeadline) @converter('hu.user.lis.ui.converter.DateToStringConverter')"/>
+ label="@load(each.paymentDeadline) @converter('hu.user.lis.ui.converter.DateToStringConverter')"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
<listcell
- label="@load(each.grossAmount) @converter('hu.user.lis.ui.converter.DoubleToStringConverter')"/>
- <listcell label="@load(each.currency)"/>
+ label="@load(each.grossAmount) @converter('hu.user.lis.ui.converter.DoubleToStringConverter')"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
+ <listcell label="@load(each.currency)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
<listcell>
- <a iconSclass="z-icon-external-link" visible="@load(each.incoming)"/>
- <a iconSclass="z-icon-sign-in" visible="@load(!each.incoming)"/>
+ <a iconSclass="z-icon-external-link" visible="@load(each.incoming)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
+ <a iconSclass="z-icon-sign-in" visible="@load(!each.incoming)"
+ style="@load(each.planned ? 'color: gray' : 'color: black')"/>
</listcell>
</listitem>
</template>