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

📄 right_jsp.java

📁 tomcat最新安装程序
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import cn.com.aheadsoft.recordset.ClendarItemRecordSet;
import cn.com.aheadsoft.util.StringFormat;
import cn.com.aheadsoft.util.UserInfo;
import java.util.Properties;
import java.util.List;
import java.util.Iterator;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.text.DecimalFormat;

public class right_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  public java.util.List getIncludes() {
    return _jspx_includes;
  }

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

    JspFactory _jspxFactory = null;
    javax.servlet.jsp.PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=GB2312");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      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");
      cn.com.aheadsoft.util.UserInfo userinfo = null;
      synchronized (session) {
        userinfo = (cn.com.aheadsoft.util.UserInfo) pageContext.getAttribute("userinfo", PageContext.SESSION_SCOPE);
        if (userinfo == null){
          try {
            userinfo = (cn.com.aheadsoft.util.UserInfo) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "cn.com.aheadsoft.util.UserInfo");
          } catch (ClassNotFoundException exc) {
            throw new InstantiationException(exc.getMessage());
          } catch (Exception exc) {
            throw new ServletException("Cannot create bean of class " + "cn.com.aheadsoft.util.UserInfo", exc);
          }
          pageContext.setAttribute("userinfo", userinfo, PageContext.SESSION_SCOPE);
        }
      }
      out.write("\r\n");
      cn.com.aheadsoft.manage.UserPurviewManage upm = null;
      synchronized (session) {
        upm = (cn.com.aheadsoft.manage.UserPurviewManage) pageContext.getAttribute("upm", PageContext.SESSION_SCOPE);
        if (upm == null){
          try {
            upm = (cn.com.aheadsoft.manage.UserPurviewManage) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "cn.com.aheadsoft.manage.UserPurviewManage");
          } catch (ClassNotFoundException exc) {
            throw new InstantiationException(exc.getMessage());
          } catch (Exception exc) {
            throw new ServletException("Cannot create bean of class " + "cn.com.aheadsoft.manage.UserPurviewManage", exc);
          }
          pageContext.setAttribute("upm", upm, PageContext.SESSION_SCOPE);
        }
      }
      out.write("\r\n");

	//int fi2 = upm.getUserPopInt(userinfo,"9","2","i");  //replace by zenghongli 2004.9.13 基本授权单元整理
	int fi2 = upm.getUserPopInt(userinfo,"9","2","q"); 
    GregorianCalendar cal = new GregorianCalendar();
    int nowyear = cal.get(Calendar.YEAR);
	int nowmonth = cal.get(Calendar.MONTH) + 1;

      out.write("\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("<link rel=\"stylesheet\" type=\"text/css\" href=\"css/css.css\">\r\n");
      out.write("</head>\r\n");
      out.write("<body leftmargin=\"0\" topmargin=\"0\">\r\n");

  		int[] all = (int[])session.getAttribute("num");
  		ClendarItemRecordSet morning = (ClendarItemRecordSet)session.getAttribute("morning");
  		session.removeAttribute("morning");
  		ClendarItemRecordSet afternoon = (ClendarItemRecordSet)session.getAttribute("afternoon");
  		session.removeAttribute("afternoon");
  		ClendarItemRecordSet night = (ClendarItemRecordSet)session.getAttribute("night");
  		session.removeAttribute("night");
  		String userID = "";
  		UserInfo userInfo=(UserInfo)session.getAttribute("userinfo") ;
  		userID=userInfo.GetUserID();
		String taskCount=(String)session.getAttribute("taskCount");
		String taskLsrw=(String)session.getAttribute("taskLsrw");
		String taskxdrw =(String)session.getAttribute("taskxdrw");
		String taskover =(String)session.getAttribute("taskover");		
		String taskactivity = (String)session.getAttribute("taskactivity");		
  
      out.write("\r\n  \t");
      out.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"  background=\"./image/main_bg.jpg\">\r\n        ");
      out.write("<tr> \r\n    ");
      out.write("<td valign=\"top\">");
      out.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td height=\"27\" background=\"image/right_line.gif\">");
      out.write("<table width=\"98%\" border=\"0\" cellspacing=\"3\" cellpadding=\"0\">\r\n              ");
      out.write("<tr> \r\n                ");
      out.write("<td>");
      out.write("<img src=\"image/title_task.gif\" width=\"95\" height=\"19\">");
      out.write("</td>\r\n              ");
      out.write("</tr>\r\n            ");
      out.write("</table>");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n      ");
      out.write("</table>\r\n      ");
      out.write("<table width=\"98%\" align=\"center\">\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td width=\"15%\">");
      out.write("<div align=\"center\">");
      out.write("<img src=\"image/little_pic1.gif\" width=\"50\" height=\"45\">");
      out.write("</div>");
      out.write("</td>\r\n          ");
      out.write("<td width=\"85%\" valign=\"top\">");
      out.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n              ");
      out.write("<tr>\r\n                ");
      out.write("<td width=\"24\">");
      out.write("<img src=\"image/front_dian.gif\" width=\"24\" height=\"14\">");
      out.write("</td>\r\n                      ");
      out.write("<td class=\"common2\" height=\"22\">                \r\n\t\t\t\t\t   ");
