Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <zk>
- <window border="none" use="ru.hostco.monitoring.system.SecureWindow"
- hflex="1" vflex="1"
- apply="org.zkoss.bind.BindComposer"
- viewModel="@id('vm') @init('ru.hostco.monitoring.models.IllnessesVM')">
- <borderlayout>
- <west title="Фильтры" size="15%"
- flex="true"
- maxsize="250"
- open="false"
- splittable="true"
- collapsible="true">
- <include src="/includes/filter.zul" parentVm="${vm}" refreshCommand="refreshGrid"/>
- </west>
- <center border="none" flex="true">
- <div>
- <listbox model="@bind(vm.recordSet)" multiple="true" checkmark="true"
- selectedItems="@bind(vm.selectedList)" vflex="1"
- emptyMessage="По выбранным условиям данных нет">
- <auxhead>
- <auxheader colspan="10">
- <hbox>
- <button tooltiptext="Добавить запись (Alt+N)" onClick="@command('addService')" iconSclass="z-icon-plus-circle" />
- <button tooltiptext="Удалить запись (Alt+R)" onClick="@command('delete')" iconSclass="z-icon-minus-circle"
- disabled="@load(vm.selectedList eq null or vm.selectedList.size() eq 0)"/>
- <button tooltiptext="Редактировать запись (Alt+E)" onClick="@command('editService')" iconSclass="z-icon-pencil"
- disabled="@load(vm.selectedList eq null or vm.selectedList.size() eq 0)"/>
- <button tooltiptext="Экспорт (Alt+P)" onClick="@command('exportData')" iconSclass="z-icon-print" />
- <!--<button tooltiptext="Экспертиза (Alt+X)" onClick="@command('loadExpert', target=content)" iconSclass="z-icon-lightbulb-o" />-->
- <button tooltiptext="Настройка таблицы (Alt+M)" onClick="@command('editTable')" iconSclass="z-icon-gear" />
- </hbox>
- </auxheader>
- </auxhead>
- <listhead>
- <listheader label="" width="30px" />
- <listheader visible="@load(vm.tableConfig.get('fio').flag)"
- sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('fio').propertyName)" >
- <hbox width="100%" pack="left">
- <label zclass="list_header" value="@load(vm.tableConfig.get('fio').label)" />
- </hbox>
- </listheader>
- <listheader visible="@load(vm.tableConfig.get('gender').flag)"
- sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('gender').propertyName)" >
- <hbox width="100%" pack="left">
- <label zclass="list_header" value="@load(vm.tableConfig.get('gender').label)"/>
- </hbox>
- </listheader>
- <listheader visible="@load(vm.tableConfig.get('birthDate').flag)"
- sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('birthDate').propertyName)" >
- <hbox width="100%" pack="left">
- <label zclass="list_header" value="@load(vm.tableConfig.get('birthDate').label)"/>
- </hbox>
- </listheader>
- <listheader visible="@load(vm.tableConfig.get('speciality').flag)"
- sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('speciality').propertyName)" >
- <hbox width="100%" pack="left">
- <label zclass="list_header" value="@load(vm.tableConfig.get('speciality').label)"/>
- </hbox>
- </listheader>
- <listheader visible="@load(vm.tableConfig.get('diagnosis').flag)"
- sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('diagnosis').propertyName)" >
- <hbox width="100%" pack="left">
- <label zclass="list_header" value="@load(vm.tableConfig.get('diagnosis').label)"/>
- </hbox>
- </listheader>
- <listheader visible="@load(vm.tableConfig.get('visitDate').flag)"
- sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('visitDate').propertyName)" >
- <hbox width="100%" pack="left">
- <label zclass="list_header" value="@load(vm.tableConfig.get('visitDate').label)"/>
- </hbox>
- </listheader>
- <listheader visible="@load(vm.tableConfig.get('character').flag)"
- sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('character').propertyName)" >
- <hbox width="100%" pack="left">
- <label zclass="list_header" value="@load(vm.tableConfig.get('character').label)"/>
- </hbox>
- </listheader>
- <listheader visible="@load(vm.tableConfig.get('reason').flag)"
- sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('reason').propertyName)" >
- <hbox width="100%" pack="left">
- <label zclass="list_header" value="@load(vm.tableConfig.get('reason').label)"/>
- </hbox>
- </listheader>
- <listheader visible="@load(vm.tableConfig.get('payment').flag)"
- sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('payment').propertyName)" >
- <hbox width="100%" pack="left">
- <label zclass="list_header" value="@load(vm.tableConfig.get('payment').label)"/>
- </hbox>
- </listheader>
- </listhead>
- <template name="model">
- <listitem>
- <listcell label="" />
- <listcell>
- <hbox pack="left">
- <label value="@load(each.idperson.fullName)" zclass="list_cell" />
- </hbox>
- </listcell>
- <listcell>
- <hbox pack="left">
- <label value="@load(each.idperson.gender.name)" zclass="list_cell" />
- </hbox>
- </listcell>
- <listcell>
- <hbox pack="left">
- <label value="@load(each.idperson.dateBirth) @converter('formattedDate', format='dd.MM.yyyy')" zclass="list_cell" />
- </hbox>
- </listcell>
- <listcell>
- <hbox pack="left">
- <label value="" zclass="list_cell" />
- </hbox>
- </listcell>
- <listcell>
- <hbox pack="left">
- <label value="@load(each.mkbGuid.mkbCode)" zclass="list_cell" />
- </hbox>
- </listcell>
- <listcell>
- <hbox pack="left">
- <label value="@load(each.vizitdate) @converter('formattedDate', format='dd.MM.yyyy')" zclass="list_cell" />
- </hbox>
- </listcell>
- <listcell>
- <hbox pack="left">
- <label value="@load(each.idcharacter.namecharacter)" zclass="list_cell" />
- </hbox>
- </listcell>
- <listcell>
- <hbox pack="left">
- <label value="@load(each.idreason.namereason)" zclass="list_cell" />
- </hbox>
- </listcell>
- <listcell>
- <hbox pack="left">
- <label value="" zclass="list_cell" />
- </hbox>
- </listcell>
- </listitem>
- </template>
- </listbox>
- <hlayout height="40px" spacing="10px" sclass="z-paging emias-paging" >
- <combobox value="@bind(vm.pageSize)"
- model="@load(vm.pageSizeValuesModel)"
- readonly="true"
- width="60px"
- sclass="z-paging emias-paging" >
- <template name="model">
- <comboitem label="@load(each)" value="@load(each)" />
- </template>
- </combobox>
- <paging width="100%" pageSize="@load(vm.pageSize)" totalSize="@load(vm.totalSize)"
- activePage="@bind(vm.activePage)" detailed="false" sclass="emias-paging"/>
- </hlayout>
- </div>
- </center>
- </borderlayout>
- </window>
- </zk>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement