📄 retrievegenotherfeeservlet.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: RetrieveGenOtherFeeServlet.java
package finance;
import common.*;
import java.io.*;
import java.util.Vector;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
// Referenced classes of package finance:
// RetrieveGenOtherFeeDBBean
public class RetrieveGenOtherFeeServlet extends ParentServlet
{
public RetrieveGenOtherFeeServlet()
{
}
public void performTask(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
{
try
{
RetrieveGenOtherFeeDBBean retrievegenotherfeedbbean = new RetrieveGenOtherFeeDBBean();
DateTimeBean datetimebean = new DateTimeBean();
ParseInputStringBean parseinputstringbean = new ParseInputStringBean();
String s = httpservletrequest.getParameter("inputString");
Vector vector = parseinputstringbean.parseCommonFormatIS(s);
Vector vector1 = (Vector)getServletContext().getAttribute("Para");
retrievegenotherfeedbbean.setUserID((String)vector1.elementAt(0));
retrievegenotherfeedbbean.setPassword((String)vector1.elementAt(1));
retrievegenotherfeedbbean.setURL((String)vector1.elementAt(2));
retrievegenotherfeedbbean.setDriver((String)vector1.elementAt(3));
retrievegenotherfeedbbean.setDataSourceName((String)vector1.elementAt(4));
retrievegenotherfeedbbean.setItem((String)vector.elementAt(0));
retrievegenotherfeedbbean.setCycleNum((String)vector.elementAt(1));
try
{
retrievegenotherfeedbbean.initialize();
}
catch(Exception exception1)
{
retrievegenotherfeedbbean.setStatusCode(7602);
retrievegenotherfeedbbean.setStatusMessage("数据库连接错误");
throw exception1;
}
try
{
retrievegenotherfeedbbean.setTableName("feeitem");
retrievegenotherfeedbbean.setSelectSQL01("select feename from " + retrievegenotherfeedbbean.getTableName() + " where number = ?");
retrievegenotherfeedbbean.select01();
retrievegenotherfeedbbean.getDataFromResult01();
retrievegenotherfeedbbean.setTableName("feelog");
retrievegenotherfeedbbean.setSelectSQL02("select number, subareanumb,buildingnumb,doornumb,floornumb,cellnumb,flag from " + retrievegenotherfeedbbean.getTableName() + " where cyclenum = ? and delflag='0' order by subareanumb asc,buildingnumb asc,doornumb asc,floornumb asc,cellnumb asc");
retrievegenotherfeedbbean.select02();
retrievegenotherfeedbbean.getDataFromResult02();
}
catch(Exception exception3)
{
retrievegenotherfeedbbean.rollbackFromDB();
throw exception3;
}
finally
{
retrievegenotherfeedbbean.releaseConnection();
}
String s1 = getServletConfig().getServletContext().getRealPath("/finance/statistic/");
String s2 = s1 + "PrtGenOtherData.html";
PrintWriter printwriter = new PrintWriter(new FileWriter(s2));
printwriter.println("<html>");
printwriter.println("<head>");
printwriter.println("<title>");
printwriter.println("光大花园物业管理系统财务子系统");
printwriter.println("</title>");
printwriter.println("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">");
printwriter.println("</head>");
printwriter.println("<body>");
printwriter.println("<table>");
printwriter.println("<tr><td colspan=\"17\">" + retrievegenotherfeedbbean.getFeeName() + "批量表" + "</td></tr>");
printwriter.println("<tr><td colspan=\"17\">统计时间:" + datetimebean.getDate() + " " + datetimebean.getTime() + "</td></tr>");
printwriter.println("<tr>");
printwriter.println("<td>住址</td>");
printwriter.println("<td>是否交费</td>");
printwriter.println("</tr>");
for(int i = 0; i < retrievegenotherfeedbbean.vqbnumber.size(); i++)
{
printwriter.println("<tr>");
printwriter.println("<td>" + retrievegenotherfeedbbean.vaddress.elementAt(i) + "</td>");
if(((String)retrievegenotherfeedbbean.vflag.elementAt(i)).equals("0"))
printwriter.println("<td>已缴纳</td>");
else
printwriter.println("<td>未缴纳</td>");
printwriter.println("</tr>");
}
printwriter.println("</table>");
printwriter.println("</body>");
printwriter.println("</html>");
printwriter.flush();
printwriter.close();
RequestDispatcher requestdispatcher1 = getServletContext().getRequestDispatcher("/finance/statistic/PrtGenOtherData.exe");
requestdispatcher1.forward(httpservletrequest, httpservletresponse);
}
catch(Throwable throwable)
{
try
{
DateTimeBean datetimebean1 = new DateTimeBean();
System.out.println("[RetrieveGenOtherFeeServlet][" + datetimebean1.getDate() + " " + datetimebean1.getTime() + "][" + throwable + "]");
RequestDispatcher requestdispatcher = getServletContext().getRequestDispatcher("/common/Error.jsp");
requestdispatcher.forward(httpservletrequest, httpservletresponse);
}
catch(Exception exception)
{
System.out.println(exception.getMessage());
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -