equipment_detail.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:10k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="java.lang.*"%>
- <%@ page import="java.sql.Timestamp"%>
- <%@ page import="com.vnex.intranet.util.FieldUtil"%>
- <%@ page import="com.vnex.intranet.equipment.value.EquipmentValueBean"%>
- <jsp:useBean id="equipmentProxy" class="com.vnex.intranet.equipment.proxy.EquipmentProxyBean" scope="session" />
- <%!
- String sId = null;
- int equipmentId;
- EquipmentValueBean equipmentValue;
- int iYear,iMonth,iDay;
- String buyDate="";
- String simple = "";
- String start = "1";
- HttpSession sess;
- %>
- <%
- sess=request.getSession(false);
- if (request.getParameter("simple") == null)
- simple = (String)sess.getAttribute("simple");
- else
- {
- simple = request.getParameter("simple");
- sess.setAttribute("simple",simple);
- }
- if (request.getParameter("start") != null)
- {
- start = (request.getParameter("start"));
- sess.setAttribute("start",start);
- }
- else
- start = (String)sess.getAttribute("start");
- sId = request.getParameter("equipmentId");
- equipmentId = (new Integer(sId)).intValue();
- System.out.println("id" + equipmentId);
- equipmentValue = equipmentProxy.getEquipmentDetail(equipmentId);
- Timestamp tDate = equipmentValue.getBuyDate();
- if (tDate != null)
- {
- iYear = tDate.getYear() + 1900;
- iMonth = tDate.getMonth() + 1;
- iDay = tDate.getDate();
- buyDate = "" + iYear + "-" + iMonth + "-" + iDay;
- }
- System.out.println("id" + equipmentValue.getId());
- %>
- <script language=JavaScript>
- function toDelete()
- {
- if (!confirm("真的删除这条记录吗?"))
- return false;
- myForm.action="/mainctrl/equipmentDeleteSuccess?equipmentId=<%= sId%>";
- myForm.submit();
- }
- function toModify()
- {
- myForm.action="/mainctrl/equipmentModify?equipmentId=<%= sId%>&fromSelf=0";
- myForm.submit();
- }
- function toUseList()
- {
- myForm.action="/mainctrl/equipmentUseList?equipmentId=<%= sId%>";
- myForm.submit();
- }
- function toRepairList()
- {
- myForm.action="/mainctrl/equipmentRepairList?equipmentId=<%= sId%>";
- myForm.submit();
- }
- function toBack()
- {
- if ("true" == "<%=simple%>")
- myForm.action="/mainctrl/equipmentSearchResult?cache=true&start=<%=start%>";
- else
- myForm.action="/mainctrl/equipmentAdvancedSearchResult?start=<%=start%>";
- 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 width="600" border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td colspan="3" height="15" bgcolor="#666666"><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>>>固定资产详细信息</font>
- </td>
- </tr>
- </table>
- <table class=title width="600" border="0" cellspacing="1" cellpadding="2">
- <tr bgcolor="#fafafa">
- <td width="125"><font class="strong"> 资产类别:</font></td>
- <td width="424"><%= FieldUtil.filterScriptTag(equipmentValue.getCategoryName())%></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="125">
- <div align="left"><font class="strong" > 名称:</font> </div>
- </td>
- <td width="424"> <%= FieldUtil.filterScriptTag(equipmentValue.getEquipmentName())%> </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="125">
- <div align="left"><font class="strong"> 用途: </font></div>
- </td>
- <td width="424"><%= FieldUtil.filterScriptTag(equipmentValue.getPurpose())%></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="125">
- <div align="left"><font class="strong"><font class="strong"> 型号:<font class="strong">
- </font> </font></font></div>
- </td>
- <td width="424"><%= FieldUtil.filterScriptTag(equipmentValue.getModel())%></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="125">
- <div align="left"><font class="strong"><font class="strong"> 资产编号:<font class="strong">
- </font> </font></font></div>
- </td>
- <td width="424"><%= FieldUtil.filterScriptTag(equipmentValue.getEquipmentCode())%></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="125"><font class="strong"> 配置:</font><font class="strong">
- </font></td>
- <td width="424"><%= FieldUtil.filterScriptTag(equipmentValue.getConfigure())%></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="125">
- <div align="left"><font class="strong"> 使用者:</font></div>
- </td>
- <td width="424"> <%= FieldUtil.filterScriptTag(equipmentValue.getUseDeptName())%> <%= FieldUtil.filterScriptTag(equipmentValue.getUsePersonName())%>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="125">
- <div align="left"><font class="strong"> 购买价格:</font></div>
- </td>
- <td width="424"><font class="strong"><font class="strong">
- </font></font><%= equipmentValue.getPrice()%>元</td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="125">
- <div align="left"><font class="strong"> 购买日期:</font></div>
- </td>
- <td width="424" ><%= buyDate%> </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="125"><font class="strong"> 购买者:</font></td>
- <td width="424"><%= FieldUtil.filterScriptTag(equipmentValue.getBuyDeptName())%> <%= FieldUtil.filterScriptTag(equipmentValue.getBuyPersonName())%>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="125"><font class="strong"> 供应者:</font></td>
- <td width="424"><%= FieldUtil.filterScriptTag(equipmentValue.getSupplier())%></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="125">
- <div align="left"><font class="strong"> 估计使用年限:</font></div>
- </td>
- <td width="424"><%= equipmentValue.getTerm()%>月</td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="125">
- <div align="left"><font class="strong"> 放置地点:</font></div>
- </td>
- <td width="424"> <%= FieldUtil.filterScriptTag(equipmentValue.getPlace())%> </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="125"><font class="strong"> 其他说明:</font></td>
- <td width="424"><%= FieldUtil.filterScriptTag(equipmentValue.getRemark())%></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="125"><font class="strong"> 维修记录:</font></td>
- <td width="424"><a href="/mainctrl/equipmentRepairList?equipmentId=<%= sId%>">查看维修记录</a></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="125"><font class="strong"> 使用记录:</font></td>
- <%
- if (equipmentValue.getEquipmentCode().equals(""))
- {
- %>
- <td width="424">还未增加资产编号和使用者信息</td>
- <%
- }
- else
- {
- %>
- <td width="424"><a href="/mainctrl/equipmentUseList?equipmentId=<%= sId%>">查看使用记录</a></td>
- <%}%>
- </tr>
- <tr bgcolor="#fafafa" height="30">
- <td colspan="2">
- <div align="center">
- <input type="button" name="Submit2" value="删除" class="file" onClick=toDelete()>
- <input type="button" name="Submit22" value="修改" class="file" onClick=toModify()>
- <input type="button" name="Submit25" value="返回" class="file" onClick="toBack()">
- </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>