dialogxul.ftl 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="GBK"?>
  2. <editwindow xmlns:a="http://www.inbasis.com/2005/zk/annotation">
  3. <zscript>
  4. String[] required = {};
  5. mainWnd.setRequired(required);
  6. String[] readonly = {};
  7. mainWnd.setReadonly(readonly);
  8. </zscript>
  9. <groupbox><caption label="${description}"><toolbarbutton label="关闭" src="/images/close_edit_dialog.gif" onClick="mainWnd.closeWnd()"/></caption>
  10. <grid >
  11. <rows>
  12. <#list props as childprop>
  13. <row>
  14. ${childprop.title}:<a:bind value="${tablename?lower_case}.${childprop.colname?lower_case}"/><#rt>
  15. <#switch childprop.dbtype>
  16. <#case "字符">
  17. <#switch childprop.listtype>
  18. <#case "bandbox">
  19. <#lt><ibandbox id="${tablename?lower_case}.${childprop.colname?lower_case}" lookup="${childprop.listname?lower_case}"/><#break>
  20. <#case "combobox">
  21. <#lt><icombobox id="${tablename?lower_case}.${childprop.colname?lower_case}"/><#break>
  22. <#default>
  23. <#lt><itextbox id="${tablename?lower_case}.${childprop.colname?lower_case}"/>
  24. </#switch>
  25. <#break>
  26. <#case "数值">
  27. <#lt><idoublebox id="${tablename?lower_case}.${childprop.colname?lower_case}"/><#break>
  28. <#case "整数">
  29. <#lt><ilongbox id="${tablename?lower_case}.${childprop.colname?lower_case}"/><#break>
  30. <#case "日期">
  31. <#lt><idatebox id="${tablename?lower_case}.${childprop.colname?lower_case}"/><#break>
  32. <#case "日期时间">
  33. <#lt><idatetimebox id="${tablename?lower_case}.${childprop.colname?lower_case}"/><#break>
  34. <#default>
  35. <#lt><itextbox id="${tablename?lower_case}.${childprop.colname?lower_case}"/>
  36. </#switch>
  37. </row>
  38. </#list>
  39. </rows>
  40. </grid>
  41. </groupbox>
  42. </editwindow>