|
|
@ -1,5 +1,7 @@
|
|
|
|
<?page title="${labels.AgendaWorkflow}" contentType="text/html;charset=UTF-8"?>
|
|
|
|
<?page title="${labels.AgendaWorkflow}" contentType="text/html;charset=UTF-8"?>
|
|
|
|
<zk>
|
|
|
|
<zk xmlns="http://www.zkoss.org/2005/zul"
|
|
|
|
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
|
|
|
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
|
|
|
|
<window border="normal" apply="org.zkoss.bind.BindComposer"
|
|
|
|
<window border="normal" apply="org.zkoss.bind.BindComposer"
|
|
|
|
viewModel="@id('vm') @init('info.bukova.isspst.ui.requirement.RequirementTypesVM')"
|
|
|
|
viewModel="@id('vm') @init('info.bukova.isspst.ui.requirement.RequirementTypesVM')"
|
|
|
|
vflex="1">
|
|
|
|
vflex="1">
|
|
|
@ -63,45 +65,65 @@
|
|
|
|
<groupbox mold="3d" visible="@load(not empty vm.selected)">
|
|
|
|
<groupbox mold="3d" visible="@load(not empty vm.selected)">
|
|
|
|
<caption label="${labels.Workflow}"/>
|
|
|
|
<caption label="${labels.Workflow}"/>
|
|
|
|
<vbox>
|
|
|
|
<vbox>
|
|
|
|
|
|
|
|
<label value="${labels.ContextMenu}"/>
|
|
|
|
<listbox id="wgWorkflow" model="@load(vm.selected.workflow)" droppable="workgroup"
|
|
|
|
<listbox id="wgWorkflow" model="@load(vm.selected.workflow)" droppable="workgroup"
|
|
|
|
onDrop="@command('addRoleWg', event=event)"
|
|
|
|
onDrop="@command('addRoleWg', event=event)"
|
|
|
|
selectedItem="@bind(vm.wgSelWorkflow)">
|
|
|
|
selectedItem="@bind(vm.wgSelWorkflow)">
|
|
|
|
<listhead>
|
|
|
|
<listhead>
|
|
|
|
|
|
|
|
<listheader width="50px"/>
|
|
|
|
<listheader label="${labels.WorkgroupWorkflow}"/>
|
|
|
|
<listheader label="${labels.WorkgroupWorkflow}"/>
|
|
|
|
</listhead>
|
|
|
|
</listhead>
|
|
|
|
<template name="model">
|
|
|
|
<template name="model">
|
|
|
|
<listitem label="@load(each.role.description)" visible="@load(not each.centre)"
|
|
|
|
<listitem visible="@load(not each.centre)"
|
|
|
|
onDrop="@command('reorderWg', event=event)" draggable="workgroup" droppable="workgroup"
|
|
|
|
onDrop="@command('reorderWg', event=event)" draggable="workgroup" droppable="workgroup"
|
|
|
|
context="limitPopUpWg"
|
|
|
|
context="limitPopUpWg"
|
|
|
|
style="@load(empty each.limit ? '' : 'background-color: #e1fdd5')"
|
|
|
|
style="@load(empty each.limit ? '' : 'background-color: #e1fdd5')"
|
|
|
|
tooltiptext="@load(empty each.limit ? '' : labels.Limit.concat(' ').concat(each.limit))"/>
|
|
|
|
tooltiptext="@load(empty each.limit ? '' : labels.Limit.concat(' ').concat(each.limit))">
|
|
|
|
|
|
|
|
<listcell>
|
|
|
|
|
|
|
|
<image src="/img/money-small.png" visible="@load(not empty each.limit)"/>
|
|
|
|
|
|
|
|
<image src="/img/sign-small.png" visible="@load(each.signature)"/>
|
|
|
|
|
|
|
|
</listcell>
|
|
|
|
|
|
|
|
<listcell label="@load(each.role.description)"/>
|
|
|
|
|
|
|
|
</listitem>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</listbox>
|
|
|
|
</listbox>
|
|
|
|
<listbox id="centreWorkflow" model="@load(vm.selected.workflow)" droppable="centre"
|
|
|
|
<listbox id="centreWorkflow" model="@load(vm.selected.workflow)" droppable="centre"
|
|
|
|
onDrop="@command('addRoleCentre', event=event)"
|
|
|
|
onDrop="@command('addRoleCentre', event=event)"
|
|
|
|
selectedItem="@bind(vm.centreSelWorkflow)">
|
|
|
|
selectedItem="@bind(vm.centreSelWorkflow)">
|
|
|
|
<listhead>
|
|
|
|
<listhead>
|
|
|
|
|
|
|
|
<listheader width="50px"/>
|
|
|
|
<listheader label="${labels.CentreWorkflow}"/>
|
|
|
|
<listheader label="${labels.CentreWorkflow}"/>
|
|
|
|
</listhead>
|
|
|
|
</listhead>
|
|
|
|
<template name="model">
|
|
|
|
<template name="model">
|
|
|
|
<listitem label="@load(each.role.description)" visible="@load(each.centre)"
|
|
|
|
<listitem visible="@load(each.centre)"
|
|
|
|
onDrop="@command('reorderCentre', event=event)" draggable="centre" droppable="centre"
|
|
|
|
onDrop="@command('reorderCentre', event=event)" draggable="centre" droppable="centre"
|
|
|
|
context="limitPopUp"
|
|
|
|
context="limitPopUp"
|
|
|
|
style="@load(empty each.limit ? '' : 'background-color: #e1fdd5')"
|
|
|
|
tooltiptext="@load(empty each.limit ? '' : labels.Limit.concat(' ').concat(each.limit))">
|
|
|
|
tooltiptext="@load(empty each.limit ? '' : labels.Limit.concat(' ').concat(each.limit))"/>
|
|
|
|
<listcell>
|
|
|
|
|
|
|
|
<image src="/img/money-small.png" visible="@load(not empty each.limit)"/>
|
|
|
|
|
|
|
|
<image src="/img/sign-small.png" visible="@load(each.signature)"/>
|
|
|
|
|
|
|
|
</listcell>
|
|
|
|
|
|
|
|
<listcell label="@load(each.role.description)"/>
|
|
|
|
|
|
|
|
</listitem>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</listbox>
|
|
|
|
</listbox>
|
|
|
|
</vbox>
|
|
|
|
</vbox>
|
|
|
|
</groupbox>
|
|
|
|
</groupbox>
|
|
|
|
<menupopup id="limitPopUp">
|
|
|
|
<menupopup id="limitPopUp">
|
|
|
|
<menuitem label="${labels.OverLimit}" checkmark="true"
|
|
|
|
<menuitem label="${labels.OverLimit}" checkmark="true"
|
|
|
|
checked="@load(not empty vm.centreSelWorkflow.limit)"
|
|
|
|
checked="@load(not empty vm.centreSelWorkflow.limit)"
|
|
|
|
onClick="@command('overLimit', workflow=centreWorkflow.selectedItem.value)"/>
|
|
|
|
onClick="@command('overLimit', workflow=centreWorkflow.selectedItem.value)"/>
|
|
|
|
|
|
|
|
<menuitem label="${labels.DigitalSignature}" checkmark="true"
|
|
|
|
|
|
|
|
checked="@load(vm.centreSelWorkflow.signature)"
|
|
|
|
|
|
|
|
onClick="@command('toggleSignature', workflow=centreWorkflow.selectedItem.value)"/>
|
|
|
|
</menupopup>
|
|
|
|
</menupopup>
|
|
|
|
<menupopup id="limitPopUpWg">
|
|
|
|
<menupopup id="limitPopUpWg">
|
|
|
|
<menuitem label="${labels.OverLimit}" checkmark="true"
|
|
|
|
<menuitem label="${labels.OverLimit}" checkmark="true"
|
|
|
|
checked="@load(not empty vm.wgSelWorkflow.limit)"
|
|
|
|
checked="@load(not empty vm.wgSelWorkflow.limit)"
|
|
|
|
onClick="@command('overLimit', workflow=wgWorkflow.selectedItem.value)"/>
|
|
|
|
onClick="@command('overLimit', workflow=wgWorkflow.selectedItem.value)"/>
|
|
|
|
|
|
|
|
<menuitem label="${labels.DigitalSignature}" checkmark="true"
|
|
|
|
|
|
|
|
checked="@load(vm.wgSelWorkflow.signature)"
|
|
|
|
|
|
|
|
onClick="@command('toggleSignature', workflow=wgWorkflow.selectedItem.value)"/>
|
|
|
|
</menupopup>
|
|
|
|
</menupopup>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</hbox>
|
|
|
|
</hbox>
|
|
|
|