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

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. <%@ page import = "com.redmoon.oa.BasicDataMgr"%>
  8. <html xmlns="http://www.w3.org/1999/xhtml">
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  11. <title>用户档案查询</title>
  12. <script language="javascript" type="text/javascript">
  13. function form1_onsubmit() {
  14. if (form1.queryName.value=="") {
  15. alert("请填写查询名称!");
  16. return false;
  17. }
  18. }
  19. </script>
  20. <link href="../common.css" rel="stylesheet" type="text/css">
  21. <%@ include file="../inc/nocache.jsp"%>
  22. </head>
  23. <body>
  24. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  25. <%
  26. if (!privilege.isUserPrivValid(request, "archive.query")) {
  27. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "pvg_invalid")));
  28. return;
  29. }
  30. %>
  31. <br>
  32. <%
  33. String deptCodeStr = ParamUtil.get(request,"deptCodeStr");
  34. if(deptCodeStr.equals("")){
  35.    out.print(StrUtil.Alert_Back("请选择查询部门!"));
  36.    return;
  37. }
  38. String showFieldCodeStr = ParamUtil.get(request,"showFieldCodeStr");
  39. String tableFullCodeStr = ParamUtil.get(request,"tableFullCodeStr");
  40. String conditionFieldCodeStr = ParamUtil.get(request,"conditionFieldCodeStr");
  41. String orderFieldCodeStr = "";
  42. String[] fieldCodeArr = ParamUtil.getParameters(request,"fieldCode");
  43.  
  44. int i = 0;
  45. while(i < fieldCodeArr.length){
  46. if(!fieldCodeArr[i].equals("")){
  47. if(orderFieldCodeStr.equals(""))
  48. orderFieldCodeStr += fieldCodeArr[i]; 
  49. else
  50. orderFieldCodeStr += "," + fieldCodeArr[i];
  51. }
  52. i++;
  53. }
  54. %>
  55. <form name="form1" method="post" action="archive_query_do.jsp" onsumbit="return form1_onsubmit()">
  56.   <table width="95%" border="0">
  57.     <tr>
  58.       <td>
  59.       <table class="tableframe" cellSpacing="0" cellPadding="2" width="95%" align="center" border="0" bgcolor="#FFFFFF">
  60.         <tbody>
  61.           <tr>
  62.             <td colspan="3" class="right-title">&nbsp;填写查询名称<input name="op" value="add" type="hidden"></td>
  63.           </tr>
  64.           <tr>
  65.             <td width="10%" noWrap>查询名称:</td>         
  66. <td width="90%" noWrap><input type="text" name="queryName"></td>
  67.           </tr>
  68.         </tbody>
  69.       </table>
  70.       </td>
  71.     </tr>  
  72.     <tr>
  73.       <td align="center"><input value="保存查询" type="submit" onClick="return form1_onsubmit()">
  74.     <input type="hidden" name="deptCodeStr" value="<%=deptCodeStr%>">
  75.         <input type="hidden" name="showFieldCodeStr" value="<%=showFieldCodeStr%>">
  76. <input type="hidden" name="tableFullCodeStr" value="<%=tableFullCodeStr%>">
  77. <input type="hidden" name="orderFieldCodeStr" value="<%=orderFieldCodeStr%>"> 
  78. <input type="hidden" name="conditionFieldCodeStr" value="<%=conditionFieldCodeStr%>">
  79.   </td>
  80.     </tr>
  81.   </table>
  82. </form>
  83. </body>
  84. </html>