parent
a637a077c0
commit
e26f56fcb9
@ -0,0 +1,33 @@
|
|||||||
|
package info.bukova.isspst.ui.requirements;
|
||||||
|
|
||||||
|
import info.bukova.isspst.data.Workflow;
|
||||||
|
|
||||||
|
import org.zkoss.bind.annotation.BindingParam;
|
||||||
|
import org.zkoss.bind.annotation.Command;
|
||||||
|
import org.zkoss.bind.annotation.ExecutionArgParam;
|
||||||
|
import org.zkoss.bind.annotation.Init;
|
||||||
|
import org.zkoss.zul.Window;
|
||||||
|
|
||||||
|
public class LimitVM {
|
||||||
|
|
||||||
|
private Workflow workflow;
|
||||||
|
|
||||||
|
@Init
|
||||||
|
public void init(@ExecutionArgParam("workflow") Workflow workflow) {
|
||||||
|
this.workflow = workflow;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Workflow getWorkflow() {
|
||||||
|
return workflow;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Command
|
||||||
|
public void save(@BindingParam("window") Window window) {
|
||||||
|
window.detach();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isCanSave() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
<?page title="Limit" contentType="text/html;charset=UTF-8"?>
|
||||||
|
<zk>
|
||||||
|
<window id="editWin" border="normal" apply="org.zkoss.bind.BindComposer"
|
||||||
|
viewModel="@id('vm') @init('info.bukova.isspst.ui.requirements.LimitVM')">
|
||||||
|
<caption zclass="form-caption" label="${labels.LimitFormTitle}" />
|
||||||
|
<vbox>
|
||||||
|
<hbox>
|
||||||
|
<label value="${labels.Limit}"/>
|
||||||
|
<textbox value="@bind(vm.workflow.limit)"/>
|
||||||
|
</hbox>
|
||||||
|
<include src="/app/formButtons.zul" />
|
||||||
|
</vbox>
|
||||||
|
|
||||||
|
</window>
|
||||||
|
</zk>
|
Loading…
Reference in New Issue