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

电子政务应用

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <%@ page language="java" %>
  3. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  4. <%@ page import="java.util.*" %>
  5. <%@ page import="java.lang.*" %>
  6. <%@ page import="com.vnex.intranet.budget.value.*" %>
  7. <%@ page import="com.vnex.intranet.util.FieldUtil" %> 
  8. <jsp:useBean id="BudgetProxy" scope="application" class="com.vnex.intranet.budget.proxy.BudgetProxyBean" />
  9. <HTML><jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  10. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_finance.js"></script><script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  11. <script language="javascript" src="/vnex/validate.js" ></script>
  12. <script language="JavaScript">
  13. function check()
  14. {
  15.   if (!stripWhitespace(document.form1.name.value) || document.form1.name.value=="" )
  16. {
  17.   alert("项目名不能为空!");
  18.   return false;
  19. }
  20.   else
  21.     return true;
  22. }
  23. function toSuccess()
  24. {
  25. if (check()&&confirm("修改后可能影响此项目在以前使用时的含义,确定修改吗?"))
  26. {
  27. form1.action="itemModifySuccess";
  28. form1.submit();
  29. }
  30. }
  31. </script>
  32. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  33. <DIV align=center>
  34. <form name="form1" method="post" action="itemModifySuccess">
  35.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  36.      
  37.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  38.     <TR> 
  39.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  40.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  41.             <tr valign="top"> 
  42.               <td > 
  43.                 
  44.                 <table width="600" border="0" cellspacing="0" cellpadding="2">
  45.                   <tr> 
  46.                     <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></td>
  47.                   </tr>
  48.                 </table>
  49.                 <table width="600" border="0" cellspacing="1" cellpadding="2" class=title>
  50.             <%
  51.             int id = (Integer.valueOf(request.getParameter("id"))).intValue();
  52. Collection coll = BudgetProxy.showAllItem();
  53. Iterator iter = coll.iterator();
  54. while(iter.hasNext())
  55. {
  56.     BudgetValueBean valueBean = (BudgetValueBean)iter.next();
  57. if(id==valueBean.getId())
  58. {
  59. %>
  60.                   <tr bgcolor="#fafafa"> 
  61.                     <td width="101"><font class="strong">&nbsp;项目:</font></td>
  62. <input type =hidden name="id" value="<%=valueBean.getId()%>">
  63.                     <td width="486">
  64.                       <input type="text" name="name" class="text" size="20" value="<%=FieldUtil.filterQuotTag(valueBean.getName())%>"  maxlength="15">
  65.                       &nbsp;*&nbsp;(注:带*为必填内容) </td>
  66.                   </tr>
  67.                   <tr bgcolor="#e0e0e0"> 
  68.                     <td width="101"><font class="strong">&nbsp;备注:</font></td>
  69.                     <td width="486"> 
  70.                       <input type="text" name="description" class="text" size="40" value="<%=FieldUtil.filterQuotTag(valueBean.getDescription())%>" maxlength="100">
  71.                     </td>
  72.                   </tr>
  73.             <%
  74.                 }
  75. }
  76.     %>   
  77.                   <tr bgcolor="#fafafa"> 
  78.                     <td colspan="2" height="30" align="center"> 
  79.                       <input type="button"  value="保存" class="text"  onclick="toSuccess()">
  80.                       &nbsp;&nbsp; 
  81.                       <input type="reset"   value="重置" class="text">
  82.                       &nbsp;&nbsp; 
  83.                       <input type="button" onClick="history.back()" value="放弃" class="text">
  84.                     </td>
  85.                   </tr>
  86.                 </table>
  87.               </td>
  88.             </tr>
  89.           </table>
  90.                     <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  91.        </TD>
  92.     </TR>
  93.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  94.     </TABLE>
  95.     <BR>
  96.     <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  97. </form>
  98.   </DIV>
  99.  </BODY>
  100. </HTML>