⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 updatecomputer.jsp

📁 用于银行全面掌控公司及各个部门的员工信息与设备资料
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>

<jsp:include page="/Main/Main.jsp" />
<script type="text/javascript" src="images/js/date.js"></script>

<SCRIPT language=JavaScript1.2>
		
     	function update()
     	{
     		document.forms[0].code.value="5";
     		document.forms[0].submit();
     	}
     	function returnlist()
     	{
     		document.forms[0].code.value="4";
     		document.forms[0].submit();
     	}
		
</script>

<BR>
<BR>

<CENTER>
	<span class="FormTitle">&nbsp;&nbsp;&nbsp;查看计算机设备&nbsp;&nbsp;</span>
	<BR>
	<html:form action="/addComputer.do" method="post">
		<html:hidden property="code"/>
		<input type="hidden" name="comId" value="${computer.comId}">
		<table class="midTable1" width="70%" align="center" border="0"
			cellpadding="2" cellspacing="0">
			<tr>
				<td align="center" nowrap class="midTable1td1">
					所属部门
				</td>
				<td width="60%" nowrap class="midTable1td2">
					<select name="comUserUnit">
						<logic:present name="list">
						<logic:iterate id="list" name="list">
							<option value="${list.unitId}">
								<bean:write name="list" property="unitName"></bean:write>
							</option>
						</logic:iterate>
					</logic:present>
					</select>
				</td>
			</tr>
			<tr>
				<td align="center" nowrap class="midTable1td1">
					计算机编号
				</td>
				<td width="60%" nowrap class="midTable1td2">
					<html:text property="comNumber" value="${computer.comNumber}"></html:text>
					自动编码&nbsp;单位两位/部门两位/设备编号4位
				</td>
			</tr>
			<tr>
				<td align="center" nowrap class="midTable1td1">
					计算机品牌型号
				</td>
				<td width="60%" nowrap class="midTable1td2">
					<html:text property="comType" value="${computer.comType}"></html:text>
					&nbsp;例如:联想天骄100
				</td>
			</tr>
			<tr>
				<td align="center" nowrap class="midTable1td1">
					CPU型号
				</td>
				<td width="60%" nowrap class="midTable1td2">
					<html:text property="comCpu" value="${computer.comCpu}"></html:text>
					&nbsp;例如:C1200
				</td>
			</tr>
			<tr>
				<td align="center" nowrap class="midTable1td1">
					内存
				</td>
				<td width="60%" nowrap class="midTable1td2">
					<html:text property="comMemory" value="${computer.comMemory}"></html:text>
					&nbsp;例如:512M
				</td>
			</tr>
			<tr>
				<td align="center" nowrap class="midTable1td1">
					硬盘大小
				</td>
				<td width="60%" nowrap class="midTable1td2">
					<html:text property="comHardDisk" value="${computer.comHardDisk}"></html:text>
					&nbsp;例如:60GB
				</td>
			</tr>

			<tr>
				<td align="center" nowrap class="midTable1td1">
					操作系统
				</td>
				<td width="60%" nowrap class="midTable1td2">
					<html:text property="comOs" value="${computer.comOs}"></html:text>
					&nbsp;例如:WindowsXP
				</td>
			</tr>
			<tr>
				<td align="center" nowrap class="midTable1td1">
					IP地址
				</td>
				<td width="60%" nowrap class="midTable1td2">
					<html:text property="comIpaddress" value="${computer.comIpaddress}"></html:text>
					&nbsp;例如:192.168.0.21
				</td>
			</tr>
			<tr>
				<td align="center" nowrap class="midTable1td1">
					MAC地址
				</td>
				<td width="60%" nowrap class="midTable1td2">
					<html:text property="comMacaddress" value="${computer.comMacaddress}"></html:text>
					&nbsp;例如:255.255.255.0
				</td>
			</tr>
			<tr>
				<td align="center" nowrap class="midTable1td1">
					使用人
				</td>
				<td width="60%" nowrap class="midTable1td2">
					<html:text property="comUserName" value="${computer.comUserName}"></html:text>
					&nbsp;例如:张三
				</td>
			</tr>
			<tr>
				<td align="center" nowrap class="midTable1td1">
					机房号
				</td>
				<td width="60%" nowrap class="midTable1td2">
					<html:text property="comHouseId" value="${computer.comHouseId}"></html:text>
					&nbsp;例如:1204房
				</td>
			</tr>
			<tr>
				<td align="center" nowrap class="midTable1td1">
					责任人
				</td>
				<td width="60%" nowrap class="midTable1td2">
					<html:text property="comDutyMan" value="${computer.comDutyMan}"></html:text>
					&nbsp;例如:张三
				</td>
			</tr>
			<tr>
				<td align="center" nowrap class="midTable1td1">
					用途
				</td>
				<td width="60%" nowrap class="midTable1td2">
					<html:text property="comPurpose" value="${computer.comPurpose}"></html:text>
					&nbsp;例如:文字处理
				</td>
			</tr>
			<tr>
				<td align="center" nowrap class="midTable1td1">
					购买时间
				</td>
				<td width="60%" nowrap class="midTable1td2">
					<html:text property="comBuyTime" onfocus="setday(this)" value="${computer.comBuyTime}"></html:text>
				</td>
			</tr>
			<tr>
				<td align="center" nowrap class="midTable1td1">
					领用时间
				</td>
				<td width="60%" nowrap class="midTable1td2">
					<html:text property="comUseTime"  onfocus="setday(this)" value="${computer.comUseTime}"></html:text>
				</td>
			</tr>
			<tr>
				<td align="center" nowrap class="midTable1td1">
					设备类型
				</td>
				<td width="60%" nowrap class="midTable1td2">
					<select name="comUseDevice">
						<option>
							<c:out value="${computer.comUseDevice}"></c:out>
						</option>
						<option value="计算机">
							计算机
						</option>
						<option value="打印机">
							打印机
						</option>
						<option value="交换机">
							交换机
						</option>
						<option value="路由器">
							路由器
						</option>
						<option value="电源">
							电源
						</option>
						<option value="其他">
							其他
						</option>
					</select>
					&nbsp;
				</td>
			</tr>
			<tr>
				<td align="center" nowrap class="midTable1td1" colspan=2>

					<html:button property="button" value="修改" onclick="update();"></html:button>
					<html:button property="button" value="关闭" onclick="returnlist();"></html:button>

				</td>
			</tr>
		</table>
		<BR>
		<table>
		</table>
	</html:form>
</CENTER>
<jsp:include page="/Main/Footer.html" />

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -