@Action(
      value = "/AddMeet",
      results = {@Result(name = "show", location = "/index.jsp")})
  public String add() {
    // System.out.println("addmeet"+memps);

    // System.out.println(mname+"#"+rid+"#"+mnumber+"#"+startdate+starttime+"#"+enddate+"#"+mremark+"#"+memps);

    String mstarttime = startdate + " " + starttime + ":00";
    String mendtime = enddate + " " + endtime + ":00";
    Timestamp mstarttimes = Timestamp.valueOf(mstarttime);
    Timestamp mendtimes = Timestamp.valueOf(mendtime);
    Timestamp appointtime = new Timestamp(System.currentTimeMillis());
    String ename = (String) ActionContext.getContext().getSession().get("ename");
    System.out.println(ename + "li");
    List<Emp> emps = empService.getByEname(ename);
    Emp emp = emps.get(0);
    Room room = roomService.getByIdRoom(rid);
    Meet meet =
        new Meet(mname, emp, room, mnumber, mstarttimes, mendtimes, appointtime, mremark, memps, 1);
    // System.out.println(meet.toString());
    meetService.addMeet(meet);

    meetlist = meetService.getAllMeet();

    return "show";
  }
  public static void main(String[] args) {
    ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
    /*
    RoomServiceInter se =(RoomServiceInter)ac.getBean("roomService");

    Room room = new Room("15", "第五会议室", 70, -1, "leeee", null);

    se.addRoom(room);*/

    MeetServiceInter service = (MeetServiceInter) ac.getBean("meetService");
    // Meet meet = new Meet("zongoe", new Date(2011, 06, 12), new Date(2012, 05, 26), new Date(2014,
    // 05, 06));
    Meet meet = new Meet("毕业会议", null, null, 50, null, null, null, "开会", "1,4", null);

    //	service.addMeet(meet);
    // service.addStudent(stu);
    // service.updateStudent(stu);
    // stu = service.getStudent(2);
    // System.out.println(stu.getStuname()+","+stu.getStuaddress());
    // List<Student> list = service.getAllStudent();
    // for(Student stu1:list){
    //	System.out.println(stu1.getStuid()+","+stu1.getStuname()+","+stu1.getStuaddress());
    // }
    // service.deleteStudent(stu);

    List<Room> roomlist = service.getAllRoom();

    for (Room room : roomlist) {
      System.out.println(room.getRid());
    }

    List<Emp> emplist = service.getAllEmp();
    for (Emp emp : emplist) {
      System.out.println(emp.getEid());
    }
    List<Dept> deptlist = service.getAllDept();

    for (Dept dept : deptlist) {
      List<Emp> empls = service.getEmpbyDept(dept);
      for (Emp emp : empls) {
        System.out.println(emp.getEid());
      }
    }
  }