vehicle_apply_show.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. <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. //-->
  40. </script>
  41. </head>
  42. <body>
  43. <%@ include file="vehicle_inc_apply_top.jsp"%>
  44. <%
  45. String strFlowId = ParamUtil.get(request, "flowId");
  46. int flowId = Integer.parseInt(strFlowId);
  47. VehicleApplyDb vad = new VehicleApplyDb();
  48. vad = vad.getVehicleApplyDb(flowId);
  49. String beginDate = "",endDate = "";
  50. if(vad.getBeginDate() == null){
  51.   beginDate = "";
  52. }else{
  53.   beginDate = DateUtil.format(vad.getBeginDate(), "yyyy-MM-dd HH:mm:ss");
  54. }
  55. if(vad.getEndDate() == null){
  56.   endDate = "";
  57. }else{
  58.   endDate = DateUtil.format(vad.getEndDate(), "yyyy-MM-dd HH:mm:ss");
  59. }
  60. DeptDb dd = new DeptDb();
  61. dd = dd.getDeptDb(vad.getDept());
  62. String dept = dd.getName();
  63. %>
  64. <br>
  65. <table  width="840" border="0" align="center" cellpadding="2" cellspacing="1" class="main">
  66.     <tbody>
  67.       <tr>
  68.         <td height="23" valign="middle" class="right-title" colspan="4"><span>&nbsp;车辆申请详细信息</span></td>
  69.       </tr>
  70.       <tr>
  71.         <td nowrap width="103">车辆牌照:</td>
  72.         <td width="298"><%=vad.getLicenseNo()%></td>
  73.         <td width="69">司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机:</td>
  74.         <td width="347"><%=vad.getDriver()%></td>
  75.       </tr>
  76.       <tr>
  77.         <td nowrap width="103">用&nbsp;&nbsp;车&nbsp;&nbsp;人:</td>
  78.         <td><%=vad.getPerson()%></td>
  79.         <td>用车部门:</td>
  80.         <td><%=dept%></td>
  81.       </tr>
  82.       <tr>
  83.         <td nowrap>开始日期:</td>
  84.         <td colspan="3"><%=beginDate%></td>
  85.       </tr>
  86.       <tr>
  87.         <td nowrap>结束日期:</td>
  88.         <td colspan="3"><%=endDate%></td>
  89.       </tr>
  90.       <tr>
  91.         <td nowrap width="103">目&nbsp;&nbsp;的&nbsp;&nbsp;地:</td>
  92.         <td colspan="3"><%=vad.getTarget()%></td>
  93.       </tr>
  94.       <tr>
  95.         <td nowrap width="103">里&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;程:</td>
  96.         <td colspan="3"><%=vad.getKilometer()%></td>
  97.       </tr>
  98.       <tr>
  99.         <td nowrap>申&nbsp;&nbsp;请&nbsp;&nbsp;人:</td>
  100.         <td colspan="3"><%=vad.getApplier()%></td>
  101.       </tr>
  102.       <tr>
  103.         <td nowrap>事&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;由:</td>
  104.         <td colspan="3"><%=vad.getReason()%></td>
  105.       </tr>
  106.       <tr>
  107.         <td nowrap>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:</td>
  108.         <td colspan="3"><%=vad.getRemark()%></td>
  109.       </tr>
  110.       <tr>
  111.         <td nowrap width="103">是否同意:</td>
  112.         <td colspan="3"><%=vad.getResult()%></td>
  113.       </tr>
  114.     </tbody>
  115. </table>
  116. </body>
  117. </html>