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

📄 inc_0002fuserright_0002ejsp_jsp.java

📁 dgbas公文管理核心java源码
💻 JAVA
字号:
package inc;

import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class inc_0002fUserRight_0002ejsp_jsp extends HttpJspBase {

    // begin [file="/inc/UserRight.jsp";from=(2,0);to=(2,75)]
    // end
    // begin [file="/inc/UserRight.jsp";from=(3,0);to=(3,74)]
    // end
    // begin [file="/inc/UserRight.jsp";from=(4,0);to=(4,70)]
    // end

    static {
    }
    public inc_0002fUserRight_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=Big5");
            pageContext = _jspxFactory.getPageContext(this, request, response,
            			"", true, 8192, true);

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

            // HTML // begin [file="/inc/UserRight.jsp";from=(0,48);to=(1,0)]
                out.write("\r\n");

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

            // end
            // begin [file="/inc/UserRight.jsp";from=(2,0);to=(2,75)]
                com.jestdoc.inc.ExtendString ExStr = null;
                boolean _jspx_specialExStr  = false;
                 synchronized (pageContext) {
                    ExStr= (com.jestdoc.inc.ExtendString)
                    pageContext.getAttribute("ExStr",PageContext.PAGE_SCOPE);
                    if ( ExStr == null ) {
                        _jspx_specialExStr = true;
                        try {
                            ExStr = (com.jestdoc.inc.ExtendString) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.jestdoc.inc.ExtendString");
                        } catch (ClassNotFoundException exc) {
                             throw new InstantiationException(exc.getMessage());
                        } catch (Exception exc) {
                             throw new ServletException (" Cannot create bean of class "+"com.jestdoc.inc.ExtendString", exc);
                        }
                        pageContext.setAttribute("ExStr", ExStr, PageContext.PAGE_SCOPE);
                    }
                 } 
                if(_jspx_specialExStr == true) {
            // end
            // begin [file="/inc/UserRight.jsp";from=(2,0);to=(2,75)]
                }
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(2,75);to=(3,0)]
                out.write("\r\n");

            // end
            // begin [file="/inc/UserRight.jsp";from=(3,0);to=(3,74)]
                com.jestdoc.inc.ExtendMath ExMath = null;
                boolean _jspx_specialExMath  = false;
                 synchronized (pageContext) {
                    ExMath= (com.jestdoc.inc.ExtendMath)
                    pageContext.getAttribute("ExMath",PageContext.PAGE_SCOPE);
                    if ( ExMath == null ) {
                        _jspx_specialExMath = true;
                        try {
                            ExMath = (com.jestdoc.inc.ExtendMath) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.jestdoc.inc.ExtendMath");
                        } catch (ClassNotFoundException exc) {
                             throw new InstantiationException(exc.getMessage());
                        } catch (Exception exc) {
                             throw new ServletException (" Cannot create bean of class "+"com.jestdoc.inc.ExtendMath", exc);
                        }
                        pageContext.setAttribute("ExMath", ExMath, PageContext.PAGE_SCOPE);
                    }
                 } 
                if(_jspx_specialExMath == true) {
            // end
            // begin [file="/inc/UserRight.jsp";from=(3,0);to=(3,74)]
                }
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(3,74);to=(4,0)]
                out.write("\r\n");

            // end
            // begin [file="/inc/UserRight.jsp";from=(4,0);to=(4,70)]
                com.jestdoc.org.WinUser User = null;
                boolean _jspx_specialUser  = false;
                 synchronized (pageContext) {
                    User= (com.jestdoc.org.WinUser)
                    pageContext.getAttribute("User",PageContext.PAGE_SCOPE);
                    if ( User == null ) {
                        _jspx_specialUser = true;
                        try {
                            User = (com.jestdoc.org.WinUser) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.jestdoc.org.WinUser");
                        } catch (ClassNotFoundException exc) {
                             throw new InstantiationException(exc.getMessage());
                        } catch (Exception exc) {
                             throw new ServletException (" Cannot create bean of class "+"com.jestdoc.org.WinUser", exc);
                        }
                        pageContext.setAttribute("User", User, PageContext.PAGE_SCOPE);
                    }
                 } 
                if(_jspx_specialUser == true) {
            // end
            // begin [file="/inc/UserRight.jsp";from=(4,0);to=(4,70)]
                }
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(4,70);to=(6,0)]
                out.write("\r\n\r\n");

            // end
            // begin [file="/inc/UserRight.jsp";from=(6,2);to=(35,0)]
                
                 	String sDeptID=ExStr.nullToSpace(request.getParameter("DeptID"));   //閮ㄩ杸绶ㄨ櫉
                 	String sDeptName=ExStr.nullToSpace(request.getParameter("DeptName"));
                 	String sUpDeptID=ExStr.nullToSpace(request.getParameter("upDeptID"));
                 	String sUpDeptName=ExStr.nullToSpace(request.getParameter("upDeptName"));
                 	String sDeptType=ExStr.nullToSpace(request.getParameter("DeptType"));
                
                	sDeptName=ExStr.formDecode(sDeptName);
                	sUpDeptName=ExStr.formDecode(sUpDeptName);
                
                	int DeptID=ExMath.parseInt(sDeptID);
                	//out.println("DeptID : sDeptID : " + DeptID + " : " + sDeptID);
                	int upDeptID=ExMath.parseInt(sUpDeptID);
                	int DeptType=ExMath.parseInt(sDeptType);
                	int UserID=0;
                	String UserName="";
                	ResultSet rs=null;
                	/*if(DeptType==2)
                	{
                		rs=User.findRoleUserListInDept(upDeptID,DeptID);
                	}
                	else
                	{
                    */
                		rs=User.findUserList(DeptID);
                    /*
                	 }
                    */
                
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(35,2);to=(39,19)]
                out.write("\r\n<script>\r\n   function SelUser(UserID,UserName)\r\n   {\r\n      var DeptType=");

            // end
            // begin [file="/inc/UserRight.jsp";from=(39,22);to=(39,30)]
                out.print(DeptType);
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(39,32);to=(44,32)]
                out.write(";\r\n      if(DeptType==0 || DeptType==1)\r\n      {\r\n      \t var RoleID=\"\"\r\n      \t var RoleName=\"\"\r\n      \t top.returnValue=\"DeptID=");

            // end
            // begin [file="/inc/UserRight.jsp";from=(44,35);to=(44,41)]
                out.print(DeptID);
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(44,43);to=(44,53)]
                out.write(";DeptName=");

            // end
            // begin [file="/inc/UserRight.jsp";from=(44,56);to=(44,65)]
                out.print(sDeptName);
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(44,67);to=(44,168)]
                out.write(";RoleID=\" +RoleID + \";RoleName=\" + RoleName + \";UserID=\"+UserID+\";UserName=\"+ UserName + \";GroupType=");

            // end
            // begin [file="/inc/UserRight.jsp";from=(44,171);to=(44,179)]
                out.print(DeptType);
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(44,181);to=(48,31)]
                out.write("\";\r\n      }\r\n      else\r\n      {\r\n      \ttop.returnValue=\"DeptID=");

            // end
            // begin [file="/inc/UserRight.jsp";from=(48,34);to=(48,42)]
                out.print(upDeptID);
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(48,44);to=(48,54)]
                out.write(";DeptName=");

            // end
            // begin [file="/inc/UserRight.jsp";from=(48,57);to=(48,68)]
                out.print(sUpDeptName);
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(48,70);to=(48,78)]
                out.write(";RoleID=");

            // end
            // begin [file="/inc/UserRight.jsp";from=(48,81);to=(48,87)]
                out.print(DeptID);
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(48,89);to=(48,99)]
                out.write(";RoleName=");

            // end
            // begin [file="/inc/UserRight.jsp";from=(48,102);to=(48,111)]
                out.print(sDeptName);
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(48,113);to=(48,167)]
                out.write(";UserID=\"+UserID+\";UserName=\"+ UserName + \";GroupType=");

            // end
            // begin [file="/inc/UserRight.jsp";from=(48,170);to=(48,178)]
                out.print(DeptType);
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(48,180);to=(53,0)]
                out.write("\";\r\n      }\r\n      top.close();\r\n   }\r\n</script>\r\n");

            // end
            // begin [file="/inc/UserRight.jsp";from=(53,2);to=(56,0)]
                
                String cssFile=(String)session.getValue("cssFile");
                if (cssFile==null) cssFile="treeStyle0";
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(56,2);to=(75,4)]
                out.write("\r\n\r\n<html>\r\n<head>\r\n<meta HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=Big5\">\r\n<style type=\"text/css\">\r\n   @media all {tools\\:ubb {behavior:url(\"ubb.htc\")}}\r\n</style>\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../inc/web_font.css\" />\r\n<body\">\r\n<div align=\"left\">\r\n  <table width=\"100%\" cellPadding=\"0\" cellspacing=\"1\" bgcolor=\"#88A5DB\" >\r\n  <tr>\r\n   <td>\r\n    <table width=\"100%\" cellspacing=\"1\" cellpadding=\"3\" bgcolor=\"#E1E9FF\">\r\n    <tr>\r\n      <td width=\"25%\" height=\"5\">閬告搰</td>\r\n      <td width=\"75%\" height=\"5\">鐢ㄦ埗鍚嶇ū</td>\r\n    </tr>\r\n    ");

            // end
            // begin [file="/inc/UserRight.jsp";from=(75,6);to=(80,5)]
                
                      while (rs!=null && rs.next())
                      {
                         UserID=rs.getInt("UserID");
                         UserName = ExStr.dbDecode(rs.getString("UserName"));
                   		
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(80,7);to=(82,88)]
                out.write("\r\n        <tr  bgcolor=\"#ffffff\">\r\n            <td height=\"5\" ><input type=\"radio\" name=\"IsSelected\" onDblclick=\" SelUser('");

            // end
            // begin [file="/inc/UserRight.jsp";from=(82,91);to=(82,97)]
                out.print(UserID);
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(82,99);to=(82,102)]
                out.write("','");

            // end
            // begin [file="/inc/UserRight.jsp";from=(82,105);to=(82,113)]
                out.print(UserName);
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(82,115);to=(83,28)]
                out.write("')\"</td>\r\n            <td height=\"5\" >");

            // end
            // begin [file="/inc/UserRight.jsp";from=(83,31);to=(83,39)]
                out.print(UserName);
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(83,41);to=(85,5)]
                out.write("</td>\r\n         </tr>\r\n   \t\t");

            // end
            // begin [file="/inc/UserRight.jsp";from=(85,7);to=(88,3)]
                
                     }
                     User.close();
                   
            // end
            // HTML // begin [file="/inc/UserRight.jsp";from=(88,5);to=(97,0)]
                out.write("\r\n   </table>\r\n   </td>\r\n </tr>\r\n  </table>\r\n</div>\r\n</body>\r\n</html>\r\n\r\n");

            // end

        } catch (Throwable t) {
            if (out != null && out.getBufferSize() != 0)
                out.clearBuffer();
            if (pageContext != null) pageContext.handlePageException(t);
        } finally {
            if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
        }
    }
}

⌨️ 快捷键说明

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