/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: ......
 * Generated at: 2020-05-29 01:21:42 UTC
 * Note: The last modified time of this file was set to
 *       the last modified time of the source file after
 *       generation to assist with modification tracking.
 */
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import wiseoa.*;
import wiseoa.mail.jstl.*;
import wiseoa.util.*;
import java.util.*;
import java.net.*;
import wiseoa.*;
import wiseoa.util.*;
import wiseoa.RBAC.*;
import wiseoa.mail.jstl.*;

public final class system_005fuser_005fmasteredgroup_005fstudy_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final javax.servlet.jsp.JspFactory _jspxFactory =
          javax.servlet.jsp.JspFactory.getDefaultFactory();

  private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;

  static {
    _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(2);
    _jspx_dependants.put("/rightverify.jsp", Long.valueOf(1476341677059L));
    _jspx_dependants.put("/WEB-INF/c.tld", Long.valueOf(1099983217476L));
  }

  private volatile javax.el.ExpressionFactory _el_expressionfactory;
  private volatile org.apache.tomcat.InstanceManager _jsp_instancemanager;

  public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
    return _jspx_dependants;
  }

  public javax.el.ExpressionFactory _jsp_getExpressionFactory() {
    if (_el_expressionfactory == null) {
      synchronized (this) {
        if (_el_expressionfactory == null) {
          _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
        }
      }
    }
    return _el_expressionfactory;
  }

  public org.apache.tomcat.InstanceManager _jsp_getInstanceManager() {
    if (_jsp_instancemanager == null) {
      synchronized (this) {
        if (_jsp_instancemanager == null) {
          _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
        }
      }
    }
    return _jsp_instancemanager;
  }

  public void _jspInit() {
  }

  public void _jspDestroy() {
  }

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

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.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;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("\r\n");
  
	
	//éå¸¸æ¯å¯¹äºé£æ­¤éè¦æç®¡çåæéçé¡µé¢ç¨åå«æ¬é¡µé¢çæ¹å¼æ¥è¿è¡æéæ§å¶
	// å¦æå½åç¨æ·æç®¡çåæéï¼é£ä¹ç´æ¥è¿å
	// å¦æå½åé¡µé¢æ²¡æå å¥å°å·¥ä½å°ä¸­ï¼è¡¨ç¤ºæ²¡æè¿è¡é¢å¤ææï¼é£ä¹æç¤ºæ æé
	//å¦æå å¥å°äºå·¥ä½å°ï¼å¹¶ä¸åéå½åç¨æ·æ¥ææéï¼é£ä¹ok 
	User user=User.getUserFromRequest( request);
	 
	 if ( user.getRole()!=1) //å¦æä¸æ¯ç³»ç»ç®¡çæéçäººï¼
	 {
		 	String url =WiseFilter.getShortURL( request); 
			int unit = user.getUnit();
		 
			RBAC_cache cache = RBAC_cache.getInstance(null, unit);
 			if (!cache.needVerify(url)) 
 			{
 				String s= User.TIP_NORIGHT;
	 			response.sendRedirect( "SystemTip.jsp?info="+  URLEncoder.encode(s,"UTF-8") );
	 			return;
			} 

            //å¦æä¹æ²¡æè¿è¡å·¥ä½å°ææ
  	 		if ( ! WiseFilter.urlOnCommision( user, url ,0) ) 
			{ 
 	    		String s= User.TIP_NORIGHT;
	 			response.sendRedirect( "SystemTip.jsp?info="+  URLEncoder.encode(s,"UTF-8") );
	 			return;
			}
	 
	 }


      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
  
    request.setCharacterEncoding("UTF-8");
    FF.setResponseContentType(response);
	UserMasteredGroupMap  sg=new UserMasteredGroupMap(request);


      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("<HTML>\r\n");
      out.write("  <head><meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\" />\r\n");
      out.write(" \r\n");
      out.write("    <META http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("    <TITLE>考试成绩查询的部门权限</TITLE>\r\n");
      out.write("    \r\n");
      out.write("    <META http-equiv=\"pragma\" content=\"no-cache\">\r\n");
      out.write("    <META http-equiv=\"cache-control\" content=\"no-cache\">\r\n");
      out.write("    <META http-equiv=\"expires\" content=\"0\">\r\n");
      out.write("    \r\n");
      out.write("    \r\n");
      out.write("    \r\n");
      out.write("     \r\n");
      out.write("    <LINK rel=\"stylesheet\" type=\"text/css\" href=\"css/normal.css\">\r\n");
      out.write(" \r\n");
      out.write("   <LINK rel=\"StyleSheet\" href=\"tree/dtree.css\" type=\"text/css\" />\r\n");
      out.write("   <SCRIPT  type=\"text/javascript\" src=\"tree/dtree.js\"></SCRIPT>\r\n");
      out.write("  \r\n");
      out.write("   <STYLE type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write(".style1 {color: #FF9933}\r\n");
      out.write("-->\r\n");
      out.write("   </STYLE>\r\n");
      out.write("  </HEAD>\r\n");
      out.write("    <LINK rel=\"stylesheet\" type=\"text/css\" href=\"zbutton/zbutton.css\">\r\n");
      out.write("    <SCRIPT type=\"text/javascript\" src=\"zbutton/zbutton.js\"></SCRIPT>\r\n");
      out.write("    \r\n");
      out.write("   <SCRIPT type=\"text/javascript\" src=\"js/jsrsClient_rev.js\"></SCRIPT>\t \r\n");
      out.write(" \r\n");
      out.write("   <SCRIPT language=\"javascript\" >\r\n");
      out.write(" \r\n");
      out.write("    \r\n");
      out.write("\t\r\n");
      out.write("\tfunction Save()\r\n");
      out.write("\t{   \r\n");
      out.write("\t    \r\n");
      out.write("\t \r\n");
      out.write("\t\tvar  tip=\"确信要保存吗\";\r\n");
      out.write("\t\tif ( !confirm(tip)) return ;\r\n");
      out.write("        jsrsExecute2(\"servlet/wiseoa.mail.rpc.Admin_System_User\", callback_save, \"SetDepartmentMap\", 'department' ,false);\r\n");
      out.write("\t\t\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction  callback_save(msg)\r\n");
      out.write("\t{\r\n");
      out.write("\t    if (extractValue(msg ,\"ok\")==\"true\") \r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t   alert(\"保存成功.\");\r\n");
      out.write("\t\t//   parent.window.navigate ( parent.window.document.location );\r\n");
      out.write("\t\t}else\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t   alert ( extractValue(msg, \"error\"));\r\n");
      out.write("\t\t} \r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\t</SCRIPT>\r\n");
      out.write("  <BODY  style=\"margin:0 ; overflow:auto\">\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("  <TABLE width='100%'  border=\"0\" cellspadding=4 cellspacing=0>\r\n");
      out.write("    <Form id=\"department\">\r\n");
      out.write("      <TR>\r\n");
      out.write("         <TD colspan='2' height=32   background=\"image/mainbk.png\" >   <input type=\"hidden\"  id=\"id\"  name=\"id\" value=");
      out.print(sg.UserID);
      out.write("  >\r\n");
      out.write("  <input type=\"hidden\"  id=\"typeid\"  name=\"typeid\" value=");
      out.print(sg.TypeID);
      out.write("  >\r\n");
      out.write("  \r\n");
      out.write("  \r\n");
      out.write("          <SPAN class=\"px14\">设置【");
      out.print(sg.UserName);
      out.write("】允许查询哪些部门中的人员的考试成绩</SPAN>\r\n");
      out.write("          \r\n");
      out.write("        </td></tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("          <td>\r\n");
      out.write("          <SPAN  >&nbsp;&nbsp;&nbsp;&nbsp;<b style=\"color:green\">请仔细阅读：</b>打上勾表示允许查询该部门的<font color=red>直属人员</font>的成绩。这表示如果没有将子部门勾选上，那么是不能查询子部门中人员的考试成绩的。但值得注意的是无论是否在此做了部门(岗位)授权，\r\n");
      out.write("          ");
      out.print(sg.UserName);
      out.write("仍然允许查询他/她所辖部门及子部门中所有人的考试成绩</SPAN> </TD>\r\n");
      out.write("          <td>\r\n");
      out.write("            <SCRIPT language=\"javascript\">\r\n");
      out.write("\t\t \t\t\t\tfunction cb_save2_onclick()\r\n");
      out.write("\t\t\t\t\t\t{\r\n");
      out.write("\t\t\t\t\t\t   Save();\r\n");
      out.write("\t\t\t\t\t    }\r\n");
      out.write("\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t var cb =new zbutton('cb_save2','保存','image/disk.gif');\r\n");
      out.write("        \t</SCRIPT>\r\n");
      out.write("          </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          \r\n");
      out.write("    \r\n");
      out.write("  </TABLE>\r\n");
      out.write("    <HR size=\"1\" noshade  color=\"#CCCCCC\">\r\n");
      out.write("    <TABLE width=\"100%\"  border=\"0\">\r\n");
      out.write("      <TR>\r\n");
      out.write("        <TD width=\"58%\"   height=\"302\" valign=\"top\">\r\n");
      out.write("\t\t<DIV class=\"dtree\" style=\"width:100%; height:400px; overflow:auto\">\r\n");
      out.write("     \t<SCRIPT type=\"text/javascript\">\r\n");
      out.write("\t\t");
      out.print(sg.GroupHTML);
      out.write("    \r\n");
      out.write("\t\t</SCRIPT>\r\n");
      out.write("\t\t</DIV>\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t</TD>\r\n");
      out.write("       </TR>\r\n");
      out.write("    </Form>\r\n");
      out.write("    </TABLE> \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("  </BODY>\r\n");
      out.write("</HTML>\r\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