if(all[11]!=0) {
      out.write("\r\n                  ");
      out.write("<!--");
      out.write("<a href=\"/krm/servlet/DetailServlet?module=detail&&status=q&&queryterm=tasknum&&urgent=s\">您有");
      out.write("<font color=red>");
      out.print( all[11] );
      out.write("</font>个紧急响应");
      out.write("</a>&nbsp;");
      out.write("<img src=\"image/new.gif\"> -->\r\n\t\t\t\t  ");
      out.write("<a href=\"/krm/servlet/DetailServlet?module=deproblem&&status=q&&queryterm=urgentproblem\">您有");
      out.write("<font color=red>");
      out.print( all[11] );
      out.write("</font>个紧急响应");
      out.write("</a>&nbsp;");
      out.write("<img src=\"image/new.gif\"> \r\n                  ");
}else{
      out.write("\r\n                  您没有紧急响应 \r\n                  ");
}
      out.write("\r\n\t\t\t\t\t   ");
if(all[16]!=0) {
      out.write("\r\n                  ");
      out.write("<!--");
      out.write("<a href=\"/krm/servlet/DetailServlet?module=detail&&status=q&&queryterm=tasknum&&urgent=n\">您有");
      out.write("<font color=red>");
      out.print( all[16] );
      out.write("</font>个一般响应");
      out.write("</a>&nbsp;");
      out.write("<img src=\"image/new.gif\"> -->\r\n\t\t\t\t  ");
      out.write("<a href=\"/krm/servlet/DetailServlet?module=deproblem&&status=q&&queryterm=noturgentproblem\">您有");
      out.write("<font color=red>");
      out.print( all[16] );
      out.write("</font>个一般响应");
      out.write("</a>&nbsp;");
      out.write("<img src=\"image/new.gif\"> \r\n                  ");
}else{
      out.write("\r\n                  您没有一般响应 \r\n                  ");
}
      out.write("\t\t\t\t  \r\n\t\t\t\t  ");
      out.write("</td>              ");
      out.write("</tr>\r\n              ");
      out.write("<tr style=\"display:none\">\r\n                ");
      out.write("<td>");
      out.write("<img src=\"image/front_dian.gif\" width=\"24\" height=\"14\">");
      out.write("</td>\r\n                     ");
      out.write("<td class=\"common2\"  height=\"22\">                \r\n\t\t\t\t\t   ");
if(all[16]!=0) {
      out.write("\r\n                  ");
      out.write("<!--");
      out.write("<a href=\"/krm/servlet/DetailServlet?module=detail&&status=q&&queryterm=tasknum&&urgent=n\">您有");
      out.write("<font color=red>");
      out.print( all[16] );
      out.write("</font>个一般响应");
      out.write("</a>&nbsp;");
      out.write("<img src=\"image/new.gif\"> -->\r\n\t\t\t\t  ");
      out.write("<a href=\"/krm/servlet/DetailServlet?module=deproblem&&status=q&&queryterm=noturgentproblem\">您有");
      out.write("<font color=red>");
      out.print( all[16] );
      out.write("</font>个一般响应");
      out.write("</a>&nbsp;");
      out.write("<img src=\"image/new.gif\"> \r\n                  ");
}else{
      out.write("\r\n                  您没有一般响应 \r\n                  ");
}
      out.write("</td>              ");
      out.write("</tr>\r\n              ");
      out.write("<tr>\r\n                ");
      out.write("<td>");
      out.write("<img src=\"image/front_dian.gif\" width=\"24\" height=\"14\">");
      out.write("</td>\r\n                ");
      out.write("<td height=\"22\" class=\"common2\"> \r\n                  ");
if(all[15]!=0) {
      out.write("\r\n                  ");
      out.write("<a href=\"/krm/servlet/DetailServlet?module=deproblem&&status=q&&queryterm=tasknoend\">另有");
      out.write("<font color=red>");
      out.print( all[15] );
      out.write("</font>个响应待回复,");
      out.write("</a> \r\n                  ");
}else{
      out.write("\r\n                  另有0个响应待回复, \r\n                  ");
}
      out.write("\r\n                  ");
if(all[21]!=0) {
      out.write("\r\n                  ");
      out.write("<a href=\"/krm/servlet/DetailServlet?module=deproblem&&status=q&&queryterm=taskend\">");
      out.write("<font color=red>");
      out.print( all[21] );
      out.write("</font>个5天内已处理");
      out.write("</a>&nbsp;");
      out.write("<img src=\"image/new.gif\"> \r\n                  ");
}else{
      out.write("\r\n                  0个5天内已处理 \r\n                  ");
}
      out.write("\r\n                ");
      out.write("</td>              ");
      out.write("</tr>\r\n              ");
      out.write("<tr>\r\n                ");
      out.write("<td>");
      out.write("<img src=\"image/front_dian.gif\" width=\"24\" height=\"14\">");
      out.write("</td>\r\n                ");
      out.write("<td height=\"22\" class=\"common2\"> \r\n                  ");
if(all[22]!=0) {
      out.write("\r\n                  ");

⌨️ 快捷键说明

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