e5d88865ebb851b0f2c59dbe98671c3e5b3e6249.svn-base 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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.able.SysModel,
  6. com.sysmodel.datamodel.xmlmodel.able.*"%>
  7. <%
  8. SysModel sysmodel = ModelFactory.getSysmodel();
  9. ArrayList list = sysmodel.getMdpModules();
  10. %>
  11. <HTML>
  12. <HEAD>
  13. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  14. <TITLE></TITLE>
  15. <link rel="stylesheet" href="../../../../../styles/css.css" type="text/css"></link>
  16. <script type="text/javascript" src="../../../../../scripts/dojo/dojo/dojo.js"
  17. djConfig="isDebug: false, parseOnLoad: true"></script>
  18. <script type="text/javascript">
  19. dojo.require("dijit.form.Form");
  20. dojo.require("dijit.form.FilteringSelect");
  21. dojo.require("dijit.form.Button");
  22. dojo.require("dijit.Tooltip");
  23. </script>
  24. <style type="text/css">
  25. @import "../../../../../scripts/dojo/dojo/resources/dojo.css";
  26. @import "../../../../../scripts/dojo/dijit/themes/tundra/tundra.css";
  27. @import "../../../../../scripts/dojo/dijit/themes/tundra/tundra_rtl.css";
  28. @import "../../../../../scripts/dojo/dijit/tests/css/dijitTests.css";
  29. </style>
  30. <script language="JavaScript">
  31. function ChooseModule(Code, selectName){
  32. var strA = "";
  33. if(Code == "root") Code = "";
  34. createXMLHttpRequest();
  35. axo = new ActiveXObject("Microsoft.XMLDOM");
  36. XMLHttpReq.open("POST","../getConstants.jsp?type="+ Code + "",false);
  37. XMLHttpReq.setRequestHeader("Content-Length",strA.length);
  38. XMLHttpReq.setRequestHeader("Content-type","application/x-www-form-urlencoded");
  39. XMLHttpReq.send(strA);
  40. axo.loadXML(XMLHttpReq.responseText);
  41. n1 = axo.selectNodes("/root/classid");
  42. n2 = axo.selectNodes("/root/description");
  43. BuildSel(unescape(XMLHttpReq.responseText),selectName, n1, n2);
  44. }
  45. </script>
  46. <script type="text/javascript" src="../../select.js"></script>
  47. <!-- 为了实现模块的选择功能引入下面资源 -->
  48. <link rel="stylesheet" type="text/css" href="../../../../../scripts/ext20/resources/css/ext-all.css" />
  49. <script type="text/javascript" src="../../../../../scripts/ext20/adapter/ext/ext-base.js"></script>
  50. <script type="text/javascript" src="../../../../../scripts/ext20/ext-all.js"></script>
  51. <link rel="stylesheet" href="../../../../../scripts/ext20/examples/examples.css" type="text/css"></link>
  52. <script type="text/javascript" src="../../../../../scripts/ext20/examples/examples.js"></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. </HEAD>
  80. <body class="tundra">
  81. <form dojoType="dijit.form.Form" name="form1" method="post" action="">
  82. <div id=total>
  83. <div class="whiteborder">
  84. <div class="titback">
  85. <div class="floatleft"><img src="../../../../../images/index/arrow1.gif" alt="1"
  86. width="20" height="24" /></div>
  87. <div class="dropshadow"> 批量检查常量表配置信息</div>
  88. <div class="clear"></div>
  89. </div>
  90. <div class="report">
  91. <table align="center" id="SortTable512_1" width="100%"
  92. cellpadding="1" cellspacing="1" class="ltab2">
  93. <tr>
  94. <td width="60%" valign="top">
  95. <table align="center" width="100%" border="0" cellpadding="1" cellspacing="1" class="ltab2">
  96. <tr class="TableBgColorAsh">
  97. <td width="30%" align="left" valign="top">
  98. <div id="tree-div" style="z-index:9999;overflow:auto; height:100%; width:100%;border:1px solid #c3daf9;">
  99. </div>
  100. </td>
  101. <td width="30%" align="center">
  102. <select name="select2" size="15" class="SelectScroll" multiple id="role1" style="width:80%">
  103. <%
  104. ArrayList constants = sysmodel.getMdpConstants();
  105. for (int i = 0; i < constants.size(); i++) {
  106. MdpConstant MdpConstant = (MdpConstant) constants.get(i);
  107. %>
  108. <option value="<%=MdpConstant.getCodeName()%>"> <%=MdpConstant.getDescription()%> </option>
  109. <%
  110. }
  111. %>
  112. </select></td>
  113. <td width="10%" align="center"><input name="button" type="button" class="button2"
  114. style="cursor:hand" onClick="move(this.form.role1,this.form.role2);"
  115. value=" &gt;&gt; " />
  116. <br>
  117. <br>
  118. <input name="button" type="button" class="button2"
  119. style="cursor:hand" onClick="move(this.form.role2,this.form.role1);"
  120. value=" &lt;&lt; " /> </td>
  121. <td align="center" valign="middle">
  122. <select name="select" size="15" multiple class="SelectScroll" id="role2" style="width:80%">
  123. </select> </td>
  124. </tr>
  125. <tr class="TableBgColorBlack">
  126. <td colspan="4">
  127. <button id="save" dojoType="dijit.form.Button" onClick='console.log("clicked simple"),checkConfig();' type="button" iconClass="plusIcon">
  128. 开始检查</button>
  129. <span dojoType="dijit.Tooltip" connectId="save">开始检查</span>&nbsp;&nbsp;
  130. &nbsp;&nbsp; </td>
  131. </tr>
  132. </table></td>
  133. </tr>
  134. </table>
  135. <!--验证信息放在这里 -->
  136. <div id="boxIdea" align="left" style="width:98%;height:98%;border:1px solid #999999;"></div>
  137. </div>
  138. </div>
  139. </div>
  140. </form>
  141. <script language="JavaScript">
  142. var indexOfCheck = 0;
  143. var role2=document.all.item("role2");
  144. function checkConfig() {
  145. indexOfCheck = 0
  146. var boxIdea=document.all.item("boxIdea");
  147. boxIdea.innerHTML = "";
  148. if(role2.options.length == 0){
  149. alert("请选则进行验证的表对象!");
  150. return;
  151. }
  152. var CodeName = role2.options[0].value;
  153. checkOneObj(CodeName)
  154. }
  155. function checkOneObj(CodeName){
  156. if(CodeName=="") return;
  157. createXMLHttpRequest();
  158. var strA = "";
  159. axo = new ActiveXObject("Microsoft.XMLDOM");
  160. XMLHttpReq.open("POST","checkExc.jsp?CodeName=" + CodeName,false);
  161. XMLHttpReq.setRequestHeader("Content-Length",strA.length);
  162. XMLHttpReq.setRequestHeader("Content-type","application/x-www-form-urlencoded");
  163. XMLHttpReq.send(strA);
  164. var boxIdea=document.all.item("boxIdea");
  165. boxIdea.innerHTML = boxIdea.innerHTML + XMLHttpReq.responseText;
  166. indexOfCheck = indexOfCheck + 1;
  167. if(indexOfCheck < role2.options.length){
  168. checkOneObj(role2.options[indexOfCheck].value);
  169. }else{
  170. return;
  171. }
  172. }
  173. // End -->
  174. </script>
  175. </BODY>
  176. </HTML>