예제 #1
0
  /** 添加租车订单 */
  public String add() throws Exception {

    Server.getInstance().getCarService().createCarorder(carorder);

    carorder.setCode(Server.getInstance().getServiceCenter().getCarOrderCode(carorder));
    Server.getInstance().getCarService().updateCarorderIgnoreNull(carorder);
    return LIST;
  }
예제 #2
0
  /** 审核租车订单 */
  public String check() throws Exception {
    carorder = Server.getInstance().getCarService().findCarorder(carorder.getId());

    if (orderstate == 5) { // 取消订单
      if (carorder.getWaicode() != null
          && carorder.getWaicode().length() > 0
          && !carorder.getWaicode().equals("NOCODE")) {
        String code = Server.getInstance().getYiHaiCarService().cancelorder(carorder.getWaicode());
        if (code.equals("OK")) { // 取消成功

          carorder.setState(5);
        }
      }
    }
    carorder.setState(orderstate);
    Server.getInstance().getCarService().updateCarorderIgnoreNull(carorder);
    return LIST;
  }
예제 #3
0
 /** 删除租车订单 */
 public String delete() throws Exception {
   Server.getInstance().getCarService().deleteCarorder(carorder.getId());
   return LIST;
 }
예제 #4
0
 /** 转向到租车订单审核页面 */
 public String tocheck() throws Exception {
   carorder = Server.getInstance().getCarService().findCarorder(carorder.getId());
   return CHECK;
 }
예제 #5
0
 public String toinfo() throws Exception {
   carorder = Server.getInstance().getCarService().findCarorder(carorder.getId());
   return "info";
 }
예제 #6
0
 /** 转向到租车订单修改页面 */
 public String toedit() throws Exception {
   carorder = Server.getInstance().getCarService().findCarorder(carorder.getId());
   return EDIT;
 }
예제 #7
0
파일: CarsAction.java 프로젝트: zgyq/kzpw
 /** 在线租车 */
 public String book_car() throws Exception {
   Carorder carorder = new Carorder();
   carorder.setLinkname(linkname);
   carorder.setLinktell(linktel);
   carorder.setLinkmail(s_dizhi);
   carorder.setSpecreq(s_desc);
   carorder.setCode(cartype);
   carorder.setManyday(Integer.parseInt(s_num));
   carorder.setSdate(s_day);
   carorder.setCarname(car_name);
   carorder.setProperty(qu_typw); // 取车类型
   carorder.setCarcode(car_num); // 大小
   carorder.setPretime(new Timestamp(System.currentTimeMillis()));
   carorder.setMemberid(getLoginUser().getId());
   carorder.setCarid(getLoginUser().getAgentid());
   Server.getInstance().getCarService().createCarorder(carorder);
   return this.car_new();
 }