6ed829729da811bea8af88159c64d91ec2e123e8.svn-base 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <%@ page contentType="text/html; charset=UTF-8" language="java"%>
  2. <%@ page import="java.util.*"%>
  3. <%@ page
  4. import="com.sysmodel.datamodel.xmlmodel.ModelFactory,
  5. com.sysmodel.datamodel.xmlmodel.impl.MdpModuleImpl,
  6. com.sysmodel.datamodel.xmlmodel.able.SysModel,
  7. com.sysmodel.datamodel.xmlmodel.impl.MdpClassImpl"%>
  8. <%
  9. SysModel sysmodel = ModelFactory.getSysmodel();
  10. ArrayList list = sysmodel.getMdpModules();
  11. ArrayList mdpClasses = sysmodel.getMdpClasses();
  12. %>
  13. <HTML>
  14. <HEAD>
  15. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  16. <TITLE></TITLE>
  17. <link rel="stylesheet" href="../../../../../styles/style.css" type="text/css"></link>
  18. <link rel="stylesheet" href="../../../../../styles/css.css" type="text/css"></link>
  19. <script type="text/javascript" src="../../../../../scripts/dojo/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true"></script>
  20. <link rel="stylesheet" type="text/css" href="../../../../../scripts/ext20/resources/css/ext-all.css" />
  21. <script type="text/javascript" src="../../../../../scripts/ext20/adapter/ext/ext-base.js"></script>
  22. <script type="text/javascript" src="../../../../../scripts/ext20/ext-all.js"></script>
  23. <link rel="stylesheet" href="../../../../../scripts/ext20/examples/examples.css" type="text/css"></link>
  24. <script type="text/javascript" src="../../../../../scripts/ext20/examples/examples.js"></script>
  25. <script type="text/javascript">
  26. dojo.require("dijit.form.Form");
  27. dojo.require("dijit.form.FilteringSelect");
  28. dojo.require("dijit.form.Button");
  29. dojo.require("dijit.Tooltip");
  30. </script>
  31. <script language="JavaScript">
  32. function ChooseModule(Code, selectName){
  33. var strA = "";
  34. if(Code == "root") Code = "";
  35. createXMLHttpRequest();
  36. axo = new ActiveXObject("Microsoft.XMLDOM");
  37. XMLHttpReq.open("POST","../getClassids.jsp?type="+Code+"",false);
  38. XMLHttpReq.setRequestHeader("Content-Length",strA.length);
  39. XMLHttpReq.setRequestHeader("Content-type","application/x-www-form-urlencoded");
  40. XMLHttpReq.send(strA);
  41. axo.loadXML(XMLHttpReq.responseText);
  42. n1 = axo.selectNodes("/root/classid");
  43. n2 = axo.selectNodes("/root/description");
  44. BuildSel(unescape(XMLHttpReq.responseText),selectName, n1, n2);
  45. }
  46. </script>
  47. <script type="text/javascript">
  48. Ext.onReady(function(){
  49. Ext.BLANK_IMAGE_URL = '../../../../../scripts/ext20/resources/images/default/s.gif';
  50. var Tree = Ext.tree;
  51. var tree = new Tree.TreePanel({
  52. el:'tree-div',
  53. autoScroll:true,
  54. animate:true,//是否动画
  55. enableDD:true,// 是否支持拖放
  56. containerScroll:true,
  57. lines:true,
  58. loader:new Tree.TreeLoader({dataUrl:"../../../../getModuleJson.jsp"})
  59. });
  60. var root = new Tree.AsyncTreeNode({
  61. text: '全部系统模块',
  62. draggable:false,
  63. id:'root'
  64. });
  65. tree.on('click', function(node){
  66. ChooseModule(node.id, dojo.byId('role1'))
  67. });
  68. tree.setRootNode(root);
  69. tree.render();
  70. root.expand();
  71. });
  72. </script>
  73. <style type="text/css">
  74. @import "../../../../../scripts/dojo/dojo/resources/dojo.css";
  75. @import "../../../../../scripts/dojo/dijit/themes/tundra/tundra.css";
  76. @import "../../../../../scripts/dojo/dijit/themes/tundra/tundra_rtl.css";
  77. @import "../../../../../scripts/dojo/dijit/tests/css/dijitTests.css";
  78. .formQuestion {
  79. background-color:#d0e3f5;
  80. padding:0.3em;
  81. font-weight:900;
  82. font-family:Verdana, Arial, sans-serif;
  83. font-size:0.8em;
  84. color:#5a5a5a;
  85. }
  86. .formAnswer {
  87. background-color:#f5eede;
  88. padding:0.3em;
  89. margin-bottom:1em;
  90. width: 100%;
  91. }
  92. .pageSubContentTitle {
  93. color:#8e8e8e;
  94. font-size:1em;
  95. font-family:Verdana, Arial, sans-serif;
  96. margin-bottom:0.75em;
  97. }
  98. .small INPUT {
  99. width: 2.5em;
  100. }
  101. .medium INPUT {
  102. width: 10em;
  103. }
  104. .long INPUT {
  105. width: 20em;
  106. }
  107. .firstLabel {
  108. display: inline-block;
  109. display: -moz-inline-box;
  110. width: 10em;
  111. min-width: 10em;
  112. }
  113. .secondLabel {
  114. width: auto;
  115. margin-left: 5em;
  116. margin-right: 1em;
  117. }
  118. fieldset label {
  119. margin-right: 1em;
  120. }
  121. .noticeMessage {
  122. display: block;
  123. float: right;
  124. font-weight: normal;
  125. font-family:Arial, Verdana, sans-serif;
  126. color:#663;
  127. font-size:0.9em;
  128. }
  129. </style>
  130. <script language="JavaScript">
  131. function getTable(obj, selectName){
  132. var strA = "";
  133. createXMLHttpRequest();
  134. axo = new ActiveXObject("Microsoft.XMLDOM");
  135. XMLHttpReq.open("POST","../getClassids.jsp?type="+obj.getValue()+"",false);
  136. XMLHttpReq.setRequestHeader("Content-Length",strA.length);
  137. XMLHttpReq.setRequestHeader("Content-type","application/x-www-form-urlencoded");
  138. XMLHttpReq.send(strA);
  139. axo.loadXML(XMLHttpReq.responseText);
  140. n1 = axo.selectNodes("/root/classid");
  141. n2 = axo.selectNodes("/root/description");
  142. BuildSel(unescape(XMLHttpReq.responseText),selectName, n1, n2);
  143. }
  144. </script>
  145. <script type="text/javascript" src="../../select.js"></script>
  146. </HEAD>
  147. <body class="tundra">
  148. <form dojoType="dijit.form.Form" name="form1" method="post" action="">
  149. <div id=total>
  150. <div class="whiteborder">
  151. <div class="titback">
  152. <div class="floatleft"><img src="../../../../../images/index/arrow1.gif" alt="1"
  153. width="20" height="24" /></div>
  154. <div class="dropshadow"> 批量验证业务表配置信息</div>
  155. <div class="clear"></div>
  156. </div>
  157. <div class="report">
  158. <table align="center" id="SortTable512_1" width="100%"
  159. cellpadding="1" cellspacing="1" class="ltab2">
  160. <tr>
  161. <td width="60%" valign="top"><table align="center" width="100%" border="0" cellpadding="1"
  162. cellspacing="1" class="ltab2">
  163. <tr class="TableBgColorAsh">
  164. <td align="left" valign="top">
  165. <div id="tree-div" style="z-index:9999;overflow:auto; height:100%; width:100%;border:1px solid #c3daf9;">
  166. </div>
  167. </td>
  168. <td width="30%" align="center"><select name="select2" size="15" class="SelectScroll" multiple id="role1" style="width:80%">
  169. <%
  170. for (int i = 0; i < mdpClasses.size(); i++) {
  171. MdpClassImpl mdpClass = (MdpClassImpl) mdpClasses.get(i);
  172. %>
  173. <option value="<%=mdpClass.getClassid()%>"> <%=mdpClass.getDescription()%> </option>
  174. <%
  175. }
  176. %>
  177. </select></td>
  178. <td width="5%" align="center"><input name="button" type="button" class="button2"
  179. style="cursor:hand" onClick="move(this.form.role1,this.form.role2);"
  180. value=" &gt;&gt; " />
  181. <br>
  182. <br>
  183. <input name="button" type="button" class="button2"
  184. style="cursor:hand" onClick="move(this.form.role2,this.form.role1);"
  185. value=" &lt;&lt; " /> </td>
  186. <td width="30%" align="center" valign="middle"><select name="select" size="15" multiple class="SelectScroll" id="role2" style="width:80%">
  187. </select> </td>
  188. </tr>
  189. <tr class="TableBgColorBlack">
  190. <td colspan="4">
  191. <button id="save" dojoType="dijit.form.Button" onClick='console.log("clicked simple"),checkConfig();' type="button" iconClass="plusIcon">
  192. 开始验证 </button>
  193. <span dojoType="dijit.Tooltip" connectId="save">开始验证 </span>&nbsp;&nbsp;
  194. &nbsp;&nbsp; </td>
  195. </table></td>
  196. </tr>
  197. </table>
  198. <div id="boxIdea" align="left" style="width:98%;height:98%;border:1px solid #999999;"> </div>
  199. </div>
  200. </div>
  201. </div>
  202. </form>
  203. <script language="JavaScript">
  204. var indexOfCheck = 0;
  205. var role2=document.all.item("role2");
  206. function checkConfig() {
  207. indexOfCheck = 0
  208. var boxIdea=document.all.item("boxIdea");
  209. boxIdea.innerHTML = "";
  210. if(role2.options.length == 0){
  211. alert("请选则进行验证的表对象!");
  212. return;
  213. }
  214. var classid = role2.options[0].value;
  215. checkOneObj(classid)
  216. }
  217. function checkOneObj(classid){
  218. if(classid=="") return;
  219. createXMLHttpRequest();
  220. var strA = "";
  221. XMLHttpReq.open("POST","checkExc.jsp?classid=" + classid,false);
  222. XMLHttpReq.setRequestHeader("Content-Length",strA.length);
  223. XMLHttpReq.setRequestHeader("Content-type","application/x-www-form-urlencoded");
  224. XMLHttpReq.send(strA);
  225. var boxIdea=document.all.item("boxIdea");
  226. boxIdea.innerHTML = boxIdea.innerHTML + XMLHttpReq.responseText;
  227. indexOfCheck = indexOfCheck + 1;
  228. if(indexOfCheck < role2.options.length){
  229. checkOneObj(role2.options[indexOfCheck].value);
  230. }else{
  231. return;
  232. }
  233. }
  234. // End -->
  235. </script>
  236. </BODY>
  237. </HTML>