Dep_Management_Input.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page language="java" %>
- <%@ page import="java.util.*" %>
- <%@ page import="java.lang.*" %>
- <%@ page import="com.vnex.intranet.budget.value.*" %>
- <%@ page import="com.vnex.intranet.util.FieldUtil" %>
- <jsp:useBean id="BudgetListProxy" scope="application" class="com.vnex.intranet.budget.proxy.BudgetListProxyBean" />
- <%
- String paraMonth = request.getParameter("month");
- int department = (new Integer(request.getParameter("id"))).intValue();
- int total=0;
- String col = "";
- %>
- <script language="JavaScript" >
- var whitespace = " tnr";
- function isFloat(s)
- {
- if(isWhitespace(s)) return false;
- if(isNaN(s)) return false;
- return true;
- }
- function isWhitespace (s)
- { var i;
- if (isEmpty(s)) return true;
- for (i = 0; i < s.length; i++)
- {
- var c = s.charAt(i);
- if (whitespace.indexOf(c) == -1) return false;
- }
- return true;
- }
- function isEmpty(s)
- {
- return ((s == null) || (s.length == 0) )
- }
- </script>
- <script language="javaScript">
- function over()
- {
- if(checkAllSalary())
- {
- if(confirm("您确认提交财务部吗,提交后就再不能修改了!"))
- {
- form1.status.value="3";
- form1.action="/mainctrl/budget/managementInputSuccess";
- form1.submit();
- }
- }
- }
- function checkAllSalary()
- {
- for (var i=0;i<document.form1.elements.length;i++)
- {
- var e = document.form1.elements[i];
- if ((e.name).substring(0,6)=="actual")
- {
- if ( !isFloat(e.value) )
- {
- alert("请正确的输入数字!");
- e.focus();
- return false;
- }
- if ( e.value<0 )
- {
- alert("请输入大于零的数字!");
- e.focus();
- return false;
- }
- }
- }
- return true;
- }
- function saveSubmit()
- {
- if(checkAllSalary())
- {
- form1.action="/mainctrl/budget/managementInputSuccess";
- form1.submit();
- }
- }
- </script>
- <HTML><jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <DIV align=center>
- <form name="form1" method="post" action="">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr valign="top">
- <td >
- <table width="600" border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td bgcolor="#666666"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>>><a href="/mainctrl/budget/index"><font color="#FFFFFF">部门预算</font></a>>>输入实际支出</font></td>
- </tr>
- </table>
- <table class=title width="600" border="0" cellpadding="2" cellspacing="0">
- <tr bgcolor="#fafafa">
- <td colspan="5">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="80%"><font class="strong"> 请录入<%=paraMonth%>月实际发生额</font>
- </td>
- <td width="20%">
- <div align="right"><font class="strong">单位:元 </font></div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <table width="600" border="0" cellspacing="1" cellpadding="2" class=title>
- <tr align="center">
- <td width="80"><font class="strong">项目</font></td>
- <td width="60"><font class="strong">预算额</font> </td>
- <td width="100"><font class="strong">实际支出</font></td>
- <td width="330"><font class="strong">备注</font></td>
- </tr>
- <%
- try
- {
- BudgetListValueBean valueBean = null;
- //Collection coll = BudgetListProxy.showOneBudget("2001-01", 2);
- Collection coll = BudgetListProxy.showOneBudget(paraMonth, department);
- Iterator iter = coll.iterator();
- while(iter.hasNext())
- {
- valueBean = (BudgetListValueBean)iter.next();
- total++;
- col = ((total%2)==1)?"#fafafa":"#e0e0e0";
- %>
- <tr align="center" bgcolor=<%=col%>>
- <td width="100"><%=valueBean.getComponentName()%></td>
- <td width="80">
- <input type="hidden" name="componentId<%=total%>" value="<%=valueBean.getComponentId()%>">
- <input type="hidden" name="division<%=total%>" value="<%=valueBean.getDivision()%>">
- <input type="hidden" name="month<%=total%>" value="<%=valueBean.getMonth()%>">
- <input type="hidden" name="budget<%=total%>" value="<%=valueBean.getBudget()%>">
- <%=valueBean.getBudget()%></td>
- <td width="100">
- <input type="text" name="actual<%=total%>" class="text" size="6" value="<%=valueBean.getActual()%>" maxlength="7" >
- </td>
- <td width="330">
- <input type="text" name="description<%=total%>" class="text" value="<%=FieldUtil.filterQuotTag(valueBean.getDescription())%>" size="50" maxlength="100">
- </td>
- </tr>
- <%
- }
- }
- catch(Exception e)
- {
- out.println(e);
- }
- %>
- <tr align="center" bgcolor="#fafafa">
- <td colspan="4" height="30">
- <input type="hidden" name="status" value="2">
- <input type="hidden" name="total" value="<%=total%>">
- <input type="button" value="保存" class="text" onclick=saveSubmit()>
-
- <input type="reset" value="重置" class="text">
-
- <input type="button" value="放弃" class="text" onClick="history.back()">
-
- <input type="button" style="width:142px" value="本月支出完结提交财务部" class="text" onClick="over()">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table> <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form>
- </DIV>
- </BODY>
- </HTML>