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

📄 asset_type_edit.jsp

📁 oa 源代码
💻 JSP
字号:
<%@ page contentType="text/html; charset=utf-8"%>
<%@ page import = "java.net.URLEncoder"%>
<%@ page import = "java.util.*"%>
<%@ page import = "cn.js.fan.util.*"%>
<%@ page import = "com.redmoon.oa.asset.*"%>
<%@ page import = "cn.js.fan.web.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加资产修改</title>
<link href="../common.css" rel="stylesheet" type="text/css">
<%@ include file="../inc/nocache.jsp"%>
<script language="JavaScript" type="text/JavaScript">
<!--

//-->
</script>
<style type="text/css">
<!--
.style2 {font-size: 14px}
.STYLE5 {color: #FF0000}
.STYLE6 {color: #000000}
-->
</style>
</head>
<body background="" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
<jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
<jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
<%
String priv="oa.asset";
if (!privilege.isUserPrivValid(request, priv)) {
	out.println(SkinUtil.makeErrMsg(request, SkinUtil.LoadString(request, "pvg_invalid")));
	return;
}
String op = ParamUtil.get(request, "op");
if (op.equals("modify")) {
	AssetTypeMgr am = new AssetTypeMgr();
	boolean re = false;
	try {
		  re = am.modify(request);
	}
	catch (ErrMsgException e) {
		out.print(StrUtil.Alert(e.getMessage()));
	}
	if (re)	{
		//out.print(StrUtil.Alert_Redirect("操作成功!", "officeequip_type_list.jsp"));
%>
    <script>
		window.opener.location.reload();
		window.close();
	</script>
<%	}
}%>
<%
	int id = ParamUtil.getInt(request, "id");
	AssetTypeDb atd = new AssetTypeDb();
	atd = atd.getAssetTypeDb(id);
%>
<table width="494" height="89" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="23" valign="bottom" background="../images/top-right.gif" class="right-title">&nbsp;&nbsp;<span>修改资产类别</span></td>
  </tr>
  <tr> 
    <td valign="top" background="../images/tab-b-back.gif"><table width="102%">
      <form action="?op=modify" method="post" name="form1" id="form1" onSubmit="">
        <tbody>
          <tr>
            <td align="right" width="23%">资产类别:</td>
            <td width="30%"><input maxlength="100" name="name" value="<%=atd.getName()%>" /></td>
            <td align="right" width="17%"></td>
            <td width="30%"><input name="id" value="<%=atd.getId()%>" type=hidden></td>
          </tr>
          <tr>
            <td align="right">净残值率:</td>
            <td><input maxlength="10" value="<%=atd.getDepreciationRate()%>" name="depreciationRate" /></td>
            <td align="right">折旧年限:</td>
            <td><input maxlength="9" value="<%=atd.getDepreciationYears()%>" name="depreciationYears" /></td>
          </tr>
          <tr>
            <td> </td>
            <td colspan="3">资产月折旧率是按资产购置时间的下个月开始计算折旧</td>
          </tr>
          <tr>
            <td align="right">备 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:</td>
            <td colspan="3"><textarea name="abstracts" value="<%=atd.getAbstracts()%>"></textarea></td>
          </tr>
          <tr>
            <td colspan="4" align="center"><input name="button2" type="submit" class="button1" value="确  定">
               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                <INPUT name="button" type="button" class="button1" onClick="window.close()" value="取  消">
                              </td>
            </tr>
        </tbody>
      </form>
    </table></td>
  </tr>
</table>
<br>
<br>
</body>
</html>

⌨️ 快捷键说明

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