Esempio n. 1
0
 /**
  * 查询地市下的基站类型列表
  *
  * @throws Exception
  */
 public void searchBsType() throws Exception {
   Map<String, String> param = new HashMap<String, String>();
   String p = StringUtils.convertToUTF(URLDecoder.decode(cityName, "iso-8859-1"));
   if ("1".equals(p)) p = "";
   param.put("cityName", p);
   String result = service.searchBsType(param);
   ServletActionContext.getResponse().getWriter().print(StringUtils.convertToISO(result));
 }
Esempio n. 2
0
  /**
   * 提交app信息
   *
   * @throws IOException
   */
  public void subCheckedApp() throws Exception {
    Map<String, String> map = new HashMap<String, String>();
    map.put("activeCode", getActiveCode());
    // String dstr=URLDecoder.decode(checked, "iso-8859-1");
    // dstr=StringUtils.convertToUTF(dstr);
    // log.info("checkedchecked:"+dstr);
    map.put("checked", StringUtils.convertToUTF(checked));
    // map.put("checked", dstr);
    map.put("userId", getUserNo());

    if (!("").equals(checked.trim())) {
      int subNum = map.get("checked").split(",").length;
      map.put("triggerType", "2"); // type=2:app
      int count = service.getCheckedAppCount(map);
      if (count + subNum > 10) {
        ServletActionContext.getResponse().getWriter().print("L");
        return;
      }
    }

    if (("").equals(checked.trim()) || checked == null || service.insertCheckedApp(map)) {
      ServletActionContext.getResponse().getWriter().print("Y");
    } else {
      ServletActionContext.getResponse().getWriter().print("N");
    }
  }
Esempio n. 3
0
 /**
  * 提交基站信息
  *
  * @throws IOException
  */
 public void subCheckedBs() throws IOException {
   Map<String, String> map = new HashMap<String, String>();
   map.put("activeCode", getActiveCode());
   map.put(
       "checked",
       "'"
           + StringUtils.convertToUTF(URLDecoder.decode(checked, "iso-8859-1"))
               .replaceAll(",", "','")
           + "'");
   map.put("bs_type", StringUtils.convertToUTF(URLDecoder.decode(checked, "iso-8859-1")));
   map.put("userId", getUserNo());
   map.put("cityName", StringUtils.convertToUTF(URLDecoder.decode(cityName, "iso-8859-1")));
   if (("").equals(checked.trim()) || checked == null || service.subCheckedPosition(map)) {
     ServletActionContext.getResponse().getWriter().print("Y");
   } else {
     ServletActionContext.getResponse().getWriter().print("N");
   }
 }
Esempio n. 4
0
  public void getTypeAppList() throws Exception {

    Map<String, String> map = service.getTypeAppList(appType);
    if (map != null) {
      ServletActionContext.getResponse()
          .getWriter()
          .print(StringUtils.convertToISO(map.get("0") + "_" + map.get("1")));
    } else {
      ServletActionContext.getResponse().getWriter().print("F");
    }
  }
Esempio n. 5
0
 /**
  * 获取前台选取的基站
  *
  * @throws Exception
  */
 public void getCheckedBsList() throws Exception {
   Map<String, String> map = new HashMap<String, String>();
   map.put("activeCode", getActiveCode());
   map = service.getCheckedPosition(map);
   if (map == null) {
     ServletActionContext.getResponse().getWriter().print("");
   } else {
     ServletActionContext.getResponse()
         .getWriter()
         .print(StringUtils.convertToISO(map.get("bsms")));
   }
 }
Esempio n. 6
0
 public void deleteSetProperty() throws Exception {
   Map<String, String> map = new HashMap<String, String>();
   map.put("triggerName", StringUtils.convertToUTF(URLDecoder.decode(triggerName, "iso-8859-1")));
   map.put("triggerType", triggerType);
   map.put("titleType", titleType);
   map.put("activeCode", getActiveCode());
   boolean a = service.deleteSetProperty(map);
   if (a) {
     ServletActionContext.getResponse().getWriter().print("Y");
   } else {
     ServletActionContext.getResponse().getWriter().print("F");
   }
 }
Esempio n. 7
0
 public void getTriggerInfoMs() throws IOException {
   String activeCode = getActiveCode();
   String tms = service.getTriggerInfoMs(activeCode);
   ServletActionContext.getResponse().getWriter().print(StringUtils.convertToISO(tms));
 }
Esempio n. 8
0
 /**
  * 获取地区下基站列表
  *
  * @throws Exception
  */
 public void getPositionList() throws Exception {
   Map<String, String> map = new HashMap<String, String>();
   String html = service.getCityPositionList(map);
   ServletActionContext.getResponse().getWriter().print(StringUtils.convertToISO(html));
 }