check.jsp 8.6 KB

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