Advertisement
Guest User

Untitled

a guest
Dec 26th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.30 KB | None | 0 0
  1. <zk>
  2.   <window border="none" use="ru.hostco.monitoring.system.SecureWindow"
  3.    hflex="1" vflex="1"
  4.    apply="org.zkoss.bind.BindComposer"
  5.    viewModel="@id('vm') @init('ru.hostco.monitoring.models.IllnessesVM')">
  6.     <borderlayout>
  7.       <west title="Фильтры" size="15%"
  8.        flex="true"
  9.        maxsize="250"
  10.        open="false"
  11.        splittable="true"
  12.        collapsible="true">
  13.         <include src="/includes/filter.zul" parentVm="${vm}" refreshCommand="refreshGrid"/>
  14.       </west>
  15.       <center border="none" flex="true">
  16.         <div>
  17.           <listbox model="@bind(vm.recordSet)" multiple="true" checkmark="true"
  18.            selectedItems="@bind(vm.selectedList)" vflex="1"
  19.            emptyMessage="По выбранным условиям данных нет">
  20.             <auxhead>
  21.               <auxheader colspan="10">
  22.                 <hbox>
  23.                   <button tooltiptext="Добавить запись (Alt+N)" onClick="@command('addService')" iconSclass="z-icon-plus-circle" />
  24.                   <button tooltiptext="Удалить запись (Alt+R)" onClick="@command('delete')" iconSclass="z-icon-minus-circle"
  25.                    disabled="@load(vm.selectedList eq null or vm.selectedList.size() eq 0)"/>
  26.                   <button tooltiptext="Редактировать запись (Alt+E)" onClick="@command('editService')" iconSclass="z-icon-pencil"
  27.                    disabled="@load(vm.selectedList eq null or vm.selectedList.size() eq 0)"/>
  28.                   <button tooltiptext="Экспорт (Alt+P)" onClick="@command('exportData')" iconSclass="z-icon-print" />
  29.                   <!--<button tooltiptext="Экспертиза (Alt+X)" onClick="@command('loadExpert', target=content)" iconSclass="z-icon-lightbulb-o" />-->
  30.                   <button tooltiptext="Настройка таблицы (Alt+M)" onClick="@command('editTable')" iconSclass="z-icon-gear" />
  31.                 </hbox>
  32.               </auxheader>
  33.             </auxhead>
  34.             <listhead>
  35.               <listheader label="" width="30px" />
  36.               <listheader visible="@load(vm.tableConfig.get('fio').flag)"
  37.                sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('fio').propertyName)" >
  38.                 <hbox width="100%" pack="left">
  39.                   <label zclass="list_header" value="@load(vm.tableConfig.get('fio').label)" />
  40.                 </hbox>
  41.               </listheader>
  42.               <listheader visible="@load(vm.tableConfig.get('gender').flag)"
  43.                sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('gender').propertyName)" >
  44.                 <hbox width="100%" pack="left">
  45.                   <label zclass="list_header" value="@load(vm.tableConfig.get('gender').label)"/>
  46.                 </hbox>
  47.               </listheader>
  48.               <listheader visible="@load(vm.tableConfig.get('birthDate').flag)"
  49.                sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('birthDate').propertyName)" >
  50.                 <hbox width="100%" pack="left">
  51.                   <label zclass="list_header" value="@load(vm.tableConfig.get('birthDate').label)"/>
  52.                 </hbox>
  53.               </listheader>
  54.               <listheader visible="@load(vm.tableConfig.get('speciality').flag)"
  55.                sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('speciality').propertyName)" >
  56.                 <hbox width="100%" pack="left">
  57.                   <label zclass="list_header" value="@load(vm.tableConfig.get('speciality').label)"/>
  58.                 </hbox>
  59.               </listheader>
  60.               <listheader visible="@load(vm.tableConfig.get('diagnosis').flag)"
  61.                sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('diagnosis').propertyName)" >
  62.                 <hbox width="100%" pack="left">
  63.                   <label zclass="list_header" value="@load(vm.tableConfig.get('diagnosis').label)"/>
  64.                 </hbox>
  65.               </listheader>
  66.               <listheader visible="@load(vm.tableConfig.get('visitDate').flag)"
  67.                sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('visitDate').propertyName)" >
  68.                 <hbox width="100%" pack="left">
  69.                   <label zclass="list_header" value="@load(vm.tableConfig.get('visitDate').label)"/>
  70.                 </hbox>
  71.               </listheader>
  72.               <listheader visible="@load(vm.tableConfig.get('character').flag)"
  73.                sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('character').propertyName)" >
  74.                 <hbox width="100%" pack="left">
  75.                   <label zclass="list_header" value="@load(vm.tableConfig.get('character').label)"/>
  76.                 </hbox>
  77.               </listheader>
  78.               <listheader visible="@load(vm.tableConfig.get('reason').flag)"
  79.                sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('reason').propertyName)" >
  80.                 <hbox width="100%" pack="left">
  81.                   <label zclass="list_header" value="@load(vm.tableConfig.get('reason').label)"/>
  82.                 </hbox>
  83.               </listheader>
  84.               <listheader visible="@load(vm.tableConfig.get('payment').flag)"
  85.                sort="auto" onSort="@command('doSort', prop=vm.tableConfig.get('payment').propertyName)" >
  86.                 <hbox width="100%" pack="left">
  87.                   <label zclass="list_header" value="@load(vm.tableConfig.get('payment').label)"/>
  88.                 </hbox>
  89.               </listheader>
  90.             </listhead>
  91.             <template name="model">
  92.               <listitem>
  93.                 <listcell label="" />
  94.                 <listcell>
  95.                   <hbox pack="left">
  96.                     <label value="@load(each.idperson.fullName)" zclass="list_cell" />
  97.                   </hbox>
  98.                 </listcell>
  99.                 <listcell>
  100.                   <hbox pack="left">
  101.                     <label value="@load(each.idperson.gender.name)" zclass="list_cell" />
  102.                   </hbox>
  103.                 </listcell>
  104.                 <listcell>
  105.                   <hbox pack="left">
  106.                     <label value="@load(each.idperson.dateBirth) @converter('formattedDate', format='dd.MM.yyyy')" zclass="list_cell" />
  107.                   </hbox>
  108.                 </listcell>
  109.                 <listcell>
  110.                   <hbox pack="left">
  111.                     <label value="" zclass="list_cell" />
  112.                   </hbox>
  113.                 </listcell>
  114.                 <listcell>
  115.                   <hbox pack="left">
  116.                     <label value="@load(each.mkbGuid.mkbCode)" zclass="list_cell" />
  117.                   </hbox>
  118.                 </listcell>
  119.                 <listcell>
  120.                   <hbox pack="left">
  121.                     <label value="@load(each.vizitdate) @converter('formattedDate', format='dd.MM.yyyy')" zclass="list_cell" />
  122.                   </hbox>
  123.                 </listcell>
  124.                 <listcell>
  125.                   <hbox pack="left">
  126.                     <label value="@load(each.idcharacter.namecharacter)" zclass="list_cell" />
  127.                   </hbox>
  128.                 </listcell>
  129.                 <listcell>
  130.                   <hbox pack="left">
  131.                     <label value="@load(each.idreason.namereason)" zclass="list_cell" />
  132.                   </hbox>
  133.                 </listcell>
  134.                 <listcell>
  135.                   <hbox pack="left">
  136.                     <label value="" zclass="list_cell" />
  137.                   </hbox>
  138.                 </listcell>
  139.               </listitem>
  140.             </template>
  141.           </listbox>
  142.           <hlayout height="40px" spacing="10px" sclass="z-paging emias-paging" >
  143.             <combobox value="@bind(vm.pageSize)"
  144.              model="@load(vm.pageSizeValuesModel)"
  145.              readonly="true"
  146.              width="60px"
  147.              sclass="z-paging emias-paging" >
  148.               <template name="model">
  149.                 <comboitem label="@load(each)" value="@load(each)" />
  150.               </template>
  151.             </combobox>
  152.             <paging width="100%" pageSize="@load(vm.pageSize)" totalSize="@load(vm.totalSize)"
  153.              activePage="@bind(vm.activePage)" detailed="false" sclass="emias-paging"/>
  154.           </hlayout>
  155.         </div>
  156.       </center>
  157.     </borderlayout>
  158.   </window>
  159. </zk>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement