/**
   * 跳转到新增输入页面
   *
   * @param mapping
   * @param actionform
   * @param request
   * @param response
   * @return
   */
  public ActionForward toSysParameterConfAdd(
      ActionMapping mapping,
      ActionForm actionform,
      HttpServletRequest request,
      HttpServletResponse response) {
    String parId = StringUtil.nullToEmptyOfObject(request.getParameter("parId"));

    if (parId.equals("-1") || parId.equals("") || parId.equals("0")) {

      request.setAttribute("parName", "");
      request.setAttribute("parValue", "");
      request.setAttribute("isValid", "");
      request.setAttribute("remark", "");
    } else {
      SysParameterConf hma = new SysParameterConf();
      hma.setParId(parId);
      hma = (SysParameterConf) this.sysParameterConfService.selectByPrimaryKey(hma);
      if (hma != null) {
        request.setAttribute("parId", hma.getParId());
        request.setAttribute("parName", hma.getParName());
        request.setAttribute("parValue", hma.getParValue());
        request.setAttribute("isValid", hma.getIsValid());
        request.setAttribute("remark", hma.getParDesc());
      }
    }

    return new ActionForward("/jsp/sys/par/sysParameterConfAdd.jsp");
  }
  /**
   * 跳转到修改页面
   *
   * @param mapping
   * @param actionform
   * @param request
   * @param response
   * @return
   */
  public ActionForward toSysParameterConfEdit(
      ActionMapping mapping,
      ActionForm actionform,
      HttpServletRequest request,
      HttpServletResponse response) {
    String parId = StringUtil.nullToEmptyOfObject(request.getParameter("parId"));

    SysParameterConf hma = new SysParameterConf();
    hma.setParId(parId);
    hma = (SysParameterConf) this.sysParameterConfService.selectByPrimaryKey(hma);
    request.setAttribute("sysParameterConf", hma);

    return new ActionForward("/jsp/sys/par/sysParameterConfEdit.jsp");
  }
 public String buildSequence() throws RuntimeException {
   Long sequence = new Long(incrementer.nextLongValue());
   return StringUtil.padLeft(sequence.toString(), 4);
 }