vehicle_apply_search.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.vehicle.*"%>
  7. <%@ page import = "com.redmoon.oa.dept.*"%>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  10. <title>车辆使用查询</title>
  11. <link href="../common.css" rel="stylesheet" type="text/css">
  12. <script language="JavaScript" type="text/JavaScript">
  13. <!--
  14. function findObj(theObj, theDoc)
  15. {
  16.   var p, i, foundObj;
  17.   
  18.   if(!theDoc) theDoc = document;
  19.   if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  20.   {
  21.     theDoc = parent.frames[theObj.substring(p+1)].document;
  22.     theObj = theObj.substring(0,p);
  23.   }
  24.   if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  25.   for (i=0; !foundObj && i < theDoc.forms.length; i++) 
  26.     foundObj = theDoc.forms[i][theObj];
  27.   for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
  28.     foundObj = findObj(theObj,theDoc.layers[i].document);
  29.   if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  30.   
  31.   return foundObj;
  32. }
  33. var GetDate=""; 
  34. function SelectDate(ObjName,FormatDate){
  35. var PostAtt = new Array;
  36. PostAtt[0]= FormatDate;
  37. PostAtt[1]= findObj(ObjName);
  38. GetDate = showModalDialog("../util/calendar/calendar.htm", PostAtt ,"dialogWidth:286px;dialogHeight:221px;status:no;help:no;");
  39. }
  40. function SetDate()
  41. findObj(ObjName).value = GetDate; 
  42. }
  43. //-->
  44. </script>
  45. </head>
  46. <body>
  47. <%@ include file="vehicle_inc_apply_top.jsp"%>
  48. <br />
  49. <table width="552" border="0" align="center" cellPadding="1" cellSpacing="1" bgcolor="#FFFFFF" class="tableframe">
  50.   <form name="form1" action="vehicle_apply_list.jsp?op=search" method="post">
  51.     <tbody>
  52.       <tr>
  53.         <td class="right-title" noWrap colSpan="2"> 
  54.           &nbsp;请指定查询条件:</td>
  55.       </tr>
  56.       <tr>
  57.         <td noWrap width="62">状  态:</td>
  58.         <td width="462"><select name="result">
  59.             <option value="" selected>待批</option>
  60.             <option value="是">已准</option>
  61.             <option value="否">未准</option>
  62.         </select></td>
  63.       </tr>
  64.       <tr>
  65.         <td noWrap width="62">车 牌 号:</td>
  66.         <td><select name="licenseNo">
  67. <%
  68. VehicleDb vd = new VehicleDb();
  69. String sql = "select licenseNo from vehicle";
  70. Iterator ir = vd.list(sql).iterator();
  71. while (ir.hasNext()) {
  72. vd = (VehicleDb)ir.next();
  73. %>
  74. <option value="<%=vd.getLicenseNo()%>"><%=vd.getLicenseNo()%></option>
  75. <%}%>
  76.         </select></td>
  77.       </tr>
  78.       <tr>
  79.         <td noWrap width="62">用 车 人:</td>
  80.         <td><input maxLength="100" name="person" size="20"></td>
  81.       </tr>
  82.       <tr>
  83.         <td noWrap width="62">用车部门:</td>
  84.         <td><select name="deptCode">
  85.  <%
  86. DeptMgr dm = new DeptMgr();
  87. DeptDb lf = dm.getDeptDb(DeptDb.ROOTCODE);
  88. DeptView dv = new DeptView(lf);
  89. dv.ShowDeptAsOptions(out, lf, lf.getLayer()); 
  90.  %>
  91.  </select></td>
  92.       </tr>
  93.       <tr>
  94.         <td noWrap>使用日期:</td>
  95.         <td><input maxLength="10" size="20" name="beginDate"> 
  96.           <img style="CURSOR: hand" onClick="SelectDate('beginDate', 'yyyy-MM-dd')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">&nbsp;至 
  97.           <input maxLength="10" size="20" name="endDate"><img style="CURSOR: hand" onClick="SelectDate('endDate', 'yyyy-MM-dd')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26"> 日期格式形如 1999-1-2 </td>
  98.       </tr>
  99.       <tr>
  100.         <td noWrap width="62">申 请 人:</td>
  101.         <td class="TableData"><input size="10" name="applier">&nbsp;</td>
  102.       </tr>
  103.       <tr align="middle">
  104.         <td colSpan="2" align="center" noWrap><input type="submit" value="查询">&nbsp;&nbsp;&nbsp;&nbsp; 
  105.         <input type="reset" value="重填"></td>
  106.       </tr>
  107.     </tbody>
  108.   </FORM>
  109. </table>
  110. </body>
  111. </html>