Esempio n. 1
0
 @Transient
 public String getStatusStr() {
   String result = JTZSConstants.Pubilc.DISABLE.getName();
   if (null != this.status && JTZSConstants.Pubilc.DISABLE.getIndex() == this.status) {
     result = JTZSConstants.Pubilc.ENABLED.getName();
   }
   return result;
 }
Esempio n. 2
0
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      if (_jspx_meth_c_005fset_005f0(_jspx_page_context)) return;
      //  up72:override
      com.up72.framework.web.tags.OverrideTag _jspx_th_up72_005foverride_005f0 =
          (com.up72.framework.web.tags.OverrideTag)
              _005fjspx_005ftagPool_005fup72_005foverride_0026_005fname.get(
                  com.up72.framework.web.tags.OverrideTag.class);
      _jspx_th_up72_005foverride_005f0.setPageContext(_jspx_page_context);
      _jspx_th_up72_005foverride_005f0.setParent(null);
      // /pages/admin/jtzs/province/index.jsp(9,0) name = name type = null reqTime = true required =
      // true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false
      // methodSignature = null
      _jspx_th_up72_005foverride_005f0.setName("head");
      int _jspx_eval_up72_005foverride_005f0 = _jspx_th_up72_005foverride_005f0.doStartTag();
      if (_jspx_eval_up72_005foverride_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_up72_005foverride_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          out = _jspx_page_context.pushBody();
          _jspx_th_up72_005foverride_005f0.setBodyContent(
              (javax.servlet.jsp.tagext.BodyContent) out);
          _jspx_th_up72_005foverride_005f0.doInitBody();
        }
        do {
          out.write("<title>");
          out.print(Province.TABLE_ALIAS);
          out.write(" 维护</title>\r\n");
          out.write("  <script src=\"");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${ctx}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("/scripts/rest.js\" ></script>\r\n");
          out.write("  <link href=\"");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${ctx}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write(
              "/scripts/simpletable/simpletable.css\" type=\"text/css\" rel=\"stylesheet\">\r\n");
          out.write("  <script type=\"text/javascript\" src=\"");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${ctx}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("/scripts/simpletable/simpletable.js\"></script> \r\n");
          out.write("  <script type=\"text/javascript\" src=\"");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${ctx}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("/scripts/columnshow.js\"></script>\r\n");
          out.write("  <link href=\"");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${ctx}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("/scripts/grid/css/flexigrid.css\" type=\"text/css\" rel=\"stylesheet\">\r\n");
          out.write("  <script type=\"text/javascript\" src=\"");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${ctx}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("/scripts/grid/flexigrid-source.js\"></script> \r\n");
          out.write("  <script type=\"text/javascript\" >\r\n");
          out.write("\t\t$(document).ready(function() {\r\n");
          out.write("\t\t\t// 分页需要依赖的初始化动作\r\n");
          out.write(
              "\t\t\twindow.simpleTable = new SimpleTable('admin_jtzs_province_search_form',");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${page.thisPageNumber}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write(',');
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${page.pageSize}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write(',');
          out.write('\'');
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${pageRequest.sortColumns}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("');\r\n");
          out.write("\t\t});\r\n");
          out.write("\t</script> \r\n");
          out.write("  <script type=\"text/javascript\" src=\"");
          if (_jspx_meth_c_005furl_005f0(_jspx_th_up72_005foverride_005f0, _jspx_page_context))
            return;
          out.write("\"></script> \r\n");
          int evalDoAfterBody = _jspx_th_up72_005foverride_005f0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break;
        } while (true);
        if (_jspx_eval_up72_005foverride_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          out = _jspx_page_context.popBody();
        }
      }
      if (_jspx_th_up72_005foverride_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fup72_005foverride_0026_005fname.reuse(
            _jspx_th_up72_005foverride_005f0);
        return;
      }
      _005fjspx_005ftagPool_005fup72_005foverride_0026_005fname.reuse(
          _jspx_th_up72_005foverride_005f0);
      //  up72:override
      com.up72.framework.web.tags.OverrideTag _jspx_th_up72_005foverride_005f1 =
          (com.up72.framework.web.tags.OverrideTag)
              _005fjspx_005ftagPool_005fup72_005foverride_0026_005fname.get(
                  com.up72.framework.web.tags.OverrideTag.class);
      _jspx_th_up72_005foverride_005f1.setPageContext(_jspx_page_context);
      _jspx_th_up72_005foverride_005f1.setParent(null);
      // /pages/admin/jtzs/province/index.jsp(25,0) name = name type = null reqTime = true required
      // = true fragment = false deferredValue = false expectedTypeName = null deferredMethod =
      // false methodSignature = null
      _jspx_th_up72_005foverride_005f1.setName("content");
      int _jspx_eval_up72_005foverride_005f1 = _jspx_th_up72_005foverride_005f1.doStartTag();
      if (_jspx_eval_up72_005foverride_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_up72_005foverride_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          out = _jspx_page_context.pushBody();
          _jspx_th_up72_005foverride_005f1.setBodyContent(
              (javax.servlet.jsp.tagext.BodyContent) out);
          _jspx_th_up72_005foverride_005f1.doInitBody();
        }
        do {
          out.write("<!--搜索-->\r\n");
          out.write("  <div class=\"up72_search\">\r\n");
          out.write(
              "    <form id=\"admin_jtzs_province_search_form\" name=\"admin_jtzs_province_search_form\" method=\"get\">\r\n");
          out.write("      <div class=\"search_con\"> \r\n");
          out.write("\r\n");
          out.write("        <div class=\"search_txt\">");
          out.print(Province.ALIAS_NAME);
          out.write(":\r\n");
          out.write(
              "          <input type=\"text\" id=\"name\" name=\"name\" class=\"input_text\" value=\"");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${query.name}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("\">\r\n");
          out.write("        </div>\r\n");
          out.write("        <div class=\"search_btn\">\r\n");
          out.write("          <div class=\"input_button\">\r\n");
          out.write(
              "            <button name=\"btnU\" type=\"submit\" onclick=\"$(this).parents('form').submit();\" class=\"button\" value=\"查询\"><span>查询</span></button>\r\n");
          out.write("          </div>\r\n");
          out.write("        </div>\r\n");
          out.write("      </div>\r\n");
          out.write("    </form>\r\n");
          out.write("  </div>\r\n");
          out.write("  <!--end搜索-->\r\n");
          out.write("  \r\n");
          out.write(
              "  <form id=\"admin_jtzs_province_page_form\" name=\"admin_jtzs_province_page_form\" method=\"get\">\r\n");
          out.write("    <table id=\"admin_jtzs_province_table\">\r\n");
          out.write("      <thead>\r\n");
          out.write("        <tr>\r\n");
          out.write("        <!-- \r\n");
          out.write(
              "          <th showColumn=\"checkbox\" width=\"25\"><input type=\"checkbox\" id=\"checkall\" onclick=\"setAllCheckboxState('items',this.checked);\" /></th>\r\n");
          out.write("         -->\r\n");
          out.write("          <th showColumn=\"index\" width=\"50\">序号</th>\r\n");
          out.write("          <th showColumn=\"name\" width=\"400\">");
          out.print(Province.ALIAS_NAME);
          out.write("</th>\r\n");
          out.write("          <th showColumn=\"status\" width=\"100\">状态</th>          \r\n");
          out.write("          <th showColumn=\"option\" width=\"100\"><label>操作</label></th>\r\n");
          out.write("        </tr>\r\n");
          out.write("      </thead>\r\n");
          out.write("      <tbody>\r\n");
          out.write("        ");
          //  c:forEach
          org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_005fforEach_005f0 =
              (org.apache.taglibs.standard.tag.rt.core.ForEachTag)
                  _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvarStatus_005fvar_005fitems.get(
                      org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
          _jspx_th_c_005fforEach_005f0.setPageContext(_jspx_page_context);
          _jspx_th_c_005fforEach_005f0.setParent(
              (javax.servlet.jsp.tagext.Tag) _jspx_th_up72_005foverride_005f1);
          // /pages/admin/jtzs/province/index.jsp(59,8) name = items type = java.lang.Object reqTime
          // = true required = false fragment = false deferredValue = false expectedTypeName = null
          // deferredMethod = false methodSignature = null
          _jspx_th_c_005fforEach_005f0.setItems(
              (java.lang.Object)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${page.result}",
                      java.lang.Object.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          // /pages/admin/jtzs/province/index.jsp(59,8) name = var type = java.lang.String reqTime =
          // false required = false fragment = false deferredValue = false expectedTypeName = null
          // deferredMethod = false methodSignature = null
          _jspx_th_c_005fforEach_005f0.setVar("item");
          // /pages/admin/jtzs/province/index.jsp(59,8) name = varStatus type = java.lang.String
          // reqTime = false required = false fragment = false deferredValue = false
          // expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_c_005fforEach_005f0.setVarStatus("status");
          int[] _jspx_push_body_count_c_005fforEach_005f0 = new int[] {0};
          try {
            int _jspx_eval_c_005fforEach_005f0 = _jspx_th_c_005fforEach_005f0.doStartTag();
            if (_jspx_eval_c_005fforEach_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
              do {
                out.write("<tr>\r\n");
                out.write("          <!-- \r\n");
                out.write(
                    "            <td showColumn=\"checkbox\"><input type=\"checkbox\" id=\"items\" name=\"items\" value=\"");
                out.write(
                    (java.lang.String)
                        org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                            "${item.id}",
                            java.lang.String.class,
                            (PageContext) _jspx_page_context,
                            null,
                            false));
                out.write("\" class=\"sel\" tags=\"null\"></td>\r\n");
                out.write("           -->\r\n");
                out.write("            <td showColumn=\"index\">");
                out.write(
                    (java.lang.String)
                        org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                            "${page.thisPageFirstElementNumber + status.index}",
                            java.lang.String.class,
                            (PageContext) _jspx_page_context,
                            null,
                            false));
                out.write("</td>\r\n");
                out.write("            <td showColumn=\"name\">");
                if (_jspx_meth_c_005fout_005f0(
                    _jspx_th_c_005fforEach_005f0,
                    _jspx_page_context,
                    _jspx_push_body_count_c_005fforEach_005f0)) return;
                out.write("</td>\r\n");
                out.write("            <td showColumn=\"status\">");
                if (_jspx_meth_c_005fout_005f1(
                    _jspx_th_c_005fforEach_005f0,
                    _jspx_page_context,
                    _jspx_push_body_count_c_005fforEach_005f0)) return;
                out.write("</td>\r\n");
                out.write("            <td showColumn=\"option\">\r\n");
                out.write("            \t<a href=\"javascript:;\"  onclick=\"show('");
                out.write(
                    (java.lang.String)
                        org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                            "${ctx}",
                            java.lang.String.class,
                            (PageContext) _jspx_page_context,
                            null,
                            false));
                out.write("/admin/jtzs/province/");
                out.write(
                    (java.lang.String)
                        org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                            "${item.id}",
                            java.lang.String.class,
                            (PageContext) _jspx_page_context,
                            null,
                            false));
                out.write("/edit','");
                out.print(Province.TABLE_ALIAS);
                out.write("编辑',600)\" class=\"sysiconBtnNoIcon\">编辑</a>\r\n");
                out.write("            \t");
                if (_jspx_meth_c_005fforEach_005f1(
                    _jspx_th_c_005fforEach_005f0,
                    _jspx_page_context,
                    _jspx_push_body_count_c_005fforEach_005f0)) return;
                out.write("</td>\r\n");
                out.write("          </tr>\r\n");
                out.write("        ");
                int evalDoAfterBody = _jspx_th_c_005fforEach_005f0.doAfterBody();
                if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break;
              } while (true);
            }
            if (_jspx_th_c_005fforEach_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              return;
            }
          } catch (Throwable _jspx_exception) {
            while (_jspx_push_body_count_c_005fforEach_005f0[0]-- > 0)
              out = _jspx_page_context.popBody();
            _jspx_th_c_005fforEach_005f0.doCatch(_jspx_exception);
          } finally {
            _jspx_th_c_005fforEach_005f0.doFinally();
            _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvarStatus_005fvar_005fitems.reuse(
                _jspx_th_c_005fforEach_005f0);
          }
          out.write("</tbody>\r\n");
          out.write("    </table>\r\n");
          out.write("    ");
          if (_jspx_meth_simpletable_005fpageToolbar_005f0(
              _jspx_th_up72_005foverride_005f1, _jspx_page_context)) return;
          out.write("</form>\r\n");
          out.write("  <script type=\"text/javascript\">\r\n");
          out.write("\t// 列选择显示处理\r\n");
          out.write("\t$.showcolumn(");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${showColumn}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write(");\r\n");
          out.write("\t\r\n");
          out.write("\t// 表格列表处理\r\n");
          out.write("\t$('#admin_jtzs_province_table').flexigrid({\r\n");
          out.write("\t\theight: 'auto',\r\n");
          out.write("\t\tstriped : true,\r\n");
          out.write("\t\tbuttons : [\r\n");
          out.write("\t\t\t{name: \"添加\", bclass: \"addorder\", onpress : function(){show(\"");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${ctx}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("/admin/jtzs/province/new\",\"");
          out.print(Province.TABLE_ALIAS);
          out.write("添加\",600)}}\r\n");
          out.write("\t\t]\r\n");
          out.write("\t});\r\n");
          out.write("\r\n");
          out.write("\tfunction doValid(id,item){\r\n");
          out.write("\t\tvar $item = $(item);\r\n");
          out.write("\t\t$.ajax({\r\n");
          out.write("\t\t\turl : \"");
          out.write(
              (java.lang.String)
                  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                      "${ctx}",
                      java.lang.String.class,
                      (PageContext) _jspx_page_context,
                      null,
                      false));
          out.write("/admin/jtzs/province/\"+id+\"/doValid\",\r\n");
          out.write("\t\t\ttype : \"post\",\r\n");
          out.write("\t\t\tdataType : \"json\",\r\n");
          out.write("\t\t\tsuccess : function(jsondatas){\r\n");
          out.write("\t\t\t\tif(jsondatas.status=='success'){\r\n");
          out.write("\t\t\t\t\tif(jsondatas.valid=='");
          out.print(JTZSConstants.Pubilc.DISABLE.getIndex());
          out.write("'){\r\n");
          out.write("\t\t\t\t\t\t$item.text('");
          out.print(JTZSConstants.Pubilc.ENABLED.getName());
          out.write("');\r\n");
          out.write(
              "\t\t\t\t\t\t$item.closest(\"tr\").find(\"td[showColumn='status'] div\").text('");
          out.print(JTZSConstants.Pubilc.DISABLE.getName());
          out.write("');\r\n");
          out.write("\t\t\t\t\t}else{\r\n");
          out.write("\t\t\t\t\t\t$item.text('");
          out.print(JTZSConstants.Pubilc.DISABLE.getName());
          out.write("');\r\n");
          out.write(
              "\t\t\t\t\t\t$item.closest(\"tr\").find(\"td[showColumn='status'] div\").text('");
          out.print(JTZSConstants.Pubilc.ENABLED.getName());
          out.write("');\r\n");
          out.write("\t\t\t\t\t}\r\n");
          out.write("\t\t\t\t}\r\n");
          out.write("\t\t\t},\r\n");
          out.write("\t\t\terror : function(){\r\n");
          out.write("\t\t\t}\r\n");
          out.write("\t\t});\r\n");
          out.write("\t}\r\n");
          out.write("</script> \r\n");
          int evalDoAfterBody = _jspx_th_up72_005foverride_005f1.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break;
        } while (true);
        if (_jspx_eval_up72_005foverride_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          out = _jspx_page_context.popBody();
        }
      }
      if (_jspx_th_up72_005foverride_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fup72_005foverride_0026_005fname.reuse(
            _jspx_th_up72_005foverride_005f1);
        return;
      }
      _005fjspx_005ftagPool_005fup72_005foverride_0026_005fname.reuse(
          _jspx_th_up72_005foverride_005f1);
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "/admin/adminBase", out, false);
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            out.clearBuffer();
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }