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

📄 top4_jsp.java

📁 一套JAVA开发的OA系统,包括工作流,客户管理、个人管理、车辆管理,人事管理等。
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package org.apache.jsp.oaweb;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import cn.com.chx.oa.model.catalog.UserModel;
import cn.com.chx.oa.util.OADate;
import cn.com.chx.oa.util.outlook.ShowOutlook;
import cn.com.chx.oa.util.Constant;

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

  private static java.util.Vector _jspx_dependants;

  static {
    _jspx_dependants = new java.util.Vector(1);
    _jspx_dependants.add("/WEB-INF/c.tld");
  }

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_out_value_nobody;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _jspx_tagPool_c_out_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _jspx_tagPool_c_out_value_nobody.release();
  }

  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;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=GB2312");
      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("<!--jsp:useBean id=\"userinfo\" class=\"cn.com.chx.oa.util.Constant\" scope=\"request\"/-->\r\n");


      UserModel t_model = (UserModel)session.getAttribute("userinfo");
      String userid = t_model.getId();
	  String css_name =  "4";
	  String t_cssName = t_model.getCss_name();
	 if(t_cssName != null || !t_cssName.equals(""))
	  css_name = t_model.getCss_name();
	  ShowOutlook outlook = new ShowOutlook();
      outlook.setUserModel(userid);
//  		String p =	"";
//      out.println("t_html=====" + t_html);
//      out.println("html"+html);

      out.write("\r\n");
      out.write("<SCRIPT LANGUAGE=\"JavaScript\">\r\n");
      out.write("function checkNet(pri){\r\n");
      out.write("\r\n");

     outlook.setOutlookType(Constant.WWW_WORK);
      String netHtml = outlook.getUserWithOutlook();
	   int i_netHtml = netHtml.trim().length();
		String netp ="";
 		if(i_netHtml == 0){
       netp = "false";
		}

 
      out.write("\r\n");
      out.write("\tif(pri==\"false\"){\r\n");
      out.write("\talert(\"");
      out.print(t_model.getName());
      out.write(",您好,您没有网上办公这个模块的访问权限,请和管理员联系\");\r\n");
      out.write("\treturn false;\r\n");
      out.write("}\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function checkSystem(pri){\r\n");
      out.write("\r\n");

     outlook.setOutlookType(Constant.SYSTEM);
      String sysHtml = outlook.getUserWithOutlook();
	   int i_sysHtml = sysHtml.trim().length();
	   String sysp = "";
 		if(i_sysHtml == 0){
       sysp = "false";
		}

 
      out.write("\r\n");
      out.write("\tif(pri==\"false\"){\r\n");
      out.write("\r\n");
      out.write("\talert(\"");
      out.print(t_model.getName());
      out.write(",您好,您没有系统管理这个模块的访问权限,请和管理员联系\");\r\n");
      out.write("\treturn false;\r\n");
      out.write("}\r\n");
      out.write("}\r\n");
      out.write("</SCRIPT>\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<title>欢迎使用世纪联华办公自动化系统</title>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write("body {\r\n");
      out.write("\tmargin-left: 0px;\r\n");
      out.write("\tmargin-top: 0px;\r\n");
      out.write("\tmargin-right: 0px;\r\n");
      out.write("\tmargin-bottom: 0px;\r\n");
      out.write("}\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("<link href=\"css/");
      out.print(css_name);
      out.write("/homecss.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write(".style1 {color: #FF6401}\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("</head>\r\n");
      cn.com.chx.oa.util.PageManager pageManager = null;
      synchronized (request) {
        pageManager = (cn.com.chx.oa.util.PageManager) _jspx_page_context.getAttribute("pageManager", PageContext.REQUEST_SCOPE);
        if (pageManager == null){
          pageManager = new cn.com.chx.oa.util.PageManager();
          _jspx_page_context.setAttribute("pageManager", pageManager, PageContext.REQUEST_SCOPE);
        }

⌨️ 快捷键说明

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