<%@include file="/auth.jsp"%> <%@page import="java.util.Date"%> <%@page language="java" pageEncoding="utf-8" %> <jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/> <% HashFmlBuf bufInfo=(HashFmlBuf)request.getAttribute("useBuf"); String propertyType=""; %> <html> <head> <title>资产登记管理</title> <link href="../../../css/font.css" rel="stylesheet" type="text/css"> <script src="../../../js/date.js"></script> <script src="../../../js/check.js"></script> <script> function checkNumber() { if(parseInt(form1.indentureId.value)) { return true; } else { alert("维修商编号只能输入数字"); form1.indentureId.focus(); return false; } } function check(operate) { form1.operate.value = operate; if(form1.operate.value="updatePropertyUse"){ if(form1.propertyName.value=="") { alert("请输入领用资产名称"); form1.propertyName.focus(); return false; } if(form1.propertyNo.value=="") { alert("请输入领用资产型号"); form1.propertyNo.focus(); return false; } if(form1.propertyType.value=="") { alert("请选择领用资产类型"); form1.propertyType.focus(); return false; } } form1.button1.disabled=true; //form1.button2.disabled=true; form1.submit(); } function checklength(el,size){ if(el.value.length > size){ alert("字数超过限制"); } el.value = el.value.substring(0,size); } </script> <style type="text/css"> .aselect { width:156px; } </style> <style type="text/css"> .td1{ width: 30%; } table#csstable{ border-top:#D8E9FE 1px solid; border-left:#D8E9FE 1px solid; } table#csstable td{ border-bottom:#D8E9FE 1px solid; border-right:#D8E9FE 1px solid; } table#csstable #bottomcss td{ border-bottom:#D8E9FE 0px solid; } </style> </head> <body onload="setValue();"> <br> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" class="box"> <tr> <td valign="top"><table width="100%" height="23" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="25%" background="/images/tab_search_01.jpg"><table width="80%" height="23" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="3%"><img src="/images/little_red.jpg" width="12" height="12"></td> <td width="97%" class="font12b"> 资产登记管理</td> </tr> </table></td> <td width="82%" background="/images/tab_search_03.jpg"><img src="/images/tab_search_02.jpg" width="12" height="23"></td> </tr> </table> <form name="form1" method="post" action="/servlet/PropertyUseManage"> <input type="hidden" name="operate" value=""/> <input type="hidden" name="useId" value="<%=bufInfo.fget("use_id",0)%>"> <br> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="3%"><img src="/images/little.gif" width="12" height="12"></td> <td width="97%" class="font12">详细信息填写</td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02"> <tr bgcolor="#FFFFFF"> <td class="cell1">领用单位</td> <td class="cell2"> <input type="text" id="useDepartId" name="useDepartId" value="<%=bufInfo.fget("departname",0)%>" readonly="readonly"/><font color="#ff0000">*</font> </td> <td class="cell1">领用人员</td> <td class="td1"> <input type="text" id="useEmpname" name="useEmpname" value="<%=bufInfo.fget("empname",0)%>" readonly="readonly"/> <font color="#ff0000">*</font> </td> </tr> <tr bgcolor="#FFFFFF"> <td class="cell1">领用流水号</td> <td class="cell2"> <input type="text" name="useId" id="useId" value="<%=bufInfo.fget("use_id",0)%>" readonly="readonly"/> </td> <td class="cell1">领用资产名称</td> <td class="cell2"> <input type="text" name="propertyName" value="<%=bufInfo.fget("property_name",0) %>" maxlength="30"/> <font color="#ff0000">*</font> </td> </tr> <tr bgcolor="#FFFFFF"> <td class="cell1">领用资产型号</td> <td class="cell2"> <input type="text" name="propertyNo" maxlength="20" value="<%=bufInfo.fget("property_no",0)%>"/> <font color="#ff0000">*</font> </td> <td class="cell1">领用资产类型</td> <td class="cell2"> <select class='aselect' name="propertyType" id="propertyType"> <% String propertyName=""; propertyType=bufInfo.fget("property_type",0); if(propertyType.equals("1")) { propertyName="笔记本"; } else if(propertyType.equals("2")) { propertyName="移动硬盘"; } else if(propertyType.equals("3")) { propertyName="工具"; } else if(propertyType.equals("4")) { propertyName="存储介质"; } else { propertyName="其它"; } %> <option value="<%=bufInfo.fget("property_type",0)%>" <%if(bufInfo.fget("property_type",0).toString().trim().equals(propertyType)){%> selected="selected"<%} %>><%=propertyName%></option> </select> </td> </tr> <tr bgcolor="#FFFFFF"> <td class="cell1">领用资产单位</td> <td class="cell2"> <input type="text" name="propertyUnit" value="<%=bufInfo.fget("property_unit",0) %>" maxlength="12"/><font color="#ff0000">*</font> </td> <td class="cell1"> </td> <td class="cell2"> </td> </tr> <tr bgcolor="#FFFFFF" class="tr2"> <td style="color: #41247B" colspan="4"> 备注: </td> </tr> <tr bgcolor="#FFFFFF" class="tr2"> <td colspan="4"> <textarea onblur="checklength(this,200)" maxlength="300" name="remark" id="remark" rows="3" cols="93"><%=bufInfo.fget("remark",0) %></textarea> <font color="red">(注:限200字符内)</font> </td> </tr> </table> <br> <table width="90%" align="center"> <tr align="center"> <td><input type="button" name="button1" value=" 提交 " class="box_button" onclick="check('updatePropertyUse');"/> <input type="button" name="button2" value=" 返回 " class="box_button" onclick="history.back();"/> </td> </tr> </table> </form> </td> </tr> </table> <%@include file="/foot.jsp"%> </body> </html> <script> function selectArea(frameworkid) { var url = "/servlet/SelectPara?select=area&frameworkid=" + frameworkid; var callback = changeArea; executeXhr(callback, url); } function changeArea() { if (req.readyState == 4) { if (req.status == 200) { document.getElementById("areaDiv").innerHTML = "<select class='aselect' name='areaid'>" + req.responseText + "</select> <font color='#FF0000'>*</font>"; } else { alert("There was a problem retrieving the XML data:" + req.statusText); } } } </script> <script src="/js/ajaxUtils.js"></script>