public String ready_addip() {
    String id = getParaValue("id");
    HaweitelnetconfDao haweitelnetconfDao = null;
    List iplist = null;
    try {
      haweitelnetconfDao = new HaweitelnetconfDao();
      iplist = haweitelnetconfDao.getAllTelnetConfig();
    } catch (Exception e) {
      haweitelnetconfDao.close();
    }

    int listsize = iplist.size();
    StrategyIpDao ipDao = new StrategyIpDao();
    List list = ipDao.findByCondition(" where STRATEGY_ID=" + id);
    request.setAttribute("iplist", iplist);
    request.setAttribute("strategyList", list);
    request.setAttribute("id", id);
    HostNodeDao listdao = new HostNodeDao();
    setTarget("/config/vpntelnet/compliance/showip.jsp");
    String page = list(listdao);
    JspPage jp = (JspPage) request.getAttribute("page");
    jp.setTotalRecord(listsize);
    request.setAttribute("page", jp);
    return page;
  }
 public String showAllDevice() {
   CheckResultDao dao = new CheckResultDao();
   List<CheckResult> list = dao.getAllResult();
   request.setAttribute("list", list);
   StrategyIpDao ipDao = new StrategyIpDao();
   List deviceList = ipDao.findByCondition(" where AVAILABILITY=0");
   request.setAttribute("deviceList", deviceList);
   return "/config/vpntelnet/compliance/showAllDevice.jsp";
 }
 public String saveip() {
   String[] ips = getParaArrayValue("checkbox");
   int id = getParaIntValue("id");
   List list = null;
   StrategyIpDao dao = new StrategyIpDao();
   dao.saveBatch(ips, id);
   request.setAttribute("list", list);
   return null;
 }
  public String showDetailStrategy() {
    String id = getParaValue("id");
    CheckResultDao dao = new CheckResultDao();
    List<CheckResult> list = dao.getResultById(id);
    request.setAttribute("list", list);
    request.setAttribute("id", id);
    StrategyIpDao ipDao = new StrategyIpDao();
    List ipList = ipDao.findByCondition(" where STRATEGY_ID=" + id);

    request.setAttribute("ipList", ipList);
    return "/config/vpntelnet/compliance/detailStrategyList.jsp";
  }