📄 top_jsp.java
字号:
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 top_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 = "1";
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=GBK\">\r\n");
out.write("<title>欢迎使用世纪联华办公自动化系统</title>\r\n");
out.write("\r\n");
out.write("<link href=\"css/");
out.print(css_name);
out.write("/homecss.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("\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);
}
}
out.write("\r\n");
out.write("<body>\r\n");
out.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"18\" >\r\n");
out.write(" <tr>\r\n");
out.write(" <th width=\"154\" height=\"18\" scope=\"col\"><img src=\"images/");
out.print(css_name);
out.write("/toplogo1.gif\" width=\"154\" height=\"18\"></th>\r\n");
out.write(" <th class=\"topinfo\" scope=\"col\"><div align=\"left\">用户名:<span class=\"fontstrong\">");
if (_jspx_meth_c_out_0(_jspx_page_context))
return;
out.write("</span>\r\n");
out.write(" | 所属部门:<span class=\"fontstrong\">");
if (_jspx_meth_c_out_1(_jspx_page_context))
return;
out.write("</span> | 当前日期:<span class=\"fontstrong\">");
out.print(new OADate(System.currentTimeMillis()));
out.write("</span></div></th>\r\n");
out.write(" <th width=\"28\" height=\"18\" scope=\"col\"><img src=\"images/");
out.print(css_name);
out.write("/tophy.gif\" width=\"28\" height=\"18\"></th>\r\n");
out.write(" <th class=\"topinforight\" scope=\"col\"><div align=\"right\"><a href=\"");
out.print(Constant.ROOTPATH);
out.write("sms/send_message.jsp\" target=\"mainFrame\" ><img src=\"images/");
out.print(css_name);
out.write("/messagetu.gif\" width=\"49\" border=\"0\" height=\"18\"></a><a href=\"main.jsp\" target=\"mainFrame\" ><img src=\"images/");
out.print(css_name);
out.write("/hometu.gif\" width=\"49\" border=\"0\" height=\"18\"></a><img src=\"images/");
out.print(css_name);
out.write("/helptu.gif\" width=\"49\" height=\"18\"><a href=\"/oa/oaweb/logout.jsp\" target=\"_parent\"><img src=\"images/");
out.print(css_name);
out.write("/exittu.gif\" width=\"49\" height=\"18\" border=\"0\"></a></div></th>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("<table width=\"100%\" height=\"46\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <th width=\"154\" scope=\"col\"><img src=\"images/");
out.print(css_name);
out.write("/toplogo2.gif\" width=\"154\" height=\"46\"></th>\r\n");
out.write(" <th width=\"252\" scope=\"col\"><img src=\"images/");
out.print(css_name);
out.write("/toplogoword.gif\" width=\"252\" height=\"46\"></th>\r\n");
out.write(" <th class=\"top2button\" scope=\"col\"><div align=\"center\"><a href=\"personoutlook.jsp\" target=\"leftFrame\"><img src=\"images/");
out.print(css_name);
out.write("/workbutton.gif\" width=\"75\" height=\"46\" border=\"0\" ></a><a href=\"outlook.jsp\" onclick=\"return checkNet('");
out.print(netp);
out.write("');\" target=\"leftFrame\" ><img src=\"images/");
out.print(css_name);
out.write("/officebutton.gif\" width=\"61\" height=\"46\" border=\"0\"></a><a href=\"sysoutlook.jsp\" onclick=\"return checkSystem('");
out.print(sysp);
out.write("');\" target=\"leftFrame\" ><img src=\"images/");
out.print(css_name);
out.write("/system.gif\" width=\"61\" height=\"46\" border=\"0\"></a><a href=\"/oa/oaweb/communication/AddressListAction.do?actionType=query&label=list\" target=\"mainFrame\"><img src=\"images/");
out.print(css_name);
out.write("/addressbutton.gif\" width=\"52\" height=\"46\" border=\"0\"></a><a href=\"/oa/oaweb/calendar/DailyArrangeAction.do?actionType=query&flag=3\" target=\"mainFrame\"><img src=\"images/");
out.print(css_name);
out.write("/calanderbutton.gif\" width=\"62\" height=\"46\" border=0></a><a href=\"/oa/oaweb/note/NoteAction.do?actionType=query\" target=\"mainFrame\"><img src=\"images/");
out.print(css_name);
out.write("/notebutton.gif\" width=\"62\" height=\"46\" border=0></a></div></th>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <th width=\"154\" height=\"22\" scope=\"col\"><img src=\"images/");
out.print(css_name);
out.write("/toplogo3.gif\" width=\"154\" height=\"22\"></th>\r\n");
out.write(" <th class=\"top3info\"><div align=\"left\"><MARQUEE onMouseOver=this.stop() onMouseOut=this.start() direction=left scrollamount=1 scrolldelay=50 width=\"40\" height=\"22\" style=\"width:96%;\"><font color=\"#000000\"><span class=\"style1\"><a href=\"/oa/oaweb/instance/ListAllAction.do?actionType=query&workType=do\" target=\"mainFrame\">待办工作[");
out.print(String.valueOf(pageManager.getMytodoWorkListNumber(userid)));
out.write("]</a></span> </font></MARQUEE> </div></th>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_c_out_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:out
org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_0 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value_nobody.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
_jspx_th_c_out_0.setPageContext(_jspx_page_context);
_jspx_th_c_out_0.setParent(null);
_jspx_th_c_out_0.setValue("${userinfo.name}");
int _jspx_eval_c_out_0 = _jspx_th_c_out_0.doStartTag();
if (_jspx_th_c_out_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_out_value_nobody.reuse(_jspx_th_c_out_0);
return false;
}
private boolean _jspx_meth_c_out_1(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:out
org.apache.taglibs.standard.tag.el.core.OutTag _jspx_th_c_out_1 = (org.apache.taglibs.standard.tag.el.core.OutTag) _jspx_tagPool_c_out_value_nobody.get(org.apache.taglibs.standard.tag.el.core.OutTag.class);
_jspx_th_c_out_1.setPageContext(_jspx_page_context);
_jspx_th_c_out_1.setParent(null);
_jspx_th_c_out_1.setValue("${userinfo.org_name}");
int _jspx_eval_c_out_1 = _jspx_th_c_out_1.doStartTag();
if (_jspx_th_c_out_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_out_value_nobody.reuse(_jspx_th_c_out_1);
return false;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -