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

📄 system_0002fdepartment_0002fdepartment_0005fupdate_0002ejsp_jsp.java

📁 一个做得非常好的电子政务系统
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
import java.util.*;
import com.masterwork.tool.*;
import com.masterwork.database.*;
import com.masterwork.system.*;
import com.masterwork.system.UserInfor;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class system_0002fdepartment_0002fdepartment_0005fupdate_0002ejsp_jsp extends HttpJspBase {


    static {
    }
    public system_0002fdepartment_0002fdepartment_0005fupdate_0002ejsp_jsp( ) {
    }

    private static boolean _jspx_inited = false;

    public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
    }

    public void _jspService(HttpServletRequest request, HttpServletResponse  response)
        throws java.io.IOException, ServletException {

        JspFactory _jspxFactory = null;
        PageContext pageContext = null;
        HttpSession session = null;
        ServletContext application = null;
        ServletConfig config = null;
        JspWriter out = null;
        Object page = this;
        String  _value = null;
        try {

            if (_jspx_inited == false) {
                synchronized (this) {
                    if (_jspx_inited == false) {
                        _jspx_init();
                        _jspx_inited = true;
                    }
                }
            }
            _jspxFactory = JspFactory.getDefaultFactory();
            response.setContentType("text/html;charset=gb2312");
            pageContext = _jspxFactory.getPageContext(this, request, response,
            			"", true, 8192, true);

            application = pageContext.getServletContext();
            config = pageContext.getServletConfig();
            session = pageContext.getSession();
            out = pageContext.getOut();

            // HTML // begin [file="/system/department/department_update.jsp";from=(0,50);to=(1,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/system/department/department_update.jsp";from=(1,32);to=(2,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/system/department/department_update.jsp";from=(2,42);to=(3,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/system/department/department_update.jsp";from=(3,46);to=(4,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/system/department/department_update.jsp";from=(4,44);to=(5,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/userinfor.jsp";from=(0,51);to=(1,0)]
                out.write("\r\n");

            // end
            // begin [file="/userinfor.jsp";from=(1,2);to=(8,0)]
                
                	UserInfor userInfor_session = (UserInfor)session.getAttribute("UserInfor");
                	String rootPath_session = request.getContextPath();
                
                	if  ( userInfor_session == null || userInfor_session.getYGID() == 0){
                		response.sendRedirect(rootPath_session+"/login.jsp");
                	}
            // end
            // HTML // begin [file="/userinfor.jsp";from=(8,2);to=(9,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/system/department/department_update.jsp";from=(5,36);to=(6,0)]
                out.write("\r\n");

            // end
            // begin [file="/share/page/page_request.jsp";from=(0,2);to=(7,0)]
                
                    //查询及分页信息
                    String strPage = Convert.toZeroStr(request.getParameter("page"));
                    String searchField = Convert.toGBK(request.getParameter("searchField"));
                    String searchKey =  Convert.toGBK(request.getParameter("searchKey"));
                    //动作
                    String strACTION = Convert.toGBK(request.getParameter("ACTION"));
            // end
            // HTML // begin [file="/share/page/page_request.jsp";from=(7,2);to=(8,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/system/department/department_update.jsp";from=(6,50);to=(7,0)]
                out.write("\r\n");

            // end
            // begin [file="/system/department/department_update.jsp";from=(7,2);to=(65,0)]
                
                    ////////////////////////////列表页面所必须有的公共变量
                    String strLevel = "../../";  //本页所在的层次
                    String strSkin = "../" + userInfor_session.getPFLJ();  //皮肤路径
                    String strLink = "department_update.jsp";    //本页的地址
                    int iSpace = 5;  //空格的宽度
                
                    /////////////////////需要连接过去的页面地址
                    String strLink_action    = "department_action.jsp";
                
                    ///////
                    DataConn dataConn = new DataConn();
                    //将部门信息放于iterDepart
                    DepartmentInfor departmentInfor = null;
                    Department department = new Department(dataConn);
                    Iterator iterDepart = null;
                    iterDepart = department.getDepartList("1=1 order by BMBH").iterator();
                    //将部门级别放于hashMap中
                    DepartLevel departLevel = new DepartLevel(dataConn);
                    HashMap hashMapLevel = departLevel.getLevelHashMap("1=1");
                    Iterator iterKey = hashMapLevel.keySet().iterator();  //主键,也就是JBID
                    Integer integerKey = null;
                
                    int    iBMID = 0;
                    String sBMMC = "";
                    String sBMBH = "";  //部门编号
                    String sBMBH_parent = ""; //上级编号
                    int    iBMJB = 0;
                    String sBMJB = "";    //部门级别名称
                    int    iBMFZR = 0;
                    String sBMFZR = "";  //部门负责人姓名
                    String sBMBZ  = "";
                
                    //上级部门
                    String sBMMC_P = "";
                    String sBMBH_P = "";
                    String sListTip = "";
                    int j = 0;
                
                    //部门级别
                    int iJBID = 0;
                    String sJBMC = "";
                
                    ///////////////////////获取部门编号,判断是否修改信息
                    sBMBH = Convert.toGBK(request.getParameter("BMBH"));
                    if (strACTION.equals("UPDATE")) {
                        departmentInfor = department.getDepartInfor(sBMBH);
                        iBMID = departmentInfor.getBMID();
                        sBMMC = departmentInfor.getBMMC();
                        sBMBH = departmentInfor.getBMBH();
                        iBMJB = departmentInfor.getBMJB();
                        iBMFZR = departmentInfor.getBMFZR();
                        sBMBZ  = departmentInfor.getBMBZ();
                
                        if  (sBMBH.length() > 2) {
                            sBMBH_parent = sBMBH.substring(0, sBMBH.length()-2);
                        }
                    }
            // end
            // HTML // begin [file="/system/department/department_update.jsp";from=(65,2);to=(72,7)]
                out.write("\r\n<html>\r\n<head>\r\n<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">\r\n<META HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\">\r\n<META HTTP-EQUIV=\"Expires\" CONTENT=\"0\">\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<title>");

            // end
            // begin [file="/system/department/department_update.jsp";from=(72,10);to=(72,30)]
                out.print(Message.COMPANY_NAME);
            // end
            // HTML // begin [file="/system/department/department_update.jsp";from=(72,32);to=(73,12)]
                out.write("</title>\r\n<link href=\"");

            // end
            // begin [file="/system/department/department_update.jsp";from=(73,15);to=(73,22)]
                out.print(strSkin);
            // end
            // HTML // begin [file="/system/department/department_update.jsp";from=(73,24);to=(79,40)]
                out.write("css1.css\" rel=\"stylesheet\" type=\"text/css\">\r\n</head>\r\n<script language=vbscript src=\"../share/fun_selectPerson.vbs\"></script>\r\n\r\n\r\n<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\r\n<form name=\"form\" method=\"post\" action=\"");

            // end
            // begin [file="/system/department/department_update.jsp";from=(79,43);to=(79,57)]
                out.print(strLink_action);
            // end
            // HTML // begin [file="/system/department/department_update.jsp";from=(79,59);to=(80,0)]
                out.write("\" onsubmit=\"javaScript:return check_validate(this);\">\r\n");

            // end
            // HTML // begin [file="/system/department/department_top.html";from=(0,0);to=(12,32)]
                out.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n  <tr class=\"toptr\">\r\n    <td height=\"23\">&nbsp;&nbsp;<b>部门管理</b></td>\r\n  </tr>\r\n  <tr class=\"toptr3\">\r\n    <td><br>\r\n        <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n          <tr>\r\n            <td>\r\n             <table height=\"26\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n               <tr align=\"center\">\r\n                  <td width=\"5\">&nbsp;</td>\r\n                  <td><img src=\"");

            // end
            // begin [file="/system/department/department_top.html";from=(12,35);to=(12,42)]
                out.print(strSkin);
            // end
            // HTML // begin [file="/system/department/department_top.html";from=(12,44);to=(13,45)]
                out.write("common/blank.gif\" width=\"5\" height=\"5\"></td>\r\n                  <td width=\"81\" background=\"");

            // end
            // begin [file="/system/department/department_top.html";from=(13,48);to=(13,55)]
                out.print(strSkin);
            // end
            // HTML // begin [file="/system/department/department_top.html";from=(13,57);to=(14,32)]
                out.write("common/tab_on.gif\"><a href=\"department_list.jsp\">部门列表</a></td>\r\n                  <td><img src=\"");

            // end
            // begin [file="/system/department/department_top.html";from=(14,35);to=(14,42)]
                out.print(strSkin);
            // end
            // HTML // begin [file="/system/department/department_top.html";from=(14,44);to=(15,45)]
                out.write("common/blank.gif\" width=\"5\" height=\"5\"></td>\r\n                  <td width=\"81\" background=\"");

            // end
            // begin [file="/system/department/department_top.html";from=(15,48);to=(15,55)]
                out.print(strSkin);
            // end
            // HTML // begin [file="/system/department/department_top.html";from=(15,57);to=(16,32)]
                out.write("common/tab_off.gif\"><a href=\"level_list.jsp\">部门分级</a></td>\r\n                  <td><img src=\"");

            // end
            // begin [file="/system/department/department_top.html";from=(16,35);to=(16,42)]
                out.print(strSkin);
            // end
            // HTML // begin [file="/system/department/department_top.html";from=(16,44);to=(17,45)]
                out.write("common/blank.gif\" width=\"5\" height=\"5\"></td>\r\n                  <td width=\"81\" background=\"");

            // end
            // begin [file="/system/department/department_top.html";from=(17,48);to=(17,55)]
                out.print(strSkin);
            // end
            // HTML // begin [file="/system/department/department_top.html";from=(17,57);to=(25,8)]
                out.write("common/tab_off.gif\"><a href=\"dept_tree.jsp\">部门结构</a></td>\r\n                </tr>\r\n              </table>\r\n            </td>\r\n          </tr>\r\n        </table>\r\n    </td>\r\n  </tr>\r\n</table>");

            // end
            // HTML // begin [file="/system/department/department_update.jsp";from=(80,40);to=(98,54)]
                out.write("\r\n<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n  <tr class=\"toptr2\">\r\n    <td>\r\n      <table width=\"100%\" border=0 cellpadding=3 cellspacing=1 >\r\n          <tr>\r\n            <td width=\"5%\"><input type=\"submit\" name=\"subSave\" value=\"保存\"  class=\"sbttn\"></td>\r\n            <td width=\"5%\"><input type=\"reset\" name=\"btnAdd3\" value=\"重置\" class=\"sbttn\"  ></td>\r\n            <td width=\"3%\"><input type=\"button\" name=\"btnAdd\" value=\"返回\" class=\"sbttn\"  onClick=\"javaScript:history.go(-1);\"></td>\r\n            <td width=\"87%\">&nbsp;</td>\r\n          </tr>\r\n      </table>\r\n    </td>\r\n  </tr>\r\n</table>\r\n<br>\r\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\">\r\n  <tr>\r\n    <td width=\"30%\" align=\"right\">部门名称</td><td width=\"");

            // end

⌨️ 快捷键说明

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