create.jsp 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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.TemplateImpl,
  8. com.sysmodel.datamodel.xmlmodel.able.*"%>
  9. <HTML>
  10. <HEAD>
  11. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  12. <TITLE></TITLE>
  13. <link rel="stylesheet" href="../../../../../styles/style.css"
  14. type="text/css"></link>
  15. <link rel="stylesheet" href="../../../../../styles/css.css"
  16. type="text/css"></link>
  17. <script type="text/javascript" src="../../../../../scripts/dojo/dojo/dojo.js"
  18. djConfig="isDebug: false, parseOnLoad: true"></script>
  19. <link rel="stylesheet" type="text/css" href="../../../../../scripts/ext20/resources/css/ext-all.css" />
  20. <script type="text/javascript" src="../../../../../scripts/ext20/adapter/ext/ext-base.js"></script>
  21. <script type="text/javascript" src="../../../../../scripts/ext20/ext-all.js"></script>
  22. <link rel="stylesheet" href="../../../../../scripts/ext20/examples/examples.css" type="text/css"></link>
  23. <script type="text/javascript" src="../../../../../scripts/ext20/examples/examples.js"></script>
  24. <script type="text/javascript">
  25. dojo.require("dijit.form.Form");
  26. dojo.require("dijit.form.FilteringSelect");
  27. dojo.require("dijit.form.Button");
  28. dojo.require("dijit.Tooltip");
  29. </script>
  30. <style type="text/css">
  31. @import "../../../../../scripts/dojo/dojo/resources/dojo.css";
  32. @import "../../../../../scripts/dojo/dijit/themes/tundra/tundra.css";
  33. @import "../../../../../scripts/dojo/dijit/themes/tundra/tundra_rtl.css";
  34. @import "../../../../../scripts/dojo/dijit/tests/css/dijitTests.css";
  35. .formQuestion {
  36. background-color:#d0e3f5;
  37. padding:0.3em;
  38. font-weight:900;
  39. font-family:Verdana, Arial, sans-serif;
  40. font-size:0.8em;
  41. color:#5a5a5a;
  42. }
  43. .formAnswer {
  44. background-color:#f5eede;
  45. padding:0.3em;
  46. margin-bottom:1em;
  47. width: 100%;
  48. }
  49. .pageSubContentTitle {
  50. color:#8e8e8e;
  51. font-size:1em;
  52. font-family:Verdana, Arial, sans-serif;
  53. margin-bottom:0.75em;
  54. }
  55. .small INPUT {
  56. width: 2.5em;
  57. }
  58. .medium INPUT {
  59. width: 10em;
  60. }
  61. .long INPUT {
  62. width: 20em;
  63. }
  64. .firstLabel {
  65. display: inline-block;
  66. display: -moz-inline-box;
  67. width: 10em;
  68. min-width: 10em;
  69. }
  70. .secondLabel {
  71. width: auto;
  72. margin-left: 5em;
  73. margin-right: 1em;
  74. }
  75. fieldset label {
  76. margin-right: 1em;
  77. }
  78. .noticeMessage {
  79. display: block;
  80. float: right;
  81. font-weight: normal;
  82. font-family:Arial, Verdana, sans-serif;
  83. color:#663;
  84. font-size:0.9em;
  85. }
  86. </style>
  87. <script type="text/javascript" src="../../select.js"></script>
  88. </HEAD>
  89. <body class="tundra">
  90. <form dojoType="dijit.form.Form" name="form1" method="post" action="">
  91. <div id=total>
  92. <div class="whiteborder">
  93. <div class="titback">
  94. <div class="floatleft"><img src="../../../../../images/index/arrow1.gif" alt="1" width="20" height="24" /></div>
  95. <div class="dropshadow"> 批量生成常量表comment</div>
  96. <div class="clear"></div>
  97. </div>
  98. <div class="report">
  99. <table align="center" id="SortTable512_1" width="100%" cellpadding="1" cellspacing="1" class="ltab2">
  100. <tr>
  101. <td width="60%" valign="top">
  102. <table align="center" width="100%" border="0" cellpadding="1" cellspacing="1" class="ltab2">
  103. <tr class="TableBgColorAsh">
  104. <td width="30%" align="center">
  105. <select name="select2" size="15" class="SelectScroll" multiple id="role1" style="width:80%">
  106. <%
  107. SysModel sysmodel = ModelFactory.getSysmodel();
  108. ArrayList list = sysmodel.getTemplates();
  109. for (int i = 0; i < list.size(); i++) {
  110. TemplateImpl vo = (TemplateImpl) list.get(i);
  111. %><option value="<%=vo.getName()%>"> <%=vo.getDescription()%> </option><%
  112. }
  113. %>
  114. </select>
  115. </td>
  116. <td width="10%" align="center"><input name="button" type="button" class="button2"
  117. style="cursor:hand" onClick="move(this.form.role1,this.form.role2);"
  118. value=" &gt;&gt; " />
  119. <br>
  120. <br>
  121. <input name="button" type="button" class="button2"
  122. style="cursor:hand" onClick="move(this.form.role2,this.form.role1);"
  123. value=" &lt;&lt; " />
  124. </td>
  125. <td align="center" valign="middle">
  126. <select name="select" size="15" multiple class="SelectScroll" id="role2" style="width:80%"></select>
  127. </td>
  128. </tr>
  129. <tr class="TableBgColorBlack">
  130. <td colspan="4">
  131. <button id="save" dojoType="dijit.form.Button" onClick="checkConfig('add');" type="button" iconClass="plusIcon">
  132. 创建Comment
  133. </button>&nbsp;&nbsp;
  134. <button id="clear" dojoType="dijit.form.Button" onClick="checkConfig('del');" type="button" iconClass="plusIcon">
  135. 清洗Comment
  136. </button>
  137. </tr>
  138. </table></td>
  139. </tr>
  140. </table>
  141. <!--验证信息放在这里 -->
  142. <div id="boxIdea" align="left" style="width:98%;height:98%;border:1px solid #999999;"></div>
  143. </div>
  144. </div>
  145. </div>
  146. </form>
  147. <script language="JavaScript">
  148. var indexOfCheck = 0;
  149. var role2=document.all.item("role2");
  150. function checkConfig(type) {
  151. indexOfCheck = 0
  152. var boxIdea=document.all.item("boxIdea");
  153. boxIdea.innerHTML = "";
  154. if(role2.options.length == 0){
  155. alert("请选则进行表对象!");
  156. return;
  157. }
  158. var CodeName = role2.options[0].value;
  159. checkOneObj(CodeName,type)
  160. }
  161. function checkOneObj(CodeName,type){
  162. if(CodeName=="") return;
  163. createXMLHttpRequest();
  164. var strA = "";
  165. axo = new ActiveXObject("Microsoft.XMLDOM");
  166. XMLHttpReq.open("POST","createExc.jsp?CodeName=" + CodeName + "&type=" + type,false);
  167. XMLHttpReq.setRequestHeader("Content-Length",strA.length);
  168. XMLHttpReq.setRequestHeader("Content-type","application/x-www-form-urlencoded");
  169. XMLHttpReq.send(strA);
  170. var boxIdea=document.all.item("boxIdea");
  171. boxIdea.innerHTML = boxIdea.innerHTML + XMLHttpReq.responseText;
  172. indexOfCheck = indexOfCheck + 1;
  173. if(indexOfCheck < role2.options.length){
  174. checkOneObj(role2.options[indexOfCheck].value,type);
  175. }else{
  176. return;
  177. }
  178. }
  179. // End -->
  180. </script>
  181. </BODY>
  182. </HTML>