Fin_Item_Management_Judge.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:5k
源码类别:

电子政务应用

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <%@ page language="java" %>
  3. <%@ page import="java.util.*" %>
  4. <%@ page import="java.lang.*" %>
  5. <%@ page import="com.vnex.intranet.budget.value.*" %>
  6. <jsp:useBean id="BudgetProxy" scope="application" class="com.vnex.intranet.budget.proxy.BudgetProxyBean" />
  7. <%
  8. String month = request.getParameter("year")+"-"+request.getParameter("month");
  9. int start = 1;
  10. int total = (Integer.valueOf(request.getParameter("total"))).intValue();
  11. int checked = 1;
  12. int noCheck = 0;
  13.     ArrayList array = new ArrayList();
  14. BudgetValueBean budgetValue = null;
  15. while(start <= total)
  16. {
  17.     if (request.getParameter("status"+start) != null)
  18. {
  19.     budgetValue = new BudgetValueBean();
  20.         budgetValue.setId((Integer.valueOf(request.getParameter("id"+start))).intValue());
  21. array.add(budgetValue);
  22. }
  23. start++;
  24. }
  25. int statusNow = BudgetProxy.judgeStatus(month);
  26. session.setAttribute("budgetCreateAll", array);
  27. session.setAttribute("month", month);
  28.     //BudgetProxy.insertAllItem(array, month);
  29. %>
  30. <HTML><jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  31. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_finance.js"></script><script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  32. <script language="javascript" src="/vnex/validate.js" ></script>
  33. <script language="JavaScript">
  34. </script>
  35. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  36. <DIV align=center>
  37. <form name="form1" method="post" action="itemManagementCreateSuccess">
  38.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  39.     
  40.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  41.     <TR> 
  42.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  43.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  44.             <tr valign="top"> 
  45.               <td > 
  46.                 
  47.                 <table width="600" border="0" cellspacing="0" cellpadding="2">
  48.                   <tr> 
  49.                     <td bgcolor="#666666"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/finance/main"><font color="#FFFFFF">财务</font></a>&gt;&gt;<a href="/mainctrl/financial/itemManagement"><font color="#FFFFFF">项目维护</font></a><font color="#FFFFFF">&gt;&gt;预算项目</font><font class="strongw"><font color="#FFFFFF">生成</font></font></font></td>
  50.                   </tr>
  51.                 </table>
  52. <%
  53. if (statusNow == 1)
  54. {
  55. %>
  56.                 <table width="600" border="0" cellspacing="1" cellpadding="2" class=title>
  57.                   <tr bgcolor="#e0e0e0"> 
  58.                     <td bgcolor="#fafafa"><font class="strong">&nbsp; &nbsp; &nbsp; &nbsp; 您确定要插入本月(<%=month%>)预算项目吗?</font></td>
  59.                   </tr>
  60.                   <tr align="center" bgcolor="#fafafa"> 
  61.                     <td height="30"> 
  62.                       <input type="button"  value="确认" class="text" name="Button" onClick="location='/mainctrl/financial/itemManagementCreateAll'">
  63.                       &nbsp;&nbsp;  
  64.                       <input type="button"   name="Button23" value="放弃" class="text" onclick="location='/mainctrl/financial/itemManagement'">
  65.                     </td>
  66.                   </tr>
  67.                 </table>
  68. <%
  69. }
  70. else if(statusNow == 2)
  71. {
  72. %>
  73.                 <table width="600" border="0" cellspacing="1" cellpadding="2" class=title>
  74.                   <tr bgcolor="#e0e0e0"> 
  75.                     <td bgcolor="#fafafa"><font class="strong">&nbsp; &nbsp; &nbsp; &nbsp; 这个月(<%=month%>)的预算项目以前已经被生成了,您确定要覆盖吗?</font></td>
  76.                   </tr>
  77.                   <tr align="center" bgcolor="#fafafa"> 
  78.                     <td height="30"> 
  79.                       <input type="button"  value="确认" class="text" name="Button2" onClick="location='/mainctrl/financial/itemManagementCreateAll'">
  80.                       &nbsp; &nbsp; 
  81.                       <input type="button"   name="Button23" value="放弃" class="text" onclick="location='/mainctrl/financial/itemManagement'">
  82.                     </td>
  83.                   </tr>
  84.                 </table>
  85. <%
  86. }
  87. else if(statusNow == 3)
  88. {
  89. %>
  90.                 <table width="600" border="0" cellspacing="1" cellpadding="2" class=title>
  91.                   <tr bgcolor="#e0e0e0"> 
  92.                     <td bgcolor="#fafafa"><font class="strong">&nbsp; &nbsp; &nbsp; &nbsp; 这个月(<%=month%>)的预算项目以前被生成并已经使用,生成失败!</font></td>
  93.                   </tr>
  94.                   <tr align="center" bgcolor="#fafafa"> 
  95.                     <td height="30"> 
  96.                       <input type="button"   name="Button23" value="返回" class="text" onclick="location='/mainctrl/financial/itemManagement'">
  97.                     </td>
  98.                   </tr>
  99.                 </table>
  100. <%
  101. }
  102. %>
  103.               </td>
  104.             </tr>
  105.           </table>
  106.                    <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  107.        </TD>
  108.     </TR>
  109.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  110.     </TABLE>
  111.     <BR>
  112.     <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  113. </form>
  114.   </DIV>
  115.  </BODY>
  116. </HTML>