xul.ftl 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?xml version="1.0" encoding="GBK"?>
  2. <mainwindow app="${appname}" title="${appdesc}" wfenabled="${wfenable}" resize="true" use="${mainWndClass}"
  3. xmlns:a="http://www.inbasis.com/2005/zk/annotation">
  4. <!-- ********************************** 菜单条和工具栏 ********************************** -->
  5. <imenubar id="menubar"/>
  6. <!-- ********************************** 消息提示框栏 ********************************** -->
  7. <messagebar/>
  8. <!-- ********************************** 标签页面 ********************************** -->
  9. <tabbox id="appTabbox" width="100%" onSelect="mainWnd.selectTab()">
  10. <tabs>
  11. <tab id="list" label="列表" width="70px"/>
  12. <tab id="main" label="${appdesc}"/>
  13. <#list childs as child>
  14. <tab id="${child.relname?lower_case}Tab" label="${child.description}"/>
  15. </#list>
  16. </tabs>
  17. <!-- ********************************** 列表结果集页面 ********************************** -->
  18. <tabpanels width="100%">
  19. <tabpanel>
  20. <zscript><![CDATA[
  21. //在此处加入应用程序默认过滤条件
  22. String queryString="";
  23. mainWnd.setQueryString(queryString);
  24. mainWnd.setOrderby("");
  25. ]]></zscript>
  26. <!-- 查询过滤器 -->
  27. <hbox width="100%">
  28. <groupbox width="180">
  29. <caption label="高级查询" />
  30. <menubar use="inbasis.system.ui.common.SearchMenuBar"/>
  31. </groupbox>
  32. <groupbox id="searchBox">
  33. <caption label="过滤器" />
  34. <!--过滤字段示例: 应用程序:<stextbox data="app" cols="10"/> -->
  35. </groupbox>
  36. </hbox>
  37. <!-- 结果集列表 -->
  38. <pagenavigator/>
  39. <resultlist pageSize="20">
  40. <listhead>
  41. <resultlistheader src="/images/img_listitem.gif"/>
  42. <#list props as prop>
  43. <resultlistheader data="${prop.colname?lower_case}" label="${prop.title}" sort="auto" width="10%"/>
  44. </#list>
  45. </listhead>
  46. </resultlist>
  47. </tabpanel>
  48. <!-- ********************************** 主数据窗口 ********************************** -->
  49. <!-- 初始化设置字段的必输和只读 -->
  50. <zscript><![CDATA[
  51. String[] required = {""};
  52. mainWnd.setRequired(required);
  53. String[] readonly = {""};
  54. mainWnd.setReadonly(readonly);
  55. ]]></zscript>
  56. <tabpanel>
  57. <grid>
  58. <rows>
  59. <!-- ******************************************************************** -->
  60. <!-- *************************在下面修改主界面字段**************************** -->
  61. <!-- ********************************************************************-->
  62. <#list props as prop>
  63. <row>
  64. ${prop.title}:<a:bind value="${tablename?lower_case}.${prop.colname?lower_case}"/><#rt>
  65. <#switch prop.dbtype>
  66. <#case "字符">
  67. <#switch prop.listtype>
  68. <#case "bandbox">
  69. <#lt><ibandbox id="${tablename?lower_case}.${prop.colname?lower_case}" lookup="${prop.listname?lower_case}"/><#break>
  70. <#case "combobox">
  71. <#lt><icombobox id="${tablename?lower_case}.${prop.colname?lower_case}"/><#break>
  72. <#default>
  73. <#lt><itextbox id="${tablename?lower_case}.${prop.colname?lower_case}"/>
  74. </#switch>
  75. <#break>
  76. <#case "数值">
  77. <#lt><idoublebox id="${tablename?lower_case}.${prop.colname?lower_case}"/><#break>
  78. <#case "整数">
  79. <#lt><ilongbox id="${tablename?lower_case}.${prop.colname?lower_case}"/><#break>
  80. <#case "日期">
  81. <#lt><idatebox id="${tablename?lower_case}.${prop.colname?lower_case}"/><#break>
  82. <#case "日期时间">
  83. <#lt><idatetimebox id="${tablename?lower_case}.${prop.colname?lower_case}"/><#break>
  84. <#default>
  85. <#lt><itextbox id="${tablename?lower_case}.${prop.colname?lower_case}"/>
  86. </#switch>
  87. </row>
  88. </#list>
  89. </rows>
  90. </grid>
  91. </tabpanel>
  92. <#list childs as child>
  93. <!-- *****************************${child.description}**************************** -->
  94. <tabpanel>
  95. <listwindow id="${child.relname}" title="${child.description}" <#if child.listwindow?exists>use="${child.listwindow}"</#if> dialog="${child.dialog}">
  96. <defaultvalue band="${child.relname}" value=""/>
  97. <tablelist band="${child.relname}" pageSize="16">
  98. <listhead>
  99. <tablelistheader src="/images/img_listitem.gif"/>
  100. <#list child.props as childprop>
  101. <tablelistheader data="${childprop.colname?lower_case}" label="${childprop.title}" sort="auto" width="10%"/>
  102. </#list>
  103. </listhead>
  104. <tablelistfoot/>
  105. </tablelist>
  106. </listwindow>
  107. </tabpanel>
  108. </#list>
  109. </tabpanels>
  110. </tabbox>
  111. </mainwindow>