vehicle_maintenance_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. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  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. <link href="../common.css" rel="stylesheet" type="text/css">
  13. <style type="text/css">
  14. <!--
  15. .style2 {font-size: 14px}
  16. -->
  17. </style>
  18. <script language="JavaScript" type="text/JavaScript">
  19. <!--
  20. function findObj(theObj, theDoc)
  21. {
  22.   var p, i, foundObj;
  23.   
  24.   if(!theDoc) theDoc = document;
  25.   if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  26.   {
  27.     theDoc = parent.frames[theObj.substring(p+1)].document;
  28.     theObj = theObj.substring(0,p);
  29.   }
  30.   if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  31.   for (i=0; !foundObj && i < theDoc.forms.length; i++) 
  32.     foundObj = theDoc.forms[i][theObj];
  33.   for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
  34.     foundObj = findObj(theObj,theDoc.layers[i].document);
  35.   if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  36.   
  37.   return foundObj;
  38. }
  39. var GetDate=""; 
  40. function SelectDate(ObjName,FormatDate){
  41. var PostAtt = new Array;
  42. PostAtt[0]= FormatDate;
  43. PostAtt[1]= findObj(ObjName);
  44. GetDate = showModalDialog("../util/calendar/calendar.htm", PostAtt ,"dialogWidth:286px;dialogHeight:221px;status:no;help:no;");
  45. }
  46. function SetDate()
  47. findObj(ObjName).value = GetDate; 
  48. }
  49. //-->
  50. </script>
  51. </head>
  52. <body>
  53. <table class="tableframe" cellSpacing="1" cellPadding="2" width="840" align="center" border="0">
  54.   <form name="form1" action="vehicle_maintenance_list.jsp?op=search" method="post">
  55.     <tbody>
  56.       <tr>
  57.         <td noWrap colSpan="2" class="right-title">请指定查询条件:</td>
  58.       </tr>
  59.       <tr>
  60.         <td noWrap width="80">车&nbsp;&nbsp;牌&nbsp;&nbsp;号:</td>
  61.         <td width="470"><select name="licenseNo">
  62. <%
  63. VehicleDb vd = new VehicleDb();
  64. String sql = "select licenseNo from vehicle";
  65. Iterator ir = vd.list(sql).iterator();
  66. while (ir.hasNext()) {
  67. vd = (VehicleDb)ir.next();
  68. %>
  69. <option value="<%=vd.getLicenseNo()%>"><%=vd.getLicenseNo()%></option>
  70. <%}%>
  71.         </select></td>
  72.       </tr>
  73.       <tr>
  74.         <td noWrap>维护日期:</td>
  75.         <td><input maxLength="10" size="20" name="beginDate"> 
  76.           <img style="CURSOR: hand" onClick="SelectDate('beginDate', 'yyyy-MM-dd')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26"> 日期格式形如 1999-1-2 
  77.           &nbsp;至 <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>
  78.       </tr>
  79.       <tr>
  80.         <td noWrap>维护类型:</td>
  81.         <td><select name="type">
  82.             <option value selected></option>
  83.             <option value="0">维修</option>
  84.             <option value="1">加油</option>
  85.             <option value="2">洗车</option>
  86.             <option value="3">年检</option>
  87.             <option value="4">其它</option>
  88.           </select></td>
  89.       </tr>
  90.       <tr>
  91.         <td noWrap>维护原因:</td>
  92.         <td><input maxLength="200" size="30" name="cause"></td>
  93.       </tr>
  94.       <tr>
  95.         <td noWrap>经&nbsp;&nbsp;办&nbsp;&nbsp;人:</td>
  96.         <td><input maxLength="200" size="20" name="transactor"></td>
  97.       </tr>
  98.       <tr>
  99.         <td noWrap>维护费用:</td>
  100.         <td><input maxLength="200" size="20" name="expense"></td>
  101.       </tr>
  102.       <tr>
  103.         <td noWrap>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:</td>
  104.         <td><input maxLength="200" size="30" name="remark"></td>
  105.       </tr>
  106.       <tr align="middle">
  107.         <td noWrap colSpan="2"><input type="submit" value="查询">&nbsp;&nbsp; 
  108.           <input type="reset" value="重填"></td>
  109.       </tr>
  110.     </tbody> 
  111.   </FORM>
  112. </table>
  113. </body>
  114. </html>