19 package org.turro.erp.task.usage;
21 import org.turro.erp.db.ErpPU;
22 import org.turro.erp.entity.HumanResource;
23 import org.turro.erp.entity.Resource;
24 import org.turro.erp.humanres.HumanResourceCombobox;
25 import org.turro.erp.resource.ResourceCombobox;
26 import org.zkoss.lang.Strings;
27 import org.zkoss.zk.ui.Component;
28 import org.zkoss.zk.ui.util.GenericForwardComposer;
29 import org.zkoss.zul.Button;
30 import org.zkoss.zul.Tab;
38 private Tab hrTab, rTab, pTab;
49 private Button butproc;
51 public void show(String value) {
52 if(!Strings.isBlank(value)) {
53 String[] v = value.split(
":");
55 if(
"1".equals(v[0])) {
56 if(
"1".equals(v[1])) {
59 hrTab.setSelected(
true);
60 }
else if(
"2".equals(v[1])) {
63 rTab.setSelected(
true);
65 }
else if(
"2".equals(v[0])) {
66 if(
"1".equals(v[1])) {
69 pTab.setSelected(
true);
73 pTab.setSelected(
true);
94 super.doAfterCompose(comp);
void doAfterCompose(Component comp)
void setHumanResource(HumanResource humanResource)
void setResource(Resource resource)