f834763fb1e6faf907b4b3d6db073675f6e364e3.svn-base 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <%@ page pageEncoding="UTF-8"%>
  2. <%@ page contentType="text/html; charset=UTF-8" language="java" %>
  3. <% request.setCharacterEncoding("GBK");
  4. String name = request.getParameter("name") == null ? "0" : request.getParameter("name");
  5. if(name.equals("")){
  6. out.print("请先填写基本信息!");
  7. return;}
  8. %>
  9. <HTML>
  10. <HEAD>
  11. <TITLE></TITLE>
  12. <META http-equiv="Content-Type" content="text/html; charset=GB2312">
  13. <link rel="stylesheet" href="../../../../../../styles/css.css" type="text/css">
  14. <LINK rel="stylesheet" href="../../../../../../styles/sortabletable.css" type="text/css">
  15. <script type="text/javascript" src="../../../../../../scripts/dojo/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true"></script>
  16. <script type="text/javascript">
  17. dojo.require("dijit.form.Form");
  18. dojo.require("dijit.form.ValidationTextBox");
  19. dojo.require("dijit.form.ComboBox");
  20. dojo.require("dijit.form.FilteringSelect");
  21. dojo.require("dijit.form.NumberSpinner");
  22. dojo.require("dijit.form.Button");
  23. dojo.require("dijit.Tooltip");
  24. </script>
  25. <style type="text/css">
  26. @import "../../../../../../scripts/dojo/dojo/resources/dojo.css";
  27. @import "../../../../../../scripts/dojo/dijit/themes/tundra/tundra.css";
  28. @import "../../../../../../scripts/dojo/dijit/themes/tundra/tundra_rtl.css";
  29. @import "../../../../../../scripts/dojo/dijit/tests/css/dijitTests.css";
  30. .formQuestion {
  31. background-color:#d0e3f5;
  32. padding:0.3em;
  33. font-weight:900;
  34. font-family:Verdana, Arial, sans-serif;
  35. font-size:0.8em;
  36. color:#5a5a5a;
  37. }
  38. .formAnswer {
  39. background-color:#f5eede;
  40. padding:0.3em;
  41. margin-bottom:1em;
  42. width: 100%;
  43. }
  44. .pageSubContentTitle {
  45. color:#8e8e8e;
  46. font-size:1em;
  47. font-family:Verdana, Arial, sans-serif;
  48. margin-bottom:0.75em;
  49. }
  50. .small INPUT {
  51. width: 2.5em;
  52. }
  53. .medium INPUT {
  54. width: 10em;
  55. }
  56. .long INPUT {
  57. width: 20em;
  58. }
  59. .firstLabel {
  60. display: inline-block;
  61. display: -moz-inline-box;
  62. width: 10em;
  63. min-width: 10em;
  64. }
  65. .secondLabel {
  66. width: auto;
  67. margin-left: 5em;
  68. margin-right: 1em;
  69. }
  70. fieldset label {
  71. margin-right: 1em;
  72. }
  73. .noticeMessage {
  74. display: block;
  75. float: right;
  76. font-weight: normal;
  77. font-family:Arial, Verdana, sans-serif;
  78. color:#663;
  79. font-size:0.9em;
  80. }
  81. </style>
  82. <link rel="stylesheet" href="../../../../../../scripts/ext20/resources/css/ext-all.css" type="text/css"></link>
  83. <script type="text/javascript" src="../../../../../../scripts/ext20/adapter/ext/ext-base.js"></script>
  84. <script type="text/javascript" src="../../../../../../scripts/ext20/ext-all.js"></script>
  85. <SCRIPT LANGUAGE="JavaScript">
  86. Ext.onReady(function(){
  87. function toggleDetails(btn, pressed){
  88. var view = grid.getView();
  89. view.showPreview = pressed;
  90. view.refresh();
  91. }
  92. var ds= new Ext.data.Store({
  93. proxy: new Ext.data.ScriptTagProxy({url:'listCols.jsp?name=<%=name%>'}),
  94. reader: new Ext.data.JsonReader( {root:'root'},
  95. [{name: 'Name'},
  96. {name: 'Description'},
  97. {name: 'DataType'},
  98. {name: 'Length'},
  99. {name: 'Scale'},
  100. {name: 'ReferenceParentName'},
  101. {name: 'isDisplay'},
  102. {name: 'isUnique'},
  103. {name: 'del'}
  104. ])});
  105. var cm=new Ext.grid.ColumnModel(
  106. [ new Ext.grid.RowNumberer(),
  107. {header: '英文名称', dataIndex: 'Name',sortable: true},
  108. {header: '中文描述', dataIndex: 'Description',sortable: true},
  109. {header: '类型', dataIndex: 'DataType'},
  110. {header: '长度', dataIndex: 'Length',width: 40},
  111. {header: '格式化类型', dataIndex: 'Scale',width: 40},
  112. {header: '上级节点', dataIndex: 'ReferenceParentName',width: 40},
  113. {header: '显示', dataIndex: 'isDisplay',width: 40},
  114. {header: '重复', dataIndex: 'isUnique',width: 40},
  115. {header: '删除', dataIndex: 'del'}
  116. ]);
  117. var grid=new Ext.grid.GridPanel({el:'report',ds:ds,cm:cm,
  118. width:690,
  119. height:440,
  120. title:'常量模版',
  121. store: ds
  122. });
  123. grid.render();
  124. ds.load({params:{start:1, limit:2}});
  125. });
  126. </SCRIPT>
  127. </HEAD>
  128. <body class="tundra">
  129. <div id="report">
  130. </div>
  131. <div class="btmbox">
  132. <button id="save" dojoType="dijit.form.Button" onClick='console.log("clicked simple"),location.href="edit.jsp?templateName=<%=name%>"' iconClass="plusIcon">
  133. 添加
  134. </button>
  135. <span dojoType="dijit.Tooltip" connectId="save">添加按钮</span>&nbsp;&nbsp;
  136. </div>
  137. </BODY>
  138. </HTML>