archive_query_confine.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:4k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import = "java.net.URLEncoder"%>
  3. <%@ page import = "java.util.*"%>
  4. <%@ page import = "cn.js.fan.util.*"%>
  5. <%@ page import = "cn.js.fan.web.*"%>
  6. <%@ page import = "com.redmoon.oa.archive.*"%>
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  10. <title>用户档案查询</title>
  11. <%@ include file="../inc/nocache.jsp"%>
  12. <link href="../common.css" rel="stylesheet" type="text/css">
  13. <style type="text/css">
  14. <!--
  15. .style2 {font-size: 14px}
  16. #Layer1 {
  17. position:absolute;
  18. left:180px;
  19. top:55px;
  20. width:552px;
  21. height:20px;
  22. z-index:1;
  23. }
  24. #Layer2 {
  25. position:absolute;
  26. left:180px;
  27. top:82px;
  28. width:552px;
  29. height:26px;
  30. z-index:1;
  31. }
  32. #Layer3 {
  33. position:absolute;
  34. left:180px;
  35. top:107px;
  36. width:552px;
  37. height:23px;
  38. z-index:1;
  39. }
  40. #Layer4 {
  41. position:absolute;
  42. left:182px;
  43. top:132px;
  44. width:552px;
  45. height:23px;
  46. z-index:1;
  47. }
  48. #Layer5 {
  49. position:absolute;
  50. left:180px;
  51. top:157px;
  52. width:552px;
  53. height:23px;
  54. z-index:1;
  55. }
  56. #Layer6 {
  57. position:absolute;
  58. left:180px;
  59. top:182px;
  60. width:552px;
  61. height:23px;
  62. z-index:1;
  63. }
  64. #Layer7 {
  65. position:absolute;
  66. left:180px;
  67. top:207px;
  68. width:552px;
  69. height:23px;
  70. z-index:1;
  71. }
  72. #Layer8 {
  73. position:absolute;
  74. left:180px;
  75. top:232px;
  76. width:552px;
  77. height:23px;
  78. z-index:1;
  79. }
  80. -->
  81. </style>
  82. </head>
  83. <body>
  84. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  85. <%
  86. if (!privilege.isUserPrivValid(request, "archive.query")) {
  87. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "pvg_invalid")));
  88. return;
  89. }
  90. String[] deptCodeArr = ParamUtil.getParameters(request,"deptCode");
  91. if(deptCodeArr == null){
  92.    out.print(StrUtil.Alert_Back("请选择查询部门!"));
  93.    return;
  94. }
  95. String deptCodeStr = "";
  96. int i = 0;
  97. while(i < deptCodeArr.length){
  98. deptCodeStr += "'" + deptCodeArr[i] + "'";
  99. if(i < deptCodeArr.length -1){
  100. deptCodeStr += ",";
  101. }
  102. i++;
  103. }
  104. %>
  105. <br>
  106. <form name="form1" method="post" action="archive_query_showfieldcode.jsp">
  107.   <table width="95%" border="0">
  108.     <tr>
  109.       <td><table class="tableframe" cellSpacing="1" cellPadding="2" width="95%" align="center" border="0" bgcolor="#FFFFFF">
  110.         <tbody>
  111.           <tr>
  112.             <td colspan="2" noWrap class="right-title">选择查询范围</td>
  113.           </tr>
  114. <%
  115. String sql = "";
  116. sql = ArchiveSQLBuilder.getArchiveTable();
  117. int j = 1;
  118. TableInfoDb tid = new TableInfoDb();
  119. Vector vt = tid.list(sql);
  120. Iterator ir = null;
  121. ir = vt.iterator();
  122. while (ir!=null && ir.hasNext()) {
  123. tid = (TableInfoDb)ir.next();
  124. TableFieldInfoDb tfid = new TableFieldInfoDb();
  125. sql = ArchiveSQLBuilder.getArchiveTableField(tid.getTableShortCode());   
  126. Vector vt_tfid = tfid.list(sql);
  127. Iterator ir_tfid = null;
  128. ir_tfid = vt_tfid.iterator();
  129. %>
  130. <div id="Layer<%=j%>" style="display:none">
  131. <%
  132. while (ir_tfid!=null && ir_tfid.hasNext()) {
  133. tfid = (TableFieldInfoDb)ir_tfid.next();
  134. out.print(tfid.getFieldName() + "    ");
  135. }
  136. %>
  137.         </div>      
  138.           <tr id="<%=j%>" onMouseOver="Layer<%=j%>.style.display=''" onMouseOut="Layer<%=j%>.style.display='none'">
  139.             <td width="6%" noWrap><%=tid.getTableDescription()%></td>
  140.             <td>
  141. <%
  142. if (tid.getTableCode().equals("ARCHIVE_USER")) {%>
  143. <input type="checkbox" name="tableCode" value="<%=tid.getTableCode()%>" disabled checked>
  144. <input name="tableCode" type="hidden" value="<%=tid.getTableCode()%>">
  145. <%}
  146. else {
  147. %>
  148. <input type="checkbox" name="tableCode" value="<%=tid.getTableCode()%>">
  149. <%}%>选择该表
  150. </td>
  151.           </tr>
  152. <%
  153. j++;
  154. }
  155. %>   
  156.         </tbody>
  157.       </table></td>
  158.     </tr>  
  159.     <tr>
  160.       <td align="center"><input value="下一步 &#8594; 选择查询结果中将要显示的字段" type="submit">&nbsp;&nbsp;
  161.         <input type="hidden" name="deptCodeStr" value="<%=deptCodeStr%>"></td>
  162.     </tr>
  163.   </table>
  164. </form>
  165. </body>
  166. </html>