17984b015d6bf0f6d47ac2bc2ddd52cdbe642c6b.svn-base 4.3 KB

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