treemainxul.ftl 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?xml version="1.0" encoding="GBK"?>
  2. <mainwindow app="${appname}" title="${appdesc}" resize="true" wfenabled="${wfenable}" use="${mainWndClass}"
  3. xmlns:a="http://www.inbasis.com/2005/zk/annotation">
  4. <!-- ********************************** 菜单条和工具栏 ********************************** -->
  5. <imenubar id="menubar"/>
  6. <!-- ********************************** 消息提示框栏 ********************************** -->
  7. <messagebar/>
  8. <hbox spacing="0">
  9. <!-- ********************************** 结果树页面 ********************************** -->
  10. <groupbox><caption label="${appdesc}"/>
  11. <tree use="inbasis.system.ui.common.MainTree"
  12. topwhere="${topwhere}" expwhere="${expwhere}" parentvalue="${parentvalue}"
  13. parentimg="${parentimg}" childimg="${childimg}"
  14. label="${label}" openchild="${openchild}" width="180"/>
  15. </groupbox>
  16. <splitter collapse="before"/>
  17. <!-- ********************************** 标签页面 ********************************** -->
  18. <tabbox id="appTabbox" width="100%" onSelect="mainWnd.selectTab()">
  19. <tabs>
  20. <tab id="main" label="${appdesc}" width="80px"/>
  21. <#list childs as child>
  22. <tab id="${child.relname?lower_case}Tab" label="${child.description}" width="80px"/>
  23. </#list>
  24. </tabs>
  25. <tabpanels width="100%">
  26. <!-- ********************************** 主数据窗口 ********************************** -->
  27. <!-- 初始化设置字段的必输和只读 -->
  28. <zscript><![CDATA[
  29. String[] required = {""};
  30. mainWnd.setRequired(required);
  31. String[] readonly = {""};
  32. mainWnd.setReadonly(readonly);
  33. ]]></zscript>
  34. <tabpanel>
  35. <grid>
  36. <rows>
  37. <!-- ******************************************************************** -->
  38. <!-- *************************在下面修改主界面字段**************************** -->
  39. <!-- ********************************************************************-->
  40. <#list props as prop>
  41. <row>
  42. ${prop.title}:<a:bind value="${tablename?lower_case}.${prop.colname?lower_case}"/><#rt>
  43. <#switch prop.dbtype>
  44. <#case "字符">
  45. <#switch prop.listtype>
  46. <#case "bandbox">
  47. <#lt><ibandbox id="${tablename?lower_case}.${prop.colname?lower_case}" lookup="${prop.listname?lower_case}"/><#break>
  48. <#case "combobox">
  49. <#lt><icombobox id="${tablename?lower_case}.${prop.colname?lower_case}"/><#break>
  50. <#default>
  51. <#lt><itextbox id="${tablename?lower_case}.${prop.colname?lower_case}"/>
  52. </#switch>
  53. <#break>
  54. <#case "数值">
  55. <#lt><idoublebox id="${tablename?lower_case}.${prop.colname?lower_case}"/><#break>
  56. <#case "整数">
  57. <#lt><ilongbox id="${tablename?lower_case}.${prop.colname?lower_case}"/><#break>
  58. <#case "日期">
  59. <#lt><idatebox id="${tablename?lower_case}.${prop.colname?lower_case}"/><#break>
  60. <#case "日期时间">
  61. <#lt><idatetimebox id="${tablename?lower_case}.${prop.colname?lower_case}"/><#break>
  62. <#default>
  63. <#lt><itextbox id="${tablename?lower_case}.${prop.colname?lower_case}"/>
  64. </#switch>
  65. </row>
  66. </#list>
  67. </rows>
  68. </grid>
  69. </tabpanel>
  70. <#list childs as child>
  71. <!-- *****************************${child.description}**************************** -->
  72. <tabpanel>
  73. <listwindow id="${child.relname}" title="${child.description}" <#if child.listwindow?exists>use="${child.listwindow}"</#if> dialog="${child.dialog}">
  74. <defaultvalue band="${child.relname}" value=""/>
  75. <tablelist band="${child.relname}" pageSize="16">
  76. <listhead>
  77. <tablelistheader src="/images/img_listitem.gif"/>
  78. <#list child.props as childprop>
  79. <tablelistheader data="${childprop.colname?lower_case}" label="${childprop.title}" sort="auto" width="10%"/>
  80. </#list>
  81. </listhead>
  82. <tablelistfoot/>
  83. </tablelist>
  84. </listwindow>
  85. </tabpanel>
  86. </#list>
  87. </tabpanels>
  88. </tabbox>
  89. </hbox>
  90. </mainwindow>