Dep_Management_Create_Success.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:1k
源码类别:
电子政务应用
开发平台:
Java
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <%@ page language="java" %>
- <%@ page import="java.util.*" %>
- <%@ page import="java.lang.*" %>
- <%@ page import="com.vnex.intranet.budget.value.*" %>
- <jsp:useBean id="BudgetListProxy" scope="application" class="com.vnex.intranet.budget.proxy.BudgetListProxyBean" />
- <%
- try
- {
- int start = 1;
- int total = (Integer.valueOf(request.getParameter("total"))).intValue();
- ArrayList array = new ArrayList();
- BudgetListValueBean budgetValue = null;
- while(start <= total)
- {
- budgetValue = new BudgetListValueBean();
- budgetValue.setDivision((Integer.valueOf(request.getParameter("division"+start))).intValue());
- budgetValue.setComponentId((Integer.valueOf(request.getParameter("componentId"+start))).intValue());
- budgetValue.setMonth(request.getParameter("month"+start));
- budgetValue.setBudget((Float.valueOf(request.getParameter("budget"+start))).floatValue());
- budgetValue.setDescription(request.getParameter("description"+start));
- budgetValue.setStatus((Integer.valueOf(request.getParameter("status"))).intValue());
- array.add(budgetValue);
- start++;
- }
- BudgetListProxy.insertAllBudget(array);
- }
- catch(Exception e)
- {
- out.println(e);
- }
- %>
- <jsp:forward page="/mainctrl/budget/index" />
- <HTML><HEAD><TITLE>Net-office</TITLE>
- </HEAD>
- <BODY>
- </BODY></HTML>