auto_repair_list.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@jsp:include file="/vnex/head.jsp"%>
  2. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  3. <%@ page import="java.util.*" %>
  4. <%@ page import="com.vnex.intranet.vehicle.loader.*" %>
  5. <%@ page import="com.vnex.intranet.util.*" %>
  6. <%@ page import="com.vnex.intranet.util.FieldUtil" %>
  7. <%@ taglib uri="/vnex_vehicle_automobile.tld" prefix="vnex_automobile" %>
  8. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  9. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  10. <jsp:useBean id="proxy" scope="request" class="com.vnex.intranet.vehicle.automobile.manage.proxy.AutoManageProxyBean" />
  11. <jsp:useBean id="autoRepairInfo" scope="request" class="com.vnex.intranet.vehicle.automobile.manage.value.AutoRepairValueBean" />
  12. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  13. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  14. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  15. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  16. <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
  17. <script language="JavaScript" src="/vnex/validate.js"></script>
  18. <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
  19. <%    
  20.     String sId = request.getParameter("automobileId");
  21.     String pageTo = "/mainctrl/manage/autoRepairList?a";
  22.     
  23.     int id = 0;    
  24.     if(sId!=null)
  25.     {
  26.         id = Integer.parseInt(sId);
  27.         pageTo = pageTo + "&automobileId="+id;
  28.     }
  29.         
  30. %>
  31. <script language=JavaScript>
  32. function addd()
  33. {
  34.     document.form1.action="/mainctrl/manage/autoRepairAdd?automobileId=<%=id%>";
  35.     document.form1.submit();
  36. }
  37. function del()
  38. {
  39.   if(form1.ids!=null)
  40.   {
  41.    if(isChecked(form1.ids))
  42.    {
  43.       if(confirm("是否要删除所选车辆的维修信息?"))
  44.       {
  45.         document.form1.action="/mainctrl/manage/autoesRepairDelete?automobileId="+<%=id%>;
  46.         document.form1.submit();
  47.       }  
  48.   } 
  49.   else
  50.   {
  51.       alert("至少要选择一条维修记录");
  52.       return false;
  53.   }  
  54.  } 
  55. }
  56. function query()
  57. {
  58.   document.form1.action="/mainctrl/manage/autoRepairList";
  59.   document.form1.submit();
  60. }
  61. function can()
  62. {
  63.   document.form1.action="/mainctrl/manage/autoBasicDetail?automobileId="+<%=sId%>;
  64.   document.form1.submit();
  65. }
  66. function SelectAll(form)
  67. {
  68.   for (var i=0;i<form.elements.length;i++)
  69.   {
  70.     var e = form.elements[i];
  71.     if (e.name != 'C1')
  72.        e.checked = form.C1.checked;
  73.   }
  74. }
  75. </script>
  76. <DIV align=center>
  77. <form name="form1" method="post">
  78.    
  79.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  80.     <TBODY>
  81.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  82.     <TR> 
  83.         <TD colSpan=3 align="center"> <br>
  84.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  85.             <tr> 
  86.               <td bgcolor="#fafafa">
  87.                 <table class=title cellspacing=1 cellpadding=2 border=0 width="600">
  88.                   <tr> 
  89.                     <td colspan="8" bgcolor="#666666"> <font class="strongw">&nbsp;<a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/office/main"><font color="#FFFFFF">办公室管理</font></a>&gt;&gt;查看维修记录 
  90.                       </font> </td>
  91.                   </tr>
  92.                   <tr bgcolor="#fafafa"> 
  93.                     <td height="30" colspan="8">&nbsp; 
  94.                       <input type="button" name="Button3222" value="新增维修记录" style="width:85px" class="file" onClick="addd()">&nbsp;&nbsp; 
  95.                       <input type="button" name="Button3223" value="删除" class="file" onClick="del()">&nbsp;&nbsp; 
  96.                       <input type="button" name="Button322" value="返回" class="file" onClick="can()">
  97.                     </td>
  98.                   </tr>
  99.                   <tr align=center> 
  100.                     <td width="7%"><font  class="strong">选择</font></td>
  101.                     <td><font  class="strong">车牌号</font></td>
  102.                     <td><font  class="strong">送修时间</font></td>
  103.                     <td><font  class="strong">修复时间</font></td>
  104.                     <td><font  class="strong">送修者</font></td>
  105.                     <td><font  class="strong">维修厂家</font></td>
  106.                     <td><font  class="strong">维修原因</font></td>
  107.                     <td><font  class="strong">维修费用</font></td>
  108.                   </tr>
  109.                   
  110. <vnex_automobile:automobileRepairList autoId = "<%=id%>">
  111. <vnex:pagingItems>
  112. <tr bgcolor="<vnex:itemsColor/>" align="center">  
  113.                     <td width="7%"> 
  114.                       <input type="checkbox" name="ids" value="<vnex_automobile:automobileRepairAttribute attribute = "id"/>">
  115.                     </td>
  116.                     <td>
  117.                         <a href="/mainctrl/manage/autoRepairModify?automobileId=<vnex_automobile:automobileRepairAttribute attribute = "automobileId"/>&autoRepairId=<vnex_automobile:automobileRepairAttribute attribute = "id"/>">
  118.                         <vnex_automobile:automobileRepairAttribute attribute = "carCertNo"/>
  119.                         </a>
  120.                     </td>
  121.                     <td>
  122.                         <vnex_automobile:automobileRepairAttribute attribute = "beginDate"/>
  123.                      <br>
  124.                     </td>
  125.                     <td>
  126.                         <vnex_automobile:automobileRepairAttribute attribute = "endDate"/>
  127.                     </td>
  128.                     <td>
  129.                         <vnex_automobile:automobileRepairAttribute attribute = "sender"/>
  130.                     </td>
  131.                     <td>
  132.                         <vnex_automobile:automobileRepairAttribute attribute = "repairer"/>
  133.                     </td>
  134.                     <td>
  135.                         <vnex_automobile:automobileRepairAttribute attribute = "reason"/>
  136.                     </td>
  137.                     <td>
  138.                         <vnex_automobile:automobileRepairAttribute attribute = "cost"/>
  139.                     </td>
  140.                   </tr>
  141. </vnex:pagingItems> 
  142.                   
  143.                   <tr bgcolor="#e0e0e0"> 
  144.                     <td align="center" width="42"> 
  145.                       <input type="checkbox" name="C1" onclick="SelectAll(this.form)">
  146.                     </td>
  147.                     <td colspan="8">&nbsp;&nbsp;全选</td>
  148.                   </tr>
  149. <tr>
  150.    <td colspan="6" align="left"> 
  151.        <vnex:pagingTag pageName="<%=pageTo%>" />
  152.    </td>
  153. </tr>    
  154. </vnex_automobile:automobileRepairList>
  155.                 </table>
  156.                 </td>
  157.             </tr>
  158.           </table>
  159.          <br><br>
  160.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  161.        </TD>
  162.      </TR>
  163.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  164.     </TBODY> 
  165.   </TABLE>
  166.     <BR>
  167.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  168. </form>
  169. </DIV>
  170. </BODY>
  171. </HTML>
  172. </BODY>
  173. </HTML>