• 大小: 80.98MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2022-11-25
  • 语言: Java
  • 标签: java  

资源简介

Java汽车4s店管理系统(带前后端),Java汽车4s店管理系统(前后端)

资源截图

代码片段和文件信息

package com.neusoft.action;


import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

import net.sf.json.JSONobject;

import com.neusoft.model.Book;
import com.neusoft.model.Car;
import com.neusoft.model.CarCategory;
import com.neusoft.service.IBookService;
import com.neusoft.service.ICarCategoryService;
import com.neusoft.service.ICarService;
import com.neusoft.utils.Pager;

@Controller(“bookAction“)
@Scope(“prototype“)
public class BookAction extends ActionSupport implements ModelDriven{

   private Book book;
   
   private int carCategoryId;
   
   private String keyword;

   private String carPrice;
   
   private int carId;
   
   private String carIds;

   
   

    public String getCarIds() {
return carIds;
}


public void setCarIds(String carIds) {
this.carIds = carIds;
}


public String getKeyword() {
        return keyword;
    }
    
    
    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }
    
    
    public String getCarPrice() {
        return carPrice;
    }
    
    
    public void setCarPrice(String carPrice) {
        this.carPrice = carPrice;
    }


    public int getCarCategoryId() {
        return carCategoryId;
    }
    
    
    
    public void setCarCategoryId(int carCategoryId) {
        this.carCategoryId = carCategoryId;
    }


   public int getCarId() {
return carId;
}


public void setCarId(int carId) {
this.carId = carId;
}

   @Override
   public Book getModel() {
       if(book==null) book = new Book();
     return book;
   }
    @Autowired
   private IBookService bookService;
    
    @Autowired
    private ICarCategoryService carCategoryService;
    
    @Autowired
    private ICarService  carService;
    
/**
 * 进入首页
 * @Description (TODO这里用一句话描述这个方法的作用)
 * @return
 */
     public String index(){
         Pager  pagers=carService.findPager2(keywordcarPrice);
         ActionContext.getContext().put(“pagers“ pagers);
         String hql=“from CarCategory where 1=1“;
            List carCatList=carCategoryService.getByHQL(hql null);
            ActionContext.getContext().put(“carCatList“ carCatList); 
            ActionContext.getContext().put(“keyword2“ keyword); 
            return SUCCESS;
         
     }

     /**
      * 前台提交预约信息
      * @Description (TODO这里用一句话描述这个方法的作用)
      * @return
      * @throws IOException 
      */
     public void appoin

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-06-14 00:27  代码\
     文件       36439  2016-11-06 13:08  代码\4s.sql
     目录           0  2018-06-14 00:27  代码\4Ssales\
     目录           0  2018-06-14 00:27  代码\4SsalesManager\
     文件         633  2016-10-23 08:36  代码\4SsalesManager\.classpath
     文件        1189  2018-03-27 15:24  代码\4SsalesManager\.project
     目录           0  2016-11-06 13:24  代码\4SsalesManager\.settings\
     文件         567  2016-10-23 08:30  代码\4SsalesManager\.settings\.jsdtscope
     文件         113  2016-10-27 13:51  代码\4SsalesManager\.settings\org.eclipse.core.resources.prefs
     文件         364  2016-10-23 08:30  代码\4SsalesManager\.settings\org.eclipse.jdt.core.prefs
     文件         117  2016-10-26 13:37  代码\4SsalesManager\.settings\org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
     文件         567  2016-10-26 13:37  代码\4SsalesManager\.settings\org.eclipse.wst.common.component
     文件         305  2016-10-23 08:31  代码\4SsalesManager\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2016-10-23 08:30  代码\4SsalesManager\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2016-10-23 08:30  代码\4SsalesManager\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2018-06-14 00:27  代码\4SsalesManager\build\
     目录           0  2018-03-27 15:18  代码\4SsalesManager\build\classes\
     文件        5270  2016-10-26 13:41  代码\4SsalesManager\build\classes\applicationContext.xml
     目录           0  2018-03-27 15:18  代码\4SsalesManager\build\classes\com\
     目录           0  2018-03-27 15:18  代码\4SsalesManager\build\classes\com\neusoft\
     目录           0  2018-03-27 15:18  代码\4SsalesManager\build\classes\com\neusoft\action\
     文件        3076  2018-03-27 15:18  代码\4SsalesManager\build\classes\com\neusoft\action\AdminAction.class
     文件        5459  2018-03-27 15:18  代码\4SsalesManager\build\classes\com\neusoft\action\AppointmentAction.class
     文件        2793  2018-03-27 15:18  代码\4SsalesManager\build\classes\com\neusoft\action\BookAction.class
     文件        6115  2018-03-27 15:18  代码\4SsalesManager\build\classes\com\neusoft\action\CarAction.class
     文件        3928  2018-03-27 15:18  代码\4SsalesManager\build\classes\com\neusoft\action\CarReturnAction.class
     文件        2422  2018-03-27 15:18  代码\4SsalesManager\build\classes\com\neusoft\action\CustomerAction.class
     文件        2490  2018-03-27 15:18  代码\4SsalesManager\build\classes\com\neusoft\action\InsuranceAction.class
     文件        7476  2018-03-27 15:18  代码\4SsalesManager\build\classes\com\neusoft\action\LoanAction.class
     文件        1070  2018-03-27 15:18  代码\4SsalesManager\build\classes\com\neusoft\action\LoginAction.class
     文件        4152  2018-03-27 15:18  代码\4SsalesManager\build\classes\com\neusoft\action\NumberplateAction.class
............此处省略2419个文件信息

评论

共有 条评论