equipment_repair_add.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%
- int equipment;
- equipment = (new Integer(request.getParameter("equipmentId"))).intValue();
- %>
- <script Language="JavaScript" src="/vnex/util/Popup.js"></script>
- <script language="JavaScript" src="/vnex/util/validate.js"></script>
- <script language=JavaScript>
- function isDataValid()
- {
- if (myForm.repairer.value.length > 50)
- {
- alert("维修者应少于50个字符!");
- myForm.repairer.focus();
- return false;
- }
- if (myForm.repairReason.value.length > 50)
- {
- alert("维修原因应少于50个字符!");
- myForm.repairReason.focus();
- return false;
- }
- if (myForm.result.value.length > 50)
- {
- alert("维修结果应少于50个字符!");
- myForm.result.focus();
- return false;
- }
- if (myForm.beginDay.value == "")
- {
- alert("请选择送修日期!");
- return false;
- }
- if (!(isFloat(myForm.expense.value)))
- {
- alert("费用必须是数字,而且不准为空!");
- myForm.expense.focus();
- return false;
- }
- else
- {
- if (Number(myForm.expense.value) > 99999999.99 || Number(myForm.expense.value)< -99999999.99)
- {
- alert("费用必须在-99999999.99和99999999.99之间");
- myForm.expense.focus();
- return false;
- }
- }
- return true;
- }
- function toSuccess()
- {
- if (isDataValid())
- {
- myForm.action="/mainctrl/equipmentRepairAddSuccess?equipmentId=<%=request.getParameter("equipmentId")%>";
- myForm.submit();
- }
- }
- </script>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <form name="myForm" method="post" action="">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center"><br>
- <!--个人信息开始 -->
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr bgcolor="#fafafa">
- <td>
- <table class=title width="600" border="0" cellspacing="1" cellpadding="2">
- <tr bgColor="#666666" >
- <td colspan="2" height="15"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/office/main"><font color="#FFFFFF">办公室管理</font></a>>><a href="/mainctrl/equipmentSearchResult"><font color="#FFFFFF">固定资产管理</font></a>>><a href="/mainctrl/equipmentDetail?equipmentId=<%= equipment%>"><font color="#FFFFFF">固定资产详细信息</font></a>>>添加维修记录</font>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="131">
- <div align="left"><font class="strong"> 送修日期:</font></div>
- </td>
- <td width="469">
- <input type="text" name="beginDay" readonly size="24" class="text" >
- <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择日期" onClick="fPopUpCalendarDlg(beginDay);return false"> * (注:带*为必填内容)
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="131"><font class="strong"> 维修者:</font></td>
- <td width="469"><font class="strong"><font class="strong">
- <input type="text" name="repairer" class="file" size="24">
- </font></font> </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="131"><font class="strong"> 送修原因:</font></td>
- <td width="469"><font class="strong"><font class="strong">
- <textarea name="repairReason" cols="35" rows="3"></textarea>
- </font></font></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="131">
- <div align="left"><font class="strong"> 维修费用:</font></div>
- </td>
- <td width="469"><font class="strong">
- <input type="text" name="expense" size="24" class="file">
- 元</font> </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="131">
- <div align="left"><font class="strong"> 维修结果: </font></div>
- </td>
- <td width="469"><font size="2"><font class="strong"><font class="strong">
- <font class="strong">
- <textarea name="result" cols="35" rows="3"></textarea>
- </font></font></font></font></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="2">
- <div align="center">
- <input type="button" name="Submit" value="保存" class="file" onclick=toSuccess()>
- <input type="reset" name="Submit3" value="重置" class="file" >
- <input type="button" name="Submit2" class="file" value="放弃" onclick="location='/mainctrl/equipmentRepairList?equipmentId=<%=equipment%>'">
- </div>
- </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" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form>
- </DIV>
- </BODY>
- </HTML>