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

电子政务应用

开发平台:

Java

  1. <%@ include file="/vnex/head.jsp"%>
  2. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  3. <%@ page import="com.vnex.intranet.vehicle.automobile.booking.process.AutoBookingStatus" %>
  4. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  5. <%
  6.      int autoRepairId = Integer.parseInt(request.getParameter("autoRepairId"));
  7.         int automobileId = Integer.parseInt(request.getParameter("automobileId"));
  8.         int statusId = Integer.parseInt(request.getParameter("statusId"));
  9.         
  10.         String link = "";
  11.         
  12.         switch(statusId)
  13.         {
  14.             case AutoBookingStatus.WAITING:
  15.                link = "/mainctrl/booking/autoBookingWaiting?autoRepairId="+autoRepairId+"&automobileId="+automobileId;
  16.                  break;
  17.                                           
  18.             case AutoBookingStatus.ACCEPT:
  19.                link = "/mainctrl/booking/autoBookingAccept?autoRepairId="+autoRepairId+"&automobileId="+automobileId;
  20.                  break;                 
  21.             case AutoBookingStatus.REFUSE:
  22.                link = "/mainctrl/booking/autoBookingRefuse?autoRepairId="+autoRepairId+"&automobileId="+automobileId;
  23.                  break;                 
  24.         }
  25. %>
  26. <jsp:forward page="<%= link %>" />