⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subdepartmentlist_jsp.java

📁 Jbuilder2006开发的严格按MVC设计模式组织开发过程
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
          out.write("      }\r\n");
          out.write("    }\r\n");
          out.write("  }\r\n");
          out.write("\r\n");
          out.write("  if (isSelected) {\r\n");
          out.write("    if (!confirm(\"确定删除所选记录?\")) {\r\n");
          out.write("      return false;\r\n");
          out.write("    }\r\n");
          out.write("    actfrmTopsADepartment.method.value=\"delete\";\r\n");
          out.write("\r\n");
          out.write("\r\n");
          out.write("    actfrmTopsADepartment.submit();\r\n");
          out.write("  } else {\r\n");
          out.write("    alert(\"请至少选择一个部门信息!\");\r\n");
          out.write("    return false;\r\n");
          out.write("  }\r\n");
          out.write("}\r\n");
          out.write("\r\n");
          out.write("function show() {\r\n");
          out.write("\r\n");
          out.write("  document.all.departmentTable.style.display = \"\";\r\n");
          out.write("    if (document.all.canSave01.style.display == \"none\") {\r\n");
          out.write("\tdocument.all.canSave01.style.display = \"\";\r\n");
          out.write("\tdocument.all.canSave02.style.display = \"\";\r\n");
          out.write("\tdocument.all.canSave03.style.display = \"\";\r\n");
          out.write("        document.all.canSave04.style.display=\"\";\r\n");
          out.write("    }\r\n");
          out.write("}\r\n");
          out.write("function hiddendept(){\r\n");
          out.write("   document.all.departmentTable.style.display = \"none\";\r\n");
          out.write("\tdocument.all.canSave01.style.display = \"none\";\r\n");
          out.write("\tdocument.all.canSave02.style.display = \"none\";\r\n");
          out.write("\tdocument.all.canSave03.style.display = \"none\";\r\n");
          out.write("        document.all.canSave04.style.display=\"none\";\r\n");
          out.write("}\r\n");
          out.write("\r\n");
          out.write("\r\n");
          out.write("function initTbl(){\r\n");
          out.write("  init();\r\n");
          out.write("  drag = document.createElement(\"DIV\");\r\n");
          out.write("  drag.innerHTML\t\t= \"\";\r\n");
          out.write("  drag.style.textAlign \t= \"center\";\r\n");
          out.write("  drag.style.position \t= \"absolute\";\r\n");
          out.write("  drag.style.cursor \t= \"move\";\r\n");
          out.write("  drag.style.border \t= \"1 solid black\";\r\n");
          out.write("  drag.style.display \t= \"none\";\r\n");
          out.write("  drag.style.zIndex \t= \"999\";\r\n");
          out.write("  document.body.insertBefore(drag);\r\n");
          out.write("}\r\n");
          out.write("</script>\r\n");
          out.write("  <head>\r\n");
          out.write("  ");
          if (_jspx_meth_html_base_1(_jspx_th_html_html_0, _jspx_page_context))
            return;
          out.write("\r\n");
          out.write("  <LINK REL=\"stylesheet\" TYPE=\"text/css\" href=\"");
          out.print(request.getContextPath());
          out.write("/css/headstyle.css\">\r\n");
          out.write("  </head>\r\n");
          out.write("  <body>\r\n");
          out.write("  ");
          //  html:form
          org.apache.struts.taglib.html.FormTag _jspx_th_html_form_0 = (org.apache.struts.taglib.html.FormTag) _jspx_tagPool_html_form_method_action.get(org.apache.struts.taglib.html.FormTag.class);
          _jspx_th_html_form_0.setPageContext(_jspx_page_context);
          _jspx_th_html_form_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_html_0);
          _jspx_th_html_form_0.setAction("/actDepartment.do");
          _jspx_th_html_form_0.setMethod("post");
          int _jspx_eval_html_form_0 = _jspx_th_html_form_0.doStartTag();
          if (_jspx_eval_html_form_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            do {
              out.write("\r\n");
              out.write("    <input type=\"hidden\" name=\"fatherDeptId\" value=\"");
              if (_jspx_meth_bean_write_0(_jspx_th_html_form_0, _jspx_page_context))
                return;
              out.write("\"/>\r\n");
              out.write("    <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n");
              out.write("      <tr>\r\n");
              out.write("        <td width=\"70%\" nowrap class=\"location\">          您的位置:人事信息管理——部门管理,\r\n");
              out.write("          <font color=\"red\">\r\n");
              out.write("            ");
              if (_jspx_meth_bean_write_1(_jspx_th_html_form_0, _jspx_page_context))
                return;
              out.write("\r\n");
              out.write("          </font>\r\n");
              out.write("        </td>\r\n");
              out.write("        <td nowrap class=\"location\">        </td>\r\n");
              out.write("      </tr>\r\n");
              out.write("    </table>\r\n");
              out.write("    ");
              //  logic:notEmpty
              org.apache.struts.taglib.logic.NotEmptyTag _jspx_th_logic_notEmpty_0 = (org.apache.struts.taglib.logic.NotEmptyTag) _jspx_tagPool_logic_notEmpty_property_name.get(org.apache.struts.taglib.logic.NotEmptyTag.class);
              _jspx_th_logic_notEmpty_0.setPageContext(_jspx_page_context);
              _jspx_th_logic_notEmpty_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_form_0);
              _jspx_th_logic_notEmpty_0.setName("dept");
              _jspx_th_logic_notEmpty_0.setProperty("nextLevels");
              int _jspx_eval_logic_notEmpty_0 = _jspx_th_logic_notEmpty_0.doStartTag();
              if (_jspx_eval_logic_notEmpty_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                do {
                  out.write("\r\n");
                  out.write("      <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
                  out.write("        <tr>\r\n");
                  out.write("          ");
                  //  logic:iterate
                  org.apache.struts.taglib.logic.IterateTag _jspx_th_logic_iterate_0 = (org.apache.struts.taglib.logic.IterateTag) _jspx_tagPool_logic_iterate_property_name_id.get(org.apache.struts.taglib.logic.IterateTag.class);
                  _jspx_th_logic_iterate_0.setPageContext(_jspx_page_context);
                  _jspx_th_logic_iterate_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_logic_notEmpty_0);
                  _jspx_th_logic_iterate_0.setId("item");
                  _jspx_th_logic_iterate_0.setName("dept");
                  _jspx_th_logic_iterate_0.setProperty("nextLevels");
                  int _jspx_eval_logic_iterate_0 = _jspx_th_logic_iterate_0.doStartTag();
                  if (_jspx_eval_logic_iterate_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                    java.lang.Object item = null;
                    if (_jspx_eval_logic_iterate_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                      out = _jspx_page_context.pushBody();
                      _jspx_th_logic_iterate_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                      _jspx_th_logic_iterate_0.doInitBody();
                    }
                    item = (java.lang.Object) _jspx_page_context.findAttribute("item");
                    do {
                      out.write("\r\n");
                      out.write("            <td width=\"7%\" id=\"addNew\" align=\"center\" valign=\"middle\" nowrap class=\"toolbar\" onMouseOver=\"OMO()\" onMouseOut=\"OMOU()\" onClick=\"addNew('");
                      if (_jspx_meth_bean_write_2(_jspx_th_logic_iterate_0, _jspx_page_context))
                        return;
                      out.write("')\">\r\n");
                      out.write("              <img src=\"");
                      out.print(request.getContextPath());
                      out.write("/_normal/toolbar_pic/page_add.gif\" alt=\"新增\">\r\n");
                      out.write("              新增");
                      if (_jspx_meth_bean_write_3(_jspx_th_logic_iterate_0, _jspx_page_context))
                        return;
                      out.write("\r\n");
                      out.write("            </td>\r\n");
                      out.write("            <td width=\"1%\" align=\"center\" valign=\"middle\" nowrap class=\"toolbar\">|</td>\r\n");
                      out.write("          ");
                      int evalDoAfterBody = _jspx_th_logic_iterate_0.doAfterBody();
                      item = (java.lang.Object) _jspx_page_context.findAttribute("item");
                      if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                        break;
                    } while (true);
                    if (_jspx_eval_logic_iterate_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
                      out = _jspx_page_context.popBody();
                  }
                  if (_jspx_th_logic_iterate_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                    return;
                  _jspx_tagPool_logic_iterate_property_name_id.reuse(_jspx_th_logic_iterate_0);
                  out.write("\r\n");
                  out.write("          <td width=\"7%\" align=\"center\" valign=\"middle\" nowrap class=\"toolbar\" onMouseOver=\"OMO()\" onMouseOut=\"OMOU()\" onClick=\"del()\">\r\n");
                  out.write("            <img src=\"");
                  out.print(request.getContextPath());
                  out.write("/_normal/toolbar_pic/page_delete.gif\" alt=\"删除\">\r\n");
                  out.write("            删除\r\n");
                  out.write("          </td>\r\n");
                  out.write("          <td width=\"1%\" align=\"center\" valign=\"middle\" nowrap class=\"toolbar\" style=\"display:none\" id=\"canSave01\">|</td>\r\n");
                  out.write("          <td\r\n");
                  out.write("            width=\"7%\"\r\n");
                  out.write("            align=\"center\"\r\n");
                  out.write("            valign=\"middle\"\r\n");
                  out.write("            nowrap\r\n");
                  out.write("            class=\"toolbar\"\r\n");
                  out.write("            id=\"canSave02\"\r\n");
                  out.write("            onMouseOver=\"OMO()\"\r\n");
                  out.write("            onMouseOut=\"OMOU()\"\r\n");
                  out.write("            style=\"display:none\"\r\n");
                  out.write("            onClick=\"save()\">\r\n");
                  out.write("            <img src=\"");
                  out.print(request.getContextPath());
                  out.write("/_normal/toolbar_pic/page_save.gif\" alt=\"保存\">\r\n");
                  out.write("            保存\r\n");
                  out.write("          </td>\r\n");
                  out.write("          <td width=\"1%\" align=\"center\" valign=\"middle\" nowrap class=\"toolbar\" id=\"canSave03\" style=\"display:none\">|</td>\r\n");
                  out.write("          <td\r\n");
                  out.write("            width=\"7%\"\r\n");
                  out.write("            align=\"center\"\r\n");
                  out.write("            valign=\"middle\"\r\n");
                  out.write("            nowrap\r\n");
                  out.write("            style=\"display:none\"\r\n");
                  out.write("            class=\"toolbar\"\r\n");
                  out.write("            id=\"canSave04\"\r\n");
                  out.write("            onMouseOver=\"OMO()\"\r\n");
                  out.write("            onMouseOut=\"OMOU()\"\r\n");
                  out.write("            onClick=\"hiddendept()\">\r\n");
                  out.write("            <img src=\"");
                  out.print(request.getContextPath());
                  out.write("/_normal/toolbar_pic/arrow_undo.gif\" alt=\"取消\">\r\n");
                  out.write("            取消\r\n");
                  out.write("          </td>\r\n");
                  out.write("          <td width=\"69%\" align=\"right\" valign=\"middle\" nowrap class=\"toolbar\">          </td>\r\n");
                  out.write("        </tr>\r\n");
                  out.write("      </table>\r\n");
                  out.write("\r\n");
                  out.write("    <table cellpadding=\"0\" cellspacing=\"1\" border=\"0\" width=\"100%\" id=\"PowerTable\">\r\n");
                  out.write("      <tr align=\"center\">\r\n");
                  out.write("        <td height=\"20\" width=\"5%\" nowrap class=\"title\">\r\n");
                  out.write("          <label>\r\n");
                  out.write("            <input type=\"checkbox\" name=\"allselect\" value=\"\" onClick=\"check_all()\" style=\"cursor:hand;border:0\">\r\n");
                  out.write("            全选\r\n");
                  out.write("          </label>\r\n");
                  out.write("        </td>\r\n");
                  out.write("        <td width=\"10%\" nowrap class=\"title\">序号</td>\r\n");
                  out.write("        <td width=\"10%\" nowrap class=\"title\">编号</td>\r\n");
                  out.write("        <td width=\"20%\" nowrap class=\"title\">组织机构名称</td>\r\n");
                  out.write("        <td width=\"20%\" nowrap class=\"title\">组织机构类别</td>\r\n");
                  out.write("        ");
                  if (_jspx_meth_logic_notEmpty_1(_jspx_th_logic_notEmpty_0, _jspx_page_context))
                    return;
                  out.write("\r\n");
                  out.write("        ");
                  if (_jspx_meth_logic_notEmpty_2(_jspx_th_logic_notEmpty_0, _jspx_page_context))
                    return;
                  out.write("\r\n");
                  out.write("        ");
                  if (_jspx_meth_logic_notEmpty_3(_jspx_th_logic_notEmpty_0, _jspx_page_context))
                    return;
                  out.write("\r\n");
                  out.write("        ");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -