📄 index_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.util.Date;
import java.io.*;
import java.sql.*;
import cn.com.aheadsoft.servlet.BirthdayPopuServlet;
import cn.com.aheadsoft.util.UserInfo;
import cn.com.aheadsoft.recordset.TotalDiaryRecordSet;
import cn.com.aheadsoft.business.TotalDiaryBusiness;
import cn.com.aheadsoft.recordset.PersonInfoRecordSet;
import cn.com.aheadsoft.servlet.WorkTipServlet;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class index_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");
out.write("\r\n");
out.write("\r\n\r\n");
Enumeration e = request.getHeaderNames();
String headerValue = request.getHeader("user-agent");
BirthdayPopuServlet personSt = new BirthdayPopuServlet();
PersonInfoRecordSet personRs = new PersonInfoRecordSet();
UserInfo userinfo = (UserInfo)session.getAttribute("userinfo");
String userID=userinfo.GetUserID();
String birth_Month="";
String birth_Date="";
String blgs="false";
String blg="false";
String yblg="false";
String diaryDate="";
Date dateTemp=new Date();
int index=0;
TotalDiaryRecordSet totalRs=new TotalDiaryRecordSet();
TotalDiaryBusiness totalBu=new TotalDiaryBusiness();
Calendar calendar=null;
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
calendar = Calendar.getInstance();
dateTemp = new Date(calendar.getTimeInMillis());
diaryDate = formatter.format(dateTemp);
birth_Month = diaryDate.substring(5,7);
birth_Date =diaryDate.substring(8,10);
personRs.setList(personSt.getPersonList(birth_Month,birth_Date));
if(personRs.next())
blg="true";
calendar= Calendar.getInstance();
calendar.set(Calendar.DATE, calendar.get(Calendar.DATE) - 1);
dateTemp = new Date(calendar.getTimeInMillis());
diaryDate = formatter.format(dateTemp);
birth_Month = diaryDate.substring(5,7);
birth_Date =diaryDate.substring(8,10);
calendar= Calendar.getInstance();
//added by tong 2004-6-1 begin
calendar.set(Calendar.DATE, calendar.get(Calendar.DATE) - 3);
dateTemp = new Date(calendar.getTimeInMillis());
diaryDate = formatter.format(dateTemp);
totalBu.setQueryWhereTotalDate(diaryDate);
totalBu.execute("query");
String totalflag="false";
totalRs=totalBu.getRecordSet();
if(totalRs.next())
totalflag="true";
//added by tong 2004-6-1 end
personRs.setList(personSt.getPersonList(birth_Month,birth_Date));
if(personRs.next())
yblg="true";
if(headerValue.indexOf("Windows CE")!=-1){
response.sendRedirect("winceright.jsp");
}
out.write("\r\n\r\n");
out.write("<script language=JavaScript>\r\n");
if(yblg.equals("true")){
out.write("\r\n//window.setTimeout(\"window.open('/krm/servlet/BirthdayPopuServlet?module=y&&status=q','BirthdayPopuYes','width=590,height=445,left=150,top=80,resizable=1,scrollbars=yes')\",5000);\r\nwindow.open('/krm/servlet/BirthdayPopuServlet?module=y&&status=q','BirthdayPopuYes','width=590,height=445,left=150,top=80,resizable=1,scrollbars=yes');\r\n");
}
out.write("\r\n");
if(blg.equals("true")){
out.write("\r\n//window.setTimeout(\"window.open('/krm/servlet/BirthdayPopuServlet?module=t&&status=q','BirthdayPopuServlet','width=590,height=445,left=150,top=80,resizable=1,scrollbars=yes')\",3900);\r\nwindow.open('/krm/servlet/BirthdayPopuServlet?module=t&&status=q','BirthdayPopuServlet','width=590,height=445,left=150,top=80,resizable=1,scrollbars=yes');\r\n\r\n\r\n\t");
}
out.write("\r\n");
//added by tong 2004-6-1 begin
if(totalflag.equals("true")){
//added by tong 2004-6-1 end
out.write("\r\n//window.setTimeout(\"window.open('/krm/servlet/TotalDiaryServlet?status=q&module=all','totalbyday','width=530,height=400,left=35,top=15,resizable=1,scrollbars=yes')\",5000);\r\nwindow.open('/krm/servlet/TotalDiaryServlet?status=q&module=all','totalbyday','width=530,height=400,left=35,top=15,resizable=1,scrollbars=yes')\r\n");
}
out.write("\r\n\r\n\r\n");
if(blgs=="true"){
out.write("\r\n//window.setTimeout(\"window.open('birthday_all.jsp','birthday_all','width=510,height=420,left=150,top=80,resizable=1,scrollbars=yes'))\",6000);\t\r\nwindow.open('birthday_all.jsp','birthday_all','width=510,height=420,left=150,top=80,resizable=1,scrollbars=yes');\r\n\t");
}
out.write("\r\n\t\r\n");
out.write("</script>\r\n");
int[] all = (int[])session.getAttribute("num");
int a=all[2];
//System.out.println("all[2]:"+a);
String bull= String.valueOf(a);
out.write("\r\n ");
boolean popflag=bull.equals("0");
//System.out.println("popflag:"+popflag);
out.write("\r\n \r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>先锋KRM-A6 3.1W企业版");
out.write("</title>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" />\r\n");
out.write("</head>\r\n");
out.write("<frameset rows=\"87,*,21\" frameborder=\"no\" noresize=\"noresize\" border=\"0\" framespacing=\"0\">\r\n ");
out.write("<frame src=\"top.jsp\" name=\"topFrame\" frameborder=\"no\" noresize=\"noresize\" scrolling=\"no\" id=\"topFrame\" >\r\n ");
out.write("<frame src=\"middle.jsp\" name=\"middleFrame\" frameborder=\"no\" noresize=\"noresize\" scrolling=\"no\" id=\"middleFrame\" >\r\n");
out.write("<frame src=\"bottom.html\" name=\"middleFrame\" frameborder=\"no\" noresize=\"noresize\" scrolling=\"no\" id=\"bottomFrame\" >\r\n");
out.write("</frameset>");
out.write("<noframes>");
out.write("</noframes>");
out.write("<!--");
out.write("<noframes>");
out.write("</noframes>-->\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
out = _jspx_out;
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 + -