jformGraphreportHead-add.jsp 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>图表配置</title>
  7. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  8. <script type="text/javascript">
  9. $(document).ready(function(){
  10. $('#tt').tabs({
  11. onSelect:function(title){
  12. $('#tt .panel-body').css('width','auto');
  13. }
  14. });
  15. $(".tabs-wrap").css('width','100%');
  16. });
  17. </script>
  18. </head>
  19. <body style="overflow-x: hidden;">
  20. <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="jformGraphreportHeadController.do?doAdd">
  21. <input id="id" name="id" type="hidden" value="${jformGraphreportHeadPage.id }">
  22. <table cellpadding="0" cellspacing="1" class="formtable">
  23. <tr>
  24. <td align="right">
  25. <label class="Validform_label">名称:</label>
  26. </td>
  27. <td class="value">
  28. <input id="name" name="name" type="text" style="width: 150px" class="inputxt"datatype="*">
  29. <span class="Validform_checktip"></span>
  30. <label class="Validform_label" style="display: none;">名称</label>
  31. </td>
  32. <td align="right">
  33. <label class="Validform_label">编码:</label>
  34. </td>
  35. <td class="value">
  36. <input id="code" name="code" type="text" style="width: 150px" class="inputxt"datatype="*">
  37. <span class="Validform_checktip"></span>
  38. <label class="Validform_label" style="display: none;">编码</label>
  39. </td>
  40. </tr>
  41. <tr>
  42. <td align="right">
  43. <label class="Validform_label">描述:</label>
  44. </td>
  45. <td class="value">
  46. <input id="content" name="content" type="text" style="width: 150px" class="inputxt"datatype="*">
  47. <span class="Validform_checktip"></span>
  48. <label class="Validform_label" style="display: none;">描述</label>
  49. </td>
  50. <td align="right">
  51. <label class="Validform_label">y轴文字:</label>
  52. </td>
  53. <td class="value">
  54. <input id="ytext" name="ytext" type="text" style="width: 150px" class="inputxt"datatype="*">
  55. <span class="Validform_checktip"></span>
  56. <label class="Validform_label" style="display: none;">y轴文字</label>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td align="right">
  61. <label class="Validform_label">x轴数据:</label>
  62. </td>
  63. <td class="value">
  64. <input id="categories" name="categories" type="text" style="width: 150px" class="inputxt"datatype="*">
  65. <span class="Validform_checktip"></span>
  66. <label class="Validform_label" style="display: none;">x轴数据</label>
  67. </td>
  68. <td align="right">
  69. <label class="Validform_label">是否显示明细:</label>
  70. </td>
  71. <td class="value">
  72. <t:dictSelect field="isShowList" type="list"
  73. typeGroupCode="sf_yn" hasLabel="false" title="是否显示明细"></t:dictSelect>
  74. <span class="Validform_checktip"></span>
  75. <label class="Validform_label" style="display: none;">是否显示明细</label>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td align="right">
  80. <label class="Validform_label">查询数据SQL:</label>
  81. </td>
  82. <td class="value" colspan="3">
  83. <textarea id="cgrSql" style="width:600px;" class="inputxt" rows="4" name="cgrSql"></textarea>
  84. <span class="Validform_checktip"></span>
  85. <label class="Validform_label" style="display: none;">查询数据SQL</label>
  86. </td>
  87. </tr>
  88. <tr>
  89. <td align="right">
  90. <label class="Validform_label">扩展JS:</label>
  91. </td>
  92. <td class="value" colspan="3">
  93. <textarea id="xpageJs" style="width:600px;" class="inputxt" rows="4" name="xpageJs"></textarea>
  94. <span class="Validform_checktip"></span>
  95. <label class="Validform_label" style="display: none;">扩展JS</label>
  96. </td>
  97. </tr>
  98. </table>
  99. <div style="width: auto;height: 200px;">
  100. <%-- 增加一个div,用于调节页面大小,否则默认太小 --%>
  101. <div style="width:800px;height:1px;"></div>
  102. <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
  103. <t:tab href="jformGraphreportHeadController.do?jformGraphreportItemList&id=${jformGraphreportHeadPage.id}" icon="icon-search" title="图表配置" id="jformGraphreportItem"></t:tab>
  104. </t:tabs>
  105. </div>
  106. </t:formvalid>
  107. <!-- 添加 附表明细 模版 -->
  108. <table style="display:none">
  109. <tbody id="add_jformGraphreportItem_table_template">
  110. <tr>
  111. <td align="center"><div style="width: 25px;" name="xh"></div></td>
  112. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  113. <td align="left">
  114. <input name="jformGraphreportItemList[#index#].fieldName" maxlength="36"
  115. type="text" class="inputxt" style="width:120px;"
  116. >
  117. <label class="Validform_label" style="display: none;">字段名</label>
  118. </td>
  119. <td align="left">
  120. <input name="jformGraphreportItemList[#index#].fieldTxt" maxlength="1000"
  121. type="text" class="inputxt" style="width:120px;"
  122. >
  123. <label class="Validform_label" style="display: none;">字段文本</label>
  124. </td>
  125. <td align="left">
  126. <input name="jformGraphreportItemList[#index#].orderNum" maxlength="10"
  127. type="text" class="inputxt" style="width:40px;"
  128. >
  129. <label class="Validform_label" style="display: none;">排序</label>
  130. </td>
  131. <td align="left">
  132. <t:dictSelect field="jformGraphreportItemList[#index#].fieldType" extendJson="{style:'width:100px'}"
  133. typeGroupCode="fieldtype" defaultVal="" hasLabel="false" title="字段类型"></t:dictSelect>
  134. <label class="Validform_label" style="display: none;">字段类型</label>
  135. </td>
  136. <td align="left">
  137. <t:dictSelect field="jformGraphreportItemList[#index#].isShow" type="list" extendJson="{style:'width:100px'}"
  138. typeGroupCode="sf_yn" defaultVal="" hasLabel="false" title="是否显示"></t:dictSelect>
  139. <label class="Validform_label" style="display: none;">是否显示</label>
  140. </td>
  141. <td align="left">
  142. <t:dictSelect field="jformGraphreportItemList[#index#].searchFlag" type="list" extendJson="{style:'width:100px'}"
  143. typeGroupCode="sf_yn" defaultVal="" hasLabel="false" title="是否查询"></t:dictSelect>
  144. <label class="Validform_label" style="display: none;">是否查询</label>
  145. </td>
  146. <td align="left">
  147. <t:dictSelect field="jformGraphreportItemList[#index#].searchMode" type="list" extendJson="{style:'width:100px'}"
  148. typeGroupCode="searchmode" defaultVal="" hasLabel="false" title="查询模式"></t:dictSelect>
  149. <label class="Validform_label" style="display: none;">查询模式</label>
  150. </td>
  151. <td align="left">
  152. <input name="jformGraphreportItemList[#index#].dictCode" maxlength="500"
  153. type="text" class="inputxt" style="width:120px;"
  154. >
  155. <label class="Validform_label" style="display: none;">字典Code</label>
  156. </td>
  157. <td align="left">
  158. <t:dictSelect field="jformGraphreportItemList[#index#].isGraph" type="list" extendJson="{style:'width:100px'}"
  159. typeGroupCode="sf_yn" defaultVal="" hasLabel="false" title="显示图表"></t:dictSelect>
  160. <label class="Validform_label" style="display: none;">显示图表</label>
  161. </td>
  162. <td align="left">
  163. <t:dictSelect field="jformGraphreportItemList[#index#].graphType" type="list" extendJson="{style:'width:100px'}"
  164. typeGroupCode="tblx" defaultVal="" hasLabel="false" title="图表类型"></t:dictSelect>
  165. <label class="Validform_label" style="display: none;">图表类型</label>
  166. </td>
  167. <td align="left">
  168. <input name="jformGraphreportItemList[#index#].graphName" maxlength="100"
  169. type="text" class="inputxt" style="width:120px;"
  170. >
  171. <label class="Validform_label" style="display: none;">图表名称</label>
  172. </td>
  173. <td align="left">
  174. <input name="jformGraphreportItemList[#index#].tabName" maxlength="50"
  175. type="text" class="inputxt" style="width:120px;"
  176. >
  177. <label class="Validform_label" style="display: none;">标签名称</label>
  178. </td>
  179. </tr>
  180. </tbody>
  181. </table>
  182. </body>
  183. <script src = "webpage/jeecg/graphreport/jformGraphreportHead.js"></script>