以下源码大家帮我看看 帮忙写点注释谢谢package commsoft.yy.station;import commsoft.common.db.ClientDataSet;
import commsoft.common.db.DBTool;
import commsoft.framework.form.ClientDataSetForm;
import commsoft.framework.view.UserView;
import commsoft.workcommon.common.commMethod;
import commsoft.workcommon.sys.sysMultiRecordAction;
import java.math.BigDecimal;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.*;public class RunCycleConfigAction extends sysMultiRecordAction
{ public RunCycleConfigAction()
{
} public ActionForward initRecords(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
throws Exception
{
ClientDataSetForm form;
DBTool dbtool;
form = (ClientDataSetForm)actionForm;
dbtool = null;
dbtool = new DBTool();
String sql = "";
ArrayList paramList = new ArrayList();
String deptIds = getUserView(httpServletRequest).getDEPT_IDS();
sql = " delete from yy_run_car_cycle t where t.dept_id=? ";
paramList.clear();
paramList.add(new BigDecimal(deptIds));
dbtool.executeUpdate(sql, paramList);
sql = " insert into yy_run_car_cycle(line_id,dept_id,cycle_type) select t.line_id,t.dept_id,'1' from yy_line t where t.yn_use='Y' and t.dept_id=? ";
dbtool.executeUpdate(sql, paramList);
super.initForm(actionMapping, actionForm, httpServletRequest, httpServletResponse);
break MISSING_BLOCK_LABEL_158;
Exception e;
e;
sysCommethod.Exception("\u521D\u59CB\u5316\u6570\u636E\u9519\u8BEF:", form.getDsName(), e, servlet);
break MISSING_BLOCK_LABEL_158;
local;
if(dbtool != null)
dbtool.closeConnection();
JVM INSTR ret 11;
form.setMaxRowID(form.getClientDataSet().getRowID());
int liProCountRow = form.getClientDataSet().getTotalRecordCount();
form.setAllRowNum(liProCountRow);
return new ActionForward(form.getJspName());
}
}
import commsoft.common.db.DBTool;
import commsoft.framework.form.ClientDataSetForm;
import commsoft.framework.view.UserView;
import commsoft.workcommon.common.commMethod;
import commsoft.workcommon.sys.sysMultiRecordAction;
import java.math.BigDecimal;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.*;public class RunCycleConfigAction extends sysMultiRecordAction
{ public RunCycleConfigAction()
{
} public ActionForward initRecords(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
throws Exception
{
ClientDataSetForm form;
DBTool dbtool;
form = (ClientDataSetForm)actionForm;
dbtool = null;
dbtool = new DBTool();
String sql = "";
ArrayList paramList = new ArrayList();
String deptIds = getUserView(httpServletRequest).getDEPT_IDS();
sql = " delete from yy_run_car_cycle t where t.dept_id=? ";
paramList.clear();
paramList.add(new BigDecimal(deptIds));
dbtool.executeUpdate(sql, paramList);
sql = " insert into yy_run_car_cycle(line_id,dept_id,cycle_type) select t.line_id,t.dept_id,'1' from yy_line t where t.yn_use='Y' and t.dept_id=? ";
dbtool.executeUpdate(sql, paramList);
super.initForm(actionMapping, actionForm, httpServletRequest, httpServletResponse);
break MISSING_BLOCK_LABEL_158;
Exception e;
e;
sysCommethod.Exception("\u521D\u59CB\u5316\u6570\u636E\u9519\u8BEF:", form.getDsName(), e, servlet);
break MISSING_BLOCK_LABEL_158;
local;
if(dbtool != null)
dbtool.closeConnection();
JVM INSTR ret 11;
form.setMaxRowID(form.getClientDataSet().getRowID());
int liProCountRow = form.getClientDataSet().getTotalRecordCount();
form.setAllRowNum(liProCountRow);
return new ActionForward(form.getJspName());
}
}
解决方案 »
- org.springframework.beans.factory.BeanCreationException: Error creating bean wit
- 利用程序读某个网站的某个网页里的一部分内容
- javascript中如何取得servlet中传过来的数据
- hibernate中使用存储过程的问题!
- 上传文件的问题
- 在写jsp的时候有没有工具让关键字可以变色呢
- 为什么在输入框中没有输入任何东西,点击提交以后却显示所有记录了??急!!
- 如何获取一个用Compute计算后的结果集,如何操作这个结果集
- jboss-3.0.0_tomcat-4.0.3 连接sql-server,驱动放在jboss-3.0.0_tomcat-4.0.3/server/default/lib目录下可是提示找不到驱动,请问大虾们
- 在windows下开发jsp,但数据库是PostgreSQL,如何处理?
- jsp问题怎样知道String investType = (String)session.getAttribute("investtype");从哪来
- JSP 输出一个Http超联接!
DBTool :应该是封装对数据库操作的类。