📄 updateapportionitemservlet.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: UpdateApportionItemServlet.java
package finance;
import common.*;
import java.io.PrintStream;
import java.util.Vector;
import javax.servlet.*;
import javax.servlet.http.*;
// Referenced classes of package finance:
// UpdateApportionItemDBBean
public class UpdateApportionItemServlet extends ParentServlet
{
public UpdateApportionItemServlet()
{
}
public void performTask(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
{
try
{
UpdateApportionItemDBBean updateapportionitemdbbean = new UpdateApportionItemDBBean();
DateTimeBean datetimebean = new DateTimeBean();
Vector vector = (Vector)getServletContext().getAttribute("Para");
updateapportionitemdbbean.setUserID((String)vector.elementAt(0));
updateapportionitemdbbean.setPassword((String)vector.elementAt(1));
updateapportionitemdbbean.setURL((String)vector.elementAt(2));
updateapportionitemdbbean.setDriver((String)vector.elementAt(3));
updateapportionitemdbbean.setDataSourceName((String)vector.elementAt(4));
ParseInputStringBean parseinputstringbean = new ParseInputStringBean();
String s = httpservletrequest.getParameter("inputString");
Vector vector1 = parseinputstringbean.parseCommonFormatIS(s);
updateapportionitemdbbean.setNumber(vector1.elementAt(0).toString().trim());
updateapportionitemdbbean.setName(vector1.elementAt(1).toString().trim());
updateapportionitemdbbean.setFlag1(vector1.elementAt(2).toString().trim());
updateapportionitemdbbean.setFlag2(vector1.elementAt(3).toString().trim());
updateapportionitemdbbean.setFlag3(vector1.elementAt(4).toString().trim());
updateapportionitemdbbean.setValue1(vector1.elementAt(5).toString().trim());
updateapportionitemdbbean.setNote(vector1.elementAt(6).toString().trim());
String s1 = vector1.elementAt(7).toString();
String s2 = vector1.elementAt(8).toString();
try
{
updateapportionitemdbbean.initialize();
}
catch(Exception exception)
{
throw exception;
}
try
{
updateapportionitemdbbean.setDelflag("0");
updateapportionitemdbbean.setTableName("apportionitem");
updateapportionitemdbbean.setUpdateSQL01(" UPDATE " + updateapportionitemdbbean.getTableName() + " SET NAME = ?, FLAG1 = ?, FLAG2 = ?, VALUE = ?, FLAG3 = ? , NOTE= ? WHERE (NUMBER = ? AND DELFLAG = ?)");
try
{
updateapportionitemdbbean.update01();
updateapportionitemdbbean.setOpcontent("修改分摊项目资料");
HttpSession httpsession = httpservletrequest.getSession(false);
updateapportionitemdbbean.setOperator((String)httpsession.getValue("persname"));
updateapportionitemdbbean.setOpdate(datetimebean.getDate());
updateapportionitemdbbean.setOptime(datetimebean.getTime());
updateapportionitemdbbean.insertLog();
updateapportionitemdbbean.commitToDB();
updateapportionitemdbbean.setStatusCode(8633);
updateapportionitemdbbean.setStatusMessage("成功修改分摊项目信息!");
}
catch(Exception _ex)
{
updateapportionitemdbbean.rollbackFromDB();
throw new Exception("[finance.UpdateApportionItemServlet][" + datetimebean.getDate() + " " + datetimebean.getTime() + "]" + updateapportionitemdbbean.getStatusMessage());
}
}
catch(Exception exception2)
{
throw exception2;
}
finally
{
updateapportionitemdbbean.releaseConnection();
}
httpservletrequest.setAttribute("statusMessage", updateapportionitemdbbean.getStatusMessage());
httpservletrequest.setAttribute("flag", (new Integer(updateapportionitemdbbean.getStatusCode())).toString());
httpservletrequest.setAttribute("rname", s1);
httpservletrequest.setAttribute("currentpage", s2);
RequestDispatcher requestdispatcher1 = getServletContext().getRequestDispatcher("/finance/UpdateApportionItemResult.jsp");
requestdispatcher1.forward(httpservletrequest, httpservletresponse);
}
catch(Throwable throwable)
{
System.out.println(throwable.getMessage());
try
{
RequestDispatcher requestdispatcher = getServletContext().getRequestDispatcher("/common/Error.jsp");
requestdispatcher.forward(httpservletrequest, httpservletresponse);
}
catch(Exception _ex) { }
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -