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

📄 modifyrepairstep1.jsp

📁 jsp开发的固定资产管理系统
💻 JSP
字号:
<%@ page contentType="text/html;charset=gb2312" %>
<%@ include file="../incoming/Common.jsp"%>
<%@ include file="../Check.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<title><%=title%></title>
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../css/calendar-win2k-1.css" type="text/css" media="screen">
<script type="text/javascript" src="../js/calendar.js"></script>
<script type="text/javascript" src="../js/calendar-en.js"></script>
<script type="text/javascript" src="../js/calendar-setup.js"></script>
<script language="javascript">
function check_input(theForm)
{
  if (theForm.assetid.value == "")
  {
    alert("请选择资产编号.");
    theForm.assetid.focus();
    return (false);
  }
  if (theForm.assetnum.value == "")
  {
    alert("请输入数量.");
    theForm.assetnum.focus();
    return (false);
  }
  if (theForm.failurereason.value == "")
  {
    alert("请输入故障原因.");
    theForm.failurereason.focus();
    return (false);
  }
  if (theForm.repairstatus.value == "")
  {
    alert("请输入维修状态.");
    theForm.repairstatus.focus();
    return (false);
  }
  if (theForm.repairmoney.value == "")
  {
    alert("请输入维修金额.");
    theForm.repairmoney.focus();
    return (false);
  }
}
</script>
</head>
<body>
<%@ include file="../incoming/Header.jsp"%>
<%
	String repairno = new String(request.getParameter("repairno").getBytes("ISO8859_1"),"GBK");
	Repair repair = Repair .FindByNO(repairno);
%>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td width="120" valign="top" background="../images/in_left_bg.gif"><%@ include file="RepairLeft.jsp"%></td>
    <td width="780" align="center" valign="top">
	<form name="form1" method="post" action="ModifyRepairStep2.jsp?repairno=<%=repairno%>" onsubmit="return check_input(this)">
	<p align="center" class="title2">修改维修记录</p>
    <table width="583" height="313" border="1" align="center" cellpadding="3" cellspacing="0" bordercolor="#CCCCCC">
      <tr>
        <td ><div align="right">资产编号:</div></td>
        <td width="447">              
		<select name="assetid" size="1" id="assetid">
		 <%	
			Vector listasset = Asset.ListAll();
			for(int i=0;i<listasset.size();i++) 
			{
				Asset asset = (Asset)listasset.elementAt(i);
				if((asset.getAssetID()).equals(repair.getAssetID()))
				{%>
              <option value="<%=asset.getAssetID()%>" selected><%=asset.getAssetID()%>-<%=asset.getAssetName()%></option>
			  <%}else
			  {%>
			  <option value="<%=asset.getAssetID()%>"><%=asset.getAssetID()%>-<%=asset.getAssetName()%></option>
             <%}
			}
			%>
        </select>
          *</td>
      </tr>
      <tr>
        <td height="33"><div align="right"> 数量:</div></td>
        <td height="33"><input name="assetnum" type="text"  class="data" id="assetnum" onkeyup="value=value.replace(/[^\d]/g,'')" value="<%=repair.getAssetNum()%>" size="8" maxlength="6">
    *</td>
      </tr>
      <tr>
        <td height="38"><div align="right"> 维修日期: </div></td>
        <td><input type="text"  class="data" name="repairdate" size="20" value="<%=repair.getRepairDate()%>" id="repairdate"  readonly="true">
          <input name="rd" type="button" id="rd" value="…">
*</td>
      </tr>
      <tr>
        <td height="33"><div align="right"> 故障原因:</div></td>
        <td height="33"><input name="failurereason" type="text"  class="data" id="failurereason" value="<%=repair.getFailureReason()%>" size="60" maxlength="40" >
    *</td>
      </tr>
      <tr>
        <td height="33"><div align="right">维修状态:</div></td>
        <td height="33"><input name="repairstatus" type="text"  class="data" id="repairstatus" value="<%=repair.getRepairStatus()%>" size="60" maxlength="40" >
    *</td>
      </tr>
      <tr>
        <td height="33"><div align="right">维修金额:</div></td>
        <td height="33"><input name="repairmoney" type="text"  class="data" id="repairmoney" onkeyup="value=value.replace(/[^\d]/g,'')" value="<%=repair.getRepairMoney()%>" size="8" maxlength="6">
          *</td>
      </tr>
      <tr>
        <td height="33"><div align="right">备注: </div></td>
        <td height="33"><textarea name="remark" cols="60" rows="4" id="remark"><%=repair.getRemark()%></textarea></td>
      </tr>
      <tr>
        <td height="60" colspan="2"><div align="center">
            <input type="submit" name="Submit" value="修改">
            <input name="back" type="button" id="back" value="返回" onClick="javascript:history.back()">
        </div></td>
      </tr>
    </table>
	</form></td>
  </tr>
</table>
<%@ include file="../incoming/Footer.jsp"%>	
<script type="text/javascript">
  Calendar.setup(
    {
      inputField  : "repairdate",         // ID of the input field
      ifFormat    : "%Y-%m-%d",    // the date format
      button      : "rd"       // ID of the button
    }
  );
</script>
</body>
</html>

⌨️ 快捷键说明

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